/* ============================================================
   FRONTEND – App CSS
   Font: Be Vietnam Pro (local), FontAwesome via vendor_assets
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --site-max-width: 1280px;
    --site-gutter: 16px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    background: #f8f9fb;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

@media (min-width: 1536px) {
    :root { --site-max-width: 1440px; }
}

@media (min-width: 1920px) {
    :root { --site-max-width: 1560px; }
}

/* ============================================================
   HEADER – sticky two-row
   ============================================================ */

/* Wrapper – sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Row 1: white top bar ── */
.header-top-bar { background: #fff; border-bottom: 1px solid #e5e7eb; }
.header-top-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
}

/* Logo */
.site-logo { flex-shrink: 0; }
.site-logo img { height: 52px; display: block; }

/* Search */
.header-search {
    flex: 1;
    display: flex;
    position: relative;
    max-width: 600px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: visible;
    transition: border-color .2s;
}
.header-search:focus-within { border-color: #00a352; }
.header-search input {
    flex: 1;
    padding: 9px 14px;
    border: none;
    outline: none;
    font-size: .95rem;
    background: #f9fafb;
}
.header-search button {
    padding: 0 20px;
    background: linear-gradient(135deg, #006a39, #00e378);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity .2s;
}
.header-search button:hover { opacity: .88; }
.header-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: -2px;
    right: -2px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    z-index: 9500;
    overflow: hidden;
}
.header-search-suggest-list { max-height: 420px; overflow-y: auto; }
.header-search-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    background: #fff;
}
.header-search-suggest-item:last-child { border-bottom: none; }
.header-search-suggest-item:hover { background: #f9fafb; }
.hss-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    background: #fff;
    object-fit: contain;
    flex-shrink: 0;
    padding: 4px;
}
.hss-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.hss-name {
    font-size: .88rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hss-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hss-price {
    font-size: .88rem;
    font-weight: 700;
    color: #dc2626;
}
.hss-price-old {
    font-size: .76rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.header-search-suggest-all {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid #f3f4f6;
    font-size: .84rem;
    font-weight: 700;
    color: #006a39;
    background: #f0fdf4;
    text-align: center;
}
.header-search-suggest-all:hover { background: #dcfce7; }
.header-search-suggest-empty {
    padding: 12px;
    font-size: .85rem;
    color: #6b7280;
}

/* Utilities row */
.header-utils {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Each util item (Hotline, Showroom, Cart) */
.util-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    color: #374151;
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.util-item:hover { background: #f0fdf4; color: #006a39; }

/* Tooltip trigger button reset */
.util-tooltip-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Util tooltip dropdown */
.util-tooltip-wrap { position: relative; }
.util-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    z-index: 9000;
    overflow: hidden;
}
.util-tooltip::before {
    content: '';
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e5e7eb;
}
.util-tooltip::after {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}
.util-tooltip-wrap.open .util-tooltip { display: block; }
.utt-heading {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; font-size: .82rem; font-weight: 700;
    color: #fff; background: linear-gradient(to right, #006a39, #00a352);
    letter-spacing: .03em;
}
.utt-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 14px; border-bottom: 1px solid #f3f4f6;
}
.utt-row:last-child { border-bottom: none; }
.utt-row-icon { color: #00a352; font-size: .85rem; margin-top: 3px; flex-shrink: 0; }
.utt-row-body { display: flex; flex-direction: column; gap: 2px; }
.utt-label { font-size: .76rem; color: #9ca3af; font-weight: 500; }
.utt-value { font-size: .9rem; font-weight: 600; color: #111827; text-decoration: none; }
a.utt-value:hover { color: #006a39; }
.utt-empty { font-size: .82rem; color: #9ca3af; }

.util-icon {
    position: relative;
    font-size: 1.3rem;
    color: #00a352;
    line-height: 1;
}
.util-item:hover .util-icon { color: #006a39; }
.util-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.util-label { font-size: .85rem; font-weight: 700; color: #111827; }
.util-sub   { font-size: .85rem; font-weight: 700; color: #111827; }

/* Cart badge on icon */
.util-cart .util-icon { padding-right: 6px; }
.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: #e53e3e;
    color: #fff;
    border-radius: 9999px;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Auth button */
.util-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #006a39, #00c45e);
    color: #fff;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, box-shadow .2s;
    white-space: nowrap;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(0,163,82,.3);
}
.util-btn:hover { opacity: .88; color: #fff; box-shadow: 0 4px 14px rgba(0,163,82,.45); }

/* ── Row 2: gradient nav ── */
.main-nav {
    background: linear-gradient(to right, #006a39, #00e378);
}
.main-nav .container { display: flex; align-items: center; }

.nav-actions-mobile { display: none; }
.nav-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(0,0,0,.12);
}

@media (max-width: 768px) {
    .nav-quick-link {
        flex: 1;
        justify-content: center;
        padding: 8px 6px;
        min-width: 0;
    }
    .nav-quick-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
.nav-quick-link:hover { background: rgba(0,0,0,.20); }
.nav-quick-link i { opacity: .95; }
.nav-quick-cart { position: relative; padding-right: 14px; }
.nav-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    border: 2px solid rgba(0,0,0,.12);
}
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    transition: background .15s;
}
.nav-item-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-item > a i { opacity: .9; }
.nav-item > a .nav-item-icon i { font-size: 1.56rem; }
.nav-item-icon img { width: 25px; height: 25px; object-fit: contain; display: block; }
.nav-item-text {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
}
.nav-item:hover > a { background: rgba(0,0,0,.12); }
.nav-builder-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.3);
    background: linear-gradient(135deg, #004d28, #006a39 55%, #008a46);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14);
    transition: transform .15s, box-shadow .15s, background .15s;
    flex-shrink: 0;
}
.nav-builder-link i { font-size: 1rem; }
.nav-builder-link:hover {
    background: linear-gradient(135deg, #005a30, #00783f 55%, #00a352);
    box-shadow: 0 6px 18px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.16);
    transform: translateY(-1px);
}

/* Product menu button */
.nav-product-wrap { position: relative; flex-shrink: 0; }
.nav-product-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(0,0,0,.18);
    border: none;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    height: 100%;
}
.nav-product-btn:hover { background: rgba(0,0,0,.28); }
.nav-product-caret { font-size: .7rem; transition: transform .2s; }
.nav-product-wrap:hover .nav-product-caret { transform: rotate(180deg); }
.nav-separator {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.3);
    flex-shrink: 0;
    margin: 0 2px;
}
.nav-product-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    min-width: 230px;
    list-style: none;
    z-index: 500;
    border-radius: 0 0 10px 10px;
    padding: 6px 0;
}
.nav-product-wrap:hover .nav-product-dropdown { display: block; }
.nav-product-dropdown li { position: relative; }
.nav-product-dropdown li + li a { border-top: 1px solid rgba(15, 23, 42, .08); }
.nav-product-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: background .16s ease, color .16s ease, padding-left .16s ease, box-shadow .16s ease;
}
.nav-product-dropdown li a:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, .12), rgba(34, 197, 94, .04));
    color: #006a39;
    padding-left: 20px;
    box-shadow: inset 3px 0 0 #16a34a;
}
.nav-product-dropdown li:hover > .nav-product-submenu { display: block; }
.nav-product-submenu {
    display: none;
    position: absolute;
    top: -6px;
    left: calc(100% - 4px);
    min-width: 230px;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    padding: 6px 0;
    z-index: 510;
}
.nav-product-submenu li + li a { border-top: 1px solid rgba(15, 23, 42, .08); }
.npd-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #00a352;
    font-size: 1rem;
    flex-shrink: 0;
}
.npd-text { flex: 1; min-width: 0; }
.npd-caret { font-size: .7rem; color: #9ca3af; flex-shrink: 0; }
.npd-img {
    width: 20px; height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Dropdown */
.nav-item.has-dropdown { position: relative; }
.nav-item .dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    min-width: 220px;
    list-style: none;
    z-index: 300;
    border-radius: 0 0 10px 10px;
}
.nav-item:hover .dropdown { display: block; }
.nav-item .dropdown li a {
    display: block;
    padding: 9px 18px;
    color: #374151;
    font-size: .88rem;
    transition: background .12s;
}
.nav-item .dropdown li a:hover { background: #f0fdf4; color: #006a39; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px 14px;
}
@media (max-width: 768px) {
    .header-top-bar .container,
    .main-nav .container {
        padding-left: calc(14px + env(safe-area-inset-left));
        padding-right: calc(14px + env(safe-area-inset-right));
    }
    .nav-toggle { display: block; }
    .nav-actions-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 10px;
        flex: 1;
        justify-content: space-between;
        min-width: 0;
    }
    .nav-product-wrap,
    .nav-separator,
    .nav-builder-link { display: none; }
    .nav-list {
        display: none !important;
    }
    .header-top-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .site-logo img { height: 40px; }
    .header-search { max-width: 100%; order: 3; flex-basis: 100%; }
    .header-utils { gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
    .util-item { padding: 8px; border-radius: 10px; }
    .util-text { display: none; }
    .util-btn { padding: 9px 10px; margin-left: 0; }
    .util-btn span { display: none; }
    .main-nav .container { justify-content: flex-start; }
    .util-tooltip {
        left: auto;
        right: 0;
        transform: none;
        min-width: 0;
        width: min(320px, calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        box-sizing: border-box;
    }
    .util-tooltip::before,
    .util-tooltip::after {
        left: auto;
        right: 18px;
        transform: none;
    }
    .util-tooltip .utt-value { overflow-wrap: anywhere; word-break: break-word; }
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 9998;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(84vw, 360px);
    height: 100dvh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.mnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.mnav-title {
    font-weight: 800;
    color: #111827;
}

.mnav-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.mnav-body {
    flex: 1;
    padding: 10px 14px 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mnav-section + .mnav-section { margin-top: 14px; }

.mnav-section-title {
    font-size: .85rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.mnav-section-title-primary {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.mnav-list { list-style: none; }
.mnav-list li { border-bottom: 1px solid #f3f4f6; }
.mnav-list li:last-child { border-bottom: none; }
.mnav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    color: #111827;
}
.mnav-list li a:hover { background: #f3f4f6; }
.mnav-list li.active a { background: #f0fdf4; color: #006a39; }

.mnav-icon { width: 22px; display: inline-flex; align-items: center; justify-content: center; color: #00a352; }
.mnav-icon img { width: 18px; height: 18px; object-fit: contain; }
.mnav-text { font-weight: 600; font-size: .92rem; }

body.mobile-nav-open { overflow: hidden; }
body.mobile-nav-open .mobile-nav-overlay { opacity: 1; pointer-events: auto; }
body.mobile-nav-open .mobile-nav-panel { transform: translateX(0); }
body.mobile-nav-open .mobile-nav-panel { box-shadow: 0 18px 50px rgba(0,0,0,.30); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px; border-radius: 8px; margin: 8px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* ============================================================
   HERO SECTION – 4-zone layout
   ============================================================ */

.hero-section { background: #eef3fb; padding: 12px 0 0; }

/* Grid: [categories 220px] [slider 1fr] [sidebar-banners 248px] */
.hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr 248px;
    grid-template-rows: auto auto;
    gap: 10px;
}

/* ── Category sidebar ── */
.hero-categories {
    grid-column: 1;
    grid-row: 1 / 3;
    background: #fff;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    align-self: start;
    position: relative;
    z-index: 30;
}
.hcat-list { list-style: none; padding: 0; border-radius: 10px; overflow: visible; }
.hcat-item { position: relative; }
.hcat-item + .hcat-item { border-top: 1px solid rgba(15, 23, 42, .07); }
.hcat-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    position: relative;
    transition: background .16s ease, color .16s ease, padding-left .16s ease, box-shadow .16s ease;
    text-decoration: none;
}
.hcat-link:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, .12), rgba(34, 197, 94, .04));
    color: #006a39;
    padding-left: 18px;
    box-shadow: inset 3px 0 0 #16a34a;
}
.hcat-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #00a352; font-size: 1rem;
}
.hcat-icon img { width: 22px; height: 22px; object-fit: contain; }
.hcat-name { flex: 1; }
.hcat-chevron { font-size: .65rem; color: #9ca3af; margin-left: auto; }

/* Fly-out submenu */
.hcat-sub {
    display: none;
    position: absolute;
    left: calc(100% - 2px); top: -1px;
    background: #fff;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(15,23,42,.14);
    border-radius: 0 10px 10px 0;
    z-index: 60;
    padding: 4px 0;
    border-left: 1px solid rgba(15, 23, 42, .06);
}
.hcat-item:hover .hcat-sub { display: block; }
.hcat-sub li a {
    display: block;
    padding: 8px 16px;
    font-size: .84rem;
    color: #374151;
    transition: background .1s;
}
.hcat-sub li a:hover { background: #f0fdf4; color: #006a39; }

/* ── Hero slider ── */
.hero-slider-wrap { grid-column: 2; grid-row: 1; }
.hero-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #dde4ee;
    aspect-ratio: 16/7;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide a { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Empty slide placeholder */
.hero-slide-empty {
    display: flex; align-items: center; justify-content: center;
    background: #e5e7eb; color: #6b7280; font-size: .9rem; text-align: center;
}

/* Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,.8); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .9rem; color: #374151;
    transition: background .15s, color .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.hero-arrow:hover { background: #fff; color: #006a39; }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

/* Dots */
.hero-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 9999px;
    background: rgba(255,255,255,.55); border: none; cursor: pointer;
    transition: background .2s, width .2s;
    padding: 0;
}
.hero-dot.active { background: #fff; width: 22px; }

/* ── Sidebar banners (right 2 stacked) ── */
.hero-sidebar-banners {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-side-item {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #dde4ee;
}
.hero-side-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-side-empty {
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: .8rem; min-height: 80px;
}

/* ── Bottom banners (3 across, span columns 2-3) ── */
.hero-bottom-banners {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-bottom-item {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #dde4ee;
    aspect-ratio: 16/7;
}
.hero-bottom-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bottom-empty {
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: .8rem;
}

.home-mobile-menu {
    display: block;
    background: #eef3fb;
    padding: 14px 0 0;
}
.home-mobile-menu-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.home-mobile-menu-scroll::-webkit-scrollbar { display: none; }
.home-mobile-menu-item {
    width: 118px;
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 16px;
    background: transparent;
    color: #111827;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    border: none;
    scroll-snap-align: start;
    transition: transform .18s ease, background-color .18s ease;
}
.home-mobile-menu-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .28);
}
.home-mobile-menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    color: #00a352;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.home-mobile-menu-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.home-mobile-menu-name {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.28;
    min-height: 2.56em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 190px 1fr 210px; }
}
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero-categories { grid-row: auto; display: none; } /* hide on mobile */
    .hero-slider-wrap { grid-column: 1; grid-row: 1; }
    .hero-sidebar-banners { grid-column: 1; grid-row: 2; flex-direction: row; }
    .hero-bottom-banners { grid-column: 1; grid-row: 3; grid-template-columns: repeat(3,1fr); }
    .hero-section { padding: 12px 0 0; }
    .home-mobile-menu-scroll {
        gap: 10px;
        padding: 2px 0 6px;
    }
    .home-mobile-menu-item {
        width: 92px;
        min-width: 92px;
        gap: 8px;
        padding: 10px 8px;
        border-radius: 14px;
    }
    .home-mobile-menu-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 1.35rem;
    }
    .home-mobile-menu-icon img {
        width: 28px;
        height: 28px;
    }
    .home-mobile-menu-name {
        font-size: .78rem;
        line-height: 1.25;
        min-height: 2.5em;
    }
    .fs-section { margin-top: 16px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 40px 0; }
.section-title {
    font-size: 1.5rem; font-weight: 700; color: #1a56db;
    margin-bottom: 24px; padding-bottom: 8px;
    border-bottom: 2px solid #1a56db;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #fff; border-radius: 12px; padding: 16px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .2s;
    text-align: center; font-size: .88rem; font-weight: 500; color: #374151;
}
.category-card:hover { box-shadow: 0 4px 16px rgba(26,86,219,.15); color: #1a56db; }
.category-card img { width: 56px; height: 56px; object-fit: contain; }

/* ============================================================
   PRODUCT GRID & CARD
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden;
    position: relative; transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(26,86,219,.14); }
.badge {
    position: absolute; top: 8px; right: 8px; z-index: 1;
    padding: 2px 8px; border-radius: 9999px; font-size: .75rem; font-weight: 600;
}
.badge-sale { background: #ef4444; color: #fff; }
.badge-hot  { background: #f59e0b; color: #fff; top: 8px; left: 8px; right: auto; }
.product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info { padding: 12px; }
.product-name { font-size: .9rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.product-name a:hover { color: #1a56db; }
.price-sale    { color: #ef4444; font-size: 1.05rem; font-weight: 700; }
.price-original { text-decoration: line-through; color: #9ca3af; font-size: .82rem; margin-left: 4px; }
.btn-add-cart {
    width: 100%; margin-top: 8px; padding: 8px;
    background: linear-gradient(135deg, #006a39, #00c45e); color: #fff; border: none; border-radius: 8px;
    cursor: pointer; font-size: .85rem; transition: background .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0, 163, 82, .25);
}
.btn-add-cart:hover { background: linear-gradient(135deg, #005a30, #00a352); box-shadow: 0 4px 14px rgba(0, 163, 82, .35); }
.btn-add-cart i,
.btn-card-add i,
.fs-btn-add i,
.hcs-btn-add i {
    pointer-events: none;
}

@media (max-width: 640px) {
    .section { padding: 26px 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-info { padding: 10px; }
    .product-name { font-size: .86rem; }
    .price-sale { font-size: 1rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; font-size: .9rem;
    font-weight: 500; cursor: pointer; border: none; transition: all .2s;
    text-decoration: none;
}
.btn-primary  { background: linear-gradient(to right,#006a39,#00a352); color: #fff; }
.btn-primary:hover  { background: linear-gradient(to right,#004d28,#007a3d); }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-outline  { background: transparent; color: #006a39; border: 1.5px solid #006a39; }
.btn-outline:hover  { background: #f0fdf4; }
.btn-sm       { padding: 5px 10px; font-size: .8rem; }
.btn-lg       { padding: 12px 24px; font-size: 1rem; }
.btn-block    { width: 100%; justify-content: center; }
.btn-info     { background: #006a39; color: #fff; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid #e5e7eb; margin-bottom: 14px; }
.breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    list-style: none; padding: 10px 0; font-size: .84rem; color: #6b7280;
}
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #d1d5db; }
.breadcrumb a { color: #006a39; }
.breadcrumb a:hover { text-decoration: underline; }

.cat-header { padding: 20px 0 8px; }
.cat-title { font-size: 1.4rem; font-weight: 700; color: #111827; }
.cat-desc  { font-size: .88rem; color: #6b7280; margin-top: 6px; }

.cat-products { padding: 8px 0 40px; }

/* ── Top filter bar ── */
.cat-topbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
    margin-bottom: 14px; padding: 12px 16px;
    background: #fff; border-radius: 10px; border: 1px solid #e5e7eb;
}
.cat-topbar-group {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cat-topbar-label {
    font-size: .8rem; font-weight: 600; color: #374151; white-space: nowrap;
}

/* ── Brand row (full width, scrollable) ── */
.cat-brand-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; padding: 10px 16px;
    background: #fff; border-radius: 10px; border: 1px solid #e5e7eb;
    overflow: hidden;
    flex-wrap: nowrap;
}
.cat-brand-row-label {
    font-size: .82rem; font-weight: 700; color: #374151;
    white-space: nowrap; flex-shrink: 0;
}
.cat-brand-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    flex-wrap: nowrap;
    scrollbar-width: thin; scrollbar-color: #d1d5db transparent;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.cat-brand-scroll::-webkit-scrollbar { height: 4px; }
.cat-brand-scroll::-webkit-scrollbar-track { background: transparent; }
.cat-brand-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.cat-brand-navs { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cat-brand-nav {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #006a39;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, border-color .12s, color .12s;
}
.cat-brand-nav:hover { background: #f0fdf4; border-color: #006a39; }
.cat-brand-item {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 6px 12px; border-radius: 8px; min-width: 64px; min-height: 44px;
    border: 1.5px solid #e5e7eb; cursor: pointer; user-select: none;
    background: #f9fafb; color: #374151; transition: all .15s;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.cat-brand-item input[type="checkbox"] { display: none; }
.cat-brand-logo {
    height: 32px; width: auto; max-width: 80px;
    object-fit: contain; display: block;
}
.cat-brand-text {
    font-size: .8rem; font-weight: 500; white-space: nowrap;
}
.cat-brand-item:hover { border-color: #006a39; background: #f0fdf4; }
.cat-brand-item.active { border-color: #006a39; background: #f0fdf4; box-shadow: 0 0 0 1px #006a39 inset; }
.cat-brand-item.active .cat-brand-text { color: #006a39; font-weight: 700; }

/* Price range */
.cat-price-range { display: flex; align-items: center; gap: 6px; }
.cat-price-input {
    width: 110px; padding: 5px 9px; border: 1.5px solid #d1d5db;
    border-radius: 8px; font-size: .82rem; outline: none;
    transition: border-color .15s;
}
.cat-price-input:focus { border-color: #006a39; }
.cat-price-sep { font-size: .85rem; color: #9ca3af; }
.cat-price-btn {
    padding: 5px 12px; background: #006a39; color: #fff;
    border: none; border-radius: 8px; font-size: .82rem; cursor: pointer;
    transition: background .15s;
}
.cat-price-btn:hover { background: #00a352; }

/* Toggle checkboxes / radio */
.cat-topbar-toggles { gap: 6px; }
.cat-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px; font-size: .8rem;
    border: 1.5px solid #d1d5db; cursor: pointer; user-select: none;
    background: #f9fafb; color: #374151; transition: all .15s;
}
.cat-toggle input { display: none; }
.cat-toggle:hover { border-color: #006a39; color: #006a39; background: #f0fdf4; }
.cat-toggle.active { border-color: #006a39; background: #006a39; color: #fff; }

/* Sort + count right-aligned */
.cat-topbar-right {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.cat-count { font-size: .88rem; color: #6b7280; white-space: nowrap; }
.cat-sort-select {
    padding: 6px 10px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: .85rem; outline: none; cursor: pointer;
}
.cat-sort-select:focus { border-color: #006a39; }

/* ── Active filter chips ── */
.cat-active-filters {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.caf-label { font-size: .8rem; font-weight: 600; color: #374151; }
.caf-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px; font-size: .8rem;
    background: #dcfce7; color: #166534; border: 1px solid #bbf7d0;
    text-decoration: none; transition: background .15s;
}
.caf-chip span { font-size: .9rem; font-weight: 700; color: #166534; }
.caf-chip:hover { background: #bbf7d0; }
.caf-clear {
    font-size: .8rem; color: #dc2626; text-decoration: underline;
    cursor: pointer; margin-left: 4px;
}
.caf-clear:hover { color: #b91c1c; }

/* ── 2-column layout ── */
.cat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}
.cat-main-full { grid-column: 1 / -1; }

/* ── Sidebar ── */
.cat-sidebar { position: sticky; top: 80px; }
.cat-sidebar-title {
    font-size: .95rem; font-weight: 700; color: #fff; padding: 10px 14px;
    background: linear-gradient(to right, #006a39, #00a352);
    border-radius: 10px 10px 0 0; margin-bottom: 0;
}
.cat-filter-grid { display: block; }
.cat-filter-group {
    border: 1px solid #e5e7eb; border-top: none;
    background: #fff;
}
.cat-filter-group:last-child { border-radius: 0 0 10px 10px; }
.cat-filter-mobile { display: none; }
.cat-attr-select {
    width: 100%;
    height: 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: .85rem;
    padding: 0 10px;
    outline: none;
}
.cat-attr-select:focus { border-color: #006a39; box-shadow: 0 0 0 3px rgba(0,106,57,.12); }
.cat-filter-mobile-title { font-size: .8rem; font-weight: 800; color: #111827; margin-bottom: 6px; }
.cat-filter-desktop { display: block; }
.cat-filter-title {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; font-size: .88rem; font-weight: 600; color: #111827;
    background: none; border: none; cursor: pointer; text-align: left;
    border-top: 1px solid #e5e7eb; transition: color .15s;
}
.cat-filter-title:hover { color: #006a39; }
.cat-filter-arrow { font-size: .7rem; color: #9ca3af; transition: transform .2s; }
.cat-filter-group.collapsed .cat-filter-arrow { transform: rotate(-90deg); }
.cat-filter-list {
    list-style: none; padding: 0 14px 10px; margin: 0;
    max-height: 260px; overflow-y: auto;
}
.cat-filter-group.collapsed .cat-filter-list { display: none; }
.cat-filter-item {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: .85rem; color: #374151;
    cursor: pointer; user-select: none; transition: color .15s;
}
.cat-filter-item input[type="checkbox"] { display: none; }
.cat-fi-check {
    width: 16px; height: 16px; border: 1.5px solid #d1d5db;
    border-radius: 4px; flex-shrink: 0; transition: all .15s;
    position: relative;
}
.cat-filter-item.checked .cat-fi-check {
    background: #006a39; border-color: #006a39;
}
.cat-filter-item.checked .cat-fi-check::after {
    content: ''; position: absolute; left: 4px; top: 1px;
    width: 5px; height: 9px; border: 2px solid #fff;
    border-left: none; border-top: none; transform: rotate(45deg);
}
.cat-filter-item:hover { color: #006a39; }
.cat-filter-item:hover .cat-fi-check { border-color: #006a39; }

/* Outline small button */
.btn-outline-sm {
    display: inline-block; margin-top: 12px; padding: 7px 18px;
    border: 1.5px solid #006a39; color: #006a39; border-radius: 8px;
    font-size: .85rem; text-decoration: none; transition: all .15s;
}
.btn-outline-sm:hover { background: #006a39; color: #fff; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-sidebar { position: static; }
    .cat-topbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }
    .cat-topbar-group { width: 100%; }
    .cat-price-range { width: 100%; }
    .cat-price-input { width: 100%; flex: 1; min-width: 0; }
    .cat-price-btn { flex: 0 0 auto; }
    .cat-topbar-toggles {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .cat-toggle { justify-content: center; }
    .cat-topbar-right {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
    }
    .cat-count { justify-self: start; }
    .cat-sort-select { width: 100%; }
    .cat-brand-row { padding: 10px 12px; gap: 10px; }


    .cat-sidebar-title { border-radius: 10px; margin-bottom: 10px; }
    .cat-filter-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
    }
    .cat-filter-group {
        border: 1px solid #eef2f7;
        border-radius: 12px;
        padding: 10px 10px 12px;
    }
    .cat-filter-group:last-child { border-radius: 12px; }
    .cat-filter-mobile { display: block; }
    .cat-filter-desktop { display: none; }
}
@media (max-width: 480px) {
    .cat-brand-item { min-width: 54px; padding: 5px 8px; }
    .cat-brand-logo { height: 26px; max-width: 64px; }
    .cat-brand-text { font-size: .75rem; }
    .cat-toggle { font-size: .75rem; padding: 3px 9px; }
    .cat-topbar-right { grid-template-columns: 1fr; }
}


/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px; margin-top: 32px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 8px; font-size: .88rem; font-weight: 500; color: #374151;
    background: #fff; border: 1.5px solid #e5e7eb;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
}
.page-btn:hover { background: #f0fdf4; border-color: #006a39; color: #006a39; }
.page-btn.active { background: #006a39; color: #fff; border-color: #006a39; }
.page-ellipsis { display: inline-flex; align-items: center; font-size: .88rem; color: #9ca3af; padding: 0 4px; }

/* Empty state */
.empty-state {
    text-align: center; padding: 60px 16px; color: #9ca3af;
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: .95rem; }

/* sr-only (screen reader only) */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border-width: 0;
}

/* ============================================================
   PRODUCT DETAIL  (new pd-* layout)
   ============================================================ */
.pd-page { padding: 20px 0 40px; }

/* Breadcrumb */
.pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .87rem; color: #6b7280; margin-bottom: 16px; }
.pd-breadcrumb a { color: #006a39; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-bc-sep { color: #9ca3af; font-size: .75rem; }

/* Main 3-col grid */
.pd-layout {
    display: grid;
    grid-template-columns: 380px 1fr 270px;
    gap: 24px;
    margin-bottom: 28px;
    align-items: start;
}

/* ── Gallery ── */
.pd-gallery {}
.pd-main-img-wrap {
    position: relative;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}
.pd-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
}
.pd-img-badge {
    position: absolute; top: 10px; left: 10px;
    background: #ef4444; color: #fff; font-size: .8rem; font-weight: 700;
    padding: 3px 8px; border-radius: 4px; z-index: 1;
}
.pd-thumbs {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.pd-thumb {
    width: 56px; height: 56px;
    border: 2px solid #e5e7eb; border-radius: 6px;
    overflow: hidden; cursor: pointer; padding: 0;
    background: #fff; transition: border-color .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover, .pd-thumb.active { border-color: #006a39; }

/* ── Product info ── */
.pd-info {}
.pd-title { font-size: 1.3rem; font-weight: 700; color: #111; line-height: 1.4; margin: 0 0 10px; }

.pd-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #6b7280; margin-bottom: 10px; }
.pd-meta-sep { color: #d1d5db; }
.pd-instock  { color: #059669; font-weight: 600; }
.pd-outstock { color: #dc2626; font-weight: 600; }

.pd-short-desc { font-size: .9rem; line-height: 1.7; color: #374151; margin-bottom: 14px; border-top: 1px solid #f3f4f6; padding-top: 10px; }
.pd-short-desc ul { padding-left: 18px; margin: 0; }
.pd-short-desc li { margin-bottom: 4px; }

/* Price box */
.pd-price-box {
    border: 2px solid #006a39;
    border-radius: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    margin-bottom: 14px;
}
.pd-price-row { display: flex; align-items: center; gap: 8px; }
.pd-price-sale { font-size: 1.35rem; font-weight: 800; color: #ef4444; }
.pd-discount-badge {
    background: #ef4444; color: #fff; font-size: .78rem; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
}
.pd-price-original-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.pd-price-original { text-decoration: line-through; color: #9ca3af; font-size: .88rem; }
.pd-savings { font-size: .8rem; color: #006a39; font-weight: 600; }

/* Badges row */
.pd-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}
.pd-badge-green { background: #d1fae5; color: #065f46; }
.pd-badge-blue  { background: #dbeafe; color: #1e40af; }
.pd-badge-stock { background: #d1fae5; color: #065f46; }

/* Gifts */
.pd-gifts {
    background: #fff7ed; border: 1.5px solid #fed7aa;
    border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}
.pd-gifts-header { font-size: .88rem; font-weight: 700; color: #c2410c; margin-bottom: 8px; }
.pd-gifts-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #374151; }
.pd-gifts-list li { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 5px; }
.pd-gifts-list .fa-check-circle { color: #059669; margin-top: 2px; flex-shrink: 0; }
.pd-gift-desc { color: #6b7280; }

/* Cart form */
.pd-cart-form { margin-top: 4px; }
.pd-qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pd-qty-label { font-size: .88rem; color: #374151; font-weight: 500; }
.pd-qty-ctrl { display: flex; align-items: center; border: 1.5px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.pd-qty-btn {
    width: 34px; height: 36px;
    background: #f3f4f6; border: none; cursor: pointer;
    font-size: 1.1rem; color: #374151;
    transition: background .15s;
}
.pd-qty-btn:hover { background: #e5e7eb; }
.pd-qty-input {
    width: 52px; height: 36px;
    border: none; border-left: 1.5px solid #d1d5db; border-right: 1.5px solid #d1d5db;
    text-align: center; font-size: .95rem; color: #111;
    -moz-appearance: textfield;
}
.pd-qty-input::-webkit-inner-spin-button, .pd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.pd-btn-row { display: flex; gap: 10px; margin-top: 4px; }
.pd-btn-buynow {
    flex: 1; padding: 12px 10px;
    background: #f97316; color: #fff; border: none; border-radius: 8px;
    font-size: .95rem; font-weight: 700; cursor: pointer; letter-spacing: .04em;
    transition: background .15s; text-align: center;
}
.pd-btn-buynow:hover { background: #ea6c00; }
.pd-btn-addcart {
    flex: 1; padding: 12px 10px; background: #006a39; color: #fff;
    border: none; border-radius: 8px; font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: background .15s; text-align: center;
}
.pd-btn-addcart:hover { background: #005a30; }

.pd-out-of-stock-msg {
    padding: 14px 16px; background: #fef2f2; border: 1.5px solid #fecaca;
    border-radius: 8px; color: #dc2626; font-weight: 600; font-size: .95rem; margin-top: 12px;
}

/* ── Sidebar ── */
.pd-sidebar { display: flex; flex-direction: column; gap: 14px; }

.pd-trust-box {
    border: 1.5px solid #d1fae5; border-radius: 10px;
    background: #fff; padding: 14px; overflow: hidden;
}
.pd-trust-title {
    font-size: .88rem; font-weight: 700; color: #fff;
    margin: -14px -14px 12px;
    padding: 9px 14px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(to right, #006a39, #00a352);
    display: flex; align-items: center; gap: 6px;
}
.pd-trust-list { list-style: none; padding: 0; margin: 0; font-size: .84rem; color: #374151; }
.pd-trust-list li { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 7px; }
.pd-trust-list .fa-check-circle { color: #006a39; margin-top: 2px; flex-shrink: 0; }

.pd-contact-box {
    border: 1.5px solid #d1fae5; border-radius: 10px;
    background: #fff; padding: 14px; overflow: hidden;
}
.pd-contact-title {
    font-size: .88rem; font-weight: 700; color: #fff;
    margin: -14px -14px 12px;
    padding: 9px 14px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(to right, #006a39, #00a352);
    display: flex; align-items: center; gap: 6px;
}
.pd-contact-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.pd-contact-list li { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; }
.pd-contact-label { color: #6b7280; white-space: nowrap; flex-shrink: 0; }
.pd-contact-list a { color: #006a39; font-weight: 700; font-size: .95rem; }
.pd-contact-list a:hover { text-decoration: underline; }

.pd-share-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-share-label { font-size: .85rem; color: #6b7280; }
.pd-share-btn {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff; transition: opacity .15s;
}
.pd-share-btn:hover { opacity: .85; }
.pd-share-fb { background: #1877f2; }
.pd-share-tw { background: #1da1f2; }

/* ── Lower 2-col ── */
.pd-lower {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-top: 4px;
}

.pd-section-card {
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 10px; padding: 18px 20px; margin-bottom: 18px;
    overflow: hidden;
}
.pd-section-title {
    font-size: .95rem; font-weight: 700; color: #fff;
    background: linear-gradient(to right, #006a39, #00a352);
    padding: 10px 20px;
    margin: -18px -20px 14px;
    border-radius: 8px 8px 0 0;
    display: flex; align-items: center; gap: 7px;
}

/* Description */
.pd-desc-collapsed { max-height: 260px; overflow: hidden; position: relative; }
.pd-desc-collapsed::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px; background: linear-gradient(transparent, #fff);
}
.pd-description { font-size: .9rem; line-height: 1.8; color: #374151; }
.pd-desc-toggle {
    display: block; width: 100%; margin-top: 12px; padding: 8px;
    border: 1.5px solid #006a39; border-radius: 6px; background: #f0fdf4;
    color: #006a39; font-size: .85rem; font-weight: 600; cursor: pointer;
    text-align: center; transition: background .15s;
}
.pd-desc-toggle:hover { background: #dcfce7; }

/* Reviews */
.pd-review-top { display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-review-score-wrap { text-align: center; flex-shrink: 0; }
.pd-review-score { font-size: 2.5rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.pd-review-stars { color: #f59e0b; font-size: .9rem; margin: 4px 0; }
.pd-review-count { font-size: .8rem; color: #6b7280; }
.pd-review-bars { flex: 1; min-width: 160px; }
.pd-bar-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #374151; margin-bottom: 4px; }
.pd-bar-row .fa-star { color: #f59e0b; font-size: .75rem; }
.pd-bar { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.pd-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.pd-bar-count { min-width: 18px; text-align: right; }
.pd-review-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pd-filter-btn {
    padding: 5px 12px; border: 1.5px solid #d1d5db; border-radius: 20px;
    background: #fff; font-size: .8rem; cursor: pointer; transition: all .15s;
}
.pd-filter-btn.active, .pd-filter-btn:hover { border-color: #006a39; color: #006a39; background: #f0fdf4; }
.pd-review-empty { font-size: .88rem; color: #9ca3af; margin-bottom: 10px; }
.pd-review-textarea {
    width: 100%; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 10px; font-size: .88rem; resize: vertical;
    box-sizing: border-box; font-family: inherit; transition: border-color .15s;
}
.pd-review-textarea:focus { outline: none; border-color: #006a39; }
.pd-btn-review {
    padding: 8px 22px; background: #006a39; color: #fff;
    border: none; border-radius: 6px; font-size: .88rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.pd-btn-review:hover { background: #005a30; }

/* Specs */
.pd-specs-content { font-size: .88rem; line-height: 1.8; }
.pd-specs-collapsed { max-height: 280px; overflow: hidden; position: relative; }
.pd-specs-collapsed::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px; background: linear-gradient(transparent, #fff);
}
.pd-specs-content table { width: 100%; border-collapse: collapse; }
.pd-specs-content td, .pd-specs-content th {
    padding: 7px 10px; border: 1px solid #e5e7eb; font-size: .87rem;
}
.pd-specs-content tr:nth-child(even) td { background: #f9fafb; }
.pd-specs-toggle {
    display: block; width: 100%; margin-top: 10px; padding: 8px;
    border: 1.5px solid #006a39; border-radius: 6px; background: #f0fdf4;
    color: #006a39; font-size: .85rem; font-weight: 600; cursor: pointer;
    text-align: center; transition: background .15s;
}
.pd-specs-toggle:hover { background: #dcfce7; }

/* Latest posts widget */
.pd-posts-widget { margin-bottom: 0; }
.pd-post-list { list-style: none; padding: 0; margin: 0; }
.pd-post-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.pd-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.pd-post-thumb {
    flex-shrink: 0; width: 80px; height: 60px;
    border-radius: 6px; overflow: hidden; display: block;
    background: #f3f4f6;
}
.pd-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-post-thumb-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: #d1d5db; font-size: 1.4rem;
}
.pd-post-info { flex: 1; min-width: 0; }
.pd-post-title {
    display: block; font-size: .87rem; font-weight: 600; color: #111;
    line-height: 1.45; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.pd-post-title:hover { color: #006a39; }
.pd-post-excerpt { font-size: .78rem; color: #6b7280; margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.pd-posts-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; font-size: .83rem; font-weight: 600;
    color: #006a39;
}
.pd-posts-more:hover { text-decoration: underline; }

/* Related products slider */
.pd-related-wrap { margin-top: 32px; }
.pd-related-wrap.hcs-section { background: transparent; padding: 0; margin-bottom: 0; }
.pd-related-wrap .hcs-header {
    background: linear-gradient(to right, #006a39, #00a352);
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    margin-bottom: 0;
}
.pd-related-wrap .hcs-title {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}
.pd-related-wrap .hcs-view-all {
    color: rgba(255,255,255,.88);
    font-size: .82rem;
}
.pd-related-wrap .hcs-view-all:hover { color: #fff; text-decoration: underline; }
.pd-related-wrap .hcs-slider-outer {
    border: 1.5px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 14px;
    background: #fff;
}

/* ── Product card extra ── */
.pc-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .78rem; margin-top: 4px; }
.pc-instock  { color: #059669; display: flex; align-items: center; gap: 3px; }
.pc-outstock { color: #dc2626; display: flex; align-items: center; gap: 3px; }
.pc-gift     { color: #f97316; display: flex; align-items: center; gap: 3px; }
.btn-card-add {
    position: absolute; bottom: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #006a39, #00c45e); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer; opacity: 0;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,163,82,.35);
    transition: opacity .15s, background .15s, box-shadow .15s;
}
.product-card:hover .btn-card-add { opacity: 1; }
.btn-card-add:hover { background: linear-gradient(135deg, #005a30, #00a352); box-shadow: 0 4px 14px rgba(0,163,82,.5); }

.product-hover-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: min(420px, calc(100vw - 24px));
    background: #f7f7f8;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .24);
    border: 1px solid rgba(255, 255, 255, .7);
    z-index: 10050;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    pointer-events: none;
}
.product-hover-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.phpop-head {
    padding: 16px 18px;
    background: linear-gradient(135deg, #006a39 0%, #008f4b 52%, #00c96a 100%);
    color: #fff;
}
.phpop-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.phpop-body {
    padding: 16px 18px 18px;
    color: #111827;
}
.phpop-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.phpop-price-label,
.phpop-meta-label {
    font-size: .95rem;
    font-weight: 800;
    color: #374151;
}
.phpop-price-sale {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ef4444;
}
.phpop-price-original {
    font-size: .95rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.phpop-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}
.phpop-meta {
    margin-bottom: 12px;
    font-size: .95rem;
    color: #374151;
}
.phpop-divider {
    height: 1px;
    background: #d1d5db;
    margin: 14px 0 16px;
}
.phpop-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .95rem;
    font-weight: 800;
    color: #1f2937;
}
.phpop-section-title i {
    color: #60a5fa;
    font-size: .95rem;
}
.phpop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.phpop-list li {
    position: relative;
    padding-left: 18px;
    font-size: .9rem;
    line-height: 1.55;
    color: #374151;
}
.phpop-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
}
.phpop-gifts {
    margin-top: 16px;
    border: 4px solid #ef4444;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.phpop-gifts-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fb7185 0%, #ef4444 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}
.phpop-gifts-head i {
    color: #fef08a;
}
.phpop-gifts-body {
    padding: 12px 14px 14px;
    background: #fff7f7;
}
.phpop-gifts .phpop-list li::before {
    background: #ef4444;
}

@media (max-width: 991px) {
    .product-hover-popup { display: none; }
}

/* Pagination: replace blue */
.page-link.active { background: #006a39; color: #fff; border-color: #006a39; }

/* ============================================================
   FLASH SALE SECTION
   ============================================================ */
.fs-section {
    background: linear-gradient(90deg, #006a39 0%, #00e378 100%);
    padding: 20px 0 28px;
    margin: 24px 0 0;
}

/* Header */
.fs-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.fs-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.fs-bolt { font-size: 1.5rem; line-height: 1; }
.fs-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Countdown */
.fs-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.fs-countdown-label {
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    margin-right: 4px;
    white-space: nowrap;
}
.fs-time-block {
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .05em;
}
.fs-sep {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}
.fs-view-all {
    margin-left: auto;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: .9;
    transition: opacity .15s;
    flex-shrink: 0;
}
.fs-view-all:hover { opacity: 1; text-decoration: underline; }

/* Slider wrapper */
.fs-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
}
.fs-slider-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 12px;
    --fs-cols: 6;
    --fs-gap: 16px;
    touch-action: pan-y;
}
.fs-track {
    display: flex;
    gap: var(--fs-gap);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Arrow buttons */
.fs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, opacity .15s;
    opacity: .6;
    z-index: 10;
}
.fs-arrow:hover:not(:disabled) { background: rgba(255,255,255,.35); border-color: #fff; opacity: 1; }
.fs-arrow:disabled { opacity: .25; cursor: default; }
.fs-prev { left: 8px; }
.fs-next { right: 8px; }

/* Individual card */
.fs-card {
    flex: 0 0 calc((100% - (var(--fs-cols) - 1) * var(--fs-gap)) / var(--fs-cols));
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.fs-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.22); }

/* Card image area */
.fs-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}
.fs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.fs-card:hover .fs-card-img img { transform: scale(1.04); }

/* HOT badge overlay */
.fs-hot-badge {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to right, #dc2626 0%, #ef4444 30%, #f97316 100%);
    display: flex;
    align-items: center;
    padding: 5px 8px;
    gap: 6px;
}
.fs-hot-label {
    background: #fff;
    color: #dc2626;
    font-size: .68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}
.fs-hot-text {
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.2;
}

/* Card body */
.fs-card-body { padding: 10px 10px 8px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fs-card-name {
    font-size: .82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    margin-bottom: 2px;
}
.fs-card-name a:hover { color: #1a56db; }

/* Price row */
.fs-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.fs-price-sale {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}
.fs-btn-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006a39, #00c45e);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,163,82,.4);
    transition: transform .15s, box-shadow .15s;
    line-height: 1;
}
.fs-btn-add:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(0,163,82,.55); }

/* Original price row */
.fs-price-orig-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fs-price-orig {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: .78rem;
}
.fs-discount-badge {
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Stock bar */
.fs-stock-wrap { margin-top: auto; padding-top: 6px; }
.fs-stock-bar {
    height: 6px;
    background: #fee2e2;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 4px;
}
.fs-stock-fill {
    height: 100%;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-radius: 9999px;
    transition: width .4s;
}
.fs-stock-text {
    font-size: .72rem;
    font-weight: 600;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 3px;
}
.fs-stock-text i { font-size: .65rem; }

/* Responsive */
@media (max-width: 768px) {
    .fs-header { gap: 10px; }
    .fs-title { font-size: 1.1rem; }
    .fs-time-block { min-width: 34px; height: 34px; font-size: 1rem; }
    .fs-slider-viewport { --fs-gap: 12px; }
}
@media (max-width: 480px) {
    .fs-slider-viewport { --fs-gap: 10px; }
    .fs-card-name { font-size: .78rem; }
    .fs-price-sale { font-size: .9rem; }
}

/* ============================================================
   HOME CATEGORY SECTIONS (hcs)
   ============================================================ */
.hcs-wrapper {
    background: #dce9fb;
    padding: 24px 0 32px;
}
.hcs-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    overflow: hidden;
}
.hcs-section:last-child { margin-bottom: 0; }

/* Header */
.hcs-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hcs-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hcs-header-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hcs-hlink {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.hcs-hlink i { font-size: .75rem; }
.hcs-hlink:hover { background: #dcfce7; border-color: #16a34a; color: #166534; }
.hcs-view-all {
    margin-left: auto;
    color: #16a34a;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}
.hcs-view-all:hover { text-decoration: underline; color: #166534; }

/* Subcategory tabs */
.hcs-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.hcs-tab {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #16a34a;
    color: #16a34a;
    font-size: .82rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.hcs-tab:hover { background: #f0fdf4; border-color: #15803d; }
.hcs-tab.active { background: #16a34a; color: #fff; border-color: #16a34a; }
.hcs-tab-see-all {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    border-radius: 20px;
    transition: color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.hcs-tab-see-all:hover { color: #16a34a; }

/* Slider outer */
.hcs-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
}
.hcs-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
    --hcs-cols: 6;
    --hcs-gap: 12px;
    touch-action: pan-y;
}
.hcs-track {
    display: flex;
    gap: var(--hcs-gap);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Arrows */
.hcs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    border: 1.5px solid #d1d5db;
    color: #374151;
    font-size: .88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: border-color .15s, color .15s, box-shadow .15s, opacity .15s;
    opacity: .65;
    z-index: 10;
}
.hcs-arrow:hover:not(:disabled) { border-color: #16a34a; color: #16a34a; box-shadow: 0 2px 10px rgba(22,163,74,.2); opacity: 1; }
.hcs-arrow:disabled { opacity: .25; cursor: default; }
.hcs-prev { left: 8px; }
.hcs-next { right: 8px; }

/* Product card */
.hcs-card {
    flex: 0 0 calc((100% - (var(--hcs-cols) - 1) * var(--hcs-gap)) / var(--hcs-cols));
    min-width: 0;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.hcs-card img { max-width: 100%; }

@media (max-width: 1280px) {
    .hcs-viewport { --hcs-cols: 4; }
}
@media (max-width: 1024px) {
    .hcs-viewport { --hcs-cols: 3; }
}
@media (max-width: 768px) {
    .hcs-viewport { --hcs-cols: 2; }
}
.hcs-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.13); border-color: #86efac; }
.hcs-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }

.hcs-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f9fafb;
    overflow: hidden;
    border-bottom: 1px solid #f3f4f6;
}
.hcs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.hcs-card:hover .hcs-card-img img { transform: scale(1.04); }

/* Card body */
.hcs-card-body {
    padding: 10px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hcs-price-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hcs-price-orig {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: .76rem;
}
.hcs-discount-badge {
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    white-space: nowrap;
}
.hcs-price-sale {
    font-size: 1.05rem;
    font-weight: 800;
    color: #dc2626;
    white-space: nowrap;
}
.hcs-card-name {
    font-size: .8rem;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.24em;
}

/* Card footer */
.hcs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    padding-right: 38px;
    gap: 6px;
}
.hcs-stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    font-weight: 600;
}
.hcs-stock.in-stock  { color: #16a34a; }
.hcs-stock.no-stock  { color: #ef4444; }
.hcs-btn-add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006a39, #00c45e);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,163,82,.4);
    transition: transform .15s, box-shadow .15s;
    line-height: 1;
}
.hcs-btn-add:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(0,163,82,.55); }

/* Responsive */
@media (max-width: 768px) {
    .hcs-title { font-size: 1rem; }
    .hcs-section { padding: 14px 12px 16px; }
    .hcs-viewport { --hcs-gap: 10px; }
}
@media (max-width: 480px) {
    .hcs-card-body { padding: 8px; }
    .hcs-price-sale { font-size: .9rem; }
    .hcs-viewport { --hcs-gap: 10px; }
}

/* ============================================================
   HOME BLOG SECTIONS (hb)
   ============================================================ */
.hb-wrapper {
    background: #f3f4f6;
    padding: 24px 0 36px;
}
.hb-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.hb-section:last-child { margin-bottom: 0; }

/* Header */
.hb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.hb-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hb-view-all {
    color: #006a39;
    font-size: .88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.hb-view-all:hover { text-decoration: underline; }

/* 4-col grid */
.hb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Article card */
.hb-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
    color: inherit;
}
.hb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

/* Thumbnail */
.hb-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 8px;
    flex-shrink: 0;
}
.hb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.hb-card:hover .hb-thumb img { transform: scale(1.04); }
.hb-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

/* Card body */
.hb-body {
    padding: 10px 4px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hb-post-title {
    font-size: .92rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}
.hb-card:hover .hb-post-title { color: #1a56db; }
.hb-excerpt {
    font-size: .8rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 4px;
    flex-wrap: wrap;
}
.hb-meta i { font-size: .7rem; }
.hb-meta-sep { color: #d1d5db; }

/* Responsive */
@media (max-width: 1024px) {
    .hb-grid { grid-template-columns: repeat(3, 1fr); }
    .fs-slider-viewport { --fs-cols: 3; }
}
@media (max-width: 768px) {
    .hb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hb-section { padding: 14px 12px 16px; }
    .hb-title { font-size: 1rem; }
    .fs-slider-viewport { --fs-cols: 2; }
}
@media (max-width: 480px) {
    .hb-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 1280px) and (min-width: 1025px) {
    .fs-slider-viewport { --fs-cols: 4; }
}

/* ============================================================
   BLOG / NEWS
   ============================================================ */
.blog-page {
    padding: 2rem 1rem;
}
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}
.blog-main,
.blog-sidebar {
    min-width: 0;
}
.blog-page-title {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.blog-empty {
    padding: 3rem;
    text-align: center;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}
.blog-empty i {
    display: block;
    margin-bottom: .75rem;
    font-size: 2.5rem;
}
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}
.blog-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.25rem;
    min-width: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.blog-card-thumb {
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}
.blog-card-image,
.blog-card-thumb-empty {
    width: 100%;
    height: 140px;
}
.blog-card-image {
    display: block;
    object-fit: cover;
}
.blog-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.blog-card-thumb-empty i {
    font-size: 2rem;
}
.blog-card-body {
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
}
.blog-card-category {
    display: inline-block;
    margin-bottom: .35rem;
    color: #e74c3c;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.blog-card-title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    line-height: 1.45;
}
.blog-card-title-link {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.blog-card-title-link:hover,
.blog-sidebar-link:hover {
    color: #006a39;
}
.blog-card-excerpt {
    margin: 0 0 .75rem;
    color: #666;
    font-size: .9rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.blog-card-meta {
    color: #999;
    font-size: .8rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.blog-card-meta-dot {
    display: inline-block;
    margin: 0 .4rem;
}
.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin-top: 2rem;
}
.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: .45rem .85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
}
.blog-page-ellipsis {
    padding: .45rem .5rem;
    color: #999;
}
.blog-sidebar-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #f9f9f9;
}
.blog-sidebar-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e74c3c;
    font-size: 1rem;
}
.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-sidebar-item + .blog-sidebar-item {
    margin-top: .5rem;
}
.blog-sidebar-link {
    display: block;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .blog-page {
        padding: 1.25rem .75rem 1.5rem;
    }
    .blog-page-title {
        margin-bottom: 1rem;
        font-size: 1.35rem;
    }
    .blog-list {
        gap: 1rem;
    }
    .blog-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .blog-card-image,
    .blog-card-thumb-empty {
        height: 190px;
    }
    .blog-card-body {
        padding: .95rem;
    }
    .blog-card-title {
        font-size: 1rem;
    }
    .blog-card-excerpt {
        font-size: .88rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blog-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem .5rem;
    }
    .blog-card-meta-dot {
        display: none;
    }
    .blog-sidebar-card {
        padding: 1rem;
    }
}

@media (max-width: 420px) {
    .blog-card-image,
    .blog-card-thumb-empty {
        height: 172px;
    }
}

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding: 16px 0 48px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.cart-mobile-list { display: none; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.cart-table th { background: #f3f4f6; padding: 10px 12px; text-align: left; font-size: .88rem; }
.cart-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { border-radius: 8px; }
.cart-product-name { font-weight: 600; line-height: 1.35; display: block; }
.update-qty-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.update-qty-form input[type="number"] { width: 78px; padding: 6px 8px; border: 1.5px solid #d1d5db; border-radius: 8px; }
.cart-update-btn { display: none; }
.cart-remove-cell { width: 1%; white-space: nowrap; }
.cart-summary { background: #fff; border-radius: 12px; padding: 20px; height: fit-content; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.cart-summary .btn { margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.summary-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 2px solid #e5e7eb; font-size: 1.1rem; font-weight: 700; margin: 12px 0; }

@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; gap: 16px; }
    .cart-table { display: none; }
    .cart-mobile-list { display: block; }
    .cart-mitem {
        background: #fff;
        border: 1px solid #eef2f7;
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .cart-mtop { display: flex; align-items: center; gap: 10px; }
    .cart-mtop img { border-radius: 10px; object-fit: cover; flex-shrink: 0; }
    .cart-mname {
        flex: 1;
        min-width: 0;
        font-weight: 700;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }
    .cart-mbottom {
        margin-top: 10px;
        display: grid;
        grid-template-columns: 1fr 92px 1fr 44px;
        gap: 10px;
        align-items: end;
    }
    .cart-mfield { min-width: 0; }
    .cart-mlabel { display: block; font-size: .75rem; color: #6b7280; font-weight: 700; margin-bottom: 4px; }
    .cart-mval { display: block; font-weight: 800; color: #111827; white-space: nowrap; }
    .cart-mqty { align-self: center; }
    .cart-qty-stepper {
        display: flex;
        align-items: center;
        border: 1.5px solid #d1d5db;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        height: 40px;
    }
    .cart-qty-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: #f9fafb;
        color: #006a39;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
    }
    .cart-qty-btn:active { background: #f0fdf4; }
    .cart-qty-input {
        width: 100%;
        height: 40px;
        border: none;
        outline: none;
        text-align: center;
        font-size: .92rem;
        font-weight: 700;
    }
    .cart-qty-stepper:focus-within { border-color: #006a39; box-shadow: 0 0 0 3px rgba(0,106,57,.12); }
    .cart-mremove { display: flex; justify-content: flex-end; }
    .cart-mremove .btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; justify-content: center; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-page { padding: 16px 0 48px; }
.ck-heading {
    font-size: 1.4rem; font-weight: 700; color: #111827;
    margin-bottom: 20px;
}
.ck-form { width: 100%; }
.ck-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.ck-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem; font-weight: 700; color: #fff; padding: 10px 16px;
    background: linear-gradient(to right, #006a39, #00a352);
    border-radius: 10px; margin-bottom: 16px;
}
.ck-field { margin-bottom: 14px; }
.ck-field label {
    display: block; font-size: .85rem; font-weight: 600;
    color: #374151; margin-bottom: 5px;
}
.ck-field .req { color: #dc2626; }
.ck-field input,
.ck-field textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db;
    border-radius: 8px; font-size: .92rem; outline: none;
    transition: border-color .15s; background: #fff;
    font-family: inherit;
}
.ck-field input:focus,
.ck-field textarea:focus { border-color: #006a39; }

/* Payment methods */
.ck-payment-list { display: flex; flex-direction: column; gap: 8px; }
.ck-payment-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border: 1.5px solid #e5e7eb;
    border-radius: 10px; cursor: pointer; transition: border-color .15s;
}
.ck-payment-item:has(input:checked) { border-color: #006a39; background: #f0fdf4; }
.ck-payment-item input[type="radio"] { display: none; }
.ck-payment-radio {
    width: 18px; height: 18px; border: 2px solid #d1d5db;
    border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    position: relative; transition: border-color .15s;
}
.ck-payment-item:has(input:checked) .ck-payment-radio { border-color: #006a39; }
.ck-payment-item:has(input:checked) .ck-payment-radio::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 8px; height: 8px; background: #006a39; border-radius: 50%;
}
.ck-payment-name { font-size: .9rem; font-weight: 600; }
.ck-payment-desc { font-size: .8rem; color: #6b7280; display: block; margin-top: 2px; }

/* Summary panel */
.ck-summary {
    background: #fff; border-radius: 12px; padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.07); overflow: hidden;
    position: sticky; top: 80px;
}
.ck-summary .ck-section-title { border-radius: 10px 10px 0 0; margin-bottom: 0; }
.ck-order-items { max-height: 320px; overflow-y: auto; padding: 12px 16px; }
.ck-order-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6;
}
.ck-order-item:last-child { border-bottom: none; }
.ck-order-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ck-oi-info { flex: 1; min-width: 0; }
.ck-oi-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.ck-oi-qty { font-size: .78rem; color: #9ca3af; }
.ck-oi-price { font-size: .88rem; font-weight: 700; white-space: nowrap; }

.ck-summary-rows { padding: 10px 16px 14px; border-top: 1px solid #f3f4f6; }
.ck-sum-row { display: flex; justify-content: space-between; font-size: .88rem; color: #6b7280; margin-bottom: 6px; }
.ck-sum-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 2px solid #e5e7eb; margin-top: 6px;
    font-size: .95rem; font-weight: 700; color: #111827;
}
.ck-sum-total strong { font-size: 1.15rem; color: #e53e3e; }
.text-green { color: #006a39; font-weight: 600; }

.ck-submit-btn {
    display: block; width: calc(100% - 32px); margin: 4px 16px 8px;
    padding: 13px; background: linear-gradient(to right, #006a39, #00a352);
    color: #fff; font-size: 1rem; font-weight: 700; border: none;
    border-radius: 10px; cursor: pointer; transition: opacity .15s;
    text-align: center;
}
.ck-submit-btn:hover { opacity: .9; }
.ck-back-link {
    display: block; text-align: center; font-size: .85rem; color: #6b7280;
    padding: 0 16px 16px; text-decoration: underline;
}
.ck-back-link:hover { color: #006a39; }

/* Checkout success */
.ck-success-page { padding: 48px 16px; }
.ck-success-box {
    max-width: 540px; margin: 0 auto;
    background: #fff; border-radius: 16px; padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08); text-align: center;
}
.ck-success-icon { font-size: 3.5rem; color: #006a39; margin-bottom: 16px; }
.ck-success-title { font-size: 1.6rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.ck-success-sub { font-size: .95rem; color: #6b7280; margin-bottom: 28px; }
.ck-success-info {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 12px; padding: 16px 20px; text-align: left;
    margin-bottom: 28px;
}
.ck-si-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; padding: 7px 0; border-bottom: 1px solid #dcfce7;
    font-size: .88rem;
}
.ck-si-row:last-child { border-bottom: none; }
.ck-si-row span { color: #6b7280; flex-shrink: 0; }
.ck-si-row strong { color: #111827; text-align: right; }
.ck-si-total strong { color: #e53e3e; font-size: 1rem; }
.ck-bank-box {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 14px;
    text-align: left;
    background: linear-gradient(180deg, #f8fffb 0%, #eefbf3 100%);
    border: 1px solid #ccefd8;
    box-shadow: 0 8px 24px rgba(0, 106, 57, .08);
}
.ck-bank-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.ck-bank-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #006a39, #00a352); color: #fff; font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 106, 57, .22);
}
.ck-bank-head h2 { margin: 0 0 4px; font-size: 1.05rem; color: #111827; }
.ck-bank-head p { margin: 0; font-size: .88rem; line-height: 1.6; color: #4b5563; }
.ck-bank-grid {
    background: #fff;
    border: 1px solid #d9f3e3;
    border-radius: 12px;
    overflow: hidden;
}
.ck-bank-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; padding: 12px 14px; border-bottom: 1px solid #edf7f1;
}
.ck-bank-row:last-child { border-bottom: none; }
.ck-bank-row span { color: #6b7280; font-size: .88rem; flex-shrink: 0; }
.ck-bank-row strong { color: #111827; text-align: right; }
.ck-bank-accent { color: #006a39; font-size: 1rem; letter-spacing: .03em; }
.ck-bank-amount { color: #e53e3e; font-size: 1.02rem; }
.ck-bank-note {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    color: #166534;
    font-size: .85rem;
}
.ck-bank-tip {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    color: #4b5563;
    font-size: .86rem;
    line-height: 1.6;
    border: 1px dashed #ccefd8;
}
.ck-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ck-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; background: #006a39; color: #fff;
    border-radius: 10px; font-size: .92rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.btn-ck-primary:hover { background: #00a352; }
.btn-ck-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 1.5px solid #006a39; color: #006a39;
    border-radius: 10px; font-size: .92rem; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.btn-ck-outline:hover { background: #006a39; color: #fff; }

@media (max-width: 860px) {
    .ck-layout { grid-template-columns: 1fr; }
    .ck-summary { position: static; }
    .ck-bank-row { flex-direction: column; gap: 4px; }
    .ck-bank-row strong { text-align: left; }
}


/* ============================================================
   AUTH
   ============================================================ */
.auth-page { display: flex; justify-content: center; padding: 48px 16px; background: #f0fdf4; min-height: calc(100vh - 200px); align-items: center; }
.auth-box { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.10); }
.auth-box-header { background: linear-gradient(to right,#006a39,#00a352); padding: 28px 32px 22px; text-align: center; }
.auth-box-header .auth-logo { font-size: 2rem; color: #fff; margin-bottom: 6px; }
.auth-box-header h1 { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0; }
.auth-box-body { padding: 28px 32px 32px; }
.auth-box h1 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: #374151; }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: .95rem; outline: none; transition: border-color .2s; }
.form-control:focus { border-color: #006a39; }
.auth-links { text-align: center; margin-top: 16px; font-size: .88rem; color: #6b7280; }
.auth-links a { color: #006a39; font-weight: 600; }

/* ============================================================
   STICKY CONTACT BUTTONS
   ============================================================ */
.sticky-contacts {
    position: fixed;
    bottom: 74px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
body.mobile-nav-open .sticky-contacts { display: none; }
.sc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 40px;
    padding: 9px 16px 9px 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    text-decoration: none;
    color: #111827;
    min-width: 200px;
    transition: transform .2s, box-shadow .2s;
}
.sc-btn:hover { transform: translateX(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.sc-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #fff;
}
/* Messenger – gradient tím hồng */
.sc-fb .sc-icon { background: linear-gradient(135deg, #0078ff 0%, #a033ff 60%, #ff3366 100%); }
/* Zalo – xanh dương */
.sc-zalo .sc-icon { background: #006af5; font-size: .78rem; font-weight: 800; letter-spacing: -.5px; }
/* Phone – xanh lá */
.sc-phone .sc-icon { background: linear-gradient(135deg, #006a39, #00a352); font-size: 1.1rem; }

.sc-text { display: flex; flex-direction: column; line-height: 1.3; }
.sc-label { font-size: .88rem; font-weight: 700; color: #111827; }
.sc-sub   { font-size: .75rem; color: #6b7280; }

@media (max-width: 640px) {
    .sticky-contacts {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: 12px;
    }
    .sc-btn { min-width: unset; padding: 9px; border-radius: 50%; }
    .sc-text { display: none; }
}

/* ============================================================
   PC BUILDER – Xây dựng cấu hình máy tính
   ============================================================ */
.pcb-page { padding: 10px 0 48px; }

/* Page header */
.pcb-page-header { margin-bottom: 20px; }
.pcb-page-title {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(to right, #006a39, #00a352);
    border-radius: 14px; color: #fff;
}
.pcb-page-title > .fas { font-size: 2rem; opacity: .85; }
.pcb-page-title h1 { font-size: 1.25rem; font-weight: 700; margin: 0 0 3px; }
.pcb-page-title p  { font-size: .85rem; margin: 0; opacity: .82; }

/* Builder table */
.pcb-wrap { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 0; }

.pcb-row { display: grid; grid-template-columns: 200px 1fr 130px 52px; align-items: center; border-bottom: 1px solid #f3f4f6; }
.pcb-row:last-child { border-bottom: none; }
.pcb-row-head { background: linear-gradient(to right, #006a39, #00a352); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pcb-row-head > div { padding: 10px 14px; }
.pcb-row-head .pcb-col-price { color: #fff; }

.pcb-col-cat    { padding: 12px 14px; display: flex; align-items: center; gap: 10px; min-height: 68px; border-right: 1px solid #f3f4f6; }
.pcb-col-product{ padding: 10px 14px; }
.pcb-col-price  { padding: 10px 14px; font-weight: 700; color: #e53e3e; font-size: .92rem; text-align: right; }
.pcb-col-action { padding: 10px 10px; text-align: center; }

.pcb-cat-icon { font-size: 1.25rem; color: #00a352; flex-shrink: 0; width: 24px; text-align: center; }
.pcb-cat-icon img { width: 22px; height: 22px; object-fit: contain; }
.pcb-cat-name { font-size: .88rem; font-weight: 600; color: #111827; line-height: 1.3; }

/* Slot content */
.pcb-slot { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.pcb-slot-empty { font-size: .82rem; color: #9ca3af; font-style: italic; }
.pcb-sel-img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex-shrink: 0; border: 1px solid #f3f4f6; }
.pcb-sel-info { flex: 1; min-width: 0; }
.pcb-sel-name { font-size: .85rem; font-weight: 500; color: #111827; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcb-sel-name:hover { color: #006a39; }
.pcb-sel-meta { display: flex; margin-top: 6px; flex-wrap: wrap; gap: 8px 14px; }
.pcb-sel-meta-item { font-size: .83rem; color: #6b7280; white-space: nowrap; }
.pcb-sel-label { font-weight: 700; color: #111827; }
.pcb-sel-meta-value { color: #6b7280; }

/* Add / Remove buttons */
.pcb-add-btn {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: linear-gradient(135deg, #006a39, #00c45e);
    color: #fff; border: none; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    line-height: 1;
    transition: opacity .15s, transform .15s;
}
.pcb-add-btn:hover { opacity: .85; transform: scale(1.1); }
.pcb-remove-btn {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: #fee2e2; color: #dc2626; border: none; cursor: pointer; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    line-height: 1;
    transition: background .15s;
}
.pcb-remove-btn:hover { background: #fecaca; }

/* Bottom bar */
.pcb-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: #fff; border-radius: 14px;
    padding: 16px 20px; margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1.5px solid #d1fae5;
}
.pcb-bottom-visible { display: flex; }
.pcb-btn:disabled { opacity: .45; cursor: not-allowed; }
.pcb-total-wrap { display: flex; align-items: baseline; gap: 10px; }
.pcb-total-label { font-size: .9rem; color: #6b7280; }
.pcb-total-val { font-size: 1.3rem; font-weight: 800; color: #e53e3e; }
.pcb-bottom-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons in bottom bar */
.pcb-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 9px; font-size: .88rem;
    font-weight: 600; cursor: pointer; border: none; transition: all .15s;
    white-space: nowrap;
}
.pcb-btn-outline {
    background: #fff; border: 1.5px solid #006a39; color: #006a39;
}
.pcb-btn-outline:hover { background: #006a39; color: #fff; }
.pcb-btn-excel { border-color: #217346; color: #217346; }
.pcb-btn-excel:hover { background: #217346; color: #fff; }
.pcb-btn-primary {
    background: linear-gradient(to right, #006a39, #00a352);
    color: #fff; border: none;
}
.pcb-btn-primary:hover { opacity: .88; }

/* Empty state */
.pcb-empty-page { text-align: center; padding: 60px 20px; color: #9ca3af; }
.pcb-empty-page .fas { font-size: 3rem; margin-bottom: 12px; }

/* ── MODAL ── */
.pcb-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 10000;
    align-items: center; justify-content: center;
    padding: 16px;
}
.pcb-overlay.active { display: flex; }
body.body-modal-open { overflow: hidden; }

.pcb-modal {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 940px;
    max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    overflow: hidden;
}

/* Modal header */
.pcb-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(to right, #006a39, #00a352);
    flex-shrink: 0;
}
.pcb-modal-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0; }
.pcb-modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: none; color: #fff;
    font-size: .95rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.pcb-modal-close:hover { background: rgba(255,255,255,.35); }

/* Filter bar */
.pcb-modal-filters {
    padding: 10px 14px 8px; border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0; background: #fafafa;
    display: flex; flex-direction: column; gap: 8px;
}
.pcb-filter-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: 7px 12px; transition: border-color .15s;
}
.pcb-filter-search-wrap:focus-within { border-color: #006a39; }
.pcb-filter-search-wrap .fas { color: #9ca3af; font-size: .85rem; flex-shrink: 0; }
.pcb-filter-search-wrap input { border: none; outline: none; font-size: .9rem; width: 100%; background: transparent; font-family: inherit; }
.pcb-filter-row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.pcb-filter-select {
    flex: 1; min-width: 130px;
    padding: 6px 10px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: .85rem; background: #fff; color: #374151;
    font-family: inherit; cursor: pointer; outline: none;
    transition: border-color .15s;
}
.pcb-filter-select:focus { border-color: #006a39; }
.pcb-filter-price {
    flex: 1; min-width: 110px;
    padding: 6px 10px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: .85rem; color: #374151; font-family: inherit; outline: none;
    transition: border-color .15s; -moz-appearance: textfield;
}
.pcb-filter-price:focus { border-color: #006a39; }
.pcb-filter-price::-webkit-outer-spin-button,
.pcb-filter-price::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcb-filter-row3 { display: flex; gap: 16px; align-items: center; }
.pcb-filter-check-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .84rem; color: #374151; cursor: pointer; user-select: none;
}
.pcb-filter-check-label input { accent-color: #006a39; width: 15px; height: 15px; }

/* Modal body: sidebar + grid */
.pcb-modal-body {
    display: flex; flex: 1; overflow: hidden;
}

/* Attribute sidebar */
.pcb-modal-sidebar {
    width: 190px; flex-shrink: 0;
    overflow-y: auto; padding: 0;
    border-right: 1px solid #f3f4f6;
    background: #fafafa;
}
.pcb-attr-heading {
    font-size: .72rem; font-weight: 800; color: #006a39; text-transform: uppercase;
    letter-spacing: .07em; padding: 9px 12px; background: #f0f4f1;
    border-bottom: 1px solid #d1e8db;
    position: sticky; top: 0; z-index: 1;
}
.pcb-attr-group { margin: 0; padding: 10px 12px 6px; border-bottom: 1px solid #f3f4f6; }
.pcb-attr-title { font-size: .8rem; font-weight: 700; color: #111827; margin-bottom: 6px; }
.pcb-attr-check {
    display: flex; align-items: center; gap: 7px;
    font-size: .82rem; color: #374151; cursor: pointer;
    padding: 3px 0; user-select: none;
}
.pcb-attr-check input { accent-color: #006a39; width: 14px; height: 14px; flex-shrink: 0; }
.pcb-attr-check:hover span { color: #006a39; }
.pcb-attr-select {
    width: 100%;
    height: 34px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: .85rem;
    padding: 0 10px;
    outline: none;
}
.pcb-attr-select:focus { border-color: #006a39; box-shadow: 0 0 0 3px rgba(0,106,57,.12); }
.pcb-no-filter { font-size: .82rem; color: #9ca3af; padding: 8px 0; }

/* Product main area */
.pcb-modal-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pcb-modal-count { font-size: .82rem; color: #6b7280; }

/* Loading / empty states */
.pcb-modal-loading, .pcb-no-result, .pcb-err {
    text-align: center; padding: 40px 20px; color: #9ca3af;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pcb-loading-inline { color: #9ca3af; }

/* Modal footer */
.pcb-modal-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; border-top: 1px solid #f3f4f6;
    flex-shrink: 0; background: #fafafa; flex-wrap: wrap; gap: 8px;
}

/* Pagination */
.pcb-pagination { display: flex; align-items: center; gap: 4px; }
.pcb-page-btn {
    min-width: 32px; height: 32px; padding: 0 6px;
    border: 1.5px solid #e5e7eb; border-radius: 7px;
    background: #fff; color: #374151; font-size: .82rem;
    cursor: pointer; transition: all .12s;
    display: inline-flex; align-items: center; justify-content: center;
}
.pcb-page-btn:hover:not(:disabled) { border-color: #006a39; color: #006a39; }
.pcb-page-btn.pcb-page-active { background: #006a39; border-color: #006a39; color: #fff; font-weight: 700; }
.pcb-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.pcb-page-ellipsis { padding: 0 4px; color: #9ca3af; font-size: .85rem; }

/* Product list (one per row) */
.pcb-prod-list {
    flex: 1; overflow-y: auto; padding: 0;
    display: flex; flex-direction: column;
}
.pcb-prod-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid #f3f4f6;
    background: #fff; transition: background .1s;
    cursor: default;
}
.pcb-prod-row:last-child { border-bottom: none; }
.pcb-prod-row:hover { background: #f9fafb; }
.pcb-prod-row.pcb-prod-selected { background: #f0fdf4; }
.pcb-row-img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; flex-shrink: 0; border: 1px solid #f3f4f6; background: #f9fafb; padding: 4px; }
.pcb-row-info { flex: 1; min-width: 0; }
.pcb-row-name { font-size: .92rem; font-weight: 600; color: #111827; line-height: 1.35; margin-bottom: 2px; }
.pcb-row-meta { font-size: .78rem; color: #6b7280; margin-bottom: 3px; }
.pcb-row-price-wrap { display: flex; align-items: center; gap: 8px; }
.pcb-row-old { font-size: .78rem; color: #9ca3af; text-decoration: line-through; }
.pcb-row-cur { font-size: 1rem; font-weight: 700; color: #e53e3e; }
.pcb-row-pick-btn {
    flex-shrink: 0; padding: 7px 20px; border-radius: 8px;
    font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    border: none; background: #006a39; color: #fff;
    transition: background .13s;
}
.pcb-row-pick-btn:hover { background: #004d28; }
.pcb-row-pick-active { background: #00a352; }
.pcb-row-pick-active:hover { background: #008040; }

/* Responsive */
@media (max-width: 768px) {
    .pcb-row { grid-template-columns: 150px 1fr 44px; }
    .pcb-col-price { display: none; }
    .pcb-modal { max-height: 95vh; }
    .pcb-modal-sidebar { width: 150px; }
    .pcb-row-price { display: none; }
    .pcb-bottom-actions { gap: 7px; }
    .pcb-btn { padding: 8px 12px; font-size: .82rem; }
    .pcb-slot { align-items: flex-start; }
    .pcb-sel-name {
        font-size: .85rem;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }
    .pcb-sel-meta { display: flex; }
}
@media (max-width: 560px) {
    .pcb-row-head { display: none; }
    .pcb-row {
        grid-template-columns: 1fr 56px;
        grid-template-rows: auto auto;
        align-items: stretch;
    }
    .pcb-col-cat {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        border-right: none;
        padding: 12px 12px 6px;
        min-height: unset;
    }
    .pcb-col-product {
        grid-column: 1;
        grid-row: 2;
        padding: 6px 12px 12px;
    }
    .pcb-col-action {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pcb-slot { min-height: 44px; }
    .pcb-modal-body { flex-direction: column; }
    .pcb-modal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #f3f4f6; max-height: 160px; }
    .pcb-attr-group { border-bottom: none; }
    .pcb-attr-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 10px 12px 12px;
    }
    .pcb-attr-grid .pcb-attr-group {
        background: #fff;
        border: 1px solid #eef2f7;
        border-radius: 12px;
        padding: 8px 10px 10px;
    }
    .pcb-attr-grid .pcb-attr-title { margin-bottom: 6px; font-size: .78rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #004d28 0%, #006a39 40%, #009950 75%, #00c45e 100%);
    color: rgba(255,255,255,.85);
    margin-top: 48px;
}

/* ── Main columns ── */
.footer-main { padding: 40px 0 32px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer-col-title {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer-col-links { list-style: none; }
.footer-col-links li { margin-bottom: 8px; }
.footer-col-links a {
    color: rgba(255,255,255,.78);
    font-size: .88rem;
    transition: color .15s;
}
.footer-col-links a:hover { color: #fff; }

/* ── Email contact section ── */
.footer-contact {
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 24px 0 28px;
}
.footer-contact-label {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 14px;
}
.footer-email-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.footer-email-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 14px 18px;
}
.feb-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.feb-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 2px;
}
.feb-email {
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}
.feb-email a { color: rgba(255,255,255,.8); }
.feb-email a:hover { color: #fff; text-decoration: underline; }

/* ── Bottom bar ── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 16px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-left { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.55; }
.footer-bottom-left strong { color: #fff; display: block; margin-bottom: 2px; font-size: .85rem; }
.footer-bottom-socials { display: flex; gap: 8px; }
.footer-bottom-socials a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    transition: background .15s, color .15s;
}
.footer-bottom-socials a:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-email-boxes { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
address { font-style: normal; font-size: .88rem; }
address p { margin-bottom: 4px; }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-item img { border-radius: 12px; width: 100%; object-fit: cover; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px;
    border: 1.5px solid #d1d5db; font-size: .88rem; color: #374151;
}
.page-link.active { background: #006a39; color: #fff; border-color: #006a39; }
.page-link:hover:not(.active) { background: #f3f4f6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .pd-layout { grid-template-columns: 320px 1fr; }
    .pd-sidebar { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .pd-trust-box, .pd-contact-box { flex: 1 1 250px; }
    .pd-lower { grid-template-columns: 3fr 2fr; }
}
@media (max-width: 768px) {
    .container.pd-page {
        padding-left: calc(18px + env(safe-area-inset-left));
        padding-right: calc(18px + env(safe-area-inset-right));
    }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-sidebar { grid-column: 1; flex-direction: column; }
    .pd-lower  { grid-template-columns: 1fr; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-layout { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .header-top { flex-wrap: wrap; }
    .header-search { order: 3; width: 100%; max-width: 100%; }
    .product-detail-grid { grid-template-columns: 1fr; }
}
