/* Asia Express Food - minimal design */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

/* Cookie banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #eee;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1000;
}
.cookie-banner.show {
    display: flex;
}
.cookie-banner a {
    color: #7dd;
}
.btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    background: #2a2a2a;
    color: #fff;
    border-radius: 4px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Header - two rows like reference */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8e8e8;
}
.header-top {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 101;
}
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}
.logo-block {
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-main {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}
.logo-green {
    color: #2d7d32;
}
.logo-orange {
    color: #ef6c00;
}
.logo-asia {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #2d7d32 0%, #ef6c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-express {
    font-weight: 700;
    font-size: 1.5rem;
    color: #222;
}
.logo-tagline {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
}
.header-utility {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-dropdown {
    position: relative;
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-btn .arrow {
    font-size: 10px;
}
.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 140px;
    z-index: 200;
}
.lang-menu.open {
    display: block;
}
.lang-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}
.lang-menu a:hover {
    background: #f5f5f5;
}
.user-dropdown {
    position: relative;
}
.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.user-btn .arrow {
    font-size: 10px;
}
.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 200;
}
.user-menu.open {
    display: block;
}
.user-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}
.user-menu a:hover {
    background: #f5f5f5;
}
.util-link {
    color: #444;
    text-decoration: none;
    font-size: 14px;
}
.util-link:hover {
    text-decoration: underline;
}
.login-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.icon-person {
    font-size: 1rem;
}

/* ── Hamburger button (mobile only) ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    position: relative;
    z-index: 200;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
}
.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ── Mobile nav overlay ── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
    .mobile-nav-overlay.is-open {
        display: block;
        opacity: 1;
    }
}

/* ── Mobile nav drawer ── */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 1003;
    display: none;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
}
@media (max-width: 768px) {
    .mobile-nav-drawer {
        display: flex;
    }
}
.mobile-nav-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.mobile-nav-close:hover {
    background: #f0f0f0;
    color: #000;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}
.mobile-nav-link {
    display: block;
    padding: 13px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mobile-nav-link:hover {
    background: #fef3e8;
    color: #ef6c00;
    border-left-color: #ef6c00;
}
.mobile-nav-link.active {
    color: #ef6c00;
    border-left-color: #ef6c00;
    background: #fef3e8;
}
.mobile-nav-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}
.mobile-nav-lang {
    display: flex;
    gap: 8px;
    padding: 10px 24px;
}
.mobile-nav-lang-link {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-nav-lang-link:hover,
.mobile-nav-lang-link.active {
    background: #ef6c00;
    color: #fff;
    border-color: #ef6c00;
}

/* Main nav row */
.header-nav {
    background: #fff;
    position: relative;
    z-index: 100;
}
.header-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}
.nav-link:hover {
    color: #ef6c00;
}
.nav-link.active,
.nav-link-products.active {
    color: #ef6c00;
    border-bottom-color: #ef6c00;
}
.nav-item-dropdown {
    position: relative;
}
.nav-link .arrow {
    font-size: 10px;
    margin-left: 2px;
}
.nav-link .arrow.up {
    display: none;
}
.nav-link-products.active .arrow.down {
    display: none;
}
.nav-link-products.active .arrow.up {
    display: inline;
}

/* Mega menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 480px;
    z-index: 150;
}
.mega-menu.open {
    display: block;
}
.mega-menu-inner {
    display: flex;
    min-height: 200px;
}
.mega-menu-left {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    min-width: 220px;
    border-right: 1px solid #eee;
}
.mega-menu-left li {
    margin: 0;
}
.mega-menu-left a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.mega-menu-left a:hover {
    background: #f5f5f5;
    color: #ef6c00;
}
.mega-menu-left li.has-sub.mega-menu-active,
.mega-menu-left li.has-sub.mega-menu-active a {
    background: #eee;
    color: #333;
}
.mega-menu-left li.has-sub.mega-menu-active {
    border-left: 3px solid #ef6c00;
    margin-left: 0;
    padding-left: 0;
}
.mega-menu-left li.has-sub.mega-menu-active a {
    color: #ef6c00;
    padding-left: 13px;
}
.mega-menu-left li.has-sub a {
    font-weight: 500;
}
.sub-arrow {
    color: #999;
    font-size: 18px;
}
.mega-menu-right {
    padding: 12px 16px;
    min-width: 220px;
}
.mega-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.mega-sub-list.show {
    display: block;
}
.mega-sub-list li {
    margin: 0;
}
.mega-sub-list a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.mega-sub-list a:hover {
    color: #ef6c00;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search in nav */
.search-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.search-wrap input {
    padding: 8px 12px;
    border: none;
    width: 180px;
    font-size: 14px;
}
.search-clear {
    display: none;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    line-height: 1;
}
.search-wrap input:not(:placeholder-shown) ~ .search-clear {
    display: block;
}
.search-btn {
    padding: 8px 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    border-left: 1px solid #ddd;
}

/* Legacy header (other pages) */
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #222;
    text-decoration: none;
}
.nav {
    display: flex;
    gap: 20px;
}
.nav a {
    color: #444;
    text-decoration: none;
}
.nav a:hover {
    text-decoration: underline;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-link {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}
.cart-link:hover {
    text-decoration: underline;
}
.badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    background: #c00;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

/* Main */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Page title (home) - hidden on homepage, shown on other pages */
.page-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}
.main > .page-title:first-child {
    display: none; /* Hide redundant title on homepage */
}

/* Hero section: carousel + promo box */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.carousel-block {
    position: relative;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    min-height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.carousel {
    position: relative;
    height: 280px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.25);*/
    pointer-events: none;
}
.carousel-slide.active {
    display: flex;
}
.carousel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
}
.carousel-slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.carousel-heading {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.btn-offers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2d7d32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
}
.btn-offers:hover {
    background: #1b5e20;
}
.btn-arrow {
    font-size: 1.2rem;
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}
.carousel-prev {
    left: 12px;
}
.carousel-next {
    right: 12px;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
}
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    padding: 0;
}
.carousel-dot.active {
    background: #333;
}

.promo-box {
    border: 2px solid #2d7d32;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.promo-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #1b5e20;
}
.promo-image-wrap {
    height: 280px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.promo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.promo-text {
    margin: 0;
    padding: 24px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}
/* Hero (simple variant for other pages) */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 40px;
}
.hero h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 600;
}
.hero p {
    margin: 0;
    color: #666;
}

/* Product range - card size controlled by --product-range-card-min and aspect-ratio */
.product-range {
    --product-range-card-min: 180px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.product-range h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
}
.product-range .product-range-heading-link {
    color: inherit;
    text-decoration: none;
}
.product-range .product-range-heading-link:hover {
    text-decoration: underline;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--product-range-card-min), 1fr));
    gap: 20px;
}
.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    min-height: 100px;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: background .2s, border-color .2s;
}
.category-card:hover {
    background: #eee;
    border-color: #ccc;
}
.category-card .category-name {
    font-weight: 500;
    font-size: 0.95rem;
}
/* Product range category image (if used) */
.category-card .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.category-card.has-image {
    position: relative;
    padding: 0;
    overflow: hidden;
}
.category-card.has-image .category-name {
    display: none;
}

/* Products page */
.products-header {
    margin-bottom: 24px;
}
.products-header h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
}
.product-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
}
.product-card .price {
    font-weight: 600;
    color: #c00;
    margin-bottom: 10px;
}
.product-card .add-cart {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}
.product-card .add-cart:hover {
    background: #eee;
}

/* Products page (assortment style like reference) */
.breadcrumb {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: #06c;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    margin: 0 6px;
    color: #999;
}
.products-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.products-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    flex: 1;
}
.products-cart-link-mobile {
    display: none;
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.products-cart-link-mobile:hover {
    background: #f5f5f5;
}
.cart-icon {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}
.cart-badge-mobile {
    position: absolute;
    top: 0;
    right: 0;
    background: #c00;
    color: #fff;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 5px;
    border: 2px solid #fff;
    transform: translate(25%, -25%);
}
@media (max-width: 768px) {
    .products-cart-link-mobile {
        display: block;
    }
}
.products-notice {
    margin: 0 0 20px;
    padding: 10px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}
/* Mobile: filters bar with toggle button (visible only on small screens) */
.products-filters-bar-mobile {
    display: none;
}
@media (max-width: 768px) {
    .products-filters-bar-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .products-filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        background: #f8f9fa;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        width: auto;
        min-width: 50px;
        flex-shrink: 0;
    }
    .products-search-form {
        flex: 1;
        min-width: 0;
    }
    .products-search-wrap {
        width: 100%;
        display: flex;
        align-items: center;
    }
    .products-search-wrap input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 14px;
        padding: 8px 12px;
    }
    .products-filters-toggle:hover {
        background: #eee;
        border-color: #ddd;
    }
    .products-filters-toggle-icon.hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 24px;
        height: 18px;
        justify-content: space-between;
    }
    .products-filters-toggle-icon.hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .products-filters-toggle:hover .products-filters-toggle-icon.hamburger-menu span {
        background-color: #000;
    }
    /* Hamburger → × animation when filter is open */
    .products-filters-toggle[aria-expanded="true"] .hamburger-menu span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .products-filters-toggle[aria-expanded="true"] .hamburger-menu span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .products-filters-toggle[aria-expanded="true"] .hamburger-menu span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    /* Overlay hidden — not used in expand mode */
    .products-filters-overlay {
        display: none !important;
    }
}
.products-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    /* Completely hidden by default — display:none ensures zero height in grid */
    .products-sidebar {
        display: none;
        position: static;
        width: 100%;
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 6px;
        border: 1px solid #e8e8e8;
        box-shadow: none;
        transform: none;
    }
    /* Expanded state — slide-down animation */
    .products-sidebar.is-open {
        display: block;
        animation: filterSlideDown 0.25s ease;
    }
    @keyframes filterSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Hide close button — hamburger toggles open/close */
    .products-sidebar-close {
        display: none;
    }
}
.products-sidebar {
    position: sticky;
    top: 80px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
}
@media (min-width: 769px) {
    .products-sidebar-close {
        display: none;
    }
    /* Ensure sidebar is always visible on desktop */
    .products-sidebar {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 16px !important;
    }
}
.filter-block {
    margin-bottom: 20px;
}
.filter-block:last-child {
    margin-bottom: 0;
}
.filter-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.filter-list li {
    margin: 0 0 4px;
}
.filter-list a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.filter-list a:hover,
.filter-list a.active {
    color: #ef6c00;
}
.filter-count {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
/* Mobile: Force 2 products per row */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.product-card-v2 {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    position: relative;
}
.product-card-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.product-card-stock-badge--in_stock {
    background: #2d7d32;
    color: #fff;
}
.product-card-stock-badge--low_stock {
    background: #ed6c02;
    color: #fff;
}
.product-card-stock-badge--out_of_stock {
    background: #c62828;
    color: #fff;
}
.product-card-v2:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Brand logo fallback: same as above */
.product-card-image--brand img {
    object-fit: contain;
}
.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}
.product-card-category {
    margin: 0 0 4px;
    font-size: 12px;
    color: #666;
}
.product-card-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.product-card-itemno {
    margin: 0 0 10px;
    font-size: 12px;
    color: #999;
}
.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
.product-card-v2 .wishlist-link {
    font-size: 13px;
    color: #06c;
    text-decoration: none;
}
.product-card-v2 .wishlist-link:hover {
    text-decoration: underline;
}
.cart-control {
    width: 100%;
    min-height: 38px;
}
.product-card-v2 .add-cart {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: #2d7d32;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.product-card-v2 .add-cart:hover {
    background: #1b5e20;
}
.product-card-v2 .add-cart:active {
    transform: scale(0.98);
}
.product-card-v2 .add-cart--disabled,
.product-card-v2 .add-cart:disabled {
    background: #9e9e9e;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
}
.product-card-v2 .add-cart--disabled:hover,
.product-card-v2 .add-cart:disabled:hover {
    background: #9e9e9e;
}
.cart-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.cart-qty-wrap .cart-qty-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    color: #333;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-wrap .cart-qty-btn:hover {
    background: #e0e0e0;
}
.cart-qty-wrap .cart-qty-btn:active {
    background: #d0d0d0;
}
.cart-qty-wrap .cart-qty-num {
    flex: 1 1 auto;
    min-width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.product-card-price {
    margin-top: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #c00;
}
.product-login-form {
    margin-top: 4px;
    display: block;
    width: 100%;
}
.product-login-hint.btn-login-to-see-price {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: #2d7d32;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.product-login-hint.btn-login-to-see-price:hover {
    background: #1b5e20;
}
.product-login-hint.btn-login-to-see-price:active {
    transform: scale(0.98);
}
.products-toolbar {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.per-page {
    font-size: 14px;
    color: #666;
}
.per-page a {
    margin: 0 6px;
    color: #06c;
    text-decoration: none;
}
.per-page a.active {
    font-weight: 600;
    color: #333;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.pagination-label {
    font-size: 14px;
    color: #666;
}
.pagination-page,
.pagination-next {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.pagination-page:hover,
.pagination-next:hover {
    background: #f5f5f5;
}
.pagination-page.active {
    background: #2d7d32;
    color: #fff;
    border-color: #2d7d32;
}
.pagination-next {
    margin-left: 8px;
}

/* Cart page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.cart-table th,
.cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}
.cart-total {
    font-weight: 600;
    font-size: 1.1rem;
}
.cart-empty {
    padding: 40px;
    text-align: center;
    color: #666;
}
.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #06c;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* Cart table – mobile: fit Product, Price, Qty, Subtotal, Remove in one row */
@media (max-width: 768px) {
    .cart-table {
        font-size: 13px;
        display: table;
        table-layout: fixed;
    }
    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1) {
        width: 28%;
        word-break: break-word;
        white-space: normal;
    }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { width: 14%; }
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { width: 22%; min-width: 0; }
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) { width: 16%; }
    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) { width: 20%; }
    .cart-qty-wrap {
        max-width: 100%;
    }
    .cart-qty-wrap .cart-qty-btn {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .cart-qty-wrap .cart-qty-num {
        min-width: 24px;
        font-size: 13px;
    }
    .cart-table .btn-sm.remove-cart {
        padding: 4px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .cart-table th,
    .cart-table td {
        padding: 6px 3px;
        font-size: 12px;
    }
    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1) { width: 26%; }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { width: 14%; }
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { width: 24%; }
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) { width: 14%; }
    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) { width: 22%; }
    .cart-qty-wrap .cart-qty-btn {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .cart-qty-wrap .cart-qty-num {
        min-width: 20px;
        font-size: 12px;
    }
    .cart-table .btn-sm.remove-cart {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* Footer – modern, single row */
.site-footer {
    margin-top: 48px;
    padding: 28px 0;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
    flex-shrink: 0;
}
.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
}
@media (min-width: 1600px) {
    .site-footer__inner {
        max-width: 1600px;
    }
}
.site-footer__logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d7d32;
    text-decoration: none;
}
.site-footer__logo:hover {
    color: #1b5e20;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    margin: 0;
}
.site-footer__nav a {
    padding: 4px 12px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
}
.site-footer__nav a:hover {
    color: #2d7d32;
    background: rgba(45, 125, 50, 0.08);
}
.site-footer__nav a:not(:last-child)::after {
    content: "·";
    margin-left: 12px;
    color: #bbb;
    font-weight: bold;
}
.site-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    width: 100%;
    text-align: center;
}
@media (min-width: 600px) {
    .site-footer__inner {
        justify-content: space-between;
        gap: 20px;
    }
    .site-footer__nav {
        flex: 1;
        justify-content: center;
        padding: 0 16px;
    }
    .site-footer__copy {
        width: auto;
        text-align: right;
    }
}

/* Legacy footer classes (for backward compatibility) */
.footer {
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
    margin-top: 48px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}
.footer .logo {
    display: inline-block;
    margin-bottom: 12px;
}
.footer-nav {
    margin-bottom: 12px;
}
.footer-nav a {
    margin: 0 12px;
    color: #555;
    text-decoration: none;
}
.footer-nav a:hover {
    text-decoration: underline;
}
.copyright {
    margin: 0;
    font-size: 13px;
    color: #777;
}

/* Utility */
.msg {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    background: #e8f5e9;
    color: #2e7d32;
}
.msg.error {
    background: #ffebee;
    color: #c62828;
}

/* Login page */
.login-page {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px 0;
}
.login-page h1 {
    margin: 0 0 20px;
    font-size: 1.5rem;
}
.login-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 500;
}
.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}
.login-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    background: #2d7d32;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}
.login-form button:hover {
    background: #1b5e20;
}
.login-footer {
    margin-top: 20px;
}

/* Responsive: Mobile navigation */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .header-top-inner {
        position: relative;
    }
    .header-utility {
        display: none;
    }
    .header-nav {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .nav-right {
        display: none;
    }
    .logo-block {
        flex: 1;
    }
    .logo-main {
        font-size: 1.25rem;
    }
    .logo-tagline {
        font-size: 0.65rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* Small mobile devices: login-to-see-price button */
@media (max-width: 480px) {
    .product-login-hint.btn-login-to-see-price {
        padding: 8px 10px;
        font-size: 12px;
    }
}
