/* ===========================
   CATALOG PAGES STYLES
   Ultra Modern Minimalist Design
   Unified Typography & Spacing
   =========================== */

/* =====================
   COLOR VARIABLES
   ===================== */

:root {
    /* Primary Colors - Deep Blues */
    --primary-900: #0a1628;
    --primary-800: #1a2f4f;
    --primary-700: #2d4a6f;
    --primary-600: #4a6fa5;
    --primary-500: #5b8dc7;
    
    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, #5e8dc3 0%, #79abe5 100%);
    --accent-light: rgba(94, 141, 195, 0.08);
    
    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-150: #e8ecf1;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography Scale - Unified */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    /* Font Weights - Unified */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing Scale - Modern Minimal */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 0.75rem;     /* 12px */
    --space-md: 1rem;        /* 16px */
    --space-lg: 1.5rem;      /* 24px */
    --space-xl: 2rem;        /* 32px */
    --space-2xl: 3rem;       /* 48px */
}

/* =====================
   CATALOG PAGE LAYOUT
   ===================== */

.catalog-page {
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.catalog-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl);
}

/* Child Categories Toggle - Hidden on Desktop */
.child-categories-wrapper {
    position: relative;
    margin: 0;
}

.child-categories-toggle {
    display: none;
}

.child-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin: 0;
}

/* =====================
   PRODUCTS HEADER
   ===================== */

.products-header {
    margin-bottom: var(--space-xl);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin: 0;
    color: var(--primary-800);
    letter-spacing: -0.02em;
    animation: fadeInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.catalog-content {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.products-header {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}

.products-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.products-grid {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
}

.category-sidebar {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
}

.no-products {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* =====================
   CHILD CATEGORIES GRID
   ===================== */

.child-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-sm);
    order: -1;
}

.child-category-card {
    background: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    color: var(--primary-700);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
    flex-direction: column;
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.child-category-card:nth-child(1) { animation-delay: 0.05s; }
.child-category-card:nth-child(2) { animation-delay: 0.1s; }
.child-category-card:nth-child(3) { animation-delay: 0.15s; }
.child-category-card:nth-child(4) { animation-delay: 0.2s; }
.child-category-card:nth-child(5) { animation-delay: 0.25s; }
.child-category-card:nth-child(6) { animation-delay: 0.3s; }
.child-category-card:nth-child(7) { animation-delay: 0.35s; }
.child-category-card:nth-child(8) { animation-delay: 0.4s; }

.child-category-card:hover {
    background: var(--accent-light);
    border-color: var(--primary-500);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.child-category-card:active {
    transform: translateY(0) scale(0.98);
}

/* =====================
   SORTING SECTION
   ===================== */

.sorting-section {
    order: 0;
    margin-bottom: 0;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.btn-back-to-catalog {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-600);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border: 1px solid var(--primary-200);
    background: var(--primary-50);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-back-to-catalog:hover {
    background: var(--primary-100);
    border-color: var(--primary-400);
    color: var(--primary-700);
}

.btn-back-to-catalog i {
    font-size: var(--text-xs);
    transition: transform 0.25s ease;
}

.btn-back-to-catalog:hover i {
    transform: translateX(-2px);
}

.sorting-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    padding: var(--space-md) 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--neutral-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.sorting-container:hover {
    border-color: var(--primary-500);
    box-shadow: none;
}

.sorting-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
}

.sorting-label i {
    color: var(--primary-600);
    font-size: var(--text-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sorting-container:hover .sorting-label i {
    transform: rotate(180deg);
}

.sorting-select {
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-700);
    cursor: pointer;
    padding: 0;
    outline: none;
    font-family: inherit;
}

.sorting-select:focus {
    color: var(--primary-800);
}



.sorting-option {
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
    color: var(--neutral-700);
    cursor: pointer;
    transition: background 0.15s ease;
    font-weight: var(--font-normal);
    border-bottom: 1px solid var(--neutral-100);
    position: relative;
}

.sorting-option:first-child {
    padding-top: 1.25rem;
}

.sorting-option:last-child {
    border-bottom: none;
    padding-bottom: 1.25rem;
}

.sorting-option:active {
    background: var(--neutral-50);
}

.sorting-option.active {
    color: var(--primary-700);
    font-weight: var(--font-medium);
    background: var(--accent-light);
}

.sorting-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-600);
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================
   CATEGORY SEO CONTENT
   ===================== */

/* Shared rhythm */
.category-seo-panel,
.category-faq {
    margin-top: var(--space-lg);
}

.category-seo-panel__eyebrow,
.category-faq__eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--primary-600);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-seo-panel h2,
.category-faq h2 {
    margin: 0 0 0.55rem;
    color: var(--primary-800);
    font-size: clamp(1.12rem, 1.8vw, 1.42rem);
    line-height: 1.24;
    letter-spacing: -0.018em;
}

/* Intro */
.category-seo-intro {
    position: relative;
    margin: 0 0 var(--space-lg);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.category-seo-intro::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-600), rgba(91, 141, 199, 0.35));
    pointer-events: none;
}

.category-seo-intro__content {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
}

.category-seo-intro p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.92rem;
    font-weight: var(--font-medium);
    line-height: 1.55;
}

/* Landing pages */
.landing-page-lead {
    max-width: 860px;
    margin: 12px auto 0;
    color: var(--neutral-600);
}

/* Bottom support block */
.category-seo-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(45, 74, 111, 0.06);
}

.category-seo-panel__body {
    padding: clamp(1rem, 2vw, 1.35rem);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.category-seo-panel p {
    max-width: 920px;
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.58;
}

.category-seo-panel ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.category-seo-panel li {
    position: relative;
    padding: 0.62rem 0.72rem 0.62rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.72);
    color: var(--neutral-700);
    font-size: 0.84rem;
    font-weight: var(--font-semibold);
    line-height: 1.35;
}

.category-seo-panel li::before {
    content: '\f00c';
    position: absolute;
    top: 0.66rem;
    left: 0.72rem;
    color: var(--primary-600);
    font-family: 'Font Awesome 6 Free';
    font-size: 0.7rem;
    font-weight: 900;
}

/* FAQ */
.category-faq {
    padding-bottom: 0;
}

.category-faq__header {
    margin-bottom: 0.7rem;
}

.category-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.category-faq__item {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 16px rgba(45, 74, 111, 0.045);
}

.category-faq__item h3 {
    margin: 0 0 0.35rem;
    color: var(--primary-800);
    font-size: 0.94rem;
    line-height: 1.3;
}

.category-faq__item p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.86rem;
    line-height: 1.52;
}

/* =====================
   CATALOG LAYOUT
   ===================== */

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
}

/* =====================
   SIDEBAR & FILTER
   ===================== */

.category-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.category-sidebar::-webkit-scrollbar {
    width: 8px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 4px;
}

.category-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

.filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: var(--space-xl);
    border: 1px solid var(--neutral-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-200);
    gap: 0.5rem;
}

.filter-main-title {
    font-size: 0.95rem;
    font-weight: var(--font-bold);
    color: var(--primary-800);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
}

.filter-main-title i {
    color: var(--primary-700);
    font-size: 0.85rem;
}

.clear-filters-btn {
    background: transparent;
    border: none;
    color: var(--error);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.clear-filters-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    transform: scale(1.05);
}

.clear-filters-btn:active {
    transform: scale(0.95);
}

/* =====================
   FILTER GROUPS
   ===================== */

.filter-group {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-150);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: linear-gradient(135deg, transparent 0%, rgba(94, 141, 195, 0.02) 100%);
}

.filter-group-header:hover {
    background: linear-gradient(135deg, transparent 0%, rgba(94, 141, 195, 0.05) 100%);
    border-radius: 8px;
}

.filter-group-header i {
    color: var(--primary-700);
    font-size: 0.75rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group-header:hover i {
    transform: scale(1.15);
}

.filter-group-title {
    flex: 1;
    font-weight: var(--font-semibold);
    color: var(--neutral-700);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

.toggle-icon {
    color: var(--neutral-400);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    font-size: var(--text-xs);
}

.filter-group-header:hover .toggle-icon {
    color: var(--primary-600);
}

.filter-group:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.filter-group.collapsed {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-group.collapsed .filter-options {
    display: none;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

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

/* =====================
   PRICE FILTER
   ===================== */

.price-filter-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
}

.price-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.price-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.price-label {
    font-size: 0.7rem;
    font-weight: var(--font-semibold);
    color: var(--neutral-600);
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-modern {
    width: 100%;
    padding: var(--space-sm) 2rem var(--space-sm) var(--space-md);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    transition: all 0.2s ease;
    background: white;
    -moz-appearance: textfield;
    appearance: textfield;
}

.price-input-modern::-webkit-outer-spin-button,
.price-input-modern::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input-modern:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.price-currency {
    position: absolute;
    right: var(--space-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--neutral-500);
    pointer-events: none;
}

.price-range-slider {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.slider-container {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.price-slider-modern {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-500);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.price-slider-modern::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.price-slider-modern::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-500);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.price-slider-modern::-moz-range-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary-600);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.slider-track-modern {
    position: absolute;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    pointer-events: none;
}

.price-apply-btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(45, 74, 111, 0.15);
    margin-top: var(--space-xs);
    position: relative;
    overflow: hidden;
}

.price-apply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.price-apply-btn:hover::before {
    width: 250px;
    height: 250px;
}

.price-apply-btn:hover {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
    box-shadow: 0 4px 16px rgba(45, 74, 111, 0.2);
    transform: translateY(-2px);
}

.price-apply-btn:active {
    transform: translateY(0) scale(0.97);
}

.price-apply-btn i {
    font-size: var(--text-sm);
    position: relative;
    z-index: 1;
}

.price-apply-btn span {
    position: relative;
    z-index: 1;
}

/* =====================
   ATTRIBUTE CHECKBOXES
   ===================== */

.attribute-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, transparent 0%, rgba(94, 141, 195, 0.01) 100%);
}

.attribute-checkbox-wrapper:hover {
    background: linear-gradient(135deg, transparent 0%, rgba(94, 141, 195, 0.04) 100%);
}

.attribute-checkbox-modern {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.attribute-checkmark {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: 5px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.attribute-checkbox-modern:checked ~ .attribute-checkmark {
    background: var(--accent-gradient);
    border-color: var(--primary-500);
}

.attribute-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 3.5px;
    top: 1px;
    width: 3.5px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.attribute-checkbox-modern:checked ~ .attribute-checkmark::after {
    display: block;
}

.attribute-text {
    font-size: 0.8rem;
    color: var(--neutral-700);
    font-weight: var(--font-medium);
    transition: color 0.2s ease;
}

.attribute-checkbox-modern:checked ~ * .attribute-text,
.attribute-checkbox-wrapper:hover .attribute-text {
    color: var(--primary-700);
}

.show-more-attributes-btn {
    margin-top: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px dashed var(--neutral-300);
    border-radius: 6px;
    color: var(--primary-600);
    font-weight: var(--font-semibold);
    font-size: var(--text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all 0.2s ease;
}

.show-more-attributes-btn:hover {
    background: var(--accent-light);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.show-more-attributes-btn i {
    transition: transform 0.2s ease;
    font-size: var(--text-xs);
}

.show-more-attributes-btn.expanded i {
    transform: rotate(180deg);
}

/* =====================
   FILTER ACTIONS
   ===================== */

.filter-actions-modern {
    padding-top: var(--space-md);
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-apply-filter {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(45, 74, 111, 0.2);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn-apply-filter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-apply-filter:hover::before {
    width: 300px;
    height: 300px;
}

.btn-apply-filter:hover {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
    box-shadow: 0 6px 16px rgba(45, 74, 111, 0.3);
    transform: translateY(-2px);
}

.btn-apply-filter:active {
    transform: translateY(0) scale(0.97);
}

.btn-apply-filter:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-apply-filter .fa-spinner {
    animation: spin 1s linear infinite;
}

@media (max-width: 900px) {
    .filter-actions-modern {
        display: flex;
        position: -webkit-sticky;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding: var(--space-md) 0 calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
        margin-top: var(--space-md);
        background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.96) 24%, rgba(248, 250, 252, 1) 100%);
    }

    .btn-apply-filter {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================
   PRODUCTS GRID
   ===================== */

.products-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    transition: opacity 0.3s ease;
}

#products-container {
    padding-bottom: 0;
}

.product-card-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Modern Product Card Redesign */
.product-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
    border: none;
    box-shadow: 0 2px 16px 0 rgba(45,74,111,0.07), 0 1.5px 6px 0 rgba(45,74,111,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1);
    will-change: transform, box-shadow;
    perspective: 1000px;
}
.product-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 28px 0 rgba(45,74,111,0.1), 0 2px 8px 0 rgba(45,74,111,0.08);
    background: linear-gradient(135deg, #f1f5f9 0%, #e8ecf1 100%);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1.5px solid var(--neutral-150);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), filter 0.2s;
    filter: drop-shadow(0 2px 8px rgba(45,74,111,0.08));
    border-radius: 0;
}
.product-card:hover .product-image img {
    transform: scale(1.03) rotate(-0.5deg);
    filter: drop-shadow(0 4px 12px rgba(45,74,111,0.1));
}

.out-of-stock {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(90deg, var(--error) 60%, #f87171 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239,68,68,0.13);
    border: none;
}
.out-of-stock.pre-order {
    background: linear-gradient(90deg, var(--warning) 60%, #fbbf24 100%);
}

.product-info {
    padding: 1.2rem 1.2rem 0.7rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    align-items: flex-start;
    background: transparent;
}

.product-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em;
    max-height: 5.6em;
    word-break: break-word;
    white-space: normal;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--primary-700);
    margin: 0.2em 0 0.1em 0;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, var(--primary-700) 60%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}
.product-price .currency {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
    color: var(--primary-600);
}

.product-sku {
    font-size: var(--text-xs);
    color: var(--neutral-500);
    font-weight: var(--font-medium);
    margin-bottom: 0.1em;
}

.product-quantity {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: 0.3em;
    margin-bottom: 0.1em;
}

.product-quantity.in-stock {
    color: var(--success);
}

.product-quantity.pre-order-text {
    color: var(--warning);
}

.product-quantity.out-of-stock-text {
    color: var(--error);
}

/* =====================
   PRODUCT ACTIONS
   ===================== */

.product-actions {
    padding: 0 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    width: 100%;
    margin-top: auto;
}
.product-actions button {
    flex: 1 1 0;
    padding: 0.7em 0.5em;
    border: none;
    border-radius: 10px;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 3px rgba(45,74,111,0.07);
    letter-spacing: -0.01em;
}
.btn-add-to-cart {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #1e3a5f 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(45,74,111,0.10);
}
.btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f2540 0%, #1e3a5f 50%, #0f2540 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(45,74,111,0.13);
}
.btn-buy-now {
    background: #fff;
    color: var(--primary-700);
    border: 1.5px solid var(--primary-800);
    box-shadow: 0 1px 3px rgba(45,74,111,0.04);
}
.btn-buy-now:hover:not(:disabled) {
    background: var(--neutral-50);
    border-color: var(--primary-900);
    color: var(--primary-900);
}
.product-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.out-of-stock-card {
    opacity: 0.7;
    filter: grayscale(0.2);
}

/* =====================
   CATEGORY PAGINATION
   ===================== */

.category-pagination {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 0.55rem;
    border: 1px solid rgba(45, 74, 111, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%),
        radial-gradient(circle at 18% 0%, rgba(45, 74, 111, 0.14), transparent 32%);
    box-shadow: 0 18px 42px rgba(45, 74, 111, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.category-pagination__summary {
    flex: 0 0 auto;
    padding: 0 0.9rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-pagination__list,
.category-pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.category-pagination__list {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.category-pagination__page,
.category-pagination__control,
.category-pagination__ellipsis {
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
}

.category-pagination__page,
.category-pagination__control {
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 1px 2px rgba(45, 74, 111, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.category-pagination__page:hover,
.category-pagination__control:hover {
    color: #0f2540;
    background: #ffffff;
    border-color: rgba(45, 74, 111, 0.32);
    box-shadow: 0 10px 24px rgba(45, 74, 111, 0.14);
    transform: translateY(-2px);
}

.category-pagination__page:focus-visible,
.category-pagination__control:focus-visible {
    outline: 3px solid rgba(45, 74, 111, 0.24);
    outline-offset: 3px;
}

.category-pagination__page.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f2540 0%, #1e3a5f 45%, #2d4a6f 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: default;
}

.category-pagination__control {
    gap: 0.45rem;
    min-width: 112px;
    padding: 0 1rem;
}

.category-pagination__control i {
    font-size: 0.75rem;
}

.category-pagination__control.is-disabled {
    color: #94a3b8;
    background: rgba(241, 245, 249, 0.78);
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: none;
    cursor: not-allowed;
}

.category-pagination__ellipsis {
    color: #94a3b8;
    letter-spacing: 0.08em;
    min-width: 30px;
}

@media (max-width: 768px) {
    .category-pagination {
        width: 100%;
        border-radius: 24px;
        padding: 0.65rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .category-pagination__summary {
        padding: 0.2rem 0.35rem 0;
        text-align: center;
        font-size: 0.72rem;
    }

    .category-pagination__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        justify-content: stretch;
    }

    .category-pagination__pages {
        order: -1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .category-pagination__page,
    .category-pagination__ellipsis {
        min-width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .category-pagination__control {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-pagination {
        border-radius: 20px;
    }

    .category-pagination__pages {
        max-width: 100%;
    }

    .category-pagination__page,
    .category-pagination__ellipsis {
        min-width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }
}

/* =====================
   NO PRODUCTS STATE
   ===================== */

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: white;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
}

.no-products i {
    font-size: var(--text-4xl);
    color: var(--neutral-300);
    margin-bottom: var(--space-lg);
}

.no-products h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-700);
    margin-bottom: var(--space-xs);
}

.no-products p {
    color: var(--neutral-500);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

/* =====================
   MOBILE CONTROLS
   ===================== */

.mobile-controls {
    display: none;
    order: 2;
}

.mobile-filter-btn,
.mobile-sort-dropdown {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid var(--neutral-200);
    border-radius: 12px;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--primary-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(45, 74, 111, 0.06);
    position: relative;
    overflow: hidden;
}

.mobile-filter-btn::before,
.mobile-sort-dropdown::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-light);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.mobile-filter-btn:active::before,
.mobile-sort-dropdown:active::before {
    width: 200px;
    height: 200px;
}

.mobile-filter-btn:hover,
.mobile-sort-dropdown:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e8ecf1 100%);
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 74, 111, 0.12);
}

.mobile-filter-btn:active,
.mobile-sort-dropdown:active {
    transform: scale(0.96);
}

.mobile-filter-btn i,
.mobile-sort-dropdown i {
    font-size: var(--text-base);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-btn:hover i,
.mobile-sort-dropdown:hover i {
    transform: scale(1.15);
}

.mobile-filter-btn span,
.mobile-sort-dropdown span {
    position: relative;
    z-index: 1;
}

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

/* Disable animations for mobile sort dropdown and its dropdown list */
.mobile-sort-dropdown,
.mobile-sort-dropdown *,
.mobile-sort-dropdown::before,
.mobile-sort-dropdown::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}
.mobile-sort-dropdown::before {
    display: none !important;
    content: none !important;
}
.mobile-sort-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
}


@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .catalog-layout {
        grid-template-columns: 280px 1fr;
        gap: var(--space-lg);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 992px) {
    .category-seo-panel ul,
    .category-faq__grid {
        grid-template-columns: 1fr;
    }

    .category-seo-intro {
        margin-top: 0;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 380px;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        z-index: 1000;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        padding: var(--space-lg);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        touch-action: pan-y;
        box-shadow: 0 10px 40px rgba(45, 74, 111, 0.2);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        animation: none;
    }
    
    .category-sidebar.active {
        transform: translateX(0);
        animation: none;
    }
    
    .mobile-filter-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    
    .mobile-filter-backdrop.active {
        display: block;
        opacity: 1;
    }
    
    .mobile-controls {
        display: flex;
        justify-content: space-between;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    #mobile-filter-close {
        display: flex !important;
        background: var(--error);
        color: white;
        padding: var(--space-xs) var(--space-md);
        border-radius: 8px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #mobile-filter-close:hover {
        background: #dc2626;
        transform: scale(1.05);
    }
    
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .child-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: var(--space-sm);
    }
    
    .filter-card {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .category-seo-intro {
        margin-bottom: var(--space-md);
        border-radius: 14px;
    }

    .category-seo-intro__content {
        padding: 0.75rem 0.85rem 0.75rem 1rem;
    }

    .category-seo-intro p,
    .category-seo-panel p,
    .category-faq__item p {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .category-seo-panel,
    .category-faq {
        margin-top: var(--space-md);
    }

    .category-faq {
        padding-left: var(--space-xs);
        padding-right: var(--space-xs);
    }

    .category-seo-panel,
    .category-seo-panel__body,
    .category-faq__item {
        border-radius: 14px;
    }

    .category-seo-panel__body,
    .category-faq__item {
        padding: 0.85rem;
    }

    .category-seo-panel h2,
    .category-faq h2 {
        font-size: 1.08rem;
        margin-bottom: 0.45rem;
    }

    .category-seo-panel ul {
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .category-seo-panel li {
        padding: 0.58rem 0.65rem 0.58rem 1.85rem;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .category-seo-panel li::before {
        left: 0.65rem;
        top: 0.62rem;
    }

    .catalog-content {
        padding: var(--space-lg) var(--space-xl);
    }
    
    /* Disable animations and hover effects on mobile */
    .product-card {
        transition: none;
        will-change: auto;
        animation: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 16px 0 rgba(45,74,111,0.07), 0 1.5px 6px 0 rgba(45,74,111,0.04);
        background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    }

    .product-card:hover .product-image img {
        transform: none;
        filter: drop-shadow(0 2px 8px rgba(45,74,111,0.08));
    }

    .product-card:active,
    .product-card:active .product-image img,
    .child-category-card:active {
        transform: none;
    }
    
    .products-header {
        margin-bottom: var(--space-lg);
    }
    
    .page-title {
        font-size: var(--text-xl);
        letter-spacing: -0.01em;
        margin-bottom: var(--space-md);
    }
    
    .sorting-section {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        margin-bottom: var(--space-lg);
    }
    
    .mobile-filter-btn,
    .mobile-sort-dropdown {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: 14px;
    }
    
    .product-image {
        border-bottom: 1px solid var(--neutral-150);
    }
    
    .product-info {
        padding: 0.7rem;
        gap: 0.35rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        min-height: 3.15em;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-sku {
        font-size: 0.7rem;
    }
    
    .product-quantity {
        font-size: 0.7rem;
    }
    
    .product-actions {
        gap: 0.5rem;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        padding: 0.65rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 8px;
        min-height: 40px;
    }
    
    .price-apply-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .child-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .child-category-card {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 6px;
        min-height: 55px;
        height: 55px;
        transition: none;
    }
    
    .category-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 380px;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        z-index: 1000;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        padding: var(--space-lg);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        touch-action: pan-y;
        box-shadow: 0 10px 40px rgba(45, 74, 111, 0.2);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        animation: none;
    }
    
    .category-sidebar.active {
        transform: translateX(0);
        animation: none;
    }
    
    .mobile-filter-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    
    .mobile-filter-backdrop.active {
        display: block;
        opacity: 1;
    }
    
    #mobile-filter-close {
        display: flex !important;
        background: var(--error);
        color: white;
        padding: var(--space-xs) var(--space-md);
        border-radius: 8px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #mobile-filter-close:hover {
        background: #dc2626;
        transform: scale(1.05);
    }
    
    .filter-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .filter-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title close"
            "clear clear";
        column-gap: 0.4rem;
        row-gap: 0.35rem;
        align-items: center;
        position: relative;
    }
    
    .filter-main-title {
        font-size: 0.9rem;
        grid-area: title;
        min-width: 0;
        margin: 0;
        align-self: center;
        order: initial;
    }
    
    #mobile-filter-close {
        position: static;
        margin: 0;
        grid-area: close;
        justify-self: end;
        align-self: center;
        order: initial;
    }
    
    .clear-filters-btn:not(#mobile-filter-close) {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem 0.4rem 0;
        grid-area: clear;
        justify-self: start;
        order: initial;
        margin-top: 0;
    }
    
    .out-of-stock,
    .out-of-stock.pre-order {
        top: 8px;
        right: 8px;
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .catalog-content {
        padding: 0 var(--space-sm);
    }
    
    .products-grid {
        gap: 0.5rem;
    }
    
    .page-title {
        font-size: var(--text-lg);
        font-weight: var(--font-bold);
    }
    
    .mobile-controls {
        gap: 0.5rem;
    }
    
    .mobile-filter-btn,
    .mobile-sort-dropdown {
        padding: 0.75rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        min-height: 2.6em;
    }
    
    .product-price {
        font-size: var(--text-base);
        margin: 0.1em 0;
    }
    
    .product-sku {
        font-size: 0.65rem;
    }
    
    .product-info {
        padding: 0.7rem;
        gap: 0.3rem;
    }
    
    .product-actions {
        padding: 0 0.7rem 0.7rem 0.7rem;
        gap: 0.4rem;
        flex-direction: column;
    }
    
    .product-actions button {
        width: 100%;
        padding: 0.6em;
        font-size: 0.7rem;
        gap: 0.3em;
        border-radius: 8px;
    }
    
    .product-actions button i {
        font-size: 0.85em;
    }
    
    .child-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    
    .out-of-stock,
    .out-of-stock.pre-order {
        padding: 3px 10px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .catalog-content {
        padding: 1rem 0.75rem;
    }
    
    .products-header {
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.4;
        text-align: center;
    }
    
    .mobile-controls {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
    }
    
    .mobile-filter-btn,
    .mobile-sort-dropdown {
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
        font-weight: 600;
        min-height: 48px;
        border: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-filter-btn {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(45, 74, 111, 0.15);
    }
    
    .mobile-filter-btn:active {
        transform: scale(0.96);
        box-shadow: 0 2px 6px rgba(45, 74, 111, 0.12);
    }
    
    .mobile-sort-dropdown {
        background: white;
        color: #1e3a5f;
        border: 2px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(45, 74, 111, 0.08);
    }
    
    .mobile-sort-dropdown:active {
        background: #f1f5f9;
        transform: scale(0.96);
        border-color: #e2e8f0;
        box-shadow: 0 1px 4px rgba(45, 74, 111, 0.06);
    }
    
    .mobile-filter-btn span,
    .mobile-sort-dropdown span {
        display: inline;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.01em;
    }
    
    .mobile-filter-btn i,
    .mobile-sort-dropdown i {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card-wrapper {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }
    
    .product-card {
        border-radius: 16px;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(45, 74, 111, 0.1);
        transition: none;
        animation: none;
    }
    
    .product-card:active {
        transform: none;
        box-shadow: 0 2px 8px rgba(45, 74, 111, 0.08);
    }
    
    .product-image {
        width: 100%;
        aspect-ratio: 1/1;
        overflow: hidden;
        background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: none;
    }
    
    .product-card:active .product-image img {
        transform: none;
    }
    
    .out-of-stock {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(90deg, #ef4444 60%, #f87171 100%);
        color: #fff;
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
    }
    
    .out-of-stock.pre-order {
        background: linear-gradient(90deg, #f59e0b 60%, #fbbf24 100%);
    }
    
    .product-info {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        background: white;
    }
    
    .product-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #1a2f4f;
        line-height: 1.4;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.8em;
        word-break: break-word;
    }
    
    .product-sku {
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 500;
        margin: 0;
    }
    
    .product-quantity {
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin: 0;
    }
    
    .product-quantity.in-stock {
        color: #10b981;
    }
    
    .product-quantity.pre-order-text {
        color: #f59e0b;
    }
    
    .product-quantity.out-of-stock-text {
        color: #ef4444;
    }
    
    .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1a2f4f;
        margin: 0;
        letter-spacing: -0.01em;
    }
    
    .product-actions {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        margin: 0;
        padding-top: 0.6rem;
        border-top: 1px solid #e2e8f0;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        flex: 1;
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-add-to-cart {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(45, 74, 111, 0.12);
    }
    
    .btn-add-to-cart:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(45, 74, 111, 0.08);
    }
    
    .btn-buy-now {
        background: white;
        color: #1a2f4f;
        border: 1.5px solid #2d4a6f;
        box-shadow: 0 1px 3px rgba(45, 74, 111, 0.06);
    }
    
    .btn-buy-now:active {
        background: #f8fafc;
        transform: scale(0.95);
    }
    
    .btn-add-to-cart i,
    .btn-buy-now i {
        font-size: 0.95rem;
    }
    
    .price-apply-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 8px;
        min-height: 44px;
        background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(45, 74, 111, 0.12);
    }
    
    .price-apply-btn:active {
        transform: scale(0.97);
        box-shadow: 0 1px 4px rgba(45, 74, 111, 0.08);
    }
    
    .child-categories-wrapper {
        position: relative;
        margin: 0;
    }
    
    .child-categories-toggle {
        display: flex;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 10px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        border: 2px solid #e2e8f0;
        background: white;
        color: #1e3a5f;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 0.75rem;
    }
    
    .child-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
    }
    
    .child-categories-grid.expanded {
        max-height: 2000px;
        opacity: 1;
        margin-bottom: 1rem;
    }
    
    .child-categories-toggle:active {
        background: #f8fafc;
        transform: scale(0.98);
    }
    
    .child-categories-toggle i {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }
    
    .child-categories-toggle.active i {
        transform: rotate(180deg);
    }
    
    .child-category-card {
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 8px;
        min-height: 54px;
        height: auto;
        border: 1.5px solid #e2e8f0;
        background: white;
        color: #2d4a6f;
        transition: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    .child-category-card:active {
        background: #f8fafc;
        transform: none;
    }
    
    .category-sidebar {
        max-width: 85%;
        padding: 1.25rem 1rem;
    }
    
    .filter-card {
        border-radius: 12px;
    }
    
    .filter-header {
        gap: 0.4rem;
        margin-bottom: 0.7rem;
    }
    
    .filter-main-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #1a2f4f;
    }
    
    .filter-main-title i {
        font-size: 1rem;
    }
    
    .filter-group {
        margin-bottom: 0.65rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .filter-group:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .filter-group-header {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #1a2f4f;
    }
    
    .filter-group-title {
        font-size: 0.8rem;
        color: #2d4a6f;
    }
    
    .attribute-checkbox-modern + label {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        font-weight: 500;
    }
    
    .price-slider {
        height: 4px;
        margin: 1rem 0;
    }
    
    .price-slider-thumb {
        width: 22px;
        height: 22px;
    }
    
    .price-input-modern {
        font-size: 0.85rem;
        padding: 0.6rem;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .price-display {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2d4a6f;
    }
    
    .out-of-stock,
    .out-of-stock.pre-order {
        top: 10px;
        right: 10px;
        padding: 5px 14px;
        font-size: 0.7rem;
        border-radius: 20px;
    }
    
    .mobile-filter-backdrop {
        background: rgba(0, 0, 0, 0.65);
    }
    
    #mobile-filter-close {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 8px;
        font-weight: 600;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    .catalog-content,
    .products-header,
    .products-section,
    .products-grid,
    .category-sidebar,
    .no-products {
        animation: none;
    }
}

/* =====================
   CATEGORY TREE STYLES
   Simple & Minimalist
   ===================== */

.sidebar-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 var(--space-lg) 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    letter-spacing: -0.01em;
}

.sidebar-title i {
    font-size: var(--text-base);
    color: var(--primary-700);
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-parent {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    transition: none;
    animation: none;
}

.category-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
}

.category-link::before {
    content: '';
    display: none;
}

.category-link:hover {
    color: var(--primary-700);
    background: transparent;
}

.category-link.active {
    color: var(--primary-700);
    font-weight: var(--font-semibold);
    background: transparent;
}

.category-link i {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    flex-shrink: 0;
    width: auto;
    text-align: center;
    transition: color 0.2s ease;
}

.category-link:hover i {
    color: var(--primary-600);
    transform: none;
}

.category-link.active i {
    color: var(--primary-700);
}

.parent-link {
    justify-content: flex-start;
    position: relative;
    font-weight: var(--font-semibold);
    white-space: nowrap;
    gap: 6px;
    padding-right: 20px;
}

.parent-link.has-children::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--neutral-500);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    display: block;
}

.category-parent.expanded .parent-link.has-children::after {
    transform: translateY(-50%) rotate(180deg);
}

.category-toggle {
    background: transparent;
    border: none;
    color: var(--neutral-500);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
}

.category-toggle:hover {
    color: var(--primary-600);
    transform: none;
}

.category-toggle i {
    display: block;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.category-parent.expanded .category-toggle i {
    transform: rotate(180deg);
}

.category-children {
    list-style: none;
    padding: 0 0 0 var(--space-lg);
    margin: 0;
    background: transparent;
    border-top: none;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
}

.category-parent.collapsed .category-children {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.category-children li {
    display: block;
    transition: none;
    border-bottom: none;
}

.category-children li:last-child {
    border-bottom: none;
}

.category-children li:hover {
    background: transparent;
}

.category-children .category-link {
    padding: var(--space-sm) 0;
    display: block;
    width: 100%;
    position: relative;
    font-size: var(--text-sm);
    color: var(--neutral-600);
    font-weight: var(--font-normal);
}

.category-children .category-link::before {
    display: none;
}

.category-children .category-link:hover {
    background: transparent;
    color: var(--primary-700);
    padding-left: 0;
}

.category-children .category-link.active {
    background: transparent;
    color: var(--primary-700);
    font-weight: var(--font-semibold);
}

.child-link i {
    font-size: 11px;
}

/* =====================
   CATEGORY TREE RESPONSIVE
   ===================== */

@media (max-width: 992px) {
    .sidebar-title {
        font-size: var(--text-sm);
        padding: 0;
    }
    
    .category-link {
        padding: var(--space-sm) 0;
        font-size: var(--text-sm);
    }
    
    .category-children {
        padding-left: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .sidebar-title {
        padding: 0;
        font-size: var(--text-sm);
        margin-bottom: var(--space-md);
    }
    
    .category-link {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .category-children {
        padding-left: 1rem;
    }
}

@media (max-width: 640px) {
    .sidebar-title {
        padding: 0;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-title i {
        font-size: 0.85rem;
    }
    
    .category-link {
        padding: 0.4rem 0;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .category-link i {
        font-size: 0.75rem;
        width: auto;
    }
    
    .category-toggle {
        font-size: 0.7rem;
    }
    
    .category-children {
        padding-left: 0.8rem;
    }
    
    .child-link i {
        font-size: 10px;
    }
}
