* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-surface: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Used to offset sticky elements (like subcategory titles) below the fixed nav */
    --fixed-nav-offset: 0px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-surface);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Ensure fixed positioning works on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Ensure no parent elements break fixed positioning */
html {
    overflow-x: hidden;
    position: relative;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

/* Header is not fixed - removed fixed positioning */

/* Spacer to prevent content jump - accounts for header and categories carousel */
.header-spacer {
    height: 0; /* Will be set dynamically */
    transition: height var(--transition-base);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.8px;
    position: relative;
}

.logo h1::before {
    content: '📱';
    font-size: 32px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

/* Mini logo for mobile */
.logo .mini-logo {
    display: none;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Separate Fixed Categories Nav Carousel */
.categories-nav-carousel-fixed {
    position: fixed !important;
    top: 0 !important; /* At top of page since header is removed */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* Full width */
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important; /* Top layer since header is removed */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    transform: translate3d(0, 0, 0) !important; /* Force hardware acceleration and fix mobile positioning */
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Mobile-specific fixes */
    -webkit-overflow-scrolling: touch;
}

.categories-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start to align logo on left */
    gap: 16px;
    padding: 8px 32px; /* Reduced padding */
}

.categories-nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.categories-nav-logo-link:hover {
    opacity: 0.8;
}

.categories-nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.categories-carousel-wrapper .btn-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.categories-carousel-wrapper .btn-search-toggle:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Language Toggle Button */
.language-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
}

.language-toggle-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-toggle-text {
    display: block;
    line-height: 1;
}

.categories-carousel-wrapper .search-input-wrapper {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    animation: slideDown 0.3s ease-out;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    visibility: visible;
    opacity: 1;
}

.categories-carousel-wrapper .search-input-wrapper[style*="flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Subcategory Filters Row - Below Categories */
.fixed-subcategory-filters-row {
    display: block; /* Always visible for each category block */
    position: sticky;
    top: 60px; /* Position below fixed categories nav (no hero slider) */
    z-index: 999; /* Above carousel but below fixed nav */
    width: 100%;
    margin: 0 -20px 16px -20px; /* Negative margin to extend to edges, add bottom margin */
    padding: 8px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.category-block:first-child .fixed-subcategory-filters-row {
    border-top: none;
}

.fixed-subcategory-filters {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.fixed-subcategory-filters::-webkit-scrollbar {
    display: none;
}

.fixed-subcategory-filters li {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.fixed-subcategory-filters .filter-btn {
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: block;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}

/* Add same hover effects as category-link */
.fixed-subcategory-filters .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.fixed-subcategory-filters .filter-btn:hover::before {
    left: 100%;
}

.fixed-subcategory-filters .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.fixed-subcategory-filters .filter-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.fixed-subcategory-filters .filter-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.fixed-subcategory-filters .filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.fixed-subcategory-filters .filter-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Category name button - colored button on the left */
.fixed-subcategory-filters .filter-btn.category-name-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    margin-right: 8px;
    flex-shrink: 0;
}

.fixed-subcategory-filters .filter-btn.category-name-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.fixed-subcategory-filters .filter-btn.category-name-btn:active {
    transform: translateY(0);
}

.fixed-subcategory-filters .filter-btn.category-name-btn::before,
.fixed-subcategory-filters .filter-btn.category-name-btn::after {
    display: none; /* Remove default hover effects for category button */
}

.categories-nav-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: inherit; /* Inherit header background */
}

.categories-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.categories-list li {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.categories-list li {
    white-space: nowrap;
}

/* Category Navigation Buttons */
.category-nav-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: var(--surface);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.category-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.category-nav-btn:active {
    transform: scale(0.95);
}

.category-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.categories-list a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: block;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.categories-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.categories-list a:hover::before {
    left: 100%;
}

.categories-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.categories-list a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.categories-list a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.categories-list a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary-color);
}

.categories-list a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Category hover dropdown for subcategories */
.categories-list li.category-nav-item {
    position: relative;
}

.category-subcategories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
}

.category-subcategories-dropdown .subcategory-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    border-bottom: 1px solid var(--border-light);
}

.category-subcategories-dropdown .subcategory-link:last-child {
    border-bottom: none;
}

.category-subcategories-dropdown .subcategory-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    padding-left: 24px;
}


/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto;
    overflow: hidden;
    background: var(--gradient-primary);
    margin-top: 60px; /* Space for fixed categories nav */
    margin-bottom: 40px;
    border-radius: 0;
    box-shadow: var(--shadow-2xl);
}

.slider-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: absolute;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
    display: block;
    border-radius: 0;
    filter: none;
    transition: none;
}

.slide.active img {
    animation: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    pointer-events: none;
    z-index: 20;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

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

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-xl);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.dot:hover::after {
    width: 20px;
    height: 20px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

/* Categories Section - Optimized UI/UX */
.categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-block {
    margin-bottom: 0;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.category-block:hover::before {
    transform: scaleX(1);
}

.category-block:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-block:active {
    transform: translateY(-2px);
}

.category-title {
    display: none !important; /* Hidden - not needed, subcategory-title shows category > subcategory */
}
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.category-carousel {
    position: relative;
    overflow: visible;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all var(--transition-base);
}

.category-block:hover .category-carousel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 4px rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

/* Ensure filters stay fixed when carousel is being scrolled */
.category-block {
    position: relative;
}

.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-full);
}

.carousel-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Scroll snap for better UX */
.subcategory-group {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Gradient fade effects on edges */
.category-carousel::before,
.category-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--transition-base);
}

.category-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.category-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.category-carousel.scroll-start::before {
    opacity: 0;
}

.category-carousel.scroll-end::after {
    opacity: 0;
}

.subcategory-filters {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    padding: 8px 4px;
    position: sticky;
    top: 160px;
    z-index: 998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-base);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.2) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(226, 232, 240, 0.4);
}

/* Hide regular subcategory filters when fixed filters are active */
/* Hide regular subcategory filters when fixed ones exist in the same category block */
.category-block:has(.fixed-subcategory-filters-row) > .subcategory-filters {
    display: none !important; /* Hide regular filters when fixed ones exist */
}

/* Hide scrollbar but keep functionality */
.subcategory-filters::-webkit-scrollbar {
    height: 6px;
}

.subcategory-filters::-webkit-scrollbar-track {
    background: transparent;
}

.subcategory-filters::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.subcategory-filters::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Hide regular subcategory filters when fixed filters are active */
body.fixed-filters-active .category-block .subcategory-filters {
    display: none !important; /* Hide regular filters when fixed ones are showing */
}

/* Add shadow when carousel is scrolling or hovered */
.category-carousel:hover ~ .subcategory-filters,
.category-block:hover .subcategory-filters,
.subcategory-filters.scrolling,
.subcategory-filters.hover-active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--surface);
}

.subcategory-filters.scrolling {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.filter-btn {
    padding: 10px 20px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.08;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.filter-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.filter-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    width: 200px;
    height: 200px;
}

.filter-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

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

.subcategory-group {
    min-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 8px;
    flex-shrink: 0;
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subcategory-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 4px;
    padding: 8px 16px;
    position: sticky;
    top: var(--fixed-nav-offset);
    left: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 20;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-left: 3px solid;
    border-image: var(--gradient-primary) 1;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: max-content;
    transform: translateZ(0);
    transition: all var(--transition-base);
    letter-spacing: -0.3px;
}

.subcategory-title::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    animation: slideDown 0.6s ease-out 0.3s forwards;
}

/* Decorative dot before text */
.subcategory-title::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Active/visible title state */
.subcategory-title.title-active {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateZ(0) scale(1.01);
}

.subcategory-category-btn,
.subcategory-subcategory-btn {
    padding: 4px 12px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
    line-height: 1.2;
    position: relative;
}

.subcategory-category-btn:hover,
.subcategory-subcategory-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.subcategory-category-btn:active,
.subcategory-subcategory-btn:active {
    transform: translateY(0);
    background: rgba(99, 102, 241, 0.15);
}

.subcategory-separator {
    margin: 0 4px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    user-select: none;
}

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

.load-more-trigger {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    visibility: hidden;
}

.products-slider {
    position: relative;
}

.products-grid {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

/* Load more button inside products grid - positioned after products */
.products-grid .load-more-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.products-nav.prev {
    left: 8px;
}

.products-nav.next {
    right: 8px;
}

.products-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.products-nav:active {
    transform: translateY(-50%) scale(0.95);
}

@media (min-width: 1200px) {
    .product-item {
        min-width: 220px;
        max-width: 220px;
    }
    
    .products-grid {
        gap: 24px;
    }
}

.product-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
    max-height: none;
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    will-change: transform;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    border-radius: var(--radius-lg);
}

.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.product-item:hover::before {
    opacity: 0.05;
}

.product-item:hover::after {
    opacity: 1;
}

.product-item:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    z-index: 2;
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 280px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 12px;
    display: block;
    margin: 0;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
    vertical-align: middle;
}

.product-item:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.02);
    padding: 10px;
}

/* Product ID Watermark */
.product-image-container {
    position: relative;
    width: 100%;
    display: block;
}

.product-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Product Price Container - For index.html */
.product-price-container {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    justify-content: center;
}

.product-price-normal {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.product-price-discounted {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    text-align: center;
}

.product-price-original {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
    text-align: center;
}

@media (max-width: 768px) {
    .product-price-container {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .product-price-normal {
        font-size: 16px;
    }
    
    .product-price-discounted {
        font-size: 18px;
    }
    
    .product-price-original {
        font-size: 12px;
    }
}

.product-title {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 300;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
}

.category-carousel:hover .carousel-nav {
    opacity: 1;
    pointer-events: all;
}

.carousel-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.carousel-nav:hover::before {
    width: 100px;
    height: 100px;
}

.carousel-nav:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: -28px;
}

.carousel-nav.next {
    right: -28px;
}

.carousel-nav.hidden {
    display: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 48px 32px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .category-block {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .header-container {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .logo h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .categories-nav-carousel-fixed {
        position: fixed !important; /* Force fixed on mobile */
        top: 0 !important; /* At top of page */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0;
        z-index: 1000 !important;
        transform: translateZ(0); /* Hardware acceleration for smooth scrolling */
        -webkit-transform: translateZ(0);
    }
    
    .categories-carousel-wrapper {
        padding: 8px 16px; /* Reduced padding on mobile */
        width: 100%;
        gap: 12px;
    }
    
    .categories-nav-logo {
        height: 32px;
    }
    
    .categories-carousel-wrapper .btn-search-toggle,
    .language-toggle-btn,
    .header-cart-btn {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }
    
    .categories-carousel-wrapper .btn-search-toggle svg,
    .header-cart-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .categories-carousel-wrapper .search-input-wrapper {
        min-width: 300px;
        padding: 10px 14px;
        gap: 8px;
    }
    
    .categories-carousel-wrapper .search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .categories-carousel-wrapper .btn-search-submit,
    .categories-carousel-wrapper .btn-search-close {
        width: 34px;
        height: 34px;
    }
    
    .header-cart-badge {
        font-size: 10px;
        min-width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
        border-width: 2px;
    }
    
    .fixed-subcategory-filters-row {
        padding: 8px 16px; /* Reduced padding on mobile */
        width: 100%;
    }
    
    .header-spacer {
        height: 0; /* Minimized - no space needed */
    }
    
    .category-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .categories-list {
        gap: 4px;
    }
    
    .categories-list a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .header.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* Legacy support - remove if not needed */
    .categories-nav {
        order: 3;
        width: 100%;
        margin-top: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .categories-list {
        gap: 8px;
        padding-bottom: 4px;
    }
    
    .categories-list a {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hero Slider Mobile */
    .hero-slider {
        height: auto;
        border-radius: 0;
        margin-bottom: 20px;
        margin-top: 60px; /* Space for fixed categories nav */
        padding: 0;
    }
    
    .slider-container {
        height: auto;
        border-radius: 0;
    }
    
    .slide img {
        max-height: none;
        border-radius: 0;
        object-fit: cover;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
        padding: 8px 16px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
    
    /* Categories Section Mobile */
    .categories-section {
        padding: 16px 12px 30px;
        gap: 20px;
    }
    
    .category-block {
        padding: 16px 12px;
        margin-bottom: 0;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .category-title::after {
        width: 60px;
    }
    
    /* Fixed Subcategory Filters Mobile */
    .fixed-subcategory-filters-row {
        padding: 8px 12px;
        margin: 0 -12px 12px -12px;
        width: calc(100% + 24px);
        top: 60px; /* Adjust for mobile header */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .category-block:first-child .fixed-subcategory-filters-row {
        border-top: none;
    }
    
    .fixed-subcategory-filters {
        gap: 6px;
    }
    
    .fixed-subcategory-filters .filter-btn.category-name-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .fixed-subcategory-filters .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Filters Mobile */
    .subcategory-filters {
        gap: 8px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        position: sticky;
        top: 65px;
        z-index: 999;
        background: var(--surface);
        padding-top: 8px;
        padding-bottom: 8px;
        border-radius: var(--radius-md);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .subcategory-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-height: 40px;
        touch-action: manipulation;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Carousel Mobile */
    .category-carousel {
        padding: 12px;
        margin-top: 0;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        border-radius: 12px;
    }
    
    .category-carousel::before,
    .category-carousel::after {
        width: 20px;
    }
    
    .carousel-container {
        gap: 16px;
        padding: 8px 4px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 16px);
        gap: 16px;
        padding: 0 8px;
    }
    
    .subcategory-title {
        font-size: 18px;
        margin-bottom: 12px;
        padding: 10px 10px 10px 12px;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    /* Products Grid Mobile */
    .products-grid {
        gap: 12px;
        padding: 4px 0;
    }
    
    .product-item {
        min-width: 160px;
        max-width: 160px;
        min-height: unset;
        max-height: none; /* Remove fixed max-height */
        border-radius: 12px;
        border-width: 1px;
    }
    
    .products-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .products-nav.prev {
        left: 4px;
    }
    
    .products-nav.next {
        right: 4px;
    }
    
    .load-more-btn {
        min-height: auto; /* Don't force height */
        max-height: none;
        border-radius: 12px;
        border-width: 1px;
        padding: 16px;
    }
    
    .product-image {
        min-height: 180px;
        max-height: 220px;
        padding: 6px;
        border-radius: 10px 10px 0 0;
        object-position: center center;
    }
    
    .product-item:hover .product-image {
        padding: 4px;
    }
    
    .product-title {
        display: none;
    }
    
    /* Touch-friendly adjustments */
    .product-item {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .product-item:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .header-container {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .logo {
        margin-left: 0;
        padding-left: 0;
    }
    
    .logo .mini-logo {
        font-size: 16px;
    }
    
    .categories-nav {
        padding: 0 25px;
    }
    
    .categories-nav::before,
    .categories-nav::after {
        width: 25px;
    }
    
    .categories-list a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .categories-section {
        padding: 12px 8px 24px;
        gap: 16px;
    }
    
    .category-block {
        padding: 12px 8px;
        gap: 10px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .fixed-subcategory-filters-row {
        margin: 0 -8px 10px -8px;
        width: calc(100% + 16px);
        padding: 6px 8px;
        top: 55px;
    }
    
    .fixed-subcategory-filters .filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .fixed-subcategory-filters .filter-btn.category-name-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    
    .category-carousel {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
        padding: 10px;
        margin-top: 0;
    }
    
    .carousel-container {
        gap: 12px;
        padding: 6px 2px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 12px);
        gap: 12px;
        padding: 0 6px;
    }
    
    .hero-slider {
        min-height: 200px;
        padding: 8px;
        margin-bottom: 24px;
    }
    
    .slider-container {
        min-height: 200px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 6px;
        padding: 6px 12px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .categories-section {
        padding: 0 8px 24px;
    }
    
    .category-block {
        padding: 0px 8px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    
    .category-title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .category-title::after {
        width: 50px;
    }
    
    .subcategory-filters {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 11px;
        min-height: 36px;
    }
    
    .category-carousel {
        padding: 10px;
        margin-top: 10px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 12px);
        gap: 12px;
        padding: 0 6px;
    }
    
    .subcategory-title {
        font-size: 16px;
        margin-bottom: 10px;
        padding: 8px 8px 8px 10px;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    /* Single column on very small screens */
    .products-grid {
        gap: 8px; /* Reduced gap for smaller screens */
    }
    
    .product-item {
        min-width: 140px;
        max-width: 140px;
        min-height: unset;
        max-height: none; /* Remove fixed max-height */
    }
    
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 8px; /* Reduced gap for smaller screens */
    }
    
    .load-more-btn {
        min-height: auto; /* Don't force height */
        max-height: none;
        padding: 14px;
    }
    
    .product-image {
        min-height: 220px;
        max-height: 260px;
        padding: 6px; /* Reduced from 16px to minimize space */
        object-position: center center;
    }
    
    .product-title {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Load More Button - styled like product-item */
.load-more-btn {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset; /* Remove fixed min-height to allow natural sizing */
    max-height: none; /* Remove fixed max-height to allow natural sizing */
    border: 2px solid var(--border-light);
    position: relative;
    will-change: transform;
    align-items: center;
    justify-content: center;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    border-radius: var(--radius-lg);
}

.load-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.load-more-btn:hover::before {
    opacity: 0.05;
}

.load-more-btn:hover::after {
    opacity: 1;
}

.load-more-btn:hover {
    transform: translateY(-12px) scale(1.03); /* Same hover effect as product-item */
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
    z-index: 2;
}

.load-more-btn > div {
    position: relative;
    z-index: 2;
}

/* Load more button inside products grid - positioned after products */
.products-grid .load-more-btn {
    grid-column: auto; /* Don't span all columns - be like a product item */
    justify-self: stretch; /* Fill grid cell */
    margin: 0; /* Remove margins */
}

/* Products Page Styles */
.products-section {
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-header {
    margin-bottom: 24px;
    display: none; /* Hide products title */
}

.products-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 2px 0;
}

.products-loading,
.products-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 768px) {
    .products-section {
        padding: 16px 20px;
    }
    
    .products-header h2 {
        font-size: 24px;
    }
    
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 12px;
    }
}

/* Products Popup Modal */
.products-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.products-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.products-popup-content {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    max-height: 900px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.products-popup-modal.active .products-popup-content {
    transform: scale(1);
}

.products-popup-header {
    padding: 24px 32px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
}

.products-popup-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.products-popup-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    line-height: 1;
}

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

.products-popup-grid {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    scroll-behavior: smooth;
}

.products-popup-loading {
    padding: 8px; /* Reduced from 20px to minimize space */
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Mobile Responsive for Popup */
@media (max-width: 768px) {
    .products-popup-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .products-popup-header {
        padding: 16px 20px;
    }
    
    .products-popup-header h2 {
        font-size: 20px;
    }
    
    .products-popup-grid {
        padding: 6px; /* Reduced from 16px to minimize space */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .load-more-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header,
    .slider-controls,
    .carousel-nav,
    .filter-btn {
        display: none;
    }
}

    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-surface: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-surface);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Ensure fixed positioning works on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Ensure no parent elements break fixed positioning */
html {
    overflow-x: hidden;
    position: relative;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

/* Header is not fixed - removed fixed positioning */

/* Spacer to prevent content jump - accounts for header and categories carousel */
.header-spacer {
    height: 0; /* Will be set dynamically */
    transition: height var(--transition-base);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.8px;
    position: relative;
}

.logo h1::before {
    content: '📱';
    font-size: 32px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

/* Mini logo for mobile */
.logo .mini-logo {
    display: none;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Separate Fixed Categories Nav Carousel */
.categories-nav-carousel-fixed {
    position: fixed !important;
    top: 0 !important; /* At top of page since header is removed */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* Full width */
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important; /* Top layer since header is removed */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    transform: translate3d(0, 0, 0) !important; /* Force hardware acceleration and fix mobile positioning */
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Mobile-specific fixes */
    -webkit-overflow-scrolling: touch;
}

.categories-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start to align logo on left */
    gap: 16px;
    padding: 8px 32px; /* Reduced padding */
}

.categories-nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.categories-nav-logo-link:hover {
    opacity: 0.8;
}

.categories-nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.categories-carousel-wrapper .btn-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.categories-carousel-wrapper .btn-search-toggle:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Language Toggle Button */
.language-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
}

.language-toggle-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-toggle-text {
    display: block;
    line-height: 1;
}

.categories-carousel-wrapper .search-input-wrapper {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    animation: slideDown 0.3s ease-out;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    visibility: visible;
    opacity: 1;
}

.categories-carousel-wrapper .search-input-wrapper[style*="flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Subcategory Filters Row - Below Categories */
.fixed-subcategory-filters-row {
    display: block; /* Always visible for each category block */
    position: sticky;
    top: 60px; /* Position below fixed categories nav (no hero slider) */
    z-index: 999; /* Above carousel but below fixed nav */
    width: 100%;
    margin: 0 -20px 16px -20px; /* Negative margin to extend to edges, add bottom margin */
    padding: 8px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.category-block:first-child .fixed-subcategory-filters-row {
    border-top: none;
}

.fixed-subcategory-filters {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.fixed-subcategory-filters::-webkit-scrollbar {
    display: none;
}

.fixed-subcategory-filters li {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.fixed-subcategory-filters .filter-btn {
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: block;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}

/* Add same hover effects as category-link */
.fixed-subcategory-filters .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.fixed-subcategory-filters .filter-btn:hover::before {
    left: 100%;
}

.fixed-subcategory-filters .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.fixed-subcategory-filters .filter-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.fixed-subcategory-filters .filter-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.fixed-subcategory-filters .filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.fixed-subcategory-filters .filter-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Category name button - colored button on the left */
.fixed-subcategory-filters .filter-btn.category-name-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    margin-right: 8px;
    flex-shrink: 0;
}

.fixed-subcategory-filters .filter-btn.category-name-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.fixed-subcategory-filters .filter-btn.category-name-btn:active {
    transform: translateY(0);
}

.fixed-subcategory-filters .filter-btn.category-name-btn::before,
.fixed-subcategory-filters .filter-btn.category-name-btn::after {
    display: none; /* Remove default hover effects for category button */
}

.categories-nav-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: inherit; /* Inherit header background */
}

.categories-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.categories-list li {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.categories-list li {
    white-space: nowrap;
}

/* Category Navigation Buttons */
.category-nav-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: var(--surface);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.category-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.category-nav-btn:active {
    transform: scale(0.95);
}

.category-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.categories-list a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: block;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.categories-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.categories-list a:hover::before {
    left: 100%;
}

.categories-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.categories-list a:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.categories-list a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.categories-list a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary-color);
}

.categories-list a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Category hover dropdown for subcategories */
.categories-list li.category-nav-item {
    position: relative;
}

.category-subcategories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
}

.category-subcategories-dropdown .subcategory-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    border-bottom: 1px solid var(--border-light);
}

.category-subcategories-dropdown .subcategory-link:last-child {
    border-bottom: none;
}

.category-subcategories-dropdown .subcategory-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    padding-left: 24px;
}


/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto;
    overflow: hidden;
    background: var(--gradient-primary);
    margin-top: 60px; /* Space for fixed categories nav */
    margin-bottom: 40px;
    border-radius: 0;
    box-shadow: var(--shadow-2xl);
}

.slider-container {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: absolute;
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
    display: block;
    border-radius: 0;
    filter: none;
    transition: none;
}

.slide.active img {
    animation: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    pointer-events: none;
    z-index: 20;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

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

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-xl);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.dot:hover::after {
    width: 20px;
    height: 20px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

/* Categories Section - Optimized UI/UX */
.categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-block {
    margin-bottom: 0;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.category-block:hover::before {
    transform: scaleX(1);
}

.category-block:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-block:active {
    transform: translateY(-2px);
}

.category-title {
    display: none !important; /* Hidden - not needed, subcategory-title shows category > subcategory */
}
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.category-carousel {
    position: relative;
    overflow: visible;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all var(--transition-base);
}

.category-block:hover .category-carousel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 4px rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

/* Ensure filters stay fixed when carousel is being scrolled */
.category-block {
    position: relative;
}

.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    -ms-overflow-style: none;
    position: relative;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-full);
}

.carousel-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Scroll snap for better UX */
.subcategory-group {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Gradient fade effects on edges */
.category-carousel::before,
.category-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--transition-base);
}

.category-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.category-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.category-carousel.scroll-start::before {
    opacity: 0;
}

.category-carousel.scroll-end::after {
    opacity: 0;
}

.subcategory-filters {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    padding: 8px 4px;
    position: sticky;
    top: 160px;
    z-index: 998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-base);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.2) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(226, 232, 240, 0.4);
}

/* Hide regular subcategory filters when fixed filters are active */
/* Hide regular subcategory filters when fixed ones exist in the same category block */
.category-block:has(.fixed-subcategory-filters-row) > .subcategory-filters {
    display: none !important; /* Hide regular filters when fixed ones exist */
}

/* Hide scrollbar but keep functionality */
.subcategory-filters::-webkit-scrollbar {
    height: 6px;
}

.subcategory-filters::-webkit-scrollbar-track {
    background: transparent;
}

.subcategory-filters::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.subcategory-filters::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Hide regular subcategory filters when fixed filters are active */
body.fixed-filters-active .category-block .subcategory-filters {
    display: none !important; /* Hide regular filters when fixed ones are showing */
}

/* Add shadow when carousel is scrolling or hovered */
.category-carousel:hover ~ .subcategory-filters,
.category-block:hover .subcategory-filters,
.subcategory-filters.scrolling,
.subcategory-filters.hover-active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--surface);
}

.subcategory-filters.scrolling {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.filter-btn {
    padding: 10px 20px;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.08;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.filter-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.filter-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    width: 200px;
    height: 200px;
}

.filter-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

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

.subcategory-group {
    min-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 8px;
    flex-shrink: 0;
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subcategory-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 4px;
    padding: 8px 16px;
    position: sticky;
    top: var(--fixed-nav-offset);
    left: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 20;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-left: 3px solid;
    border-image: var(--gradient-primary) 1;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: max-content;
    transform: translateZ(0);
    transition: all var(--transition-base);
    letter-spacing: -0.3px;
}

.subcategory-title::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    animation: slideDown 0.6s ease-out 0.3s forwards;
}

.subcategory-title::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.subcategory-title.title-active {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateZ(0) scale(1.01);
}

.subcategory-category-btn,
.subcategory-subcategory-btn {
    padding: 4px 12px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
    line-height: 1.2;
    position: relative;
}

.subcategory-category-btn:hover,
.subcategory-subcategory-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.subcategory-category-btn:active,
.subcategory-subcategory-btn:active {
    transform: translateY(0);
    background: rgba(99, 102, 241, 0.15);
}

.subcategory-separator {
    margin: 0 4px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    user-select: none;
}

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

.load-more-trigger {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    visibility: hidden;
}

.products-slider {
    position: relative;
}

.products-grid {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

/* Load more button inside products grid - positioned after products */
.products-grid .load-more-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.products-nav.prev {
    left: 8px;
}

.products-nav.next {
    right: 8px;
}

.products-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.products-nav:active {
    transform: translateY(-50%) scale(0.95);
}

@media (min-width: 1200px) {
    .product-item {
        min-width: 220px;
        max-width: 220px;
    }
    
    .products-grid {
        gap: 24px;
    }
}

.product-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
    max-height: none;
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    will-change: transform;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    border-radius: var(--radius-lg);
}

.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.product-item:hover::before {
    opacity: 0.05;
}

.product-item:hover::after {
    opacity: 1;
}

.product-item:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    z-index: 2;
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 280px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 12px;
    display: block;
    margin: 0;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
    vertical-align: middle;
}

.product-item:hover .product-image {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.02);
    padding: 10px;
}

/* Product ID Watermark */
.product-image-container {
    position: relative;
    width: 100%;
    display: block;
}

.product-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Product Price Container - For index.html */
.product-price-container {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    justify-content: center;
}

.product-price-normal {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.product-price-discounted {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    text-align: center;
}

.product-price-original {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
    text-align: center;
}

@media (max-width: 768px) {
    .product-price-container {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .product-price-normal {
        font-size: 16px;
    }
    
    .product-price-discounted {
        font-size: 18px;
    }
    
    .product-price-original {
        font-size: 12px;
    }
}

.product-title {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 300;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
}

.category-carousel:hover .carousel-nav {
    opacity: 1;
    pointer-events: all;
}

.carousel-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.carousel-nav:hover::before {
    width: 100px;
    height: 100px;
}

.carousel-nav:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: -28px;
}

.carousel-nav.next {
    right: -28px;
}

.carousel-nav.hidden {
    display: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 48px 32px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .category-block {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .header-container {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .logo h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .categories-nav-carousel-fixed {
        position: fixed !important; /* Force fixed on mobile */
        top: 0 !important; /* At top of page */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0;
        z-index: 1000 !important;
        transform: translateZ(0); /* Hardware acceleration for smooth scrolling */
        -webkit-transform: translateZ(0);
    }
    
    .categories-carousel-wrapper {
        padding: 8px 16px; /* Reduced padding on mobile */
        width: 100%;
        gap: 12px;
    }
    
    .categories-nav-logo {
        height: 32px;
    }
    
    .categories-carousel-wrapper .btn-search-toggle,
    .language-toggle-btn,
    .header-cart-btn {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }
    
    .categories-carousel-wrapper .btn-search-toggle svg,
    .header-cart-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .categories-carousel-wrapper .search-input-wrapper {
        min-width: 300px;
        padding: 10px 14px;
        gap: 8px;
    }
    
    .categories-carousel-wrapper .search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .categories-carousel-wrapper .btn-search-submit,
    .categories-carousel-wrapper .btn-search-close {
        width: 34px;
        height: 34px;
    }
    
    .header-cart-badge {
        font-size: 10px;
        min-width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
        border-width: 2px;
    }
    
    .fixed-subcategory-filters-row {
        padding: 8px 16px; /* Reduced padding on mobile */
        width: 100%;
    }
    
    .header-spacer {
        height: 0; /* Minimized - no space needed */
    }
    
    .category-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .categories-list {
        gap: 4px;
    }
    
    .categories-list a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .header.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* Legacy support - remove if not needed */
    .categories-nav {
        order: 3;
        width: 100%;
        margin-top: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .categories-list {
        gap: 8px;
        padding-bottom: 4px;
    }
    
    .categories-list a {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hero Slider Mobile */
    .hero-slider {
        height: auto;
        border-radius: 0;
        margin-bottom: 20px;
        margin-top: 60px; /* Space for fixed categories nav */
        padding: 0;
    }
    
    .slider-container {
        height: auto;
        border-radius: 0;
    }
    
    .slide img {
        max-height: none;
        border-radius: 0;
        object-fit: cover;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
        padding: 8px 16px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
    
    /* Categories Section Mobile */
    .categories-section {
        padding: 16px 12px 30px;
        gap: 20px;
    }
    
    .category-block {
        padding: 16px 12px;
        margin-bottom: 0;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .category-title::after {
        width: 60px;
    }
    
    /* Fixed Subcategory Filters Mobile */
    .fixed-subcategory-filters-row {
        padding: 8px 12px;
        margin: 0 -12px 12px -12px;
        width: calc(100% + 24px);
        top: 60px; /* Adjust for mobile header */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .category-block:first-child .fixed-subcategory-filters-row {
        border-top: none;
    }
    
    .fixed-subcategory-filters {
        gap: 6px;
    }
    
    .fixed-subcategory-filters .filter-btn.category-name-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .fixed-subcategory-filters .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Filters Mobile */
    .subcategory-filters {
        gap: 8px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        position: sticky;
        top: 65px;
        z-index: 999;
        background: var(--surface);
        padding-top: 8px;
        padding-bottom: 8px;
        border-radius: var(--radius-md);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .subcategory-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-height: 40px;
        touch-action: manipulation;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Carousel Mobile */
    .category-carousel {
        padding: 12px;
        margin-top: 0;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        border-radius: 12px;
    }
    
    .category-carousel::before,
    .category-carousel::after {
        width: 20px;
    }
    
    .carousel-container {
        gap: 16px;
        padding: 8px 4px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 16px);
        gap: 16px;
        padding: 0 8px;
    }
    
    .subcategory-title {
        font-size: 18px;
        margin-bottom: 12px;
        padding: 10px 10px 10px 12px;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    /* Products Grid Mobile */
    .products-grid {
        gap: 12px;
        padding: 4px 0;
    }
    
    .product-item {
        min-width: 160px;
        max-width: 160px;
        min-height: unset;
        max-height: none; /* Remove fixed max-height */
        border-radius: 12px;
        border-width: 1px;
    }
    
    .products-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .products-nav.prev {
        left: 4px;
    }
    
    .products-nav.next {
        right: 4px;
    }
    
    .load-more-btn {
        min-height: auto; /* Don't force height */
        max-height: none;
        border-radius: 12px;
        border-width: 1px;
        padding: 16px;
    }
    
    .product-image {
        min-height: 180px;
        max-height: 220px;
        padding: 6px;
        border-radius: 10px 10px 0 0;
        object-position: center center;
    }
    
    .product-item:hover .product-image {
        padding: 4px;
    }
    
    .product-title {
        display: none;
    }
    
    /* Touch-friendly adjustments */
    .product-item {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .product-item:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .header-container {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .logo {
        margin-left: 0;
        padding-left: 0;
    }
    
    .logo .mini-logo {
        font-size: 16px;
    }
    
    .categories-nav {
        padding: 0 25px;
    }
    
    .categories-nav::before,
    .categories-nav::after {
        width: 25px;
    }
    
    .categories-list a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .categories-section {
        padding: 12px 8px 24px;
        gap: 16px;
    }
    
    .category-block {
        padding: 12px 8px;
        gap: 10px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .fixed-subcategory-filters-row {
        margin: 0 -8px 10px -8px;
        width: calc(100% + 16px);
        padding: 6px 8px;
        top: 55px;
    }
    
    .fixed-subcategory-filters .filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .fixed-subcategory-filters .filter-btn.category-name-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    
    .category-carousel {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
        padding: 10px;
        margin-top: 0;
    }
    
    .carousel-container {
        gap: 12px;
        padding: 6px 2px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 12px);
        gap: 12px;
        padding: 0 6px;
    }
    
    .hero-slider {
        min-height: 200px;
        padding: 8px;
        margin-bottom: 24px;
    }
    
    .slider-container {
        min-height: 200px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-dots {
        bottom: 12px;
        gap: 6px;
        padding: 6px 12px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .categories-section {
        padding: 0 8px 24px;
    }
    
    .category-block {
        padding: 0px 8px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    
    .category-title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .category-title::after {
        width: 50px;
    }
    
    .subcategory-filters {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 11px;
        min-height: 36px;
    }
    
    .category-carousel {
        padding: 10px;
        margin-top: 10px;
    }
    
    .subcategory-group {
        min-width: calc(100% - 12px);
        gap: 12px;
        padding: 0 6px;
    }
    
    .subcategory-title {
        font-size: 16px;
        margin-bottom: 10px;
        padding: 8px 8px 8px 10px;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    /* Single column on very small screens */
    .products-grid {
        gap: 8px; /* Reduced gap for smaller screens */
    }
    
    .product-item {
        min-width: 140px;
        max-width: 140px;
        min-height: unset;
        max-height: none; /* Remove fixed max-height */
    }
    
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 8px; /* Reduced gap for smaller screens */
    }
    
    .load-more-btn {
        min-height: auto; /* Don't force height */
        max-height: none;
        padding: 14px;
    }
    
    .product-image {
        min-height: 220px;
        max-height: 260px;
        padding: 6px; /* Reduced from 16px to minimize space */
        object-position: center center;
    }
    
    .product-title {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Load More Button - styled like product-item */
.load-more-btn {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset; /* Remove fixed min-height to allow natural sizing */
    max-height: none; /* Remove fixed max-height to allow natural sizing */
    border: 2px solid var(--border-light);
    position: relative;
    will-change: transform;
    align-items: center;
    justify-content: center;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    border-radius: var(--radius-lg);
}

.load-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.load-more-btn:hover::before {
    opacity: 0.05;
}

.load-more-btn:hover::after {
    opacity: 1;
}

.load-more-btn:hover {
    transform: translateY(-12px) scale(1.03); /* Same hover effect as product-item */
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
    z-index: 2;
}

.load-more-btn > div {
    position: relative;
    z-index: 2;
}

/* Load more button inside products grid - positioned after products */
.products-grid .load-more-btn {
    grid-column: auto; /* Don't span all columns - be like a product item */
    justify-self: stretch; /* Fill grid cell */
    margin: 0; /* Remove margins */
}

/* Products Page Styles */
.products-section {
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-header {
    margin-bottom: 24px;
    display: none; /* Hide products title */
}

.products-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 2px 0;
}

.products-loading,
.products-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 768px) {
    .products-section {
        padding: 16px 20px;
    }
    
    .products-header h2 {
        font-size: 24px;
    }
    
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 12px;
    }
}

/* Products Popup Modal */
.products-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.products-popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.products-popup-content {
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    max-height: 900px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.products-popup-modal.active .products-popup-content {
    transform: scale(1);
}

.products-popup-header {
    padding: 24px 32px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
}

.products-popup-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.products-popup-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    line-height: 1;
}

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

.products-popup-grid {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    scroll-behavior: smooth;
}

.products-popup-loading {
    padding: 8px; /* Reduced from 20px to minimize space */
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Mobile Responsive for Popup */
@media (max-width: 768px) {
    .products-popup-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .products-popup-header {
        padding: 16px 20px;
    }
    
    .products-popup-header h2 {
        font-size: 20px;
    }
    
    .products-popup-grid {
        padding: 6px; /* Reduced from 16px to minimize space */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .load-more-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header,
    .slider-controls,
    .carousel-nav,
    .filter-btn {
        display: none;
    }
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    left: 20px; /* Aligned with cart-header left padding */
    bottom: 10px; /* Will be updated dynamically relative to cart-header */
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease; /* Smooth transition when cart opens/closes */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    transform: scale(1.1);
}

.whatsapp-float:active {
    transform: scale(0.95);
}


.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 64px;
        height: 64px;
        left: 15px;
        bottom: 10px; /* Position on left side of cart-panel on mobile */
    }
    
    .whatsapp-float svg {
        width: 38px;
        height: 38px;
    }
}

/* WhatsApp Modal */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-modal.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.whatsapp-modal-content {
    position: relative;
    background: var(--surface, #ffffff);
    border-radius: var(--radius-lg, 12px);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.whatsapp-modal.active .whatsapp-modal-content {
    transform: scale(1) translateY(0);
}

.whatsapp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.whatsapp-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
}

.whatsapp-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--text-secondary, #666);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.whatsapp-modal-close:hover {
    background: var(--background, #f5f5f5);
    color: var(--text-primary, #1a1a1a);
}

.whatsapp-modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whatsapp-modal-info {
    margin: 0 0 8px;
    padding: 12px 16px;
    background: rgba(37, 211, 102, 0.1);
    border-left: 3px solid #25d366;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.5;
}

html[dir="rtl"] .whatsapp-modal-info {
    border-left: none;
    border-right: 3px solid #25d366;
}

.whatsapp-modal-form .form-row-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.whatsapp-modal-form .form-row-inline .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.whatsapp-modal-form .form-group {
    width: 100%;
    margin-bottom: 0;
}

.whatsapp-modal-form .mat-input-wrapper,
.whatsapp-modal-form .mat-select-wrapper {
    position: relative;
    margin-bottom: 0;
}

.whatsapp-modal-form .mat-input,
.whatsapp-modal-form .mat-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-md, 8px);
    background: var(--surface, #ffffff);
    font-size: 15px;
    color: var(--text-primary, #1a1a1a);
    transition: var(--transition-base, all 0.3s ease);
    font-family: inherit;
    box-sizing: border-box;
}

.whatsapp-modal-form .mat-input:focus,
.whatsapp-modal-form .mat-select:focus {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.whatsapp-modal-form .mat-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-secondary, #666);
    pointer-events: none;
    transition: var(--transition-base, all 0.3s ease);
    background: var(--surface, #ffffff);
    padding: 0 4px;
}

.whatsapp-modal-form .mat-input:focus + .mat-label,
.whatsapp-modal-form .mat-input:not(:placeholder-shown) + .mat-label,
.whatsapp-modal-form .mat-select:focus + .mat-label,
.whatsapp-modal-form .mat-select:not([value=""]) + .mat-label {
    top: 0;
    font-size: 12px;
    color: var(--primary-color, #6366f1);
}

.whatsapp-modal-form .mat-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.whatsapp-modal-form .mat-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.whatsapp-modal-form .other-input {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-color, #6366f1);
    border-radius: var(--radius-md, 8px);
    background: var(--surface, #ffffff);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    transition: var(--transition-base, all 0.3s ease);
    font-family: inherit;
    box-sizing: border-box;
    margin-top: 8px;
}

.whatsapp-modal-form .form-row-inline + .other-input {
    margin-top: 0;
}

.whatsapp-modal-form .other-input:focus {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.whatsapp-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-cancel-whatsapp,
.btn-send-whatsapp {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base, all 0.3s ease);
    font-family: inherit;
}

.btn-cancel-whatsapp {
    background: var(--background, #f5f5f5);
    color: var(--text-primary, #1a1a1a);
}

.btn-cancel-whatsapp:hover {
    background: var(--border-color, #e0e0e0);
}

.btn-send-whatsapp {
    background: #25d366;
    color: white;
}

.btn-send-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

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

/* Mobile Responsive for WhatsApp Modal */
@media (max-width: 768px) {
    .whatsapp-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .whatsapp-modal-header {
        padding: 16px 20px;
    }
    
    .whatsapp-modal-title {
        font-size: 18px;
    }
    
    .whatsapp-modal-form {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .whatsapp-modal-form .form-row-inline {
        flex-direction: column;
        gap: 24px;
    }
    
    .whatsapp-modal-form .mat-input,
    .whatsapp-modal-form .mat-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px 20px;
        min-height: 56px;
    }
    
    .whatsapp-modal-form .mat-label {
        left: 20px;
        font-size: 16px;
    }
    
    .whatsapp-modal-form .mat-input:focus + .mat-label,
    .whatsapp-modal-form .mat-input:not(:placeholder-shown) + .mat-label,
    .whatsapp-modal-form .mat-select:focus + .mat-label,
    .whatsapp-modal-form .mat-select:not([value=""]) + .mat-label {
        font-size: 12px;
    }
    
    .whatsapp-modal-form .other-input {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .whatsapp-modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel-whatsapp,
    .btn-send-whatsapp {
        width: 100%;
        padding: 18px 24px;
        font-size: 18px;
        min-height: 56px;
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: var(--shadow-md);
}

html[dir="rtl"] .language-switcher {
    left: auto;
    right: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .categories-carousel-wrapper {
    flex-direction: row-reverse;
}

html[dir="ltr"] {
    direction: ltr;
}

/* Mobile Menu Toggle Styles - Added for mobile categories menu */
@media (max-width: 768px) {
    /* Hide carousel navigation on mobile */
    .category-nav-btn {
        display: none !important;
    }
    
    .categories-nav-container:not(.mobile-menu) {
        display: none !important;
    }
    
    /* Show menu toggle button on mobile */
    .categories-menu-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
        border: 2px solid var(--border-color);
        background: var(--surface);
        color: var(--text-primary);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-base);
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1;
    }
    
    .categories-menu-toggle:hover {
        background: var(--gradient-primary);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .categories-menu-toggle.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .categories-carousel-wrapper {
        position: relative;
    }
    
    /* Mobile dropdown menu */
    .categories-nav-container.mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1001;
        padding: 8px 0;
        animation: slideDown 0.3s ease-out;
    }
    
    .categories-nav-container.mobile-menu.active {
        display: block !important;
    }
    
    .categories-nav-container.mobile-menu .categories-list {
        flex-direction: column;
        gap: 0;
        overflow-x: visible;
        overflow-y: auto;
        max-height: 70vh;
    }
    
    .categories-nav-container.mobile-menu .categories-list li {
        width: 100%;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    .categories-nav-container.mobile-menu .categories-list a {
        width: 100%;
        padding: 16px 20px;
        border-radius: 0;
        display: block;
        font-size: 15px;
    }
    
    .categories-nav-container.mobile-menu .categories-list a:hover {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        transform: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
