/* ==========================================================================
   E-YARMARKA - REFAKTOR EDİLMİŞ VƏ RESPONSİV STİL FAYLI (ui.css)
   ========================================================================== */

/* === INTERACTIVE CATEGORY CARDS === */
.category-card {
    min-height: 100%;
}

.category-card .hidden-title {
    display: none !important;
}

.category-card.active .vertical-title {
    display: none !important;
}

/* Mobil üçün flex davranışı */
@media (max-width: 767px) {
    #category-cards {
        flex-direction: column;
    }

    .category-card {
        flex: 1 !important;
        min-height: 80px;
    }

    .category-card.active {
        flex: 5 !important;
        min-height: 250px;
    }

    .category-card .vertical-title {
        display: none !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .category-card {
        min-height: 100%;
    }

    .category-card .vertical-title {
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .category-card .vertical-title {
        font-size: 18px;
    }
}

/* === 0. CSS DƏYİŞƏNLƏRİ (Variables) VƏ TƏMƏL === */
:root {
    /* PWA Safe Area Insets (iOS notch, Android gesture areas) */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    
    /* Rənglər (Təkrarın qarşısını alır) */
    --color-text: #1f2937;
    --color-text-dark: #111827;
    --color-text-light: #4b5563;
    --color-text-muted: #6b7280;
    --color-text-faint: #9ca3af;
    --color-text-white: #ffffff;

    --color-primary: #1f2937;
    /* Əsas düymə rəngi */
    --color-primary-hover: #374151;
    --color-secondary: #f3f4f6;
    /* İkinci düymə */
    --color-secondary-hover: #e5e7eb;

    --color-link: #2563eb;
    --color-link-hover: #1d4ed8;

    --color-danger: #dc2626;
    --color-danger-hover: #b91c1c;
    --color-success: #16a34a;

    --color-bg: #f9fafb;
    /* Body fonu */
    --color-bg-white: #ffffff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    /* Ölçülər (Konsistentlik üçün) */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2.5rem;
    /* 40px */

    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */

    /* Kölgələr */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* === 1. TƏMƏL VƏ ÜMUMİ STİLLƏR (XS MOBIL 320px+) === */
html {
    height: 100%;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    /* iPhone-da zoom problemini ləğv edir */
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    /* Baza ölçü */
    
    /* PWA Safe Area: Body üçün padding */
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

.container {
    width: 100%;
    max-width: 100%;
    /* Mobil cihazlarda tam en */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
    /* 1rem (16px) kənar boşluq */
}

/* Desktop üçün max-width */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
        /* Desktop container limit */
    }
}

a {
    text-decoration: none;
    color: var(--color-link);
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-link-hover);
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    background: #f3f4f6;
    min-height: 200px;
}

/* Aspect ratio boxes for images */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    flex-grow: 1;
    padding-top: var(--spacing-lg);
    /* 1.5rem */
    padding-bottom: var(--spacing-xl);
    /* 2.5rem */
}

.section {
    margin-bottom: var(--spacing-xl);
    /* 2.5rem */
}

.section-title {
    font-size: 1.5rem;
    /* Mobil üçün kiçildildi (24px) */
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    /* 1.5rem */
    color: var(--color-text-dark);
}

/* Modern Section Header */
.modern-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    color: var(--color-text);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
}

.modern-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.2;
}

.placeholder-box {
    border: 1px solid var(--color-border);
    background-color: var(--color-secondary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Mobil cihazlarda desktop elementlərini gizlət */
.hidden-mobile {
    display: none !important;
    /* - !important ilə gücləndirildi */
}

/* Desktopda mobil elementlərini gizlət (YENİ) */
.hidden-desktop {
    display: block;
    /* Mobil üçün göstər */
}

/* === 2. HEADER / NAVİQASİYA (XS MOBIL 320px+) === */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    /* 0.5rem */
    padding-bottom: var(--spacing-sm);
    position: relative;
    /* Mobil üçün hündürlüyü sabit saxla */
    min-height: 58px;
}

/* Hamburger menyusu solda */
.header-left {
    display: flex;
    align-items: center;
    z-index: 101;
    /* Mega Menyu açıldıqda öndə qalması üçün */
}

/* Logo mərkəzdə */
.header-center {
    display: flex;
    /* `justify-content: space-between` sayəsində mərkəzə gəlir */
    margin: 0 auto;
}

/* Səbət və s. sağda */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    /* 4px - mobil üçün sıx */
    z-index: 101;
    /* Mega Menyu açıldıqda öndə qalması üçün */
}

.logo {
    font-size: 1.35rem;
    /* Mobil üçün optimal */
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.icon-button {
    padding: 0.625rem;
    /* 10px - touch-friendly 44x44px */
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--color-text-light);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.icon {
    width: 1.5rem;
    /* 24px */
    height: 1.5rem;
    display: block;
    /* Altındakı boşluğu ləğv etmək üçün */
}

.cart-icon-wrapper {
    margin-right: -8px;
    /* Sağ kənara daha yaxın olsun */
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    height: 0.9rem;
    width: 0.9rem;
    background-color: var(--color-danger);
    color: var(--color-text-white);
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 1px solid var(--color-bg-white);
}

/* --- RESPONSIVE BREAKPOINTS (ADDIM-ADDIM) --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .container {
        padding: 0 var(--spacing-lg);
        /* 1.5rem (24px) kənar boşluq */
    }

    .header-right {
        gap: var(--spacing-sm);
        /* 8px */
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {
    .section-title {
        font-size: 1.75rem;
        /* - Orijinal ölçüyə qayıdır */
    }

    .modern-section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* */
    }
}

/* L TABLET (769px+) - BÖYÜK DƏYİŞİKLİK BURADA BAŞLAYIR */
@media (min-width: 769px) {
    .container {
        padding: 0 var(--spacing-lg);
        /* - 1.5rem */
    }

    /* Mobil elementləri gizlət */
    .hidden-desktop {
        display: none !important;
    }

    /* Desktop elementlərini göstər */
    .hidden-mobile {
        display: block !important;
        /* */
    }

    /* Header-i desktop düzəninə keçir */
    .header-container {
        padding-top: 0.75rem;
        /* */
        padding-bottom: 0.75rem;
    }

    .header-left {
        z-index: 1;
        /* Artıq ehtiyac yoxdur */
    }

    .header-center {
        /* Mərkəzləmə üçün original trick-i tətbiq et */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .header-right {
        gap: 1rem;
        /* */
        z-index: 1;
    }

    .logo {
        font-size: 1.5rem;
        /* Desktop üçün bir az böyük */
    }

    .nav-link {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text-light);
    }

    .nav-link:hover {
        color: var(--color-text-dark);
    }

    .button-primary {
        font-size: 0.875rem;
        font-weight: 500;
        background-color: var(--color-primary);
        color: var(--color-text-white);
        padding: 0.6rem 1.1rem;
        border-radius: var(--radius-md);
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .button-primary:hover {
        background-color: var(--color-primary-hover);
    }

    /* Desktop görünüşləri */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        /* */
    }

    .account-layout {
        flex-direction: row;
        /* */
        align-items: flex-start;
    }

    .account-sidebar {
        width: 280px;
        /* */
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        /* */
    }
}

/* LAPTOP (1025px+) */
@media (min-width: 1025px) {
    .container {
        padding: 0 2rem;
        /* */
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        /* */
    }
}

/* L LAPTOP (1281px+) - SƏNİN ƏSAS KÖHNƏ ÖLÇÜN */
@media (min-width: 1281px) {
    .container {
        /* 1280px-lik original max-width-ə çatırıq */
        max-width: 1280px;
    }
}

/* XL EKRAN (1441px+) - YENİ ƏLAVƏ */
@media (min-width: 1441px) {
    .container {
        /* Yeni breakpoint üçün daha geniş konteyner */
        max-width: 1400px;
    }
}

/* === 3. FORM ELEMENTLƏRİ VƏ SƏHİFƏLƏRİ (XS MOBIL 320px+) === */

/* Bütün forma səhifələrini (login, register) əhatə edən əsas blok */
.form-page-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-lg) 0;
    /* Üstdən və altdan 1.5rem boşluq */
    /* Mobil cihazlarda .container boşluğu (1rem) artıq var */
}

/* Bütün formaları əhatə edən ağ qutu */
.form-wrapper {
    background-color: var(--color-bg-white);
    padding: var(--spacing-lg);
    /* 1.5rem */
    border-radius: var(--radius-lg);
    /* 12px */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    width: 100%;
    /* Max-width L TABLET-də təyin ediləcək */
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    /* Mobil üçün kiçildildi (24px) */
    font-weight: 700;
    margin: 0 0 var(--spacing-lg) 0;
    /* 1.5rem alta boşluq */
    color: var(--color-text-dark);
}

.form-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    /* 1rem boşluq */
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: var(--spacing-sm);
    /* 0.5rem (8px) */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
}

/* Bütün input, textarea və select-lər üçün ümumi stil */
.form-input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--color-bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    /* iOS-da köhnə stilləri ləğv et */
    -moz-appearance: none;
    appearance: none;
}

/* Sadəcə textarea üçün olan kod */
textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

/* Sadəcə select üçün olan kod */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem;
}

.form-input:focus {
    transform: none;
    box-shadow: 0 0 0 1px #3b82f6;
    /* box-shadow ilə outline */
    border-color: #3b82f6;
    outline: none;
    /* Standart outline ləğv edildi */
}

/* Yan-yana elementlər üçün (mobil cihazlarda alt-alta) */
.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    /* 1rem */
}

.radio-group {
    display: flex;
    gap: var(--spacing-lg);
    /* 1.5rem */
    margin-top: var(--spacing-xs);
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Satıcı qeydiyyat forması üçün */
#seller-fields {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

#seller-fields.expanded {
    grid-template-rows: 1fr;
}

.seller-fields-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    /* 1rem */
    padding-top: var(--spacing-md);
}

.form-button {
    /* .button-primary stilini genişləndirir */
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    /* Əsas stillər artıq .button-primary-dən gəlməlidir, lakin hələ ki, yoxdur */
    /* Biz onu Addım 2-də (Header) .button-primary olaraq təyin etmişik. */
    /* Ona görə .form-button-u .button-primary ilə birləşdirək */

    /* YENİ QƏRAR: .form-button-u ləğv edirik, birbaşa .button-primary istifadə edəcəyik */
    /* Lakin HTML-i dəyişməmək üçün .form-button-u .button-primary-nin xüsusiyyətləri ilə zənginləşdiririk */

    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-button:hover {
    background-color: var(--color-primary-hover);
}

.form-footer-text {
    text-align: center;
    margin-top: var(--spacing-lg);
    /* 1.5rem */
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-link {
    color: var(--color-link);
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

/* Uğur və Xəta mesajları */
.form-message {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.form-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.form-message.error {
    background-color: #fff1f2;
    color: #991b1b;
    border-color: #fecaca;
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .form-wrapper {
        padding: var(--spacing-xl);
        /* 2.5rem - boşluğu artır */
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {
    .form-title {
        font-size: 1.75rem;
        /* Başlığı böyüt */
    }
}

/* L TABLET (769px+) */
@media (min-width: 769px) {

    /* Formanı mərkəzə gətir və maksimum en ver */
    .form-page-main {
        padding: 3rem 1rem;
        /* */
    }

    .form-wrapper {
        max-width: 600px;
        /* */
    }

    /* .form-row-u yan-yana düz */
    .form-row {
        flex-direction: row;
        gap: var(--spacing-lg);
        /* 1.5rem */
    }

    /* .form-row içindəki hər bir element bərabər yer tutsun */
    .form-row>.input-group {
        flex: 1;
    }
}

/* === 4. ANA SƏHİFƏ XÜSUSİ STİLLƏRİ (XS MOBIL 320px+) === */

/* === 4.1. HERO BÖLMƏSİ (ƏSAS) === */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
    /* Mobil üçün */
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: 0;
    /* Tam en olduğu üçün */
}

/* Tündləşdirici fon */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Məzmun */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 1.75rem;
    /* XS mobil: 28px */
    font-weight: 800;
    color: var(--color-text-white);
    margin: 0 0 var(--spacing-md) 0;
}

/* S Mobil (481px+) */
@media (min-width: 481px) {
    .hero-section h1 {
        font-size: 2rem;
        /* 32px */
    }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
    .hero-section h1 {
        font-size: 2.25rem;
        /* 36px */
    }
}

.hero-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto var(--spacing-lg) auto;
}

/* Axtarış bölməsi */
.hero-section .search-section {
    max-width: 36rem;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.hero-section .search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-md);
}

.hero-section .search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
    outline: none;
}

.hero-section .search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-section .search-button:hover {
    background-color: var(--color-primary-hover);
}

.hero-section .search-button .icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

/* === 4.1.X XÜSUSİYYƏTLƏR (FEATURES) İKONLARI === */

.features-section {
    padding-top: var(--spacing-lg);
    /* Hero-dan azca aralı olsun */
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile-first: 1 sütun */
    gap: var(--spacing-lg);
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--color-secondary);
    /* Boz dairə fon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover .feature-icon-box {
    background-color: #e5e7eb;
    /* Hover-də bir az tündləşsin */
    transform: translateY(-3px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--color-text-dark);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 0.25rem 0;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* RESPONSIVE: Tablet və Desktop */

@media (min-width: 601px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tabletdə 2 sütun */
        gap: 2rem;
    }
}

@media (min-width: 1025px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Desktopda 4 sütun (Şəkildəki kimi) */
    }
}

/* === 4.2. MODERN KATEQORİYA CAROUSEL === */
.category-section-modern {
    background-color: var(--color-bg);
    padding-bottom: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    overflow-x: hidden;
}

.modern-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.modern-category-swiper {
    width: 100%;
    height: auto;
    overflow: visible !important;
    padding: 0.5rem 0;
}

.modern-category-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.modern-category-swiper .swiper-slide {
    height: auto;
    width: auto;
    flex-shrink: 0;
    display: flex;
}

/* iPhone üçün xüsusi */
@supports (-webkit-touch-callout: none) {
    .modern-category-swiper {
        -webkit-overflow-scrolling: touch;
    }

    .modern-category-swiper .swiper-wrapper {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
}

.modern-category-card {
    display: block;
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.modern-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-category-card:hover .category-bg-image {
    transform: scale(1.1);
}

.category-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 60px;
    opacity: 0.3;
}

.category-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    transition: background 0.4s ease;
}

.modern-category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    z-index: 2;
}

.category-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modern-category-card:hover .category-name {
    transform: translateY(-4px);
}

/* Naviqasiya Düymələri */
.modern-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--color-text-dark);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.modern-nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.modern-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-dark);
    transform: translateY(-50%);
}

.modern-nav-btn::after {
    display: none;
}

.modern-nav-btn svg {
    width: 18px;
    height: 18px;
}

.swiper-button-prev.modern-nav-btn {
    left: 0.5rem;
}

.swiper-button-next.modern-nav-btn {
    right: 0.5rem;
}


/* === 4.3. YENİ PAYIZ KOLLEKSİYASI (STATİK BANNER) === */
.full-width-banner {
    margin-bottom: var(--spacing-xl);
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    /* Mobil üçün hündürlük */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Yüngül tündləşdirici */
}

.banner-content-centered {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-white);
    padding: var(--spacing-lg);
    z-index: 2;
}

.banner-title-large {
    font-size: 1.25rem;
    /* XS mobil: 20px */
    font-weight: 800;
    margin: 0 0 var(--spacing-sm) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* S Mobil (481px+) */
@media (min-width: 481px) {
    .banner-title-large {
        font-size: 1.5rem;
        /* 24px */
    }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
    .banner-title-large {
        font-size: 1.75rem;
        /* 28px */
    }
}

.banner-subtitle {
    font-size: 1rem;
    margin: 0 0 var(--spacing-lg) 0;
    opacity: 0.95;
    font-weight: 500;
}

.banner-btn-white {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
}

.banner-btn-white:hover {
    transform: scale(1.05);
    background-color: #f3f4f6;
    text-decoration: none;
}


/* === 4.4. YENİ ENDİRİM HERO BANNER === */
.discount-hero-banner {
    display: block;
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.discount-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.discount-hero-banner:hover .discount-banner-bg {
    opacity: 0.95;
}

.discount-hero-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.25);
}

.discount-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.discount-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.discount-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.discount-text-wrapper {
    flex: 1;
    color: white;
}

.discount-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    opacity: 0.95;
    text-transform: uppercase;
}

.discount-main-text {
    font-size: 1.1rem;
    /* XS mobil: 17.6px */
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* S Mobil (481px+) */
@media (min-width: 481px) {
    .discount-main-text {
        font-size: 1.25rem;
        /* 20px */
    }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
    .discount-main-text {
        font-size: 1.4rem;
        /* 22.4px */
    }
}

.discount-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.4;
}

.discount-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: none;
    /* Mobil üçün gizli */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.discount-hero-banner:hover .discount-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.discount-arrow svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* === 4.5. KÖHNƏ MARQUEE STİLLƏRİ (SİLİNDİ) === */


/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .modern-category-card {
        height: 200px;
    }

    .category-name {
        font-size: 1.4rem;
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {
    .hero-section {
        padding: 6rem 0;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.125rem;
    }

    .discount-hero-banner {
        padding: 3rem 2.5rem;
    }

    .discount-main-text {
        font-size: 2.25rem;
    }

    .discount-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .discount-icon {
        width: 40px;
        height: 40px;
    }

    .discount-arrow {
        width: 48px;
        height: 48px;
    }

    .discount-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* L TABLET (769px+) */
@media (min-width: 769px) {
    .hero-section h1 {
        font-size: 3.75rem;
    }

    .hero-section p {
        font-size: 1.25rem;
    }

    .modern-carousel-container {
        padding: 0 4rem;
    }

    .modern-nav-btn {
        width: 44px;
        height: 44px;
    }

    .modern-nav-btn svg {
        width: 22px;
        height: 22px;
    }

    .swiper-button-prev.modern-nav-btn {
        left: 0.75rem;
    }

    .swiper-button-next.modern-nav-btn {
        right: 0.75rem;
    }

    .modern-category-card {
        height: 220px;
        border-radius: 20px;
    }

    .category-content {
        padding: 24px 20px;
    }

    .category-name {
        font-size: 1.5rem;
    }

    .banner-image-wrapper {
        height: 450px;
    }

    .banner-title-large {
        font-size: 3rem;
    }

    .banner-subtitle {
        font-size: 1.25rem;
    }

    .banner-btn-white {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .promo-banner-long {
        height: 120px;
        width: 400px;
    }

    .banner-pink .promo-value,
    .banner-blue .promo-value {
        font-size: 1.25rem;
    }
}

/* XL EKRAN (1441px+) */
@media (min-width: 1441px) {
    .modern-carousel-container {
        max-width: 1400px;
    }

    .modern-category-card {
        height: 240px;
    }
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .modern-category-card {
        height: 200px;
    }

    .category-name {
        font-size: 1.4rem;
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {
    .hero-section {
        padding: 6rem 0;
        /* py-24 (96px) */
    }

    .hero-section h1 {
        font-size: 3rem;
        /* text-5xl (48px) */
    }

    .hero-section p {
        font-size: 1.125rem;
        /* */
    }

    .search-section {
        margin-bottom: var(--spacing-xl);
    }
}

/* L TABLET (769px+) */
@media (min-width: 769px) {
    .hero-section h1 {
        font-size: 3.75rem;
        /* text-6xl (60px) */
    }

    .hero-section p {
        font-size: 1.25rem;
    }

    /* Karusel düymələrini böyüt */
    .modern-carousel-container {
        padding: 0 4rem;
        /* */
    }

    .modern-nav-btn {
        width: 44px;
        /* */
        height: 44px;
    }

    .modern-nav-btn svg {
        width: 22px;
        /* */
        height: 22px;
    }

    .swiper-button-prev.modern-nav-btn {
        left: 0.75rem;
    }

    .swiper-button-next.modern-nav-btn {
        right: 0.75rem;
    }

    .modern-category-card {
        height: 220px;
        /* */
        border-radius: 20px;
        /* */
    }

    .category-content {
        padding: 24px 20px;
        /* */
    }

    .category-name {
        font-size: 1.5rem;
        /* 24px */
    }
}

/* XL EKRAN (1441px+) - YENİ ƏLAVƏ */
@media (min-width: 1441px) {
    .modern-carousel-container {
        max-width: 1400px;
    }

    .modern-category-card {
        height: 240px;
    }
}

/* === 5. MAĞAZA, KATEQORİYA VƏ AXTARIŞ SƏHİFƏLƏRİ (XS MOBIL 320px+) === */

/* Kateqoriya filter düymələri (Mağaza səhifəsində) */
.category-filters {
    display: flex;
    justify-content: flex-start;
    /* Mobil üçün soldan başla */
    flex-wrap: nowrap;
    /* Tək sətirdə olsun, scroll olunsun */
    gap: var(--spacing-sm);
    /* 0.5rem */
    margin-bottom: var(--spacing-lg);
    /* 1.5rem */
    overflow-x: auto;
    /* Mobil cihazlarda üfüqi scroll */
    padding-bottom: var(--spacing-sm);
    /* Scrollbar üçün yer */

    /* Scrollbarı gizlət (estetik üçün) */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-filters a {
    padding: 0.5rem 1rem;
    /* Mobil üçün daha kompakt */
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    /* 14px */
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    /* Düymə adları qırılmasın */
}

.category-filters a:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-text-faint);
}

.category-filters a.active {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

/* Bütün Məhsul və Mağaza Gridləri üçün Baza */
.product-grid,
.store-grid,
.campaign-grid,
.trends-grid,
.city-grid {
    display: grid;
    gap: var(--spacing-lg);
    /* 1.5rem */
    grid-template-columns: repeat(1, 1fr);
    /* Mobile-First: 1 sütun */
}

/* Məhsul Kartı (.product-card) */
.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    /* 12px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 18rem;
    /* Mobil üçün optimallaşdırıldı (288px) */
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
    /* 1rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Kartın alt hissəsini doldurur */
}

.product-store-name {
    font-size: 0.75rem;
    /* 12px */
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    /* 4px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-store-name a:hover {
    text-decoration: underline;
    color: var(--color-link);
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    /* 16px */
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.4;
    color: var(--color-text-dark);
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 3rem;
    justify-content: center;
    padding-bottom: var(--spacing-md);
}

.product-price .price-current {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.product-price .price-old {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    padding: 0.7rem 1rem;
    /* .button-primary stilini tətbiq etmək üçün HTML-i dəyişmək lazım olacaq */
    /* Hələlik köhnə stilləri saxlayaq */
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: var(--color-primary-hover);
}

/* Form elementlərini card-ın aşağısında saxla */
.product-content form {
    margin-top: auto;
}

/* Axtarış Nəticəsi Başlığı */
.search-query-display {
    text-align: center;
    font-size: 1rem;
    /* Mobil üçün kiçildildi */
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    background-color: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Kreativ Mağaza Kartı (index.php, stores.php) */
.creative-store-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    /* Mobil cihazlarda hündürlüyü təyin etmək üçün padding-bottom hack */
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    height: 0;
}

.creative-store-card>* {
    /* Padding hack-i üçün */
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.card-background {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-background img,
.card-image-real {
    /* */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creative-store-card:hover .card-background {
    transform: scale(1.05);
}

.card-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
}

.card-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    color: var(--color-text-white);
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.creative-store-card:hover .card-identity {
    opacity: 0;
}

.logo-placeholder {
    width: 3.5rem;
    /* Mobil üçün kiçildildi (4rem idi) */
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 700;
    font-size: 1.5rem;
    /* Mobil üçün kiçildildi */
    margin-bottom: var(--spacing-sm);
    border: none;
    color: var(--color-text-white);
    /* .placeholder-box stillərini əsas götürür */
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-name-elegant {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    /* Mobil üçün kiçildildi */
}

/* Hover zamanı görünən məzmun */
.card-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    color: var(--color-text-white);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.creative-store-card:hover .card-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.store-name-elegant.large {
    font-size: 1.75rem;
    /* Mobil üçün kiçildildi */
    margin-bottom: var(--spacing-sm);
}

.store-description {
    font-size: 0.9rem;
    /* Mobil üçün */
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
}

.discover-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.discover-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.view-all-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* .button-secondary stilini burada təyin edirik */
.button-secondary {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: background-color 0.2s;
}

.button-secondary:hover {
    background-color: var(--color-secondary-hover);
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .product-image {
        height: 22rem;
    }

    .logo-placeholder {
        width: 4rem;
        height: 4rem;
        font-size: 1.875rem;
    }

    .store-name-elegant {
        font-size: 1.875rem;
    }

    .store-name-elegant.large {
        font-size: 2.25rem;
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {

    /* Artıq Addım 1-də təyin etdik: .product-grid 2 sütun oldu */
    .store-grid,
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 18rem;
        /* 2 sütun olanda hündürlüyü azaldırıq */
    }

    .campaign-grid,
    .trends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Filterləri mərkəzə gətir */
    .category-filters {
        justify-content: center;
        flex-wrap: wrap;
        /* Artıq scrolla ehtiyac yoxdur */
        overflow-x: visible;
    }
}

/* L TABLET (769px+) */
@media (min-width: 769px) {

    /* Artıq Addım 1-də təyin etdik: .product-grid 3 sütun oldu */
    .product-image {
        height: 16rem;
        /* 3 sütun olanda daha da azaldırıq */
    }

    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-query-display {
        font-size: 1.125rem;
        /* */
    }

    .view-all-container .button-secondary {
        padding: 0.8rem 2.5rem;
        /* */
        font-size: 0.95rem;
    }
}

/* LAPTOP (1025px+) */
@media (min-width: 1025px) {

    /* Artıq Addım 1-də təyin etdik: .product-grid 4 sütun oldu */
    .product-image {
        height: 18rem;
        /* 4 sütun olanda hündürlüyü yenidən artıra bilərik */
    }

    .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* L LAPTOP (1281px+) */
@media (min-width: 1281px) {
    /* Stil dəyişikliyinə ehtiyac yoxdur, .container ölçüsü ilə nizamlanır */
}

/* XL EKRAN (1441px+) */
@media (min-width: 1441px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Böyük ekranda 5 məhsul */
    }

    .store-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-image {
        height: 17rem;
    }
}

/* === 5.1. ENDİRİM GÖSTƏRİCİLƏRİ (YENİ) === */
.product-card {
    position: relative;
    /* Badge üçün vacibdir */
}

.discount-badge {
    position: absolute;
    top: var(--spacing-sm);
    /* 0.5rem */
    right: var(--spacing-sm);
    background-color: var(--color-danger);
    /* Qırmızı fon */
    color: var(--color-text-white);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    /* 11px */
    font-weight: 700;
    z-index: 10;
    line-height: 1.2;
}

.product-price {
    /* Artıq burada olan (Addım 4-də refaktor etdiyimiz) .product-price stilləri qalsın */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 3rem;
    justify-content: center;
}

.product-price .new-price {
    font-weight: 700;
    font-size: 1.125rem;
    /* 18px */
    color: var(--color-danger);
    /* Endirimli qiyməti qırmızı et */
}

.product-price .old-price {
    text-decoration: line-through;
    /* Üstündən xətt çək */
    color: var(--color-text-muted);
    /* Bozumtul rəng */
    font-weight: 400;
    font-size: 0.95rem;
}

/* ==========================================================================
   ENDİRİMLƏR SƏHİFƏSİ - MODERN DİZAYN
   ========================================================================== */

/* Səhifə Başlığı */
.discounts-page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    border-radius: var(--radius-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.discounts-page-header .section-title {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.discounts-page-header .discount-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Layout: Mobile-first (alt-alta) */
.discounts-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Stili - Modern */
.filters-sidebar {
    width: 100%;
    background: var(--color-bg-white);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.filter-group {
    margin: 0;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-title svg {
    color: var(--color-text-muted);
}

/* Axtarış Filtri */
.search-filter-form .form-input {
    background-color: var(--color-secondary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-filter-form .form-input:focus {
    background-color: var(--color-bg-white);
    border-color: var(--color-link);
}

/* Qiymət Filtri */
.price-filter-form .form-input {
    background-color: var(--color-secondary);
    border: 1px solid transparent;
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
}

.price-filter-form .form-input:focus {
    background-color: var(--color-bg-white);
    border-color: var(--color-link);
}

.price-filter-form .form-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, #374151 100%);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.price-filter-form .form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sıralama Select */
.filter-group select.form-input {
    background-color: var(--color-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
}

.filter-group select.form-input:hover {
    background-color: var(--color-secondary-hover);
}

/* Kateqoriya Siyahısı */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-bottom: 0.35rem;
}

.category-filter-list li:last-child {
    margin-bottom: 0;
}

.category-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.category-filter-list a:hover {
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    border-color: var(--color-border-light);
    transform: translateX(4px);
}

.category-filter-list a.active {
    color: var(--color-bg-white);
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-link) 0%, #1d4ed8 100%);
    border-color: transparent;
}

.category-filter-list a.active .count-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.count-badge {
    background-color: var(--color-secondary);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    font-weight: 600;
    min-width: 26px;
    text-align: center;
    transition: all 0.2s ease;
}

/* Filtirləri Təmizlə Düyməsi */
.filter-group .button-secondary {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #dc2626;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-group .button-secondary:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Məhsullar Sahəsi */
.products-area {
    flex: 1;
}

/* Endirim Badge - Modern */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Məhsul Kartı - Discounts Səhifəsi üçün Xüsusi */
.discounts-layout .product-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
}

.discounts-layout .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.discounts-layout .product-card .product-image {
    position: relative;
    overflow: hidden;
}

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

.discounts-layout .product-card .product-image img {
    transition: transform 0.5s ease;
}

/* Şəkil Placeholder */
.product-image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Qiymət Stilləri */
.discounts-layout .product-price {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.discounts-layout .product-price .price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discounts-layout .product-price .price-old {
    font-size: 0.9rem;
    color: var(--color-text-faint);
    text-decoration: line-through;
    font-weight: 500;
}

/* Boş Nəticə Mesajı */
.discounts-layout .cart-empty-message {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
}

.discounts-layout .cart-empty-message svg {
    color: var(--color-text-faint);
    margin-bottom: 1.5rem;
}

.discounts-layout .cart-empty-message p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Axtarış və Qiymət Filtr Formları */
.search-filter-form input[type="text"],
.price-filter-form input[type="number"] {
    font-size: 0.9rem;
}

.price-filter-form button {
    width: 100%;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-link:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.pagination-link.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-link.prev,
.pagination-link.next {
    width: auto;
    padding: 0 1rem;
}

/* === RESPONSIVE BREAKPOINTS (ENDİRİMLƏR ÜÇÜN) === */

/* TABLET (769px+) */
@media (min-width: 769px) {
    .discounts-page-header {
        padding: 2.5rem 2rem;
    }

    .discounts-page-header .section-title {
        font-size: 2rem;
    }

    .products-area .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LAPTOP (1025px+) - Burada Sidebar sola, Məhsullar sağa keçir */
@media (min-width: 1025px) {
    .discounts-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .filters-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
    }

    .products-area {
        flex-grow: 1;
    }

    .products-area .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .discounts-page-header {
        padding: 3rem 2.5rem;
    }

    .discounts-page-header .section-title {
        font-size: 2.25rem;
    }
}

/* XL EKRAN (1280px+) */
@media (min-width: 1280px) {
    .products-area .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .filters-sidebar {
        width: 320px;
    }
}

/* === 6. SƏBƏT SƏHİFƏSİ (XS MOBIL 320px+) === */

/* Boş səbət mesajı */
.cart-empty-message {
    text-align: center;
    padding: var(--spacing-xl);
    /* 2.5rem */
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.cart-empty-message p {
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

/* Səbət cədvəlini əhatə edən ağ qutu */
.cart-wrapper {
    width: 100%;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

/* Mobil üçün cədvəli tamamilə söküb kartlara çeviririk */
.cart-table thead {
    display: none;
    /* Mobil cihazlarda başlığı gizlət */
}

.cart-table tbody tr {
    display: block;
    padding: var(--spacing-md);
    /* 1rem */
    border-bottom: 1px solid var(--color-border-light);
    /* Hər məhsul kartını grid-ə çeviririk (Şəkil | Məlumatlar) */
    display: grid;
    grid-template-columns: 80px 1fr;
    /* 80px şəkil üçün, qalan yer məlumat üçün */
    gap: var(--spacing-md);
    /* 1rem */
}

.cart-table tbody tr:last-child {
    border-bottom: none;
}

/* Bütün 'td'-lər üçün baza stilləri */
.cart-table td {
    padding: 0;
    /* Artıq 'tr'-də padding var */
    text-align: left;
    border-bottom: none;
    /* Sətri ləğv etdik */
    vertical-align: top;
    /* Üstdən başlasın */
    font-size: 0.95rem;
}

/* Köhnə `padding` və `border` stillərini ləğv et */

/* 1. Şəkil xanası (Grid-in 1-ci sütunu) */
.cart-table td:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    /* Şəkil 3 sətir hündürlüyündə olsun */
}

.cart-item-image {
    width: 80px;
    /* */
    height: 80px;
    /* */
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* 2. Məhsul Adı (Grid-in 2-ci sütunu, 1-ci sətir) */
.cart-table td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-weight: 600;
    color: var(--color-text-dark);
    padding-top: 0.25rem;
}

/* 3. Qiymət (Grid-in 2-ci sütunu, 2-ci sətir) */
.cart-table td:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* 4. Miqdar Forması (Grid-in 2-ci sütunu, 3-cü sətir) */
.cart-table td:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    padding-top: var(--spacing-sm);
}

/* 5. Ümumi Məbləğ (Gizlədildi, amma yan-yana yerləşdirilib) */
.cart-table td:nth-child(5) {
    /* Mobil cihazlarda bu məlumatı gizlədə bilərik və ya miqdarın yanında göstərə bilərik */
    /* Gəl, miqdar forması ilə eyni sətrə qoyaq */
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    /* Miqdar formasının sağında */
    text-align: right;
    font-weight: 600;
    padding-top: var(--spacing-sm);
}

/* 6. Silmə Düyməsi (Şəklin yanında, yuxarıda) */
.cart-table td:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    padding-top: 0;
}

.quantity-form {
    display: inline-flex;
    /* .cart-table td:nth-child(5) ilə yan-yana durması üçün */
}

.quantity-input {
    width: 55px;
    /* */
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.delete-btn {
    background-color: transparent;
    color: var(--color-danger);
    border: none;
    font-weight: bold;
    padding: 0.25rem;
    /* Klik sahəsini artır */
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.delete-btn:hover {
    color: var(--color-danger-hover);
}

/* Səbətin yekun bloku */
.cart-summary {
    margin-top: var(--spacing-lg);
    /* 1.5rem */
    padding: var(--spacing-md);
    /* 1rem */
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Mobil üçün tam en */
    box-shadow: var(--shadow-sm);
}

.total-price {
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    /* Qiyməti sağa çək */
}

.total-price span {
    color: var(--color-text-muted);
    font-weight: 400;
}

.total-price strong {
    color: var(--color-text-dark);
}

.checkout-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    /* .button-primary stilini tətbiq et */
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.checkout-btn:hover {
    background-color: var(--color-primary-hover);
}

.login-prompt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    /* Mobil üçün mərkəzə */
    margin-top: var(--spacing-md);
}

/* === 7. UĞURLU SİFARİŞ SƏHİFƏSİ (XS MOBIL 320px+) === */
.success-wrapper {
    text-align: center;
    max-width: 550px;
    margin: var(--spacing-lg) auto;
    /* Yuxarıdan boşluq azaldıldı */
    padding: var(--spacing-lg) 1rem;
    /* Kənar boşluq azaldıldı */
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.success-icon {
    width: 4rem;
    /* Kiçildildi */
    height: 4rem;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.success-icon .icon {
    width: 2.25rem;
    /* Kiçildildi */
    height: 2.25rem;
}

.success-title {
    font-size: 1.75rem;
    /* Kiçildildi */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.success-text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.success-order-id {
    font-size: 1rem;
    /* Kiçildildi */
    background-color: var(--color-secondary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: var(--spacing-md) 0;
    color: var(--color-text-light);
    font-weight: 500;
}

.success-order-id strong {
    color: var(--color-text-dark);
}


/* === SEVİMLİLƏR ÜÇİN ÜRƏK İKONU === */

.favorite-heart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.favorite-heart-btn:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.favorite-heart-btn svg {
    transition: all 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Aktiv vəziyyət - dolu ürək */
.favorite-heart-btn.active {
    background-color: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.favorite-heart-btn.active svg {
    fill: #dc2626;
    stroke: #dc2626;
    animation: heartBeat 0.5s ease;
}

/* Ürək animasiyası */
@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }
}

/* Yüklənmə vəziyyəti */
.favorite-heart-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.favorite-heart-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Məhsul kartında ürək ikonu üçün xüsusi dizayn */
.product-card {
    position: relative;
}

.favorite-heart-icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.favorite-heart-icon:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    transform: scale(1.1);
}

.favorite-heart-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.favorite-heart-icon.active {
    background-color: #dc2626;
    border-color: #dc2626;
}

.favorite-heart-icon.active svg {
    color: white;
    fill: white;
    stroke: white;
    animation: heartBeat 0.5s ease;
}

/* Header-də sevimli sayı badge */
.favorite-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    height: 0.9rem;
    width: 0.9rem;
    background-color: #dc2626;
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 1px solid white;
}

/* Mobil responsiv */
@media (max-width: 768px) {
    .favorite-heart-icon {
        width: 2rem;
        height: 2rem;
    }

    .favorite-heart-icon svg {
        width: 1rem;
        height: 1rem;
    }
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {
    .cart-summary {
        padding: var(--spacing-lg);
        /* 1.5rem */
    }

    .success-wrapper {
        padding: var(--spacing-xl);
        /* 2.5rem */
        margin-top: var(--spacing-xl);
    }

    .success-icon {
        width: 4.5rem;
        height: 4.5rem;
    }

    .success-icon .icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .success-title {
        font-size: 2rem;
    }
}

/* L TABLET (769px+) - ƏSAS DƏYİŞİKLİK */
@media (min-width: 769px) {

    /* Səbət cədvəlini normala qaytar */
    .cart-table thead {
        display: table-header-group;
        /* Başlığı göstər */
    }

    .cart-table tbody tr {
        display: table-row;
        /* Sətirləri normala qaytar */
        padding: 0;
        border: none;
        box-shadow: none;
        background: none;
        margin: 0;
        border-bottom: 1px solid var(--color-border-light);
        /* */
    }

    .cart-table tbody tr:last-child {
        border-bottom: none;
    }

    .cart-table td {
        display: table-cell;
        padding: 1.25rem;
        /* */
        text-align: left;
        vertical-align: middle;
        /* */
        font-size: 1rem;
        /* Mobil üçün olan grid stillərini ləğv et */
        grid-column: auto;
        grid-row: auto;
    }

    /* Mobil üçün olan stilləri ləğv et */
    .cart-table td:nth-child(5) {
        text-align: left;
        font-weight: normal;
    }

    .cart-table td:nth-child(6) {
        text-align: left;
    }

    .cart-table th {
        padding: 1.25rem;
        font-size: 0.8rem;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background-color: var(--color-bg);
    }

    .cart-summary {
        margin-top: 2rem;
        padding: 1.5rem;
        align-items: flex-end;
        /* Yekunu sağa çək */
    }

    .total-price {
        font-size: 1.3rem;
        /* */
        margin-bottom: 1.5rem;
        display: block;
        /* Artıq flex-ə ehtiyac yoxdur */
    }

    .total-price span {
        margin-right: 0.5rem;
    }

    .login-prompt {
        text-align: right;
        /* */
    }
}

/* === 8. PANEL SƏHİFƏLƏRİ (XS MOBIL 320px+) === */

/* Panel səhifələrinin əsas quruluşu (Sidebar + Məzmun) */
.account-layout {
    display: flex;
    flex-direction: column;
    /* Mobil cihazlarda alt-alta */
    gap: var(--spacing-lg);
    /* 1.5rem */
    padding-top: var(--spacing-md);
    /* 1rem */
    padding-bottom: var(--spacing-xl);
    /* 2.5rem */
}

/* Sidebar (Alıcı və Satıcı üçün) */
.account-sidebar {
    flex-shrink: 0;
    width: 100%;
    /* Mobil cihazlarda tam en */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-white);
    padding: var(--spacing-md);
    /* 1rem */
    box-shadow: var(--shadow-sm);
    /* Sidebarın hündürlüyü məzmundan asılı olsun */
    align-self: flex-start;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    padding-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.profile-picture {
    width: 44px;
    /* Kiçildildi (50px idi) */
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: var(--color-secondary-hover);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ad/email uzundursa kəssin */
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 0.875rem;
    /* 14px */
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: 0 0 var(--spacing-md) 0;
    /* Boşluq azaldıldı */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item a,
.menu-item span {
    display: block;
    padding: 0.75rem 0.75rem;
    /* 12px */
    font-size: 0.95rem;
    /* 15px */
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
}

.menu-item a:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.menu-item.active>a,
.menu-item.active>span {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

/* Panelin sağ tərəfdəki məzmun hissəsi */
.account-content {
    flex-grow: 1;
    min-width: 0;
    /* Flexbox-un `overflow-x`-i düzgün idarə etməsi üçün */

}

.page-header {
    display: flex;
    flex-direction: column;
    /* Mobil üçün alt-alta */
    justify-content: space-between;
    align-items: flex-start;
    /* Sola düz */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.page-header .section-title {
    margin: 0;
    text-align: left;
}

.page-actions {
    display: flex;
    gap: var(--spacing-sm);
    /* 0.5rem */
    flex-wrap: wrap;
    /* Düymələr sığışmasa alt sətirə keçsin */
}

.subsection-title {
    font-size: 1.25rem;
    /* Mobil üçün kiçildildi (20px) */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dark);
}

/* .button-secondary (Addım 4-də təyin edilmişdi) */
/* .button-primary (Addım 1-də təyin edilmişdi) */

/* Panel daxili düymələr (Sil, Redaktə et) */
.button-action {
    font-size: 0.875rem;
    /* 14px */
    font-weight: 500;
    color: var(--color-link);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    /* Touch-friendly: min 44x44px */
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    /* "Detallara Bax" qırılmasın */
    min-height: 36px;
    /* Touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-action:hover {
    background-color: #eff6ff;
    /* Link rənginə uyğun hover */
    text-decoration: underline;
}

.button-action.delete {
    color: var(--color-danger);
}

.button-action.delete:hover {
    background-color: #fee2e2;
}

.button-action.approve,
.button-action.activate {
    color: var(--color-success);
}

.button-action.approve:hover,
.button-action.activate:hover {
    background-color: #dcfce7;
}

form .button-action {
    border: 1px solid transparent;
}


/* Panel Cədvəlləri (DATA-TABLE) */
.table-wrapper {
    overflow-x: auto;
    /* İstifadəçinin istədiyi kimi */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

/* Table Container - Mobile Responsive */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scroll */
    margin: 0 -1rem;
    /* Extend to edges on mobile */
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .table-container {
        margin: 0;
        padding: 0;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Prevent too much squashing */
}

.data-table th,
.data-table td {
    padding: 0.625rem 0.75rem;
    /* XS mobil: tighter */
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
    white-space: nowrap;
    font-size: 0.8125rem;
    /* XS mobil: 13px */
}

/* S Mobil (481px+) */
@media (min-width: 481px) {

    .data-table th,
    .data-table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        /* 14px */
    }
}

.data-table thead th {
    font-size: 0.7rem;
    /* 11px */
    color: var(--color-text-muted);
    text-transform: uppercase;
    background-color: var(--color-bg);
    letter-spacing: 0.5px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: var(--color-secondary);
}

.table-image {
    width: 40px;
    /* Kiçildildi (45px idi) */
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.table-icon {
    width: 28px;
    /* Kiçildildi */
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.no-icon {
    display: inline-block;
    width: 28px;
    text-align: center;
    color: var(--color-text-faint);
    font-weight: bold;
}

.action-form {
    display: flex;
    gap: 0.5rem;
}

/* Panel daxili kiçik form elementləri */
.form-input-small {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background-color: var(--color-bg-white);
}

.button-primary-small {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-primary-small:hover {
    background-color: var(--color-primary-hover);
}

/* Seller Dashboard Gridləri (Statistika, Form-Cədvəl) */
.dashboard-stats-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobil üçün 1 sütun */
    gap: var(--spacing-lg);
    /* 1.5rem */
}

/* Statistika Kartları */
.stat-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--color-text-faint);
}

/* Profil Səhifəsi Kartları */
.page-main-title {
    font-size: 1.75rem;
    /* Mobil üçün (28px) */
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

.profile-card {
    background-color: var(--color-bg-white);
    padding: var(--spacing-md);
    /* Mobil üçün 1rem */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    color: var(--color-text-dark);
}

.edit-button {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-link);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.edit-button:hover {
    color: var(--color-link-hover);
}

.icon-small {
    width: 1rem;
    height: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobil üçün 1 sütun */
    gap: var(--spacing-md);
    /* 1rem */
}

.info-item label.info-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.info-item p.info-value {
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0;
    word-break: break-word;
    font-size: 0.95rem;
    /* 15px */
}

/* Inline Redaktə Məntiqi */
.editable-section .edit-mode,
.editable-section .cancel-text {
    display: none;
}

/* ... (Bu blok dəyişməz qalıb) ... */
.editable-section.edit-active .display-mode {
    display: none !important;
}

.editable-section.edit-active .edit-mode {
    display: block;
}

.editable-section.edit-active .edit-button .edit-text {
    display: none;
}

.editable-section.edit-active .edit-button .cancel-text {
    display: inline;
}

#password-section.edit-active .form-layout.edit-mode,
#delete-section.edit-active .form-layout.edit-mode,
.editable-section.edit-active .form-layout.edit-mode[style*="display: flex"] {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
}

.email-password-field {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.editable-section:not(.edit-active) .email-password-field {
    display: none !important;
}

.edit-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.editable-section:not(.edit-active) .edit-actions {
    display: none !important;
}

/* Hesabı Silmə Bloku */
.delete-section {
    border-color: #fca5a5;
    background-color: #fff1f2;
}

.delete-section .card-title {
    color: #be123c;
}

.delete-section .card-header {
    border-color: #fecaca;
}

.delete-section p {
    font-size: 0.9rem;
    color: #9f1239;
    margin-bottom: 1rem;
}

.button-danger {
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--color-danger);
    color: var(--color-text-white);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-danger:hover {
    background-color: var(--color-danger-hover);
}

/* Mərkəzləşdirilmiş Formalar (Əvvəlki Addımdan) */
.form-wrapper-centered {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-wrapper-large {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.form-header-modern {
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.form-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--color-text-dark);
}

.form-subtitle-modern {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Fayl Yükləmə (Əvvəlki Addımdan) */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background-color: var(--color-bg);
    transition: background-color 0.2s, border-color 0.2s;
}

.file-upload-area:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-text-faint);
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-content {
    z-index: 1;
    position: relative;
    pointer-events: none;
}

.file-upload-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-text-faint);
    margin-bottom: 0.75rem;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
}

.file-upload-link {
    color: var(--color-link);
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin-top: 0.25rem;
}

.file-upload-selected {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-success);
    margin-top: 1rem;
}

.file-upload-selected:empty {
    display: none;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.form-actions-right .form-button {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* S MOBIL (481px+) */
@media (min-width: 481px) {

    .data-table th,
    .data-table td {
        padding: 1rem 1.25rem;
        /* */
        font-size: 0.9rem;
    }

    .profile-card {
        padding: 1.75rem;
        /* */
    }

    .page-main-title {
        font-size: 1.875rem;
        /* */
    }
}

/* TABLET (601px+) */
@media (min-width: 601px) {
    .dashboard-stats-grid {
        /* 240px-lıq kartlar sığışdıqca düzülsün */
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* L TABLET (769px+) */
@media (min-width: 769px) {
    /* .account-layout (Addım 1-də təyin edildi) */

    .page-header {
        flex-direction: row;
        /* Başlıq və düymələri yan-yana düz */
        align-items: center;
    }

    .subsection-title {
        font-size: 1.3rem;
        /* */
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        /* */
    }

    .info-item.full-width {
        grid-column: span 2 / span 2;
        /* */
    }

    .profile-settings-grid {
        /* */
        grid-template-columns: 1fr 1fr;
    }
}

/* LAPTOP (1025px+) */
@media (min-width: 1025px) {
    .dashboard-grid {
        /* Satıcı kateqoriya/məhsul səhifələri */
        grid-template-columns: 1fr 2fr;
        /* */
    }
}

/* === 8.9. BÖYÜK EKRAN PANEL DÜZƏLİŞİ (YENİ) === */

/* L TABLET (769px+) və daha böyük ekranlar üçün */
@media (min-width: 769px) {

    .account-layout {
        flex-direction: row !important;
        /* Yan-yana düzülüşü məcbur et */
        align-items: flex-start !important;
        /* Üstdən başlasınlar */
    }

    .account-sidebar {
        width: 280px !important;
        /* Sidebar enini sabitlə */
        flex-shrink: 0 !important;
    }

    .account-content {
        flex-grow: 1 !important;
        /* max-width ləğv edildi, məzmun tamamilə dartılacaq */
    }
}

/* === 9. MEGA MENYU (XS MOBIL 320px+) === */

/* Menyu açıq olduqda arxa fonun hərəkətini dayandırır */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Menyunu aç/bağla düyməsi (Hamburger) */
.hamburger-btn {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px !important;
    box-sizing: content-box !important;
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn span {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text-dark);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

/* Hamburger menyusunun aktiv vəziyyəti (X) */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7.25px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7.25px) rotate(-45deg);
}

/* Menyunu əhatə edən qara, şəffaf fon */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: background-color 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
}

.mega-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease, opacity 0.4s ease, visibility 0s linear 0s;
}

/* Menyunun özü (soldan açılan panel) */
.mega-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 88%;
    max-width: 360px;
    background-color: #fff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    will-change: transform;
}

.mega-menu-overlay.is-active .mega-menu-content {
    transform: translateX(0);
}

.mega-menu-content .menu-header {
    flex-shrink: 0;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mega-menu-content .menu-header .logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 0.3px;
}

/* Menyunun məzmunu (sütunlar) */
.mega-menu-content .menu-body {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

.menu-column {
    padding: 20px 16px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar stilləri */
.menu-column::-webkit-scrollbar {
    width: 3px;
}

.menu-column::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.menu-column::-webkit-scrollbar-track {
    background: transparent;
}

/* Mobil cihazlarda 2 sütun */
.menu-level1 {
    width: 38%;
    border-right: 1px solid #f0f0f0;
    padding-right: 12px;
}

.menu-level2 {
    width: 62%;
    padding-left: 16px;
}

/* S Mobil (375px+) */
@media (min-width: 375px) {
    .menu-level1 {
        width: 35%;
    }

    .menu-level2 {
        width: 65%;
    }
}

/* S Mobil (481px+) */
@media (min-width: 481px) {
    .mega-menu-content {
        max-width: 400px;
    }

    .menu-level1 {
        width: 38%;
    }

    .menu-level2 {
        width: 62%;
    }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
    .mega-menu-content {
        max-width: 450px;
    }

    .menu-level1 {
        width: 40%;
    }

    .menu-level2 {
        width: 60%;
    }
}

/* Mobil cihazlarda 3 və 4-cü sütunları gizlət */
.menu-level3,
.menu-level4 {
    display: none;
}

.menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Menyu Linkləri */
.level1-link {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    font-weight: 600;
    display: block;
    padding: 10px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* S Mobil (375px+) */
@media (min-width: 375px) {
    .level1-link {
        font-size: 0.82rem;
        padding: 11px 10px;
    }
}

/* S Mobil (481px+) */
@media (min-width: 481px) {
    .level1-link {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

/* Tablet (601px+) */
@media (min-width: 601px) {
    .level1-link {
        font-size: 0.875rem;
        padding: 12px 12px;
    }
}

.level2-title,
.level3-title,
.level4-title {
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--color-text-dark);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.level2-link,
.level3-store-link,
.level3-link {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: block;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.level3-store-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level2-link:hover,
.level3-store-link:hover,
.level3-link:hover {
    color: var(--color-text-dark);
}

.all-stores-link,
.all-products-link {
    color: var(--color-text-dark);
    font-weight: 500;
    margin-top: 16px;
    display: inline-block;
    font-size: 0.8rem;
}

.all-stores-link:hover,
.all-products-link:hover {
    text-decoration: underline;
}

.icon-arrow {
    width: 12px;
    height: 12px;
    color: var(--color-text-faint);
    transition: transform 0.2s ease;
}

.level3-store-link:hover .icon-arrow,
.level3-store-link.is-active .icon-arrow {
    transform: translateX(3px);
    color: var(--color-text-dark);
}

/* Aktiv menyu bəndləri */
.level1-link.is-active {
    background-color: #f5f5f5;
    color: var(--color-text-dark);
}

.level3-store-link.is-active {
    font-weight: 600;
    color: var(--color-text-dark);
}

.level2-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.level2-panel.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#store-subcategory-panel .subcategory-placeholder {
    font-size: 0.8rem;
    color: var(--color-text-faint);
}


/* === 10. FOOTER (XS MOBIL 320px+) === */
.main-footer {
    background: var(--color-primary);
    /* */
    color: var(--color-text-white);
    margin-top: auto;
    /* Həmişə səhifənin ən altında qalması üçün */
}

.main-footer .container {
    padding-top: var(--spacing-xl);
    /* 2.5rem */
    padding-bottom: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    /* Mobil üçün 1 sütun */
}

.footer-col .footer-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.footer-col .footer-subtitle {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-white);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-faint);
    /* */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--color-text-faint);
    /* */
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text-white);
    /* */
}

.footer-bottom {
    border-top: 1px solid var(--color-text-light);
    /* */
    margin-top: 2rem;
    padding-top: 2rem;
    /* Boşluğu artırdıq */
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    /* */
}


/* --- RESPONSIVE BREAKPOINTS --- */

/* L TABLET (769px+) - MEGA MENYU VƏ FOOTERİN DƏYİŞDİYİ YER */
@media (min-width: 769px) {

    /* Mega Menyu: 4 sütunlu olur */
    .mega-menu-content {
        max-width: 900px;
        /* */
    }

    .menu-level1 {
        width: 25%;
    }

    .menu-level2 {
        width: 25%;
        border-right: 1px solid var(--color-border);
    }

    .menu-level3 {
        display: block;
        width: 25%;
        border-right: 1px solid var(--color-border);
    }

    .menu-level4 {
        display: block;
        width: 25%;
    }

    .level1-link {
        font-size: 0.95rem;
    }

    /* */
    .level2-link,
    .level3-store-link,
    .level3-link {
        font-size: 0.9rem;
        /* */
    }

    /* Footer: 4 sütunlu olur */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === 11. KÖMƏKÇİ (HELPER) SİNİFLƏR === */

/* QEYD: Bütün responsiv dizayn (@media) qaydaları 
   artıq aid olduqları bölmələrin (1-10) içinə köçürülüb.
   Bu bölmə sadəcə responsivlikdən asılı olmayan 
   köməkçi sinifləri saxlayır.
*/

/* Aspekt Nisbəti (Aspect Ratio) Köməkçiləri */
.aspect-w-1 {
    --tw-aspect-w: 1;
}

.aspect-h-1 {
    --tw-aspect-h: 1;
}

.aspect-w-3 {
    --tw-aspect-w: 3;
}

.aspect-h-4 {
    --tw-aspect-h: 4;
}

[class*='aspect-w-'],
[class*='aspect-h-'] {
    position: relative;
    padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
}

[class*='aspect-w-']>*,
[class*='aspect-h-']>* {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.font-elegant {
    font-family: 'Playfair Display', serif;
}

/* Sevimlilər səhifəsi üçün xüsusi stillər */
.favorites-page .product-content form {
    margin-top: auto;
}

.button-remove-favorite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: #fff0f0;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-remove-favorite:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.button-remove-favorite svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Sevimlilərdə məhsul kartlarının genişliyini tənzimlə */
.account-content .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.account-content .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 220px;
}

@media (min-width: 640px) {
    .account-content .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (min-width: 1024px) {
    .account-content .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Chip Marquee Section - Yeni Dizayn */
.chip-marquee-section {
    padding: 2rem 0;
    margin: 3rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

/* Section Header */
.chip-marquee-header {
    max-width: 1400px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.chip-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chip-flash-badge {
    background: #EF4444;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-header-text h2.chip-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip-header-text .chip-subtitle {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0.25rem 0 0 0;
}

.chip-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chip-view-all:hover {
    color: #EF4444;
    gap: 0.625rem;
}

/* Chip Track Wrapper */
.chip-track-wrapper {
    position: relative;
    width: 100%;
}

.chip-gradient-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to right, var(--color-bg), transparent);
    z-index: 10;
    pointer-events: none;
}

.chip-gradient-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to left, var(--color-bg), transparent);
    z-index: 10;
    pointer-events: none;
}

.chip-track {
    display: flex;
    animation: chip-scroll 40s linear infinite;
    will-change: transform;
}

.chip-track:hover {
    animation-play-state: paused;
}

@keyframes chip-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Deal Chip - Horizontal Card */
.deal-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    padding: 0.5rem;
    padding-right: 1rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    cursor: pointer;
    margin: 0 0.75rem;
    min-width: 280px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.deal-chip:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chip Image */
.chip-image-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.chip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #F3F4F6;
    transition: transform 0.3s ease;
}

.deal-chip:hover .chip-image {
    transform: scale(1.1);
}

.chip-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 1.25rem;
    border: 1px solid #E5E7EB;
}

.chip-discount-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #ffffff;
}

/* Chip Info */
.chip-info {
    flex: 1;
    min-width: 0;
}

.chip-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.deal-chip:hover .chip-product-name {
    color: #EF4444;
}

.chip-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.chip-price-new {
    color: #EF4444;
    font-weight: 700;
    font-size: 0.875rem;
}

.chip-price-old {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* Chip Action Icon */
.chip-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.deal-chip:hover .chip-action-icon {
    background: #FEF2F2;
    color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .chip-marquee-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chip-title {
        font-size: 1.125rem;
    }

    .chip-gradient-left,
    .chip-gradient-right {
        width: 2.5rem;
    }

    .deal-chip {
        min-width: 260px;
    }

    .chip-track {
        animation-duration: 30s;
    }
}

/* Coupon Ticket Marquee Section */
.coupon-marquee-section {
    position: relative;
    padding: 3rem 0;
    margin: 3rem 0;
    background: #F9FAFB;
    overflow: hidden;
}

/* Section Header */
.coupon-marquee-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.coupon-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #DBEAFE;
    color: #2563EB;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.coupon-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-dark);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.coupon-subtitle {
    color: #6B7280;
    max-width: 28rem;
    margin: 0.5rem auto 0;
    font-size: 0.9375rem;
}

/* Track Wrapper */
.coupon-track-wrapper {
    position: relative;
    width: 100%;
}

.coupon-gradient-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to right, #F9FAFB, transparent);
    z-index: 20;
    pointer-events: none;
}

.coupon-gradient-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to left, #F9FAFB, transparent);
    z-index: 20;
    pointer-events: none;
}

.coupon-track {
    display: flex;
    animation: coupon-scroll 30s linear infinite;
    will-change: transform;
    padding: 1rem 0;
}

.coupon-track:hover {
    animation-play-state: paused;
}

@keyframes coupon-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Coupon Ticket */
.coupon-ticket {
    position: relative;
    display: flex;
    width: 340px;
    height: 140px;
    background: #ffffff;
    margin: 0 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.coupon-ticket:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Left Side - Image */
.coupon-image-side {
    position: relative;
    width: 140px;
    overflow: hidden;
    border-radius: 1rem 0 0 1rem;
}

.coupon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.coupon-ticket:hover .coupon-image {
    transform: scale(1.1);
}

.coupon-placeholder {
    width: 100%;
    height: 100%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9CA3AF;
}

.coupon-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0.6;
}

.coupon-discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #FBBF24;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Dashed Divider */
.coupon-divider {
    position: relative;
    width: 0;
    border-left: 2px dashed #D1D5DB;
    margin: 0.75rem 0;
    flex-shrink: 0;
}

.coupon-notch-top {
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #F9FAFB;
    border-radius: 50%;
    z-index: 10;
}

.coupon-notch-bottom {
    position: absolute;
    bottom: -0.75rem;
    left: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #F9FAFB;
    border-radius: 50%;
    z-index: 10;
}

/* Right Side - Info */
.coupon-info-side {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 1rem 1rem 0;
    border: 1px solid #F3F4F6;
    border-left: none;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.coupon-bg-icon {
    position: absolute;
    right: -1.25rem;
    top: -1.25rem;
    color: #F9FAFB;
    opacity: 0.2;
    transform: rotate(12deg);
}

.coupon-info-top {
    position: relative;
    z-index: 1;
}

.coupon-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.coupon-product-name {
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin: 0;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.coupon-ticket:hover .coupon-product-name {
    color: #2563EB;
}

.coupon-info-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.coupon-prices {
    display: flex;
    flex-direction: column;
}

.coupon-price-old {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
    line-height: 1;
}

.coupon-price-new {
    font-size: 1.25rem;
    font-weight: 900;
    color: #EF4444;
    line-height: 1.2;
}

.coupon-cart-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--color-text-dark);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-cart-btn:hover {
    background: #2563EB;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .coupon-title {
        font-size: 1.5rem;
    }

    .coupon-ticket {
        width: 300px;
        height: 130px;
    }

    .coupon-image-side {
        width: 120px;
    }

    .coupon-gradient-left,
    .coupon-gradient-right {
        width: 2.5rem;
    }

    .coupon-track {
        animation-duration: 25s;
    }
}

/* ============================================
   SETTINGS PAGE - Modern Dizayn
   ============================================ */

.modern-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 1.5rem 0;
}

/* Settings Card */
.settings-card {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.settings-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.settings-card-title svg {
    color: #9CA3AF;
}

.btn-add-card {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #2563EB;
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-add-card:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* Toggle Switch */
.settings-form {
    padding: 0;
}

.toggle-group {
    padding: 1.5rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #F9FAFB;
}

.toggle-item:first-child {
    padding-top: 0;
}

.toggle-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.toggle-info {
    flex: 1;
    margin-right: 1rem;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.25rem 0;
}

.toggle-description {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    /* Touch-friendly hündürlük */
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #1F2937;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
    /* 48px - 20px circle - 8px padding */
}

/* Card Footer */
.settings-card-footer {
    padding: 1.5rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
}

/* Cards List */
.cards-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #F3F4F6;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.card-item:hover {
    border-color: #D1D5DB;
}

.card-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-logo {
    width: 48px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    height: 16px;
    max-width: 40px;
    object-fit: contain;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.card-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.card-expiry {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
}

.btn-delete-card {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.card-item:hover .btn-delete-card {
    opacity: 1;
}

.btn-delete-card:hover {
    color: #EF4444;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-page-title {
        font-size: 1.5rem;
    }

    .settings-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .toggle-info {
        margin-right: 0;
    }

    .card-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-delete-card {
        opacity: 1;
        align-self: flex-end;
    }
}

/* Kart əlavə etmə formu */
.add-card-form {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.add-card-form .form-group {
    margin-bottom: 1rem;
}

.add-card-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.add-card-form input,
.add-card-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.add-card-form input:focus,
.add-card-form select:focus {
    outline: none;
    border-color: #1F2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Button stilleri */
.btn-primary {
    background: #1F2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - Modern Design 2024
   ============================================ */
.product-detail-page {
    background: #ffffff;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span:last-child {
    color: #1F2937;
    font-weight: 500;
}

/* Product Main Grid */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Product Gallery Section */
.product-gallery-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-gallery-wrapper {
    display: flex;
    gap: 1rem;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 80px;
}

.thumbnail-item {
    width: 80px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F9FAFB;
    padding: 0;
}

.thumbnail-item:hover {
    border-color: #D1D5DB;
}

.thumbnail-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Main Image */
.product-main-image {
    position: relative;
    flex: 1;
    aspect-ratio: 4/5;
    background: #F9FAFB;
    border-radius: 1rem;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
}

.product-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #DC2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Favorite Button on Image */
.image-favorite-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.image-favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #DC2626;
}

.image-favorite-btn.favorited {
    color: #DC2626;
}

/* Product Options Panel */
.product-options-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 1rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.selected-value {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    background: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.size-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Header Row */
.product-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: #4338CA;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #FBBF24;
}

.rating-badge span {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.rating-badge .review-count {
    color: #9CA3AF;
    font-weight: 400;
}

/* Product Title */
.product-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

/* Price Block */
.product-price-block {
    padding: 1.25rem 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-price-block .current-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.product-price-block .original-price {
    font-size: 1.125rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.savings-tag {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

/* Action Buttons */
.product-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.add-cart-form {
    flex: 1;
}

.btn-add-to-cart {
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-add-to-cart:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-add-to-cart svg {
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover svg {
    transform: translateY(-2px);
}

.btn-favorite-action {
    width: 56px;
    height: 56px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

.btn-favorite-action:hover {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.btn-favorite-action.favorited {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

.delivery-badge {
    background: #EFF6FF;
}

.delivery-badge svg {
    color: #3B82F6;
}

.guarantee-badge {
    background: #F0FDF4;
}

.guarantee-badge svg {
    color: #22C55E;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.badge-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.badge-desc {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Accordion Sections */
.product-accordions {
    border-top: 1px solid #E5E7EB;
    margin-top: 0.5rem;
}

.accordion-item {
    border-bottom: 1px solid #E5E7EB;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    transition: color 0.2s ease;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

.accordion-content p {
    color: #6B7280;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Store Info Box */
.store-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
}

.store-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), #818CF8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.store-details {
    flex: 1;
}

.store-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FBBF24;
}

.store-rating span {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.store-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.store-link-btn:hover {
    gap: 0.625rem;
}

/* Similar Products Section */
.similar-products-section {
    padding: 4rem 0;
    border-top: 1px solid #E5E7EB;
    margin-top: 2rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.similar-product-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.similar-product-card:hover {
    transform: translateY(-4px);
}

.similar-card-image {
    position: relative;
    aspect-ratio: 3/4;
    background: #F9FAFB;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.875rem;
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.similar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #D1D5DB;
}

.similar-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.similar-card-info h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.similar-price-old {
    font-size: 0.875rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* RESPONSIVE - Product Detail Page */
@media (max-width: 1024px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-section {
        position: relative;
        top: 0;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-gallery-wrapper {
        flex-direction: column-reverse;
    }

    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .thumbnail-item {
        width: 60px;
        height: 75px;
        flex-shrink: 0;
    }

    .product-main-title {
        font-size: 1.5rem;
    }

    .product-price-block .current-price {
        font-size: 1.5rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .product-action-buttons {
        flex-direction: column;
    }

    .btn-favorite-action {
        width: 100%;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .product-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-options-panel {
        padding: 1rem;
    }

    .color-btn {
        width: 2rem;
        height: 2rem;
    }

    .size-btn {
        min-width: 2.5rem;
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   MODERN STORE PAGE STYLES
   ============================================ */
.modern-store-page {
    background: #F9FAFB;
    min-height: 100vh;
}

/* Store Header (Sticky) */
.store-header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 20;
}

.store-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.store-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.store-header-actions {
    display: flex;
    gap: 1rem;
}

.store-search-form {
    position: relative;
    display: flex;
}

.store-search-input {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    width: 16rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.store-search-input:focus {
    outline: none;
    background: white;
    border-color: #D1D5DB;
}

.store-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
}

/* Category Tabs */
.store-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.store-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.category-tab:hover {
    background: #F9FAFB;
}

.category-tab.active {
    background: #111827;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Store Main Content */
.store-main-content {
    padding: 2rem 0;
}

/* Toolbar */
.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-count {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

.product-count strong {
    color: #111827;
    font-weight: 700;
}

.toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-form {
    display: flex;
}

.sort-select {
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.375rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-btn:hover {
    color: #111827;
}

.view-btn.active {
    background: #F3F4F6;
    color: #111827;
}

/* Modern Product Grid */
.modern-product-grid {
    display: grid;
    gap: 1.5rem;
}

.modern-product-grid.grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.modern-product-grid.list {
    grid-template-columns: 1fr;
}

/* Modern Product Card */
.modern-product-card {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.modern-product-grid.grid .modern-product-card {
    flex-direction: column;
}

.modern-product-grid.list .modern-product-card {
    flex-direction: row;
    height: 12rem;
}

.modern-product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.modern-product-grid.grid .product-image-container {
    aspect-ratio: 4/3;
}

.modern-product-grid.list .product-image-container {
    width: 12rem;
    flex-shrink: 0;
}

.product-image-container {
    cursor: pointer;
}

.product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.modern-product-card:hover .product-img {
    transform: scale(1.1);
}

.product-placeholder-modern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    font-size: 3rem;
    color: #D1D5DB;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #111827;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Favorite Button */
.favorite-btn-modern {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn-modern button {
    background: white;
    border: none;
    border-radius: 9999px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.favorite-btn-modern button:hover {
    color: #EF4444;
    background: #FEE2E2;
    transform: scale(1.1);
}

/* Favorite olunmuş */
.favorite-btn-modern button.is-favorite {
    color: #EF4444;
    background: #FEE2E2;
}

.favorite-btn-modern button.is-favorite:hover {
    background: #FECACA;
    transform: scale(1.15);
}

/* Cart Overlay (Grid View) */
/* Cart Overlay - Grid View */
.modern-product-grid.grid .cart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 5;
}

/* Cart Overlay - List View */
.modern-product-grid.list .cart-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.cart-overlay form {
    width: 100%;
}

.btn-cart-overlay {
    width: 100%;
    background: #111827;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.btn-cart-overlay:hover {
    background: #000000;
}

/* Product Info */
.product-info-modern {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-name-modern {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-link:hover .product-name-modern {
    color: #3B82F6;
}

.product-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-section-modern {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.old-price-modern {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.current-price-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

/* List Cart Button */
.list-cart-btn button {
    background: #F3F4F6;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
}

.list-cart-btn button:hover {
    background: #111827;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9CA3AF;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE - MODERN STORE PAGE
   ============================================ */

/* XS Mobil (< 480px) */
@media (max-width: 480px) {
    .store-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .store-title {
        font-size: 1.25rem;
    }

    .store-search-input {
        width: 100%;
        font-size: 0.875rem;
    }

    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .store-categories {
        gap: 0.375rem;
    }

    .category-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .sort-select,
    .view-toggle button {
        font-size: 0.8125rem;
    }

    .modern-product-grid.grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modern-product-grid.list .modern-product-card {
        flex-direction: column;
        height: auto;
    }

    .modern-product-grid.list .product-image-container {
        width: 100%;
        aspect-ratio: 4/3;
    }

    .favorite-btn-modern {
        opacity: 1;
        transform: translateX(0);
        top: 0.5rem;
        right: 0.5rem;
    }

    .product-name-modern {
        font-size: 0.9375rem;
    }

    .current-price-modern {
        font-size: 1rem;
    }

    .btn-cart-overlay {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}

/* S Mobil (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .store-title {
        font-size: 1.375rem;
    }

    .modern-product-grid.grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .category-tab {
        padding: 0.5rem 0.875rem;
    }
}

/* Tablet (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .store-title {
        font-size: 1.5rem;
    }

    .modern-product-grid.grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .store-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .toolbar-actions {
        width: auto;
    }
}

/* L Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .modern-product-grid.grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .store-header-top {
        flex-direction: row;
        align-items: center;
    }

    .store-search-input {
        width: auto;
        min-width: 300px;
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .modern-product-grid.grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .store-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-title {
        font-size: 1.5rem;
    }

    .store-search-input {
        width: 100%;
    }

    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .modern-product-grid.grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .modern-product-grid.list .modern-product-card {
        flex-direction: column;
        height: auto;
    }

    .modern-product-grid.list .product-image-container {
        width: 100%;
        aspect-ratio: 4/3;
    }

    .favorite-btn-modern {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   MOBILE TOUCH OPTIMIZATIONS
   ============================================ */

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent iOS zoom on input focus (16px minimum) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-size: 16px !important;
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .main-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Touch-friendly tap highlights */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Prevent text selection on buttons */
button,
.button-primary,
.button-secondary,
.icon-button,
a.button-primary,
a.button-secondary {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* GPU acceleration for animations */
.modern-product-card,
.product-card,
.store-card,
.category-card,
.icon-button,
.button-primary,
.button-secondary {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

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

/* Text Utilities */
.text-center {
    text-align: center;
}

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

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

/* Display Utilities */
.d-none {
    display: none !important;
}

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

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

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

/* Mobile Only */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Desktop Only */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Spacing Utilities */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 2.5rem !important;
}

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

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 2.5rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 2.5rem !important;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1F2937;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   DISCOUNTS PAGE - YENİ DİZAYN
   ============================================ */

/* Discount Banner */
.discount-banner {
    background-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin: 1.5rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 1320px;
}

.discount-banner-content {
    padding: 2.5rem 1rem;
    text-align: center;
    color: white;
}

.discount-banner h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.discount-banner h1 svg {
    width: 2rem;
    height: 2rem;
    color: #D97706;
}

.discount-banner p {
    font-size: 1.125rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.025em;
}

/* Discounts Layout */
.discounts-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-title svg {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 0.375rem;
}

/* Filter Inputs */
.filter-input {
    width: 100%;
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--color-bg-white);
}

.filter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.filter-input-group {
    display: flex;
    gap: 0.5rem;
}

.filter-input-group .filter-input {
    flex: 1;
}

.filter-search-wrapper {
    position: relative;
}

.filter-search-wrapper .filter-input {
    padding-right: 2.5rem;
}

.filter-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-search-btn:hover {
    color: var(--color-text-dark);
}

.filter-search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Filter Button */
.filter-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: var(--color-primary-hover);
}

.filter-btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text-dark);
}

.filter-btn-secondary:hover {
    background: var(--color-secondary-hover);
}

/* Category Filter List */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-bottom: 0.25rem;
}

.category-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.category-filter-list a:hover {
    background: var(--color-secondary);
}

.category-filter-list a.active {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.count-badge {
    font-size: 0.75rem;
    background: var(--color-secondary);
    color: var(--color-text-muted);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.category-filter-list a.active .count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Products Area */
.products-area {
    flex: 1;
}

/* Product Grid - Discounts Version */
.discount-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Discount Product Card */
.discount-product-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.discount-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-bottom-left-radius: var(--radius-md);
    z-index: 10;
}

/* Product Image */
.discount-product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.discount-product-card .product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.discount-product-card .product-image-placeholder {
    width: 100%;
    height: 160px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

/* Product Content */
.discount-product-card .product-content {
    padding: 1rem;
}

.discount-product-card .product-store {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: block;
}

.discount-product-card .product-store:hover {
    color: var(--color-primary);
}

.discount-product-card .product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discount-product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.discount-product-card .product-name a:hover {
    color: var(--color-primary);
}

/* Price Display */
.discount-product-card .price-wrapper {
    margin-bottom: 0.75rem;
}

.discount-product-card .price-current {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-danger);
    display: block;
}

.discount-product-card .price-old {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Add to Cart Button */
.discount-product-card .add-to-cart-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.discount-product-card .add-to-cart-btn:hover {
    background: var(--color-primary-hover);
}

.discount-product-card .add-to-cart-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Empty State */
.discount-empty-state {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem 1.5rem;
    text-align: center;
}

.discount-empty-state svg {
    width: 5rem;
    height: 5rem;
    color: var(--color-text-faint);
    margin-bottom: 1rem;
}

.discount-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.discount-empty-state p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* Pagination */
.discount-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.discount-pagination a,
.discount-pagination span {
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.discount-pagination a {
    color: var(--color-text-light);
}

.discount-pagination a:hover {
    background: var(--color-secondary);
}

.discount-pagination a.nav-btn {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-pagination a.nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.discount-pagination span.active {
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* RESPONSIVE - Tablet */
@media (min-width: 768px) {
    .discount-banner h1 {
        font-size: 2.5rem;
    }

    .discount-banner h1 svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    .discount-product-grid {
        gap: 1.5rem;
    }

    .discount-product-card .product-image {
        height: 180px;
    }

    .discount-product-card .product-image-placeholder {
        height: 180px;
    }
}

/* RESPONSIVE - Desktop */
@media (min-width: 1024px) {
    .discounts-layout {
        flex-direction: row;
    }

    .filters-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    .discount-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   COLLECTION BANNER - Index Page
   ============================================ */
.collection-banner-section {
    margin: 3rem 0;
}

.collection-banner-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 1rem;
}

.collection-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.collection-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 10;
}

.collection-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.collection-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.collection-btn {
    display: inline-block;
    background: white;
    color: #111827;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.collection-btn:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

/* ============================================
   COLLECTION PAGE STYLES
   ============================================ */
.collection-page {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.collection-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.collection-hero-bg {
    position: absolute;
    inset: 0;
}

.collection-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.collection-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 10;
}

.collection-hero-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.collection-hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.collection-hero-btn {
    display: inline-block;
    background: white;
    color: #111827;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.collection-hero-btn:hover {
    background: #F3F4F6;
}

/* Filter Bar */
.collection-filter-bar {
    position: sticky;
    top: 64px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

@media (min-width: 768px) {
    .collection-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.collection-store-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.collection-store-filters::-webkit-scrollbar {
    display: none;
}

.store-filter-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    background: #F3F4F6;
    color: #6B7280;
}

.store-filter-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.store-filter-btn.active {
    background: #111827;
    color: white;
}

/* Sort Dropdown */
.collection-sort-dropdown {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #6B7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.sort-dropdown-btn:hover {
    color: #111827;
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
}

.sort-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sort-dropdown-menu a:hover {
    background: #F9FAFB;
}

.sort-dropdown-menu a.active {
    background: #F3F4F6;
    color: var(--color-primary);
    font-weight: 500;
}

/* Product Grid */
.collection-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .collection-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .collection-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem 2rem;
    }
}

/* Product Card */
.collection-product-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.collection-card-image {
    position: relative;
    aspect-ratio: 3/4;
    background: #F3F4F6;
    overflow: hidden;
    margin-bottom: 1rem;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.collection-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
}

/* Quick Add Button */
.collection-quick-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: all 0.3s ease;
}

.collection-product-card:hover .collection-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.quick-add-btn:hover {
    background: #111827;
    color: white;
}

/* Store Badge */
.collection-store-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
}

/* Discount Badge */
.collection-discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Card Details */
.collection-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.collection-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
    transition: text-decoration 0.2s ease;
}

.collection-product-card:hover .collection-card-title {
    text-decoration: underline;
    text-decoration-color: #9CA3AF;
    text-underline-offset: 4px;
}

.collection-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collection-card-price .price-current {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}

.collection-card-price .price-old {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* Empty State */
.collection-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.collection-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.collection-empty h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.collection-empty p {
    font-size: 0.9375rem;
    color: #6B7280;
}

/* Season Tabs */
.collection-season-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1rem;
}

.season-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #F9FAFB;
    border: 2px solid transparent;
}

.season-tab:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.season-tab.active {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.season-tab-icon {
    font-size: 1.75rem;
}

.season-tab-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.season-tab.active .season-tab-name {
    color: var(--color-primary);
}

/* Inspiration Section */
.collection-inspiration {
    background: #F9FAFB;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
}

.inspiration-title {
    font-size: 1.75rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1rem;
}

.inspiration-text {
    color: #6B7280;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.inspiration-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #111827;
    padding-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.inspiration-link:hover {
    color: #6B7280;
    border-color: #6B7280;
}

/* Responsive */
@media (max-width: 640px) {

    .collection-title,
    .collection-hero-title {
        font-size: 2rem;
    }

    .collection-banner-wrapper {
        height: 50vh;
        min-height: 300px;
        border-radius: 0.5rem;
    }

    .collection-hero {
        height: 50vh;
        min-height: 300px;
    }

    .inspiration-title {
        font-size: 1.5rem;
    }

    .collection-season-tabs {
        gap: 0.25rem;
        padding: 1rem 0;
    }

    .season-tab {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
    }

    .season-tab-icon {
        font-size: 1.5rem;
    }

    .season-tab-name {
        font-size: 0.75rem;
    }
}

/* ============================================
   COLLECTION MODAL - Seller Panel
   ============================================ */
.collection-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collection-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.collection-modal {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.collection-modal-overlay.show .collection-modal {
    transform: translateY(0) scale(1);
}

.collection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.collection-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.collection-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.collection-modal-close:hover {
    color: #374151;
}

.collection-modal-body {
    padding: 1.5rem;
}

.collection-modal-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.collection-modal-hint {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.collection-seasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.season-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.season-checkbox:hover {
    border-color: #D1D5DB;
    background: white;
}

.season-checkbox input[type="checkbox"] {
    display: none;
}

.season-checkbox input[type="checkbox"]:checked+.season-icon {
    transform: scale(1.2);
}

.season-checkbox:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.season-icon {
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.season-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.collection-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 0 0 1rem 1rem;
}

/* Kolleksiya düyməsi stilı */
.button-action.collection-btn {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    border: none;
}