/* ==========================================================================
   Mercansan Child Theme - Teklif İste Kurumsal Tasarım & Renk Paleti
   Palet:
   - Endüstriyel Koyu Yeşil : #173C2B (Ana renk · Butonlar, başlıklar, aktif rozetler)
   - Zeytin Yeşili         : #3F583A (İkincil renk · Hover durumları, vurgular)
   - Grafit Siyah           : #1C1F1D (Metinler, koyu yüzeyler, etiketler)
   - Çelik Gri              : #8A908B (İkincil metinler, çizgiler, teknik detaylar)
   - Açık Gri               : #E7E9E6 (Kart arka planları, açık yüzeyler)
   - Beyaz                  : #FFFFFF (Zeminler, kartlar, koyu zemin metinleri)
   ========================================================================== */

/* 1. Global Değişkenleri Mercansan Kurumsal Paletine Ayarla */
:root {
    --ti-primary: #173C2B !important;
    --ti-primary-hover: #3F583A !important;
    --ti-secondary: #3F583A !important;
    --ti-dark: #1C1F1D !important;
    --ti-steel: #8A908B !important;
    --ti-light: #E7E9E6 !important;
    --ti-white: #FFFFFF !important;
    --ti-bg: #FFFFFF !important;
    --ti-border: #E7E9E6 !important;
    --ti-text: #1C1F1D !important;
    --ti-text-muted: #8A908B !important;
}

/* ==========================================================================
   2. Tutamaç (Handle) Görünürlük & Kurumsal Renkleri
   ========================================================================== */

/* Liste Boşken Tutamacı Tamamen Gizle */
.ti-sidebar-handle:not(.ti-has-items) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(-30px) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
}

/* Masaüstü Tutamaç - Boş / Standart */
.ti-sidebar-handle {
    background: #1C1F1D !important;
    border: 1px solid #8A908B !important;
    box-shadow: 0 4px 16px rgba(28, 31, 29, 0.35) !important;
}

/* Masaüstü Tutamaç - Ürün Eklendiğinde (.ti-has-items) */
.ti-sidebar-handle.ti-has-items {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(-50%) translateX(0) !important;
    background: #173C2B !important;
    border: 1px solid #3F583A !important;
    box-shadow: 0 8px 24px rgba(23, 60, 43, 0.45) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
}

.ti-sidebar-handle.ti-has-items:hover {
    background: #3F583A !important;
    border-color: #173C2B !important;
    box-shadow: 0 10px 28px rgba(63, 88, 58, 0.55) !important;
}

.ti-sidebar-handle .ti-handle-count {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.ti-sidebar-handle .ti-handle-divider {
    background: rgba(255, 255, 255, 0.25) !important;
}

.ti-sidebar-handle .ti-handle-letter {
    color: #E7E9E6 !important;
    font-weight: 600 !important;
}

.ti-sidebar-handle:hover .ti-handle-letter,
.ti-sidebar-handle.ti-has-items .ti-handle-letter {
    color: #FFFFFF !important;
}

/* Çekmece Açıkken Tutamacı Gizle */
.ti-quote-sidebar:not(.ti-collapsed) .ti-sidebar-handle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobil Tutamaç Kurumsal Renkleri */
.ti-handle-mobile-text {
    background: #1C1F1D !important;
    border-color: #3F583A !important;
}

.ti-handle-mobile-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.ti-handle-mobile-subtitle {
    color: #8A908B !important;
}

.ti-handle-mobile-badge {
    background: #173C2B !important;
}

.ti-handle-mobile:hover .ti-handle-mobile-badge {
    background: #3F583A !important;
}

@media (max-width: 768px) {
    .ti-sidebar-handle:not(.ti-has-items) {
        transform: translateY(40px) !important;
    }
    .ti-sidebar-handle.ti-has-items {
        transform: translateY(0) !important;
    }
}

/* ==========================================================================
   3. Çekmece Başlığı (Header) - Koyu Yeşil & Grafit Degrade
   ========================================================================== */
.ti-sidebar-header {
    background: linear-gradient(135deg, #173C2B 0%, #1C1F1D 100%) !important;
    border-bottom: 1px solid rgba(231, 233, 230, 0.15) !important;
}

.ti-glow-blob-1 {
    background: #3F583A !important;
    opacity: 0.3 !important;
}

.ti-glow-blob-2 {
    background: #173C2B !important;
    opacity: 0.25 !important;
}

.ti-header-icon-glow-wrapper {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(23, 60, 43, 0.3) !important;
}

.ti-header-title {
    color: #FFFFFF !important;
}

.ti-count-pill-product {
    background: rgba(63, 88, 58, 0.4) !important;
    border: 1px solid rgba(63, 88, 58, 0.6) !important;
}

.ti-count-pill-product span:first-child,
.ti-count-pill-product .ti-pill-label {
    color: #FFFFFF !important;
}

.ti-count-pill-qty {
    background: rgba(23, 60, 43, 0.6) !important;
    border: 1px solid rgba(231, 233, 230, 0.3) !important;
}

.ti-count-pill-qty span:first-child,
.ti-count-pill-qty .ti-pill-label {
    color: #E7E9E6 !important;
}

.ti-close-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

.ti-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Adım 2 Başlığı */
.ti-step-2 .ti-sidebar-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E7E9E6 !important;
}

.ti-step-2 .ti-sidebar-header h3 {
    color: #1C1F1D !important;
}

.ti-back-btn {
    color: #173C2B !important;
}

.ti-back-btn:hover {
    color: #3F583A !important;
}

/* ==========================================================================
   4. Ürün Listesi ve Kartlar
   ========================================================================== */
.ti-product-item {
    background: #FFFFFF !important;
    border: 1px solid #E7E9E6 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(28, 31, 29, 0.03) !important;
}

.ti-product-item:hover {
    border-color: #8A908B !important;
    box-shadow: 0 4px 12px rgba(28, 31, 29, 0.06) !important;
}

.ti-product-img-wrapper {
    background: #E7E9E6 !important;
    border: 1px solid #E7E9E6 !important;
}

.ti-product-title,
.ti-product-title-link {
    color: #1C1F1D !important;
}

.ti-product-title-link:hover {
    color: #173C2B !important;
}

.ti-product-sku {
    color: #8A908B !important;
}

/* Adet Seçici */
.ti-qty-selector {
    background: #E7E9E6 !important;
    border-radius: 6px !important;
}

.ti-qty-btn {
    color: #1C1F1D !important;
}

.ti-qty-btn:hover {
    color: #173C2B !important;
}

.ti-qty-btn.disabled,
.ti-qty-btn:disabled {
    color: #8A908B !important;
}

.ti-qty-val {
    color: #1C1F1D !important;
}

.ti-remove-item-btn {
    color: #8A908B !important;
}

.ti-remove-item-btn:hover {
    color: #173C2B !important;
    background: #E7E9E6 !important;
}

/* ==========================================================================
   5. Çekmece Alt Bölümü (Footer) & Ana Butonlar
   ========================================================================== */
.ti-sidebar-footer {
    background: #FFFFFF !important;
    border-top: 1px solid #E7E9E6 !important;
}

.ti-footer-info-box {
    background: #E7E9E6 !important;
    border-radius: 8px !important;
}

.ti-footer-info-text {
    color: #1C1F1D !important;
}

.ti-footer-info-box svg circle,
.ti-footer-info-box svg path {
    stroke: #8A908B !important;
}

/* Ana Butonlar (Teklif İste, Gönder, Ürünleri İncele) */
.ti-button,
.ti-btn-checkout,
.ti-btn-submit,
.ti-btn-shop {
    background: #173C2B !important;
    background-color: #173C2B !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(23, 60, 43, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ti-button:hover,
.ti-btn-checkout:hover,
.ti-btn-submit:hover,
.ti-btn-shop:hover {
    background: #3F583A !important;
    background-color: #3F583A !important;
    box-shadow: 0 6px 18px rgba(63, 88, 58, 0.35) !important;
    transform: translateY(-1px) !important;
}

.ti-button:disabled,
.ti-btn-checkout:disabled {
    background: #E7E9E6 !important;
    background-color: #E7E9E6 !important;
    color: #8A908B !important;
    box-shadow: none !important;
    transform: none !important;
}

.ti-button:disabled svg path {
    stroke: #8A908B !important;
}

.ti-btn-clear {
    color: #8A908B !important;
}

.ti-btn-clear:hover {
    color: #173C2B !important;
}

/* ==========================================================================
   6. Adım 2 Form Elemanları
   ========================================================================== */
.ti-form-group label {
    color: #1C1F1D !important;
}

.ti-radio-group {
    background: #E7E9E6 !important;
    border-radius: 8px !important;
}

.ti-radio-label {
    background: #FFFFFF !important;
    color: #1C1F1D !important;
}

.ti-radio-label input[type="radio"]:checked + span {
    color: #173C2B !important;
    font-weight: 700 !important;
}

.ti-radio-label input[type="radio"] {
    accent-color: #173C2B !important;
}

.ti-input-field {
    background: #FFFFFF !important;
    border: 1px solid #E7E9E6 !important;
    color: #1C1F1D !important;
    border-radius: 8px !important;
}

.ti-input-field:focus {
    border-color: #173C2B !important;
    box-shadow: 0 0 0 3px rgba(23, 60, 43, 0.15) !important;
}

.ti-checkbox-label {
    color: #1C1F1D !important;
}

.ti-checkbox-label input[type="checkbox"] {
    accent-color: #173C2B !important;
}

.ti-mobile-step2-products-card {
    background: #E7E9E6 !important;
    border-radius: 8px !important;
}

.ti-mobile-step2-badge {
    background: #173C2B !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   7. Uçma Efekti (Fly) ve Bildirimler (Toast)
   ========================================================================== */
.ti-flying-image {
    border: 2px solid #173C2B !important;
    box-shadow: 0 10px 25px rgba(23, 60, 43, 0.3) !important;
}

.ti-toast {
    background: #FFFFFF !important;
    border: 1px solid #E7E9E6 !important;
    box-shadow: 0 10px 25px -5px rgba(28, 31, 29, 0.1) !important;
}

.ti-toast-success {
    border-left: 4px solid #173C2B !important;
}

.ti-toast-title {
    color: #1C1F1D !important;
}

.ti-toast-product-name {
    color: #8A908B !important;
}

.ti-toast-icon-success {
    color: #173C2B !important;
}

.ti-toast-view-list-btn {
    color: #173C2B !important;
}

.ti-toast-view-list-btn:hover {
    color: #3F583A !important;
}

.ti-toast-undo-btn {
    color: #3F583A !important;
}

.ti-toast-progress-bar {
    background: #173C2B !important;
}

/* ==========================================================================
   8. Tek Ürün Sayfası "Teklif Talep Et" Butonu
   ========================================================================== */
.ti-single-product-actions .ti-btn-quote {
    background: #173C2B !important;
    background-color: #173C2B !important;
    border: 1px solid #173C2B !important;
}

.ti-single-product-actions .ti-btn-quote:hover {
    background: #3F583A !important;
    background-color: #3F583A !important;
    border-color: #3F583A !important;
    box-shadow: 0 6px 18px rgba(63, 88, 58, 0.3) !important;
}

/* ==========================================================================
   9. Çekmece İçi Kaydırma (Scroll) İyileştirmesi
   ========================================================================== */
.ti-quote-sidebar .ti-step {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.ti-quote-sidebar .ti-sidebar-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.ti-quote-sidebar .ti-sidebar-header,
.ti-quote-sidebar .ti-sidebar-footer {
    flex-shrink: 0 !important;
}
