/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from modernshop */
    --primary-blue: #0070F4;
    --secondary-orange: #F15B39;
    --text-dark: #3F454C;
    --text-light: #99A1AD;
    --border-color: #F2F3F5;
    --hover-bg: #E5F1FE;
    --white: #FFFFFF;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #FAFAFA;
    padding-top: 100px; /* Account for fixed header + announcement bar */
    overflow-x: clip; /* Use clip instead of hidden to allow zoom */
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Ensure cart sidebar doesn't affect page width */
.cart-sidebar {
    position: fixed !important;
    right: -100% !important;
    top: 0;
    height: 100vh;
    max-width: 400px;
    transition: right 0.3s ease;
    z-index: 9999;
}

.cart-sidebar.active {
    right: 0 !important;
}

/* Scrolling Announcement Bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-orange);
    color: var(--white);
    height: 36px;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Auto-hide header on scroll */
.announcement-bar.header-hidden {
    transform: translateY(-100%);
}

.announcement-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.announcement-text {
    display: inline-block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    margin-right: 100px;
}

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

.announcement-bar:hover .announcement-content {
    animation-play-state: paused;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header - Sticky Navigation */
.header {
    position: fixed;
    top: 36px; /* Below announcement bar */
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: 64px;
    transition: transform 0.3s ease;
}

/* Auto-hide header on scroll */
.header.header-hidden {
    transform: translateY(-100px); /* Move up by announcement + header height */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.category-dropdown-btn:hover {
    background-color: #0060D8;
}

.category-dropdown-btn .arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.category-dropdown.active .arrow {
    transform: rotate(180deg);
}

.category-text {
    display: none;
}

/* modern-style Category Dropdown */
.category-dropdown-modern {
    position: relative;
}

.category-btn-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.category-btn-modern:hover {
    background: var(--hover-bg);
    border-color: var(--primary-blue);
}

.category-btn-modern .material-symbols-outlined {
    font-size: 20px;
}

.category-label {
    font-weight: 600;
}

.category-mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100; /* raise above header and announcement */
    pointer-events: auto;
    /* Enable touch gestures on mobile */
    touch-action: auto;
}

.category-dropdown-modern:hover .category-mega-menu,
.category-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    padding: 12px 0;
    overflow: visible;
}

.category-column {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.category-group {
    overflow: visible;
}

.category-main-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.category-main-item:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.category-group {
    padding: 8px 0;
}

.category-item-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.rotating {
    animation: rotate 1s linear infinite;
}

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

.category-parent {
    position: relative;
}

.category-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Subtle alternating colors for categories */
.category-parent:nth-child(4n+1) .category-parent-link {
    background: linear-gradient(to right, rgba(239, 246, 255, 0.4), transparent);
}

.category-parent:nth-child(4n+2) .category-parent-link {
    background: linear-gradient(to right, rgba(240, 253, 244, 0.4), transparent);
}

.category-parent:nth-child(4n+3) .category-parent-link {
    background: linear-gradient(to right, rgba(254, 242, 242, 0.4), transparent);
}

.category-parent:nth-child(4n+4) .category-parent-link {
    background: linear-gradient(to right, rgba(255, 251, 235, 0.4), transparent);
}

.category-parent-link:hover {
    background: var(--hover-bg);
    color: var(--primary-blue);
}

.category-parent-link .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-gray);
}

.category-parent-link .chevron-icon {
    transition: transform 0.2s ease;
}

/* modern-style: Show submenu on hover to the right */
.category-subcategories {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    margin-left: 4px;
    padding: 8px 0;
    overflow: visible;
    max-height: none;
}

/* Show submenu on parent hover */
.category-parent:hover > .category-subcategories,
/* Also show when hovering the link itself (covers hover landing on link) */
.category-parent-link:hover + .category-subcategories {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ensure submenus are above other header elements */
.category-subcategories {
    z-index: 1101;
    pointer-events: auto;
}

.category-child-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-child-item:hover {
    background: var(--hover-bg);
    color: var(--primary-blue);
}

/* Old dropdown styles (kept for compatibility) */
.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.category-dropdown.active .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-blue);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-dark);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: var(--hover-bg);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-image {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Search Bar */
.header-center {
    flex: 1;
    max-width: 488px;
}

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

.search-bar input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

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

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Header Right - Language & Cart */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.language-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-blue);
}

.language-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Google Translate Icon Styles */
.language-btn .goog-te-gadget-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px !important;
    border: none !important;
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

.lang-text {
    font-weight: 600;
    font-size: 12px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher.active .language-menu,
.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.lang-item:last-child {
    border-bottom: none;
}

.lang-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-blue);
}

.lang-item.active {
    background-color: var(--hover-bg);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Google Translate Widget */
.google-translate-container {
    position: relative;
}

#google_translate_element {
    font-family: 'Roboto', sans-serif;
}

#google_translate_element .goog-te-gadget {
    font-size: 14px !important;
    font-family: 'Roboto', sans-serif !important;
}

#google_translate_element .goog-te-gadget-simple {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    background-color: var(--hover-bg) !important;
    border-color: var(--primary-blue) !important;
}

#google_translate_element .goog-te-menu-value {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
}

#google_translate_element .goog-te-menu-value span:first-child {
    display: none !important;
}

#google_translate_element .goog-te-menu-value span:nth-child(2) {
    display: inline !important;
}

#google_translate_element .goog-te-gadget-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 4px !important;
}

#google_translate_element .goog-te-menu-frame {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
}

/* User Button */
.user-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Menu Dropdown */
.user-menu {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .material-symbols-outlined {
    font-size: 32px;
}

.user-info {
    flex: 1;
}

.user-greeting {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.user-email {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-body {
    padding: var(--spacing-sm);
}

.user-menu-item {
    width: 100%;
    padding: 12px var(--spacing-md);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: var(--text-dark);
    font-size: 14px;
    text-align: left;
}

.user-menu-item:hover {
    background-color: var(--hover-bg);
}

.user-menu-item .material-symbols-outlined,
.user-menu-item svg {
    flex-shrink: 0;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-sm) 0;
}

/* Cart Button */
.track-order-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.track-order-button:hover {
    background-color: var(--hover-bg);
}

.cart-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

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

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-dark);
}

.mobile-menu-nav {
    padding: var(--spacing-md);
}

.menu-item {
    display: block;
    padding: 12px var(--spacing-md);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
    transition: background-color 0.2s;
}

.menu-item:hover,
.menu-item.active {
    background-color: var(--hover-bg);
    color: var(--primary-blue);
}


    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Swiper Custom Styles */
.hero-nav-btn {
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.hero-nav-btn:hover {
    background: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.hero-nav-btn::after {
    font-size: 20px !important;
    color: var(--text-dark) !important;
    font-weight: bold !important;
}

.hero-pagination {
    bottom: 20px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: white !important;
    transform: scale(1.2) !important;
}

.left-pagination {
    bottom: 15px !important;
}

.left-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
}

.left-pagination .swiper-pagination-bullet-active {
    background: white !important;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left-delay {
    animation: fadeInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right-delay {
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-right-delay-2 {
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-right-delay-3 {
    animation: fadeInRight 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .two-column-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .column-right {
        padding: 1.5rem;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .hero-nav-btn {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }

    .hero-nav-btn::after {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .hero-main-cta {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Hero Carousel Responsive Styles */
@media (max-width: 1024px) {
    .carousel-track {
        aspect-ratio: 16 / 9; /* Maintain 16:9 on tablets */
    }
}

@media (max-width: 768px) {
    .carousel-track {
        aspect-ratio: 4 / 3; /* Switch to 4:3 on mobile for better visibility */
    }
    
    .hero-carousel {
        padding: 0; /* Remove padding for full-width on mobile */
        border-radius: 0; /* Remove border radius on mobile */
    }
    
    .carousel-track {
        border-radius: 0;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow .material-symbols-outlined {
        font-size: 24px;
    }
    
    .carousel-arrow.prev {
        left: 8px;
    }
    
    .carousel-arrow.next {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 12px;
    }
    
    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicators .indicator.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        aspect-ratio: 1 / 1; /* Square ratio on small mobile */
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .carousel-arrow .material-symbols-outlined {
        font-size: 20px;
    }
}

/* Info Boxes Section */
.info-boxes-section {
    margin-bottom: var(--spacing-lg);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-box {
    background: var(--white);
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-box .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.info-box h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.info-box p {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.info-box-red {
    border-top: 3px solid #D32F2F;
}

.info-box-red .material-symbols-outlined {
    color: #D32F2F;
}

.info-box-orange {
    border-top: 3px solid var(--secondary-orange);
}

.info-box-orange .material-symbols-outlined {
    color: var(--secondary-orange);
}

@media (min-width: 768px) {
    .info-boxes {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Category Tabs & Filters */
.category-section {
    background: var(--white);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 100px; /* Below header + announcement bar */
    z-index: 100;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-blue);
}

.filter-count {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.quick-filters {
    display: flex;
    gap: var(--spacing-sm);
}

.quick-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.quick-filter-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-blue);
}

.quick-filter-btn .material-symbols-outlined {
    font-size: 18px;
}

.category-tabs {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 20px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.category-tab:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-blue);
}

.category-tab.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-modal.active {
    display: flex;
    opacity: 1;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

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

.filter-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.close-filter-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-filter-modal:hover {
    background-color: var(--hover-bg);
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.filter-group {
    margin-bottom: var(--spacing-xl);
}

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

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: var(--hover-bg);
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.filter-option span {
    font-size: 14px;
    color: var(--text-dark);
}

.filter-modal-footer {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.btn-clear-filter {
    flex: 1;
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-clear-filter:hover {
    background-color: var(--hover-bg);
}

.btn-apply-filter {
    flex: 2;
    padding: 12px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-apply-filter:hover {
    background-color: #0060D8;
}

/* Category Navigation Tabs */
.category-nav-section {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.category-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.category-nav-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.category-nav-tab:hover {
    color: var(--primary-blue);
}

.category-nav-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Category Dropdown Button (Material-UI Style) */
.category-dropdown-wrapper {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.category-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}

.category-dropdown-btn:hover {
    background: rgba(0, 112, 244, 0.04);
    border-color: var(--primary-blue);
}

.category-dropdown-btn .dropdown-icon {
    display: flex;
    align-items: center;
    color: currentColor;
}

.category-dropdown-btn .dropdown-text {
    font-size: 14px;
    font-weight: 500;
}

.category-dropdown-btn .dropdown-arrow {
    display: flex;
    align-items: center;
    margin-left: auto;
    transition: transform 0.2s;
}

.category-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),
                0px 8px 10px 1px rgba(0,0,0,0.14),
                0px 3px 14px 2px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.category-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-item-wrapper {
    position: relative;
}

.category-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.category-dropdown-item:hover {
    background: rgba(0, 112, 244, 0.08);
    color: var(--primary-blue);
}

.category-dropdown-item.active {
    background: var(--hover-bg);
    color: var(--primary-blue);
    font-weight: 500;
}

.category-dropdown-item .chevron-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 16px;
    opacity: 0.6;
    transition: all 0.2s ease;
    color: var(--primary-blue);
}

.category-dropdown-item:hover .chevron-right {
    opacity: 1;
    transform: translateX(4px);
}

/* Submenu for subcategories - Fixed positioning */
.category-submenu {
    position: fixed;
    min-width: 200px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),
                0px 8px 10px 1px rgba(0,0,0,0.14),
                0px 3px 14px 2px rgba(0,0,0,0.12);
    display: none;
    z-index: 10000;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.category-submenu.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.category-submenu-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-submenu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.category-submenu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.category-submenu-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: var(--primary-blue);
    padding-left: 24px;
}

.category-submenu-item.active {
    background: var(--hover-bg);
    color: var(--primary-blue);
    font-weight: 500;
    border-left-color: var(--primary-blue);
}

/* Responsive: Show dropdown below 1280px, hide tabs */
/* Desktop - show tabs */
.category-dropdown-wrapper {
    display: none;
}

.category-nav-tabs {
    display: flex;
}

/* Mobile and below - switch to dropdown */
@media (max-width: 425px) {
    .category-nav-section {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .category-dropdown-wrapper {
        display: block;
        max-width: 1200px;
        margin: 0 auto;
    }

    .category-nav-tabs {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .category-nav-section {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Category Navigation Buttons */
.category-nav-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #007bff;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-nav-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

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

.category-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .category-nav-buttons {
        right: 10px;
    }

    .category-nav-btn {
        width: 35px;
        height: 35px;
    }
}

.category-pagination {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.category-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.2);
}

.category-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Prevent horizontal swiper conflicts */
.category-swiper {
    touch-action: pan-x;
}

.category-sections-swiper {
    touch-action: pan-y;
}

.category-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    /* Enable touch gestures in category sections */
    touch-action: auto;
}

.category-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-section-title {
    font-size: 28px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.category-see-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.2s;
}

.category-see-more:hover {
    gap: 8px;
}

.category-see-more .material-symbols-outlined {
    font-size: 18px;
}

/* Category Section Title Link (modern-style) */
.category-section-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: color 0.2s;
}

.category-section-title-link:hover {
    color: var(--primary-blue);
}

.category-section-title-link:hover .category-section-title::before {
    background-color: var(--secondary-orange);
}

/* Subcategory Chips Container */
.subcategory-chips-container {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.subcategory-chips-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subcategory-chips-container:hover::after {
    opacity: 1;
}

.subcategory-chips {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar by default */
    scrollbar-color: transparent transparent;
    padding-bottom: var(--spacing-sm);
    -webkit-overflow-scrolling: touch;
    /* Use auto to allow browser to handle scrolling and zooming */
    touch-action: auto;
}

.subcategory-chips:hover {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.subcategory-chips:focus-within {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.subcategory-chips::-webkit-scrollbar {
    height: 6px;
    display: none; /* Hide scrollbar by default */
}

.subcategory-chips:hover::-webkit-scrollbar,
.subcategory-chips:focus-within::-webkit-scrollbar {
    display: block; /* Show scrollbar on hover or focus */
}

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

.subcategory-chips::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.subcategory-chips::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-light);
}

/* Subcategory Chip (Pill/Badge Style) */
.subcategory-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subcategory-chip:hover {
    background: var(--hover-bg);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 112, 244, 0.1);
}

.subcategory-chip:active {
    transform: translateY(0);
}

/* Category See More Button Container */
.category-see-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.category-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 1.5px solid var(--primary-blue);
    border-radius: 6px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.category-see-more-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 112, 244, 0.2);
}

.category-see-more-btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s;
}

.category-see-more-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Products Grid */
.products-section {
    padding: var(--spacing-lg) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    grid-auto-rows: auto; /* Allow rows to size to content */
    align-items: start; /* Prevent stretching */
    transition: opacity 0.2s ease;
    /* Enable touch gestures on grid */
    touch-action: auto;
}

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

#categorySections {
    padding: 0 var(--spacing-md);
}

#categorySections .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure category sections take full width */
.category-section-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.gallery-section .container {
    max-width: 100%;
    padding: 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

.gallery-slider {
    position: relative;
    padding: 0;
    width: 100%;
}

.gallerySwiper {
    overflow: visible;
    padding: 10px 0;
    width: 100%;
}

.gallerySwiper .swiper-wrapper {
    align-items: center;
}

.gallerySwiper .swiper-slide {
    width: 220px;
    height: auto;
    opacity: 1;
    transition: all 0.3s ease;
}

.gallerySwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
}

/* Category Swiper (homepage categories) */
.category-swiper {
    padding: 12px 0;
}
.category-swiper .swiper-wrapper {
    align-items: flex-start;
    /* Allow grid-style rows and add vertical spacing between rows */
    flex-wrap: wrap;
    row-gap: 12px;
}
.category-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: stretch; /* make slides fill vertical space so stacked cards align */
}
.category-swiper .swiper-slide .product-card-wrapper {
    width: 100%;
    max-width: none; /* Allow cards to expand on larger screens */
}
.category-swiper .swiper-button-prev,
.category-swiper .swiper-button-next {
    color: #1F2937;
}
.category-swiper .swiper-pagination {
    margin-top: 8px;
    text-align: center;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-image-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.lightbox-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
    color: #1F2937;
}

.lightbox-btn:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 24px;
    color: #1F2937;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    color: #1F2937;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section,
    .category-section {
        padding: 40px 0 60px 0;
    }

    .gallery-title,
    .category-section-title {
        font-size: 22px;
    }

    .gallery-subtitle {
        font-size: 14px;
    }

    .gallerySwiper .swiper-slide {
        width: 180px;
    }

    .gallery-slider {
        padding: 0 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-controls {
        top: 10px;
        right: 10px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Card - modern Style (matching category page) */
.product-card-wrapper {
    width: 100%;
    min-width: 0; /* Prevent overflow */
}

.product-card {
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: none;
    padding: 0;
    /* Use auto to allow all browser zoom behaviors */
    touch-action: auto;
}

/* Only enable hover effects on devices with mouse (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
    }
}

/* Product Image - 1:1 Square Container (modern Style) */
.product-image {
    width: 100%;
    overflow: hidden;
    background: #F3F4F6;
    border: 1px solid #E5E8EA;
    border-radius: 6px;
    margin: 0;
    padding: 0;
    position: relative; /* For absolute positioning of overlay */
    /* Use auto to allow all browser zoom behaviors */
    touch-action: auto;
}

/* Fallback aspect ratio for products without crop data */
.product-image:not([style*="aspect-ratio"]) {
    aspect-ratio: 3 / 4;
}

/* Product ID Overlay (Top-Left) */
/* Responsive typography: uses clamp() to respect user font preferences and zoom */
/* Min (0.5em) allows user to shrink, max (0.75em) caps growth, middle is fluid */
.product-id-overlay {
    position: absolute;
    top: 0.375em;
    left: 0.375em;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: clamp(0.5em, 9px + 0.1cqi, 0.75em);
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    z-index: 10;
    font-family: 'Roboto', monospace;
    letter-spacing: 0.03em;
    pointer-events: none; /* Don't interfere with image clicks */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
    /* Use auto to enable full browser zoom support */
    touch-action: auto;
    /* Ensure images receive touch events */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

/* Only scale images on hover for mouse devices (not touch) */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
}

/* Category-specific: Default aspect for category section thumbnails */
.category-section-wrapper .products-grid .product-card .product-image {
    object-fit: cover;
    background: #F3F4F6;
    border: 1px solid #E5E8EA;
}

/* Fallback only if no inline aspect-ratio */
.category-section-wrapper .products-grid .product-card .product-image:not([style*="aspect-ratio"]) {
    aspect-ratio: 9 / 16;
}

.category-section-wrapper .products-grid .product-card .product-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for narrower screens (targeting 768px width) */
@media (max-width: 768px) {
    .category-section-wrapper .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Allow images to scale but cap the height to the portrait height reference */
    .category-section-wrapper .products-grid .product-card .product-image {
        max-height: 1376px;
    }
}

/* Product Details */
.product-details {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Header - Name and Cart Button */
.product-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

/* Product Info */
.product-name {
    font-size: 14px;
    color: #1F2937;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    font-weight: 400;
    white-space: normal;
    flex: 1;
}

/* Inline Cart Button */
.product-button-inline {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.product-button-inline:hover {
    background: #0060D8;
    transform: scale(1.05);
}

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

.product-button-inline .material-symbols-outlined {
    font-size: 18px;
}

/* Mobile adjustments for inline button */
@media (max-width: 768px) {
    .product-button-inline {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .product-button-inline .material-symbols-outlined {
        font-size: 16px;
    }
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    /* Allow price container to shrink when space is tight so the button stays visible */
    flex: 1 1 0;
    min-width: 0; /* required so flex children can shrink below their content size */
} 

.price-current {
    font-size: 16px;
    font-weight: 600;
    color: #DC2626;
    /* Ensure the numeric price always remains visible and cannot be fully collapsed */
    flex: 0 0 auto;
    min-width: 36px; /* reduced reserve so price takes less horizontal space */
    z-index: 2; /* ensure it sits above badges/buttons if necessary */
} 

/* Product Footer - price and button in same row */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.price-original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Product Footer - price and button in same row */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

/* Product Button - modern Style */
.product-button {
    width: auto;
    padding: 8px 12px;
    background-color: white;
    color: #2563EB;
    border: 1.5px solid #2563EB;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    /* Ensure button stays within the card layout */
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Stronger rules to prevent overlay: apply inside product-card to avoid other contexts overriding */
.product-card .product-footer {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 0 !important;
}

.product-card .product-price {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.product-card .badge-mto,
.product-card .product-button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin-left: 8px !important;
    z-index: 1 !important;
}

@media (max-width: 480px) {
    .product-card .product-footer {
        flex-direction: column !important;
        align-items: flex-start !important; /* prevent full-width stretching */
    }
    .product-card .badge-mto { align-self: flex-start !important; }
    .product-card .product-button { align-self: flex-start !important; max-width: 100%; width: auto !important; }
    /* Allow the price to wrap and remain visible on narrow screens */
    .product-card .product-price {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}


/* Made-to-order badge aligned like the Buy button */
.badge-mto {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    background: #F97316;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* General badges container and styles */
.product-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-mto { background: #F3F4F6; color: #374151; border: 1px solid #E5E7EB; }
.badge-flash { background: #DC2626; color: #ffffff; }
.badge-discount { background: #FEF3C7; color: #92400E; }

@media (max-width: 480px) {
    .badge.low-priority { display: none !important; }
}
    margin-left: 8px;
}

/* Only show button hover on mouse devices */
@media (hover: hover) and (pointer: fine) {
    .product-button:hover {
        background-color: #2563EB;
        color: white;
    }
}

.product-button:active {
    transform: scale(0.98);
}

/* Blog/Article Section */
.blog-section {
    padding: 60px 0;
    background: #F9FAFB;
}

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

.blog-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.view-all-articles {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-all-articles:hover {
    background: #F3F4F6;
    border-color: #0070F4;
    color: #0070F4;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #E5E7EB;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Section Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 0;
    }

    .blog-title {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-image {
        height: 150px;
    }

    .blog-content {
        padding: 16px;
    }

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

@media (max-width: 480px) {
    .blog-section {
        padding: 32px 0;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Footer - Three Column Layout */
.footer {
    background: #FFFFFF;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #E5E7EB;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

/* Footer Sections */
.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.footer-section p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    color: #4B5563;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section .material-symbols-outlined {
    font-size: 20px;
    color: #0070F4;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-section a {
    color: #4B5563;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #0070F4;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
}

.social-link:hover {
    color: #0070F4;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.footer-bottom p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 32px 0 16px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 24px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .social-link {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .footer {
        padding: 24px 0 12px;
    }

    .footer-content {
        gap: 24px;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 12px;
        gap: 6px;
    }

    .footer-section .material-symbols-outlined {
        font-size: 18px;
    }

    .social-link {
        font-size: 12px;
    }
}

/* Responsive Design */
/* Mobile Responsive: Subcategory Chips */
@media (max-width: 480px) {
    .subcategory-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .subcategory-chip {
        padding: 6px 12px;
        font-size: 13px;
    }

    .category-see-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Responsive Grid - modern Style (1-6 columns responsive like related products) */
/* Extra tiny screens - 1 column */
@media (max-width: 359px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    /* Hero carousel height for extra tiny screens */
    .carousel-track {
        height: 100px !important;
    }
}

/* Tiny phones - 2 columns */
@media (min-width: 375px) and (max-width: 479px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Hero carousel height for tiny phones */
    .carousel-track {
        height: 200px !important;
    }
}

/* iPhone SE and similar small screens (375px width) */
@media (min-width: 360px) and (max-width: 390px) {
    .carousel-track {
        height: 120px !important;
    }
}

/* Small phones - 3 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    #categorySections {
        padding: 0 16px;
    }

    /* Hero carousel height for small phones */
    .carousel-track {
        height: 250px !important;
    }

    .product-image,
    .product-image img {
        margin-bottom: 4px;
        /* Use auto to enable full browser zoom */
        touch-action: auto !important;
    }

    /* Adjust product ID overlay positioning on mobile - font-size handled by clamp() */
    .product-id-overlay {
        top: 0.25em;
        left: 0.25em;
    }

    .product-name {
        font-size: 10px;
        margin: 0 4px 2px;
        line-height: 1.2;
    }

    .price-current {
        font-size: 11px;
    }

    .product-price {
        margin: 0 4px 4px;
    }

    .product-button {
        font-size: 10px;
        padding: 4px;
        gap: 2px;
    }

    /* Adjust header to fit all elements */
    .header-container {
        padding: 0 8px;
        gap: 6px;
    }

    .header-left {
        gap: 6px;
        flex-shrink: 0;
    }

    .header-center {
        flex: 1;
        min-width: 0;
        max-width: 250px;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        font-size: 12px;
        padding: 8px 10px 8px 32px;
    }

    /* Make header right more compact */
    .header-right {
        display: flex !important;
        gap: 4px;
        flex-shrink: 0;
    }

    .language-switcher {
        display: none;
    }

    .track-order-button,
    .user-button,
    .cart-button {
        display: flex !important;
        padding: 8px;
    }

    .track-order-button .material-symbols-outlined,
    .user-button .material-symbols-outlined,
    .cart-button .material-symbols-outlined {
        font-size: 20px;
    }

    .user-name {
        display: none !important;
    }

    .cart-badge {
        font-size: 10px;
        padding: 2px 5px;
    }

    .logo-image {
        height: 35px !important;
    }

    .category-btn-modern {
        padding: 8px;
    }

    .category-label {
        display: none;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .category-text {
        display: inline;
    }

    .category-dropdown-btn {
        min-width: 140px;
    }

    .subcategory-chips {
        gap: 10px;
    }
}

/* iPad Air (820px width) - hero carousel height */
@media (min-width: 800px) and (max-width: 834px) {
    .carousel-track {
        height: 273px !important;
    }
}

/* iPad Pro and tablets - hero carousel height */
@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-track {
        height: 341px !important;
    }
}

/* Tablets - 4 columns (like blog section) */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Desktop - 5 columns */
@media (min-width: 1024px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* Large Desktop - 6 columns */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .header-center {
        max-width: 200px;
    }

    .search-bar input {
        font-size: 12px;
    }

    .language-btn .lang-text {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Make category mega menu scrollable on mobile */
    .category-mega-menu {
        max-height: 70vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        touch-action: auto !important;
    }

    .mega-menu-content {
        overflow-y: auto !important;
        touch-action: auto !important;
    }

    /* Enable zoom on product images for mobile - use auto to allow browser zoom */
    .product-card,
    .product-image,
    .product-image img,
    .products-grid {
        touch-action: auto !important;
    }
}

/* iPhone 6/7/8 and similar small screens (375px and below) */
@media (max-width: 480px) {
    /* Enable browser-level zoom on small screens */
    body, html {
        touch-action: auto !important;
        overflow-x: visible !important; /* Allow zoom overflow */
    }

    /* Allow zoom on all content - auto enables pinch-zoom */
    .product-card,
    .product-image,
    .product-image img,
    .products-grid,
    .category-section {
        touch-action: auto !important;
    }

    .header-container {
        padding: 0 8px !important;
        gap: 4px !important;
        justify-content: space-between !important;
    }

    .header-left {
        gap: 4px !important;
        flex-shrink: 0 !important;
        justify-content: flex-start !important;
    }

    .header-center {
        max-width: 120px !important;
        flex: 0 1 120px !important;
        margin: 0 !important;
    }

    .search-bar {
        padding: 6px 8px !important;
        width: 100% !important;
        max-width: 120px !important;
    }

    .search-bar input {
        font-size: 11px;
        padding-left: 28px;
        width: 100%;
    }

    /* Shorter placeholder on mobile */
    .search-bar input::placeholder {
        font-size: 10px;
        opacity: 0.7;
    }

    .search-icon {
        font-size: 18px;
        left: 6px;
    }

    .header-right {
        gap: 4px;
        flex-shrink: 0;
    }

    /* Hide language switcher on very small screens */
    .language-switcher {
        display: none;
    }

    /* Reduce padding for header buttons */
    .track-order-button,
    .user-button,
    .cart-button {
        padding: 6px;
    }

    /* Make icons slightly smaller */
    .track-order-button .material-symbols-outlined,
    .user-button .material-symbols-outlined,
    .cart-button .material-symbols-outlined {
        font-size: 22px;
    }

    /* Adjust cart badge position */
    .cart-badge {
        top: 2px;
        right: 2px;
        font-size: 10px;
        padding: 1px 4px;
    }

    /* Make logo smaller */
    .logo-image {
        height: 32px !important;
    }

    /* Make category button more compact */
    .category-btn-modern {
        padding: 6px 8px;
        font-size: 12px;
    }

    .category-btn-modern .material-symbols-outlined {
        font-size: 20px;
    }

    .category-label {
        display: none;
    }
}

/* Very small screens (iPhone SE, etc - 320px) */
@media (max-width: 375px) {
    .header-center {
        max-width: 100px;
        flex: 0 1 100px;
    }

    .header-right {
        gap: 2px;
    }

    .track-order-button,
    .user-button,
    .cart-button {

        padding: 4px;
    }
}

/* ==========================================
   MAGNIFY MODAL (Mobile Image Zoom)
   ========================================== */

.magnify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.magnify-modal.active {
    display: flex;
}

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

.magnify-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.magnify-close:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 1);
}

.magnify-close .material-symbols-outlined {
    font-size: 24px;
    color: #1F2937;
}

/* Navigation buttons for magnify modal */
.magnify-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

.magnify-nav .material-symbols-outlined {
    font-size: 28px;
    color: #1F2937;
}

.magnify-prev {
    left: 20px;
}

.magnify-next {
    right: 20px;
}

.magnify-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.magnify-video {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: black;
}

/* Hide nav buttons on mobile when only 1 image */
.magnify-nav.hidden {
    display: none;
}

/* Product Navigation Buttons (between products) */
.magnify-product-nav {
    position: absolute;
    top: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.magnify-product-nav:hover {
    background-color: rgb(67, 56, 202);
    transform: scale(1.1);
}

.magnify-product-nav:active {
    transform: scale(0.95);
    background-color: rgb(55, 48, 163);
}

.magnify-product-nav .material-symbols-outlined {
    font-size: 26px;
    color: white;
}

.magnify-product-prev {
    left: 20px;
}

.magnify-product-next {
    right: 20px;
}

/* Mobile optimization for product navigation buttons */
@media (max-width: 768px) {
    .magnify-product-nav {
        width: 50px;
        height: 50px;
        top: 15px;
        box-shadow: 0 3px 15px rgba(79, 70, 229, 0.5);
    }
    
    .magnify-product-nav .material-symbols-outlined {
        font-size: 28px;
    }
    
    .magnify-product-prev {
        left: 10px;
    }
    
    .magnify-product-next {
        right: 10px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .magnify-product-nav {
        width: 45px;
        height: 45px;
        top: 10px;
    }
    
    .magnify-product-nav .material-symbols-outlined {
        font-size: 24px;
    }
    
    .magnify-product-prev {
        left: 8px;
    }
    
    .magnify-product-next {
        right: 8px;
    }
}

.magnify-product-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(79, 70, 229, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

/* Mobile optimization for product counter */
@media (max-width: 768px) {
    .magnify-product-counter {
        top: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .magnify-product-counter {
        top: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }
}

.magnify-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    user-select: none; /* Prevent text selection during swipe */
}

.magnify-container:active {
    cursor: grabbing;
}

.magnify-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: white;
    touch-action: none; /* Allow custom touch handling for zoom/pan */
    cursor: grab;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.magnify-image.zoomed {
    cursor: grabbing;
}

.magnify-product-name {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    text-align: center;
    font-weight: 500;
    padding: 0 20px;
    max-width: 90vw;
}

.magnify-product-name a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.magnify-product-name a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.magnify-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-left: 12px;
    vertical-align: middle;
}

.magnify-cart-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.magnify-cart-button:active {
    transform: scale(0.95);
}

.magnify-cart-button .material-symbols-outlined {
    font-size: 18px;
}

/* Magnify Modal Promotions */
.magnify-promos {
    margin-top: 12px;
    padding: 0 20px;
    max-width: 90vw;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.promo-code {
    /* Currently no styling - just plain text */
    /* To add badge style later, uncomment:*/
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    
}

.promo-separator {
    /* Separator styling */
    opacity: 0.7;
}

/* ==========================================
   PRODUCT NAME TOUCH EFFECT (Blue on Touch)
   ========================================== */

.product-name {
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.product-name a:hover {
    color: var(--primary-blue);
}

/* Blue touch effect - only on touch devices */
@media (hover: none) and (pointer: coarse) {
    .product-name:active {
        color: #2563EB !important;
    }
    
    .product-name a:active {
        color: #2563EB !important;
    }
}

/* Prevent default link-style highlight on touch */
.product-card * {
    -webkit-tap-highlight-color: transparent;
}
