/* =============================================
   DACSAN NAFARM - MAIN STYLESHEET (PREMIUM REDESIGN)
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1e4620;        /* Deep Premium Forest Green */
    --primary-light: #2d5e30;  /* Vibrant Foliage Green */
    --primary-dark: #122c14;   /* Dark Spruce Green */
    --accent: #d4af37;         /* Warm Gold Accent */
    --accent-light: #e5c158;   /* Soft Gold */
    --red: #c0392b;            /* Rich Crimson Red for sale tags */
    --red-light: #e74c3c;
    --bg: #fdfcf9;             /* Elegant Soft Warm White */
    --bg-white: #ffffff;
    --bg-light: #f4f0e6;       /* Warm Oatmeal Sand */
    --text: #222522;           /* Charcoal with green undertone */
    --text-light: #5a605a;
    --text-muted: #8c958c;
    --border: #e6e2da;         /* Very subtle organic border */
    
    /* Double-layered Premium Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 70, 32, 0.04);
    --shadow: 0 10px 30px -10px rgba(30, 70, 32, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(18, 44, 20, 0.15);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-w: 1200px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    font-family: var(--font);
    font-size: 1rem;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-dark);
    text-align: center;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 18px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.section__header .section__title {
    margin-bottom: 0;
    text-align: left;
    padding-bottom: 0;
}

.section__header .section__title::after {
    left: 0;
    transform: none;
    bottom: -13px;
    width: 80px;
}

.section__more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section__more:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.hide-mobile {
    display: block;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 50px;       /* Pill shape buttons */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.2px;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(30, 70, 32, 0.15);
}

.btn--primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 70, 32, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn--zalo {
    background: #0068ff;
    color: #fff;
    border-color: #0068ff;
    width: 100%;
    margin-top: 10px;
    border-radius: var(--radius);
}

.btn--zalo:hover {
    background: #0054cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.25);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn--block {
    width: 100%;
    margin-top: 10px;
}

/* === HEADER === */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header--sticky {
    position: sticky;
    top: 0;
}

.header__topbar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__phone {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.header__phone:hover {
    color: var(--accent-light);
}

.header__address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 20px;
}

.header__shipping {
    color: var(--accent-light);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.header__main {
    padding: 16px 0;
}

.header__main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header__logo-img:hover {
    transform: scale(1.03);
}

.header__search-toggle {
    display: none;
    padding: 10px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.header__search-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.header__search {
    flex: 1;
    max-width: 550px;
    display: flex;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 50px;       /* Capsule shape search bar */
    transition: var(--transition);
}

.header__search:focus-within {
    border-color: var(--primary-light);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(30, 70, 32, 0.08);
}

.header__search-input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    outline: none;
    font-size: 0.92rem;
    background: transparent;
    color: var(--text);
}

.header__search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: var(--transition);
}

.header__search-btn:hover {
    background: var(--primary-light);
}

.header__cart {
    position: relative;
    padding: 10px;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg-light);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__cart:hover {
    color: #fff;
    background: var(--primary);
    transform: scale(1.05);
}

.header__cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.header__cart-count.bounce {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* === NAV === */
.header__nav {
    background: var(--primary);
    border-top: none;
    border-bottom: none;
}

.header__nav-list {
    display: flex;
    gap: 5px;
}

.header__nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    white-space: nowrap;
}

.header__nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.header__nav-link-wrapper {
    display: flex;
    align-items: center;
}

.header__submenu-toggle {
    display: none;
}

.header__nav-dropdown {
    position: relative;
}

.header__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 50;
    border: 1px solid var(--border);
    border-top: none;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
    .header__nav-dropdown:hover .header__submenu {
        display: block;
    }
}

.header__submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.88rem;
    color: var(--text-light);
    transition: var(--transition);
}

.header__submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    background: var(--bg-light);
    padding: 14px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumbs__item::after {
    content: "•";
    margin-left: 10px;
    color: var(--text-muted);
}

.breadcrumbs__item:last-child::after {
    display: none;
}

.breadcrumbs__item:last-child {
    color: var(--text-muted);
    font-weight: 500;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    background: #000;
}
.slider__container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    text-align: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider__slide.active {
    opacity: 1;
    z-index: 2;
}
.slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.45));
    z-index: 1;
}
.slider__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.slider__slide.active .slider__content {
    transform: translateY(0);
    opacity: 1;
}
.slider__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.slider__subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: rgba(255,255,255,0.95);
}
.slider__cta {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}
.slider__cta:hover {
    background: var(--accent-light) !important;
    border-color: var(--accent-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    user-select: none;
}
.slider__arrow:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}
.slider__arrow--left {
    left: 24px;
}
.slider__arrow--right {
    right: 24px;
}
.slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider__dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* === CATEGORY CARDS === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card__icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--accent);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg-light);
}

.category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card:hover .category-card__icon {
    transform: scale(1.08);
    border-color: var(--primary);
}

.category-card__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.category-card__count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--bg-light);
    padding: 4px 14px;
    border-radius: 20px;
}

/* === PRODUCT GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
}

.product-card__badge--lg {
    font-size: 0.95rem;
    padding: 6px 14px;
}

.product-card__info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.45;
    height: 2.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__name:hover {
    color: var(--primary-light);
}

.product-card__price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 2.5rem;
}

.product-card__price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.product-card__price-sale, .product-card__price-current {
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.btn--add-cart {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-size: 0.88rem;
    margin-top: auto;
}

/* === PROMO BANNER === */
.promo-banner {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.promo-banner__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.promo-banner__text {
    text-align: center;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.promo-banner__text h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 800;
}

.promo-banner__text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Mobile Category Accordion */
.mobile-category-accordion {
    display: none;
}

/* === CATEGORY PAGE === */
.category-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-top: 40px;
    overflow: hidden;
}

/* Inside category page (with sidebar), limit to 3 columns */
.category-page .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-content {
    min-width: 0;    /* Prevent grid blowout */
    overflow: hidden;
}

.category-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    align-self: start;
    border: 1px solid var(--border);
}

.category-sidebar__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.category-sidebar__list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 500;
}

.category-sidebar__list li a:hover, .category-sidebar__list li a.active {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 700;
}

.category-sidebar__list .count {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(30, 70, 32, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-sidebar__sublist {
    padding-left: 15px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.category-sidebar__sublist li a {
    font-size: 0.85rem;
    padding: 8px 10px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.category-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-align: left;
}

.category-header__count {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
}

.category-header__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.category-header__sort select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    outline: none;
}

.category-header__sort select:focus {
    border-color: var(--primary);
}

.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.subcategory-pill {
    padding: 8px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.subcategory-pill:hover, .subcategory-pill.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

/* === PRODUCT DETAIL === */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.product-detail__main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    border: 1px solid var(--border);
}

.product-detail__main-image img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bg-white);
}

.product-detail__gallery {
    max-width: 600px;
}

.product-detail__thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-detail__thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: var(--transition);
}

.product-detail__thumb.active, .product-detail__thumb:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 18px;
    line-height: 1.3;
}

.product-detail__price-block {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-detail__price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
}

.product-detail__price-sale, .product-detail__price-current {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
}

.product-detail__discount {
    display: inline-block;
    margin-left: 12px;
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-detail__short-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.75;
    font-size: 0.98rem;
}

.product-detail__specs {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.product-detail__specs td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.spec-label {
    font-weight: 700;
    color: var(--text-light);
    width: 130px;
}

.in-stock {
    color: var(--primary-light);
    font-weight: 700;
}

.product-detail__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: #fff;
}

.quantity-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.05rem;
    outline: none;
    padding: 0 8px;
    -moz-appearance: textfield;  /* Hide spinners Firefox */
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-detail__badges span {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-tabs {
    margin-top: 50px;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.product-tabs__btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.product-tabs__btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.product-tabs__panel {
    display: none;
    padding: 30px 0;
    font-size: 0.98rem;
    line-height: 1.8;
}

.product-tabs__panel.active {
    display: block;
}

.product-description img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-lg);
    margin: 20px auto !important;
    display: block !important;
    box-shadow: var(--shadow);
}

.related-products {
    margin-top: 60px;
}

/* === CART === */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 35px;
    align-items: start;
    margin-top: 40px;
}

.cart-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.cart-table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-table__product a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-table__product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.cart-table__price {
    font-weight: 600;
    white-space: nowrap;
}

.cart-table__subtotal {
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
}

.cart-table__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.cart-table__remove:hover {
    color: var(--red);
    transform: scale(1.1);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    border: 1px solid var(--border);
}

.cart-summary__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-light);
    gap: 10px;
    flex-wrap: wrap;
}

.cart-summary__row span {
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-summary__row em {
    text-align: right;
    word-break: break-word;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cart-summary__row--total {
    border-bottom: none;
    padding-top: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.cart-summary__row--total strong {
    color: var(--red);
}

/* === CHECKOUT === */
.checkout-page {
    max-width: 760px;
    margin: 40px auto;
}

.checkout-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-light);
}

.required {
    color: var(--red);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    transition: var(--transition);
    background: var(--bg-white);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 70, 32, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-form__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 30px 0 18px;
    color: var(--primary-dark);
}

.checkout-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.checkout-summary th, .checkout-summary td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.checkout-summary th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-dark);
}

.checkout-total td {
    font-size: 1.15rem;
    border-bottom: none;
    padding-top: 15px;
    font-weight: 800;
}

.checkout-total strong {
    color: var(--red);
}

.checkout-note {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}

.alert--error {
    background: #ffeaea;
    border: 1px solid var(--red-light);
    color: var(--red);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-weight: 600;
}

/* === THANK YOU === */
.thankyou {
    text-align: center;
    padding: 60px 0;
}

.thankyou__icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: scalePulse 1.5s infinite;
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.thankyou__title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 900;
}

.thankyou__code {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: var(--bg-light);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--primary-dark);
}

.thankyou__message {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.thankyou__order-summary {
    max-width: 550px;
    margin: 0 auto 40px;
    text-align: left;
}

.thankyou__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state__icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.pagination__link:hover, .pagination__link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination__arrow {
    font-size: 1.3rem;
    font-weight: 700;
}

.pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 44px;
    color: var(--text-muted);
    font-size: 1.1rem;
    user-select: none;
}

/* === FOOTER === */
.footer {
    background: #0f2110;       /* Extra deep forest organic black */
    color: #bfcab9;
    padding: 60px 0 0;
    border-top: 4px solid var(--accent);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer__logo .header__logo-name {
    color: #fff;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #9ab095;
}

.footer__title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: 0.5px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: #9ab095;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer__contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.footer__contact a {
    color: #9ab095;
}

.footer__contact a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #72846f;
}

/* === FLOATING ELEMENTS === */
.zalo-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0068ff;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
    z-index: 99;
    transition: var(--transition);
    animation: zaloFloat 2.5s infinite ease-in-out;
}

.zalo-float img {
    width: 32px;
    height: 32px;
}

.zalo-float:hover {
    transform: scale(1.08);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 104, 255, 0.5);
}

@keyframes zaloFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

.toast {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.92rem;
    z-index: 99999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === NAFARM FEATURES & STRENGTHS === */
.nafarm-features {
    background: var(--primary);
    color: var(--bg-white);
    padding: 80px 0;
    position: relative;
}

.nafarm-features .section__title {
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
}

.nafarm-features__desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.nafarm-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nafarm-features__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nafarm-features__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.nafarm-features__card-title {
    color: var(--accent);
    font-size: 1.15rem;
    font-family: var(--font-heading);
    margin-bottom: 12px;
    font-weight: 700;
}

.nafarm-features__card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 992px) {
    .nafarm-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .nafarm-features__grid {
        grid-template-columns: 1fr;
    }
    .nafarm-features {
        padding: 60px 0;
    }
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.testimonials-section .section__title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-card__author {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.testimonial-card__author strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === PRODUCT CONTACT BANNER === */
.product-contact-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f7f4;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-top: 35px;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(30, 70, 32, 0.05);
}

.product-contact-banner__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-contact-banner__logo-container {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-contact-banner__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-contact-banner__text h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.product-contact-banner__text p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.product-contact-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid var(--accent);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(212,175,55,0.2);
}

.product-contact-banner__btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212,175,55,0.3);
}

/* =============================================
   RESPONSIVE LAYOUT & MOBILE FIXES
   ============================================= */

/* --- Breakpoint 992px: Compact desktop / large tablet --- */
/* Nav bar STAYS VISIBLE. Only grids and side-layouts adapt. */
@media (max-width: 992px) {
    /* Compact nav link padding so all items fit */
    .header__nav-link {
        padding: 14px 14px;
        font-size: 0.85rem;
    }

    /* Product grid: 4 → 3 columns */
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    /* Category page: hide sidebar, full-width grid */
    .category-page {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .category-sidebar {
        display: none;
    }

    /* Product detail: keep 2 columns but limit gallery size */
    .product-detail__grid {
        gap: 30px;
    }

    /* Cart: stack to single column */
    .cart-page {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .cart-summary {
        position: static;
        width: 100%;
    }

    /* Footer: 4 → 2 columns */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* --- Breakpoint 768px: TRUE MOBILE --- */
/* Nav bar hides, hamburger appears, grids go 2-col, etc. */
@media (max-width: 768px) {
    /* Hide address line on small screens */
    .hide-mobile {
        display: none !important;
    }


    /* Compact header */
    .header__topbar-inner {
        padding: 0 8px;
    }
    .header__main-inner {
        gap: 8px;
    }
    .header__logo-img {
        height: 48px;
    }
    .header__main {
        padding: 10px 0;
    }

    /* --- Mobile search: icon toggle + dropdown --- */
    .header__search-toggle {
        display: flex;
        margin-left: auto; /* Push search, cart, and menu toggles to the right */
        flex-shrink: 0;
    }
    .header__search-toggle.search-active {
        background: var(--primary) !important;
        color: #fff !important;
    }
    .header__search-toggle.search-active svg {
        display: none;
    }
    .header__search-toggle.search-active::after {
        content: '✕';
        font-size: 1.2rem;
        font-weight: bold;
        display: block;
        line-height: 1;
    }
    #search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 90; /* Just below header (100) */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #search-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    #menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99; /* Below header (100) to avoid overlaying menu drawer */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .header__search {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        background: var(--bg-white);
        padding: 0;
        box-shadow: 0 8px 24px rgba(30, 70, 32, 0.12);
        border-radius: 50px;
        z-index: 999;
        border: 1px solid rgba(30, 70, 32, 0.15);
        height: 48px;
        align-items: center;
    }
    .header__search.mobile-open {
        display: flex;
    }
    .header__search.mobile-open .header__search-input {
        padding: 0 16px 0 20px;
        height: 100%;
        background: transparent;
        border: none;
    }
    .header__search.mobile-open .header__search-btn {
        height: 100%;
        padding: 0 20px;
        background: var(--primary);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 50px 50px 0;
    }

    /* --- Hamburger menu toggle --- */
    .header__menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: var(--bg-light);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
        border: none;
        z-index: 1001;
        cursor: pointer;
    }
    .header__menu-toggle span {
        width: 20px;
        height: 2px;
    }
    .header__menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .header__menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* --- Slide-out drawer navigation --- */
    .header__nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding-top: 80px;
        overflow-y: auto;
        display: block !important;
    }
    .header__nav.open {
        left: 0;
    }
    .header__nav-list {
        flex-direction: column;
        gap: 0;
    }
    .header__nav-link-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .header__nav-link {
        padding: 16px 24px;
        border-bottom: none;
        flex: 1;
        color: rgba(255, 255, 255, 0.9);
        white-space: normal;
    }
    .header__nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
    .header__submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .header__submenu-toggle svg {
        transition: transform 0.3s ease;
    }
    .header__nav-dropdown.submenu-open .header__submenu-toggle svg {
        transform: rotate(180deg);
    }
    .header__nav-dropdown.submenu-open .header__submenu-toggle {
        color: var(--accent);
    }

    /* Submenu collapsible inside drawer */
    .header__submenu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.15);
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding-left: 20px;
    }
    .header__nav-dropdown.submenu-open .header__submenu {
        display: block;
    }
    .header__submenu li a {
        color: rgba(255, 255, 255, 0.75);
        padding: 10px 20px;
    }
    .header__submenu li a:hover {
        color: #fff;
        background: transparent;
        padding-left: 24px;
    }

    /* --- Hero banner --- */
    .hero {
        padding: 80px 0;
    }
    .hero__title {
        font-size: 2.2rem;
    }
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .hero .btn--primary {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* --- Grids: 2-column for mobile --- */
    /* IMPORTANT: Use .category-page .products-grid to override the 3-col rule */
    .products-grid,
    .category-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .promo-banner__content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* --- Product card mobile polish --- */
    .product-card__info {
        padding: 10px;
    }
    .product-card__name {
        font-size: 0.82rem;
        height: auto;
        min-height: unset;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    /* Stack prices vertically on mobile */
    .product-card__price {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
        align-items: flex-start;
    }
    .product-card__price-old {
        font-size: 0.75rem;
        order: 1;
    }
    .product-card__price-sale, .product-card__price-current {
        font-size: 0.95rem;
        order: 2;
    }
    .btn--add-cart {
        padding: 8px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    /* --- Product detail: stack + constrain image --- */
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .product-detail__gallery {
        max-width: 100%;
    }
    .product-detail__main-image {
        max-height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-detail__main-image img {
        max-height: 400px;
        width: auto;
        margin: 0 auto;
    }
    .product-detail__name {
        font-size: 1.5rem;
    }
    .product-detail__price-block {
        padding: 15px;
    }
    .product-detail__price-sale, .product-detail__price-current {
        font-size: 1.6rem;
    }
    .product-detail__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-selector {
        justify-content: center;
    }

    /* --- Cart: card-style mobile layout --- */
    .cart-table thead {
        display: none;
    }
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        padding: 15px;
        border-bottom: 1px solid var(--border);
        position: relative;
    }
    .cart-table td {
        padding: 4px 0;
        border-bottom: none;
        text-align: left;
    }
    .cart-table__product a {
        gap: 12px;
        font-size: 0.9rem;
    }
    .cart-table__product img {
        width: 60px;
        height: 60px;
    }
    .cart-table__price {
        font-size: 0.9rem;
        padding-left: 72px !important;
    }
    .cart-table__qty {
        padding-left: 72px !important;
    }
    .cart-table__subtotal {
        padding-left: 72px !important;
        font-size: 1rem;
    }
    .cart-table td:last-child {
        position: absolute;
        top: 15px;
        right: 10px;
        width: auto;
    }

    /* --- Subcategory pills: horizontal scroll --- */
    .subcategory-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: none;
    }
    .subcategory-pills::-webkit-scrollbar {
        display: none;
    }
    .subcategory-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* --- Checkout --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .checkout-form {
        padding: 20px;
    }

    /* --- Product contact banner --- */
    .product-contact-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        text-align: center;
    }
    .product-contact-banner__content {
        flex-direction: column;
        gap: 10px;
    }
    .product-contact-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Breakpoint 480px: Small mobiles --- */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero__title {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 12px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    /* Even smaller product detail image */
    .product-detail__main-image,
    .product-detail__main-image img {
        max-height: 300px;
    }
}

/* === MOBILE BOTTOM NAVIGATION === */
.bottom-nav {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 9999;
    padding: 8px 10px env(safe-area-inset-bottom, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 20px;
}
.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 0;
    position: relative;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav__item svg {
    transition: transform 0.2s ease;
}
.bottom-nav__item:hover svg,
.bottom-nav__item.active svg {
    transform: translateY(-2px);
    color: var(--primary);
}
.bottom-nav__item:active { color: var(--primary-dark); }
.bottom-nav__item--call {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff !important;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -26px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    justify-content: center;
    gap: 0;
    font-size: 0;
    border: 3px solid #fff;
    flex-grow: 0;
    flex-basis: 56px;
    animation: phonePulse 2.5s infinite ease-in-out;
}
.bottom-nav__item--call span { display: none; }
.bottom-nav__item--call svg { width: 22px; height: 22px; color: #fff !important; }
.bottom-nav__item--zalo img {
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.bottom-nav__item--zalo:hover img {
    transform: scale(1.1) translateY(-2px);
}
.bottom-nav__cart-badge {
    position: absolute;
    top: -2px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes phonePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* === BUY NOW BUTTON === */
.btn--buy-now {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn--buy-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231,76,60,0.4);
}

/* === STICKY BUY BAR (mobile product detail) === */
.sticky-buy-bar {
    display: none; /* shown on mobile only */
    position: fixed;
    bottom: 66px; /* above bottom nav */
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 15px;
    z-index: 9998;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sticky-buy-bar__price { font-weight: 700; flex-shrink: 0; }
.sticky-buy-bar__sale { color: #e74c3c; font-size: 1.15rem; }
.sticky-buy-bar__actions { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.sticky-buy-bar__actions .btn { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; border-radius: 8px; }

/* === MOBILE RESPONSIVE OVERRIDES === */
@media (max-width: 768px) {
    /* Show bottom nav */
    .bottom-nav { display: flex; }
    
    /* Body padding for bottom nav */
    body { padding-bottom: 90px; }
    
    /* Show sticky buy bar on product pages */
    .sticky-buy-bar { display: flex; bottom: 85px; }
    
    /* Hide floating Zalo on mobile (bottom nav has it) */
    .zalo-float { display: none !important; }
    
    /* Move scroll-top above bottom nav */
    .scroll-top { bottom: 95px; }
    
    /* Product detail image full width */
    .product-detail__main-image {
        margin: 0 -15px;
        border-radius: 0;
        background: #fff;
    }
    .product-detail__main-image img {
        width: 100%;
        max-height: none;
        object-fit: contain;
    }
    
    /* Product detail actions stack on mobile */
    .product-detail__actions {
        flex-wrap: wrap;
    }
    .product-detail__actions .btn--add-cart,
    .product-detail__actions .btn--buy-now {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 12px 8px;
    }
    
    /* Footer padding for bottom nav */
    .footer { padding-bottom: 20px; }
    
    /* Larger touch targets */
    .btn { min-height: 44px; }
    .product-card .btn--add-cart { min-height: 44px; font-size: 0.85rem; }

    /* Mobile Category Accordion */
    .mobile-category-accordion {
        display: block;
        margin-bottom: 25px;
        background: var(--bg-white);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        padding: 16px;
    }
    .mobile-category-accordion__title {
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--primary-dark);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }
    .mobile-category-accordion__list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-category-accordion__item {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--bg);
        transition: var(--transition);
    }
    .mobile-category-accordion__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        cursor: pointer;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--text);
        user-select: none;
    }
    .mobile-category-accordion__icon {
        font-size: 0.75rem;
        color: var(--text-light);
        transition: transform 0.3s ease;
    }
    .mobile-category-accordion__item.active .mobile-category-accordion__icon {
        transform: rotate(180deg);
        color: var(--primary);
    }
    .mobile-category-accordion__item.active {
        border-color: var(--primary-light);
        background: var(--bg-white);
    }
    .mobile-category-accordion__body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-top: 1px solid transparent;
    }
    .mobile-category-accordion__item.active .mobile-category-accordion__body {
        max-height: 1200px;
        border-top-color: var(--border);
    }
    .mobile-category-accordion__sublist {
        padding: 10px 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .mobile-category-accordion__sublist li a {
        display: block;
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        color: var(--text-light);
        transition: var(--transition);
        background: var(--bg);
    }
    .mobile-category-accordion__sublist li a.active {
        color: #fff;
        background: var(--primary);
        font-weight: 700;
    }
    .mobile-category-accordion__sublist li a:hover {
        background: var(--primary-light);
        color: #fff;
    }
}

/* =============================================
   STATIC PAGES STYLE (PREMIUM FORMATTING)
   ============================================= */
.page-content {
    padding: 60px 0 80px 0;
    background-color: var(--bg);
}
.page-content__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.page-content__title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.page-content__body {
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.page-content__body h1,
.page-content__body h2,
.page-content__body h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}
.page-content__body h1 {
    font-size: 1.8rem;
}
.page-content__body h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    line-height: 1.3;
}
.page-content__body h3 {
    font-size: 1.25rem;
}
.page-content__body p {
    margin-bottom: 20px;
    text-align: justify;
}
.page-content__body strong {
    color: var(--primary-dark);
    font-weight: 600;
}
.page-content__body ul {
    margin-bottom: 25px;
    padding-left: 5px;
    list-style-type: none;
}
.page-content__body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.page-content__body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}
.page-content__body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}
.page-content__body ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}
.page-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 30px auto;
    display: block;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.page-content__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.page-content__body th,
.page-content__body td {
    padding: 14px 18px;
    font-size: 0.95rem;
}
.page-content__body th {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.page-content__body tr:nth-child(even) {
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .page-content {
        padding: 40px 0 60px 0;
    }
    .page-content__title {
        font-size: 1.75rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
}

/* === HOMEPAGE COMPACT PRODUCT CARDS === */
.products-grid--compact {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.product-card-compact {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.product-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.product-card-compact__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}
.product-card-compact__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card-compact:hover .product-card-compact__img img {
    transform: scale(1.06);
}
.product-card-compact__name {
    padding: 8px 10px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1rem;
}
.product-card-compact__price {
    padding: 0 10px 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-card-compact__price .price--old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.72rem;
}
.product-card-compact__price .price--sale,
.product-card-compact__price .price--current {
    color: var(--red);
    font-size: 0.88rem;
    font-weight: 800;
}
.home-category-section {
    padding: 30px 0 10px;
}
.home-category-section .section__header {
    margin-bottom: 16px;
}
.home-category-section__more-mobile {
    display: none;
}
@media (max-width: 1024px) {
    .products-grid--compact {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .products-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .product-card-compact__name { font-size: 0.75rem; padding: 6px 8px 3px; }
    .product-card-compact__price { padding: 0 8px 8px; }
    .product-card-compact__price .price--sale,
    .product-card-compact__price .price--current { font-size: 0.8rem; }
    .home-category-section { padding: 20px 0 5px; }
    
    /* Mobile optimization for Category Section Header & More Button */
    .home-category-section .section__header {
        align-items: center;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    .home-category-section .section__header .section__more {
        display: none !important;
    }
    .home-category-section .section__header .section__title {
        font-size: 1.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        padding-bottom: 0;
    }
    .home-category-section .section__header .section__title::after {
        bottom: -9px;
        width: 60px;
    }
    .home-category-section__more-mobile {
        display: block;
        text-align: center;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    .btn-view-all-mobile {
        display: block;
        width: 100%;
        padding: 10px 16px;
        background-color: #f0f7f4;
        color: var(--primary) !important;
        font-weight: 700;
        font-size: 0.88rem;
        border-radius: 8px;
        text-decoration: none;
        border: 1px solid rgba(26, 92, 58, 0.12);
        transition: all 0.2s ease;
    }
    .btn-view-all-mobile:active {
        background-color: #e2f0ea;
    }
}

/* =============================================
   BLOG / NEWS MODULE STYLE
   ============================================= */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}
.blog-card__image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}
.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}
.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card__date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}
.blog-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.blog-card__title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card__title a:hover {
    color: var(--primary);
}
.blog-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.blog-card__readmore {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: padding-left 0.2s;
    align-self: flex-start;
}
.blog-card__readmore:hover {
    padding-left: 5px;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .blog-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card__content {
        padding: 16px;
    }
    .blog-card__title {
        font-size: 1.15rem;
    }
}
/* --- Mobile Category Horizontal Scroll (Shopee style) --- */
@media (max-width: 768px) {
    .mobile-category-scroll,
    .mobile-subcategory-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 0 10px 0;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .mobile-category-scroll::-webkit-scrollbar,
    .mobile-subcategory-scroll::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    
    .mobile-category-scroll__pill,
    .mobile-subcategory-scroll__pill {
        display: inline-block;
        padding: 6px 14px;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-light);
        transition: var(--transition);
        text-decoration: none;
    }
    
    .mobile-category-scroll__pill.active,
    .mobile-subcategory-scroll__pill.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
    }
}

/* === INSTANT AJAX SEARCH === */
.header__search {
    position: relative;
}
.header__search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.header__search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f4f6f4;
    text-decoration: none;
    transition: background 0.15s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: #f7faf7;
}
.search-result-item__img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}
.search-result-item__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.search-result-item__info {
    flex: 1;
    min-width: 0;
}
.search-result-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item__price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}
.search-result-item__price .price--old {
    text-decoration: line-through;
    color: var(--text-muted);
}
.search-result-item__price .price--sale,
.search-result-item__price .price--current {
    color: var(--red);
    font-weight: 700;
}
.search-result-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* === UPGRADED TOAST NOTIFICATION === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: calc(100% - 40px);
    pointer-events: none;
}
.toast-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 92, 58, 0.15);
    color: var(--primary-dark);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}
.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-item__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .header__search-results {
        max-height: 260px;
    }
    .toast-container {
        top: auto;
        bottom: 80px; /* Keep above bottom navigation bar */
        right: 20px;
        left: 20px;
        max-width: none;
        width: auto;
    }
    .toast-item {
        transform: translateY(30px);
    }
    .toast-item.show {
        transform: translateY(0);
    }
}

/* === CALL ACTION SHEET === */
.call-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.call-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.call-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 480px;
    margin: 0 auto;
    z-index: 10001;
}
.call-sheet-overlay.active .call-sheet {
    bottom: 0;
}
.call-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.call-sheet__header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}
.call-sheet__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.call-sheet__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
}
.call-sheet__phone {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.call-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.call-sheet__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-decoration: none;
}
.call-sheet__btn svg, .call-sheet__btn img {
    flex-shrink: 0;
}
.call-sheet__btn--call {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.call-sheet__btn--call:active {
    transform: scale(0.98);
}
.call-sheet__btn--copy {
    background: #f3f4f6;
    color: #374151;
}
.call-sheet__btn--copy:active {
    background: #e5e7eb;
    transform: scale(0.98);
}
.call-sheet__btn--zalo {
    background: #0068ff;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.2);
}
.call-sheet__btn--zalo:active {
    transform: scale(0.98);
}

