/* ===================================
   ÜRÜN PUSULAM - MODERN CUSTOM DESIGN
   Ana Renkler: Mavi (#0066FF) & Beyaz
   Bootstrap Kullanılmadı - Tamamen Özel
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066FF;
    --primary-blue-dark: #0052CC;
    --primary-blue-light: #3385FF;
    --accent-blue: #00A3FF;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--off-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--gray-200), 0 4px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* === ANA NAV ÇUBUĞU === */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    /* logo | [kategoriler + arama] | aksiyonlar */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 68px;
    gap: 16px;
}

/* === LOGO === */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.4px;
    transition: opacity 0.2s;
    justify-self: start;
}
.logo:hover { opacity: 0.8; }

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 17px;
    flex-shrink: 0;
}
.logo-text { color: var(--gray-900); }
.logo-highlight { color: var(--primary-blue); }

/* === ARAMA - ORTADA === */
.search-container {
    width: 100%;
    position: relative;
    justify-self: center;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 20px 0 48px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    background: var(--white);
    color: var(--gray-900);
}
.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}
.search-input::placeholder { color: var(--gray-400); }

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 17px;
    pointer-events: none;
    z-index: 1;
}

/* Arama Butonu */
.search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-submit-btn:hover { background: var(--primary-blue-dark); }
.search-submit-btn i { font-size: 14px; }

/* Arama Sonuçları Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-results.active {
    display: block;
    animation: slideDown 0.18s ease-out;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover { background: var(--gray-50); }
.search-result-item:last-child { border-bottom: none; }

.search-result-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 4px;
    flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }

.search-result-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 700;
}

/* === HEADER AKSIYONLAR (Sağ) === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

/* ===================================
   MOBİL KATEGORİ ŞERİDİ
   =================================== */

/* Desktop: sadece kategoriler butonu + arama görünür, mobil şerit gizli */
.mobile-cat-bar { display: none; }

@media (max-width: 860px) {
    /* Kategori dropdown tamamen gizle */
    .cat-dropdown-wrap { display: none !important; }

    /* Mobil arama overlay butonu gizle - direkt kutu gösterilecek */
    #mobileSearchBtn { display: none !important; }

    /* Arama kutusunu direkt göster */
    .search-container { display: block; }

    /* Chip şeridini gizle */
    .mobile-cat-bar { display: none !important; }

    /* Nav: logo | arama(flex:1) | beğeni */
    .nav-container {
        padding: 0 14px;
        gap: 10px;
        height: 64px;
    }

    .nav-center {
        gap: 0;
        flex: 1;
        min-width: 0;
    }

    /* Arama kutusu tam genişlik, yükseklik uyumlu */
    .search-input {
        height: 42px;
        font-size: 14px;
        border-radius: 20px;
        padding: 0 16px 0 42px;
    }

    .search-icon {
        font-size: 15px;
        left: 13px;
    }

    /* Sagdaki sadece begeni ikonu */
    .header-actions { gap: 0; }
    .header-actions .icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        flex-shrink: 0;
    }
}

/* <=480px: Kompakt mobil nav */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
        gap: 8px;
        height: 60px;
    }

    /* Logo: ikon + kısa metin, sığsın */
    .logo {
        font-size: 17px;
        gap: 7px;
        flex-shrink: 0;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    /* Çok dar ekranda (≤360px) logo metnini gizle */
}

@media (max-width: 360px) {
    .logo-text { display: none; }
}


.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    flex-shrink: 0;
}
.icon-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.05);
}
.icon-btn i {
    font-size: 19px;
    color: var(--gray-600);
}
.icon-btn:hover i { color: var(--primary-blue); }

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    padding: 0 4px;
}

/* ===================================
   NAV CENTER: Kategoriler + Arama (ayrı)
   =================================== */

/* Eski bölümler artık kullanılmıyor */
.filter-section { display: none !important; }
.category-nav, .category-nav-inner, .cat-nav-item { display: none !important; }
.search-group, .search-divider, .search-icon-btn { display: none !important; }

/* Nav ortası: kategoriler butonu + arama yan yana */
.nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* === KATEGORİLER DROPDOWN BUTONU === */
.cat-dropdown-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 200;
}

.cat-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}
.cat-dropdown-btn:hover {
    opacity: 0.92;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}
.cat-dropdown-btn > i:first-child { font-size: 15px; }
#catChevron { font-size: 11px; transition: transform 0.25s ease; }

/* Dropdown Menü */
.cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    padding: 6px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}
.cat-dropdown-menu::-webkit-scrollbar { width: 4px; }
.cat-dropdown-menu::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.cat-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.cat-drop-item i { font-size: 16px; color: var(--gray-400); flex-shrink: 0; }
.cat-drop-item:hover { background: var(--gray-50); color: var(--primary-blue); }
.cat-drop-item:hover i { color: var(--primary-blue); }
.cat-drop-item.active {
    background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,163,255,0.08) 100%);
    color: var(--primary-blue);
    font-weight: 700;
}
.cat-drop-item.active i { color: var(--primary-blue); }

/* Kategori grubu başlığı (Cihazlar, Bileşenler, Aksesuarlar) */
.cat-drop-divider-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 10px 14px 4px;
    margin-top: 2px;
}
.cat-drop-divider-label:first-child { padding-top: 4px; }

/* Overlay - dropdown dışı kapatma */
.cat-dropdown-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
}
.cat-dropdown-overlay.active { display: block; }

/* === ARAMA KUTUSU (orijinal stil) === */
.search-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 20px 0 48px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    background: var(--white);
    color: var(--gray-900);
}
.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}
.search-input::placeholder { color: var(--gray-400); }

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

/* Arama Sonuçları */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--gray-100);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 300;
}
.search-results.active { display: block; animation: slideDown 0.18s ease-out; }

/* ===================================
   HERO SLIDER
   =================================== */

.hero-slider {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .hero-slider {
        margin: 16px auto;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        margin: 10px auto;
        padding: 0 8px;
    }
}

.slider-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-xl);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-1 {
    background: linear-gradient(135deg, #0066FF 0%, #00A3FF 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #2b32b2 0%, #141e30 100%);
}

.slide-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slide-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
}

.slide-btn {
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-lg);
}

.slide-btn:hover {
    /* Mobilde absolute+translateX(-50%) ile çakışmasın */
    box-shadow: var(--shadow-xl);
    filter: brightness(1.06);
}

/* Desktop'ta (absolute değilken) normal hover */
@media (min-width: 769px) {
    .slide-btn:hover {
        transform: translateY(-2px);
        filter: none;
    }
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    width: 32px;
    border-radius: 4px;
    background: var(--white);
}

/* ===================================
   PRODUCT GRID
   =================================== */

.products-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-top: 4px;
}

.view-all-btn {
    padding: 10px 24px;
    background: var(--gray-100);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.product-image-wrapper {
    position: relative;
    height: 180px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.product-image {
    width: 100%;
    max-width: 100%;
    max-height: 152px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
}

.product-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    border: none;
    z-index: 10;
    color: #6B7280;
}

.product-favorite:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.product-favorite:active {
    transform: scale(0.95);
}

.product-favorite i {
    font-size: 18px;
    transition: all 0.2s;
    pointer-events: none;
}

/* Beğenilmiş ürün stili */
.product-favorite[style*="color: rgb(239, 68, 68)"],
.product-favorite[style*="color:#EF4444"] {
    background: #FFFFFF !important;
    color: #EF4444 !important;
}

.product-favorite[style*="color: rgb(239, 68, 68)"] i,
.product-favorite[style*="color:#EF4444"] i {
    color: #EF4444 !important;
}

.product-score {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-blue);
}

.product-info {
    padding: 14px 16px 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-category {
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

/* ── ÇOKLU FİYAT BLOĞU (kategori kartları) ── */
.product-price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2px;
}

/* ── FİYAT KUTULARI (4 mağaza yan yana) ── */
.price-compare-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
}

.price-store-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 4px;
    background: #F0F6FF;
    border: 1px solid #D6E8FF;
    border-radius: 10px;
    min-width: 0;
    transition: background 0.15s;
}

.price-store-box.cheapest {
    background: #1a7fff;
    border-color: #1a7fff;
}

.psb-logo {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: block;
    flex-shrink: 0;
}

.psb-logo-default {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #D6E8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a7fff;
    font-size: 16px;
}

.price-store-box.cheapest .psb-logo-default {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.psb-price {
    font-size: 12px;
    font-weight: 800;
    color: #1F2937;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.price-store-box.cheapest .psb-price {
    color: #fff;
    font-size: 13px;
}

/* Mobil: genel kartlar 3 mağaza, scroll kartlar 2 mağaza */
@media (max-width: 768px) {
    /* Genel grid kartlar: 3 mağaza */
    .price-compare-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .price-store-box:nth-child(n+4) {
        display: none;
    }

    /* Scroll kartlar: 2 mağaza */
    .scroll-card .price-compare-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .scroll-card .price-store-box:nth-child(n+3) {
        display: none;
    }

    .psb-logo {
        width: 24px;
        height: 24px;
    }
    .psb-logo-default {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .psb-price {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    /* Genel grid kartlar: 3 mağaza (tek kolon olduğu için yer var) */
    .price-compare-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    .price-store-box:nth-child(n+4) {
        display: none;
    }

    /* Scroll kartlar: 2 mağaza */
    .scroll-card .price-compare-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .scroll-card .price-store-box:nth-child(n+3) {
        display: none;
    }

    .price-store-box {
        padding: 6px 3px;
        border-radius: 8px;
        gap: 3px;
    }
}

/* +N fazla mağaza göstergesi — son kutunun sağ üstünde */
.psb-more {
    display: none; /* JS ile son kutuda badge olarak gösterilir */
}

/* Son price-store-box'a eklenen relative wrapper + badge */
.price-store-box.has-more {
    position: relative;
}

.price-store-box.has-more .psb-more-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1a7fff;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    border-radius: 20px;
    padding: 1px 5px;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,102,255,0.35);
    pointer-events: none;
    z-index: 2;
}

/* ── DETAY SAYFASI: cheapest row güncelleme ── */

/* Benzer ürünler — dikey fiyat listesi */
.sim-price-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.sim-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #F0F6FF;
    border: 1px solid #E5EFFF;
    border-radius: 9px;
    gap: 8px;
    position: relative;
}

.sim-price-row.sim-cheapest {
    background: #1a7fff;
    border-color: #1a7fff;
}

.sim-price-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sim-store-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
    display: block;
}

.sim-store-logo-default {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #D6E8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a7fff;
    font-size: 13px;
    flex-shrink: 0;
}

.sim-price-row.sim-cheapest .sim-store-logo-default {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.sim-store-name {
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-price-row.sim-cheapest .sim-store-name {
    color: rgba(255,255,255,0.9);
}

.sim-store-price {
    font-size: 14px;
    font-weight: 800;
    color: #1F2937;
    white-space: nowrap;
    flex-shrink: 0;
}

.sim-price-row.sim-cheapest .sim-store-price {
    color: #fff;
}

/* +N badge — sağ alt köşe */
.sim-price-row.sim-has-more {
    padding-bottom: 12px;
}

.sim-more-badge {
    position: absolute;
    bottom: -6px;
    right: -4px;
    background: #1a7fff;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 20px;
    padding: 2px 6px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,102,255,0.35);
    z-index: 2;
}

.product-cta {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.product-cta:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.05);
}

/* ===================================
   HORIZONTAL SCROLL SECTION
   =================================== */

.horizontal-scroll-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
}

.scroll-container {
    position: relative;
}

.scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.scroll-btn:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: -24px;
}

.scroll-btn-right {
    right: -24px;
}

.scroll-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.scroll-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-blue);
}

.scroll-card .product-image-wrapper {
    overflow: hidden;
}

.scroll-card .product-image {
    width: 100%;
    max-width: 100%;
}

/* ===================================
   AI ANALYSIS SECTION
   =================================== */

.ai-section {
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    padding: 24px;
    border-radius: 20px;
    border: 2px dashed var(--primary-blue);
    position: relative;
}

.ai-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.ai-trigger-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.ai-trigger-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.ai-trigger-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

.ai-trigger-btn i {
    font-size: 32px;
    flex-shrink: 0;
}

.ai-btn-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: left;
}

.ai-btn-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    text-align: left;
}

.ai-results {
    margin-top: 20px;
    display: none;
}

.ai-results.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* AI BOX STYLES - Prompt'taki renklere uygun */
.custom-ai-grid {
    display: grid;
    gap: 16px;
}

.ai-box {
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ai-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.box-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.95;
}

.ai-box p, .ai-box li {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-size: 14px;
}

.ai-box ul {
    list-style: none;
    padding-left: 0;
}

.ai-box li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.ai-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.ai-box strong {
    color: var(--white);
    font-weight: 700;
}

/* Renkli Kutular - Daha Canlı ve Modern */
.blue-box {
    background: linear-gradient(135deg, #1470fb 0%, #0003ae 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.purple-box {
    background: linear-gradient(135deg, #6f00ff 0%, #3d0083 100%);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.green-box {
    background: linear-gradient(135deg, #58ae11 0%, #009d1f 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.red-box {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.yellow-box {
    background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* Full width kutu (Uzman Kararı) */
.full-width {
    grid-column: 1 / -1;
}

.ai-box .d-flex {
    display: flex;
}

.ai-box .justify-content-between {
    justify-content: space-between;
}

.ai-box .align-items-center {
    align-items: center;
}

.ai-box .gap-3 {
    gap: 24px;
}

.ai-box .flex-grow-1 {
    flex-grow: 1;
}

.ai-box .d-block {
    display: block;
}

.ai-box .mb-1 {
    margin-bottom: 8px;
}

.ai-box .mb-0 {
    margin-bottom: 0;
}

.ai-box .mt-2 {
    margin-top: 16px;
}

.ai-box .fw-bold {
    font-weight: 800;
}

.ai-box .opacity-75 {
    opacity: 0.75;
}

.ai-box .rounded-2 {
    border-radius: 12px;
}

.ai-box .px-3 {
    padding-left: 16px;
    padding-right: 16px;
}

.ai-box .py-2 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.ai-box .text-center {
    text-align: center;
}

.ai-box .d-flex.flex-column {
    flex-direction: column;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

/* ===== MOBİL ARAMA ===== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-container {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search-container.active {
    top: 0;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-search-close {
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-700);
    flex-shrink: 0;
}

.mobile-search-box {
    flex: 1;
    position: relative;
}

.mobile-search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.mobile-search-box input:focus {
    border-color: var(--primary-blue);
}

.mobile-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
}

.mobile-search-results {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-top: 8px;
}

.mobile-search-results .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--gray-50);
    transition: background 0.2s;
}

.mobile-search-results .search-result-item:hover {
    background: var(--gray-100);
}

.mobile-search-results .search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--white);
}

.mobile-search-results .search-result-info {
    flex: 1;
    min-width: 0;
}

.mobile-search-results .search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-search-results .search-result-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 32px;
    }

    .slide-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .slider-wrapper {
        height: 300px;
    }

    .slide {
        padding: 32px 24px 76px;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .slide-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }

    .slide-title {
        font-size: 34px;
    }

    /* Buton: altta ortada absolute */
    .slide-btn {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        padding: 11px 32px;
        font-size: 14px;
        white-space: nowrap;
        margin: 0;
    }

    .slider-dots {
        bottom: 10px;
    }
    
    /* 🔥 MOBİL ÜRÜN KARTLARI OPTİMİZASYONU */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper {
        height: 130px;
        padding: 10px;
        overflow: hidden;
    }
    
    .product-image {
        max-height: 110px;
    }
    
    .product-info {
        padding: 10px 12px 12px;
    }
    
    .product-name {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
    }
    
    .product-category {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .product-meta {
        margin-bottom: 8px;
    }

    .psb-logo {
        width: 22px;
        height: 22px;
    }
    .psb-logo-default {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .psb-price {
        font-size: 10px;
    }
    .price-store-box.cheapest .psb-price {
        font-size: 11px;
    }
    .price-store-box {
        padding: 7px 3px;
    }
    
    /* Scroll kartları */
    .scroll-card {
        min-width: 160px;
        max-width: 160px;
    }
    
    .scroll-card .product-image-wrapper {
        height: 140px;
    }
    
    .scroll-card .product-image {
        max-height: 120px;
    }

    /* Scroll kart ürün adı */
    .scroll-card .product-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    /* Scroll kart padding */
    .scroll-card .product-info {
        padding: 10px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===================================
   FAVORİ SİSTEMİ STİLLERİ (YENİ)
   =================================== */

/* Favori Butonu - Aktif Durumu */
.favori-aktif {
    background: #fee2e2 !important;
    border-color: var(--danger) !important;
}

.favori-aktif:hover {
    background: #fecaca !important;
    transform: scale(1.1);
}

/* Navbar Favori Badge */
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transition: all 0.2s;
}

.badge-count.show {
    display: flex !important;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Favori Sidebar Overlay */
#favoriOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#favoriOverlay.show {
    opacity: 1;
    visibility: visible;
}

/* Favori Sidebar */
#favoriSidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#favoriSidebar.open {
    right: 0;
}

.favori-sidebar-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
}

.favori-sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.favori-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 20px;
}

.favori-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.favori-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.favori-bos-mesaj {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.favori-bos-mesaj i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.favori-bos-mesaj p {
    font-size: 16px;
    font-weight: 600;
}

/* Favori Item */
.favori-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.favori-item:hover {
    background: var(--gray-100);
    transform: translateX(-4px);
}

.favori-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.favori-info {
    flex: 1;
    min-width: 0;
}

.favori-isim {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.favori-isim:hover {
    color: var(--primary-blue);
}

.favori-fiyat {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
}

.favori-sil-btn {
    background: transparent;
    border: 2px solid var(--gray-200);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-400);
    flex-shrink: 0;
}

.favori-sil-btn:hover {
    background: #fee2e2;
    border-color: var(--danger);
    color: var(--danger);
    transform: scale(1.1);
}

/* Toast Bildirimleri */
.toast-item {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}

.bg-success {
    background: var(--success);
}

.bg-warning {
    background: var(--warning);
}

.text-white {
    color: white;
}

.text-dark {
    color: var(--gray-900);
}

/* Arama Sonuçları İyileştirmeleri */
.search-result-item.active {
    background: var(--gray-100);
}

.search-empty {
    padding: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* Mobil Responsive */
@media (max-width: 640px) {
    #favoriSidebar {
        max-width: 100%;
        right: -100%;
    }
}

/* 🔥 EKSTRA KÜÇÜK MOBİL CİHAZLAR (480px ve altı) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
        height: 60px;
        gap: 8px;
    }
    
    /* Hero slider — mobil */
    .slider-wrapper {
        height: 260px;
        border-radius: 18px;
    }

    /* Slide: içeriği üste hizala, alt kısım buton için boş */
    .slide {
        padding: 28px 20px 72px;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .slide-badge {
        font-size: 11px;
        padding: 5px 13px;
        margin-bottom: 10px;
    }

    .slide-title {
        font-size: 26px;
        margin-bottom: 0;
        line-height: 1.2;
        font-weight: 800;
    }

    .slide-desc {
        display: none;
    }

    /* Buton: slide içinde absolute, altta ortada sabit */
    .slide-btn {
        position: absolute;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        padding: 10px 28px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.2);
        margin: 0;
    }

    .slider-dots {
        bottom: 10px;
        gap: 5px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 20px;
    }
    
    /* Ürün kartları - daha optimize */
    .products-section,
    .horizontal-scroll-section {
        padding: 0 8px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 8px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image-wrapper,
    .product-image-container {
        height: 200px;
        padding: 12px;
    }
    
    .product-image {
        max-height: 176px;
    }
    
    .product-info {
        padding: 12px 14px 14px;
    }
    
    .product-name {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .product-meta {
        margin-bottom: 8px;
    }
    
    .product-category {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .product-favorite {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .product-score {
        bottom: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
        font-size: 12px;
        border-width: 2px;
    }
    
    /* Scroll kartları */
    .scroll-card {
        min-width: 140px;
        max-width: 140px;
        border-radius: 10px;
    }
    
    .scroll-card .product-image-wrapper {
        height: 110px;
        padding: 8px;
    }
    
    .scroll-card .product-image {
        max-height: 95px;
    }

    .scroll-card .product-info {
        padding: 8px;
    }

    .scroll-card .product-name {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    /* Filter chips */
    .category-chip {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Section headers */
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
}

/* 🔥 ÇOK KÜÇÜK CİHAZLAR (360px ve altı) */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 6px;
    }
    
    .product-image-wrapper,
    .product-image-container {
        height: 220px;
        padding: 14px;
    }
    
    .product-image {
        max-height: 190px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .scroll-card {
        min-width: 120px;
        max-width: 120px;
    }
}

/* ===== FAVORİ PANEL (YENİ TASARIM) ===== */
.fav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.fav-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fav-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #fff;
}

.fav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fav-header h3 i.bi-heart-fill {
    color: #EF4444 !important;
}

.fav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fav-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fav-title {
    font-size: 18px;
    font-weight: 700;
}

.fav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.fav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.fav-list,
.fav-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.fav-list::-webkit-scrollbar,
.fav-body::-webkit-scrollbar {
    width: 6px;
}

.fav-list::-webkit-scrollbar-thumb,
.fav-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.fav-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
}

.fav-clear-btn,
.fav-clear-all {
    width: 100%;
    padding: 12px;
    background: #FEF2F2;
    border: 2px solid #FEE2E2;
    border-radius: 10px;
    color: #EF4444;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fav-clear-btn:hover,
.fav-clear-all:hover {
    background: #FEE2E2;
    border-color: #EF4444;
}

/* Mobil için favori panel */
@media (max-width: 900px) {
    .fav-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .fav-overlay {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ekstra mobil güvenlik - overlay her zaman kapalıyken gizli */
.fav-overlay:not([style*="display: block"]) {
    pointer-events: none;
}

/* Touch cihazlarda daha iyi kapatma deneyimi */
@media (hover: none) and (pointer: coarse) {
    .fav-close {
        width: 40px;
        height: 40px;
    }
    
    .fav-panel {
        -webkit-overflow-scrolling: touch;
    }
    
    .fav-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================
   MOBILE SEARCH OVERLAY & CONTAINER
   =================================== */

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-search-container {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 9999;
    max-height: 100vh;
    overflow-y: auto;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-search-container.active {
    top: 0;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-search-back,
.mobile-search-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mobile-search-back:hover,
.mobile-search-close:hover {
    transform: scale(1.1);
}

.mobile-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-box i {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
    font-size: 18px;
}

.mobile-search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

.mobile-search-box input:focus {
    border-color: var(--primary-blue);
}

.mobile-search-results {
    padding: 8px;
}

.mobile-search-results .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.mobile-search-results .search-result-item:hover {
    background: var(--gray-50);
}

.mobile-search-results .search-result-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gray-50);
    padding: 4px;
    border: 1px solid var(--gray-200);
}

.mobile-search-results .search-result-info {
    flex: 1;
}

.mobile-search-results .search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-search-results .search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.hidden {
    display: none !important;
}

.d-none {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 4px;
}

/* Badge count görünürlüğü */
.badge-count.hidden {
    display: none !important;
}
/* ===================================
   HAMBURGER MENU BUTONU
   =================================== */

/* Desktop'ta gizle */
.menu-btn {
    display: none !important;
}

@media (max-width: 860px) {
    .menu-btn {
        display: flex !important;
    }
    .menu-btn i {
        font-size: 22px;
        color: var(--gray-700);
    }
    .menu-btn:hover i {
        color: var(--primary-blue);
    }
}

/* ===================================
   FLOATING FAVORİ BUTONU (Sağ Alt)
   =================================== */

.floating-fav-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #EF4444 0%, #f87171 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.25s;
    /* Giriş animasyonu */
    animation: floatIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-fav-btn i {
    font-size: 17px;
}

.floating-fav-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.55);
}

.floating-fav-btn:active {
    transform: scale(0.97);
}

.floating-fav-btn.hidden {
    display: none !important;
}

.floating-fav-count {
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 13px;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
}

@keyframes floatIn {
    from { transform: translateY(30px) scale(0.8); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Mobilde biraz daha küçük */
@media (max-width: 768px) {
    .floating-fav-btn {
        bottom: 18px;
        right: 16px;
        padding: 11px 16px;
        font-size: 14px;
        gap: 7px;
    }
    .floating-fav-btn i {
        font-size: 16px;
    }
}

/* ===================================
   MOBİL KATEGORİ MENÜ PANELİ
   =================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1800;
    backdrop-filter: blur(2px);
}
.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 1900;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-panel.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

.mobile-menu-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-menu-title i { font-size: 18px; }

.mobile-menu-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 16px;
    transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.35); }

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.15s;
}
.mobile-menu-item:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
}
.mobile-menu-item:hover .mobile-menu-icon {
    background: rgba(0,102,255,0.1);
    color: var(--primary-blue);
}

.mobile-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--gray-600);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-300);
}

/* Mobil menü grup başlığı */
.mobile-menu-group-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 14px 20px 6px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
