/* 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;
}
.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;
}
.logo-block {
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.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;
}
.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;
}

/* Main nav row */
.header-nav {
    background: #fff;
}
.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) */
.page-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Hero section: carousel + promo box */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

.carousel-block {
    position: relative;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    min-height: 280px;
    border-radius: 8px;
    overflow: hidden;
}
.carousel {
    position: relative;
    height: 280px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.carousel-slide.active {
    display: flex;
}
.carousel-content {
    text-align: center;
}
.carousel-heading {
    margin: 0 0 16px;
    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: 3px solid #2d7d32;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.promo-text {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ef6c00;
    line-height: 1.4;
}
.promo-arrow {
    font-size: 24px;
    color: #2d7d32;
    margin-bottom: 12px;
}
.promo-products {
    width: 100%;
    min-height: 80px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-product-placeholder {
    color: #999;
    font-size: 13px;
}

/* 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 */
.product-range h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: background .2s, border-color .2s;
}
.category-card:hover {
    background: #eee;
    border-color: #ccc;
}
.category-name {
    font-weight: 500;
}

/* 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-page-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 600;
}
.products-notice {
    margin: 0 0 20px;
    padding: 10px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}
.products-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
}
.products-sidebar {
    position: sticky;
    top: 80px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
}
.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;
}
.product-card-v2 {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.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: cover;
}
.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);
}
.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;
}
.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;
}

/* Footer */
.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;
}
