/* ============================================================
   FRONTEND – App CSS
   Font: Be Vietnam Pro (local), FontAwesome via vendor_assets
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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: 1280px; margin: 0 auto; padding: 0 16px; }

/* Static pages */
.page-static {
    max-width: 1200px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.page-static__breadcrumb {
    margin-bottom: 1rem;
}
.page-static__article {
    width: 100%;
}
.page-static__title {
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: .75rem;
    color: #1f2937;
}
.page-static__content {
    width: 100%;
    max-width: none;
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}
.page-static__content > *:first-child {
    margin-top: 0;
}
.page-static__content .entry-header {
    margin-bottom: 1rem;
}
.page-static__content .entry-title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 2vw, 2.4rem);
    line-height: 1.25;
    color: #1f2937;
}
.page-static__content img {
    max-width: 100%;
    height: auto;
}
.page-static__content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
}
.page-static__content table td,
.page-static__content table th {
    vertical-align: top;
}
.page-static__content [style*="max-width"] {
    max-width: 100% !important;
}
.page-static__contact {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.page-static__contact-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.page-static__contact-form {
    display: grid;
    gap: 1rem;
    max-width: 680px;
}
@media (max-width: 768px) {
    .page-static {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    .page-static__title {
        font-size: 1.8rem;
        margin-bottom: 1.15rem;
    }
}

/* ============================================================
   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: #d6a11d; }
.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, #8f0000 0%, #b30000 58%, #c99212 100%);
    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: #b30000;
    background: #fcf2df;
    text-align: center;
}
.header-search-suggest-all:hover { background: #f6e2b2; }
.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: #fcf2df; color: #b30000; }

/* 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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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: #d6a11d; 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: #b30000; }
.utt-empty { font-size: .82rem; color: #9ca3af; }

.util-icon {
    position: relative;
    font-size: 1.3rem;
    color: #d6a11d;
    line-height: 1;
}
.util-item:hover .util-icon { color: #b30000; }
.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, #8f0000 0%, #b30000 56%, #c99212 100%);
    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(179, 0, 0, .22);
}
.util-btn:hover { opacity: .88; color: #fff; box-shadow: 0 4px 14px rgba(179, 0, 0, .32); }

/* ── Row 2: gradient nav ── */
.main-nav {
    background: linear-gradient(90deg, #7f0000 0%, #a40000 42%, #d3a13a 100%);
}
.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;
    transition: background .15s;
}
.nav-item > a i { font-size: .95rem; opacity: .9; }
.nav-item:hover > a { background: rgba(0,0,0,.12); }

/* 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 a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #1f2937;
    font-size: .87rem;
    font-weight: 500;
    transition: background .12s, color .12s;
}
.nav-product-dropdown li a:hover { background: #fcf2df; color: #b30000; }
.nav-product-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    min-width: 230px;
    list-style: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    border-radius: 0 10px 10px 10px;
    padding: 6px 0;
    z-index: 510;
}
.nav-product-dropdown li:hover > .nav-product-submenu { display: block; }
.npd-icon {
    width: 22px;
    text-align: center;
    color: #d6a11d;
    font-size: .9rem;
    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: #fcf2df; color: #b30000; }

.nav-builder-link {
    position: relative;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 19px;
    border-radius: 14px;
    color: #fffdf7;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .015em;
    white-space: nowrap;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.34) 0%, rgba(255,244,214,.22) 24%, rgba(255,208,126,.18) 58%, rgba(179,0,0,.34) 100%),
        linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(214,161,29,.22) 48%, rgba(143,0,0,.52) 100%);
    border: 1px solid rgba(255,244,214,.42);
    box-shadow:
        0 10px 24px rgba(79, 0, 0, .24),
        0 0 0 1px rgba(255,255,255,.12) inset,
        inset 0 1px 0 rgba(255,255,255,.38);
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}
.nav-builder-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.05) 34%, rgba(255,255,255,.45) 48%, rgba(255,245,221,.22) 54%, transparent 68%);
    transform: translateX(-135%);
    transition: transform .45s ease;
}
.nav-builder-link::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 42%);
    pointer-events: none;
}
.nav-builder-link:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(255,244,214,.58);
    box-shadow:
        0 14px 30px rgba(79, 0, 0, .28),
        0 0 18px rgba(214, 161, 29, .14),
        0 0 0 1px rgba(255,255,255,.16) inset,
        inset 0 1px 0 rgba(255,255,255,.42);
    filter: brightness(1.03) saturate(1.08);
}
.nav-builder-link:hover::before { transform: translateX(130%); }
.nav-builder-link i,
.nav-builder-link span {
    position: relative;
    z-index: 2;
}
.nav-builder-link i {
    font-size: 1rem;
    color: #fff3cf;
    text-shadow: 0 2px 8px rgba(79, 0, 0, .24);
    animation: nav-builder-bob 2.2s ease-in-out infinite;
}
.nav-builder-link span {
    text-shadow: 0 1px 8px rgba(79, 0, 0, .18);
}

@keyframes nav-builder-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.08); }
}

/* 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: #fcf2df; color: #b30000; }

.mnav-icon { width: 22px; display: inline-flex; align-items: center; justify-content: center; color: #d6a11d; }
.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: #f7dfd3; color: #7a3c15; }
.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: #fff9ef; 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: 20;
}
.hcat-list {
    list-style: none;
    padding: 4px 0;
    border-radius: 10px;
    overflow: visible;
    background: #fff;
}
.hcat-item { position: relative; }
.hcat-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    font-size: .85rem;
    font-weight: 500;
    color: #1f2937;
    transition: background .12s, color .12s;
    text-decoration: none;
}
.hcat-link:hover { background: #fcf2df; color: #b30000; }
.hcat-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #d6a11d; 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: 100%; top: 0;
    background: #fff;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-radius: 0 8px 8px 0;
    z-index: 500;
    padding: 4px 0;
}
.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: #fcf2df; color: #b30000; }

/* ── Hero slider ── */
.hero-slider-wrap { grid-column: 2; grid-row: 1; }
.hero-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8e6d3;
    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: #b30000; }
.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: #f8e6d3;
}
.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: #f8e6d3;
    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: none; }

/* 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 {
        display: block;
        background: #fff9ef;
        padding: 16px 0 0;
    }
    .home-mobile-menu-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 0 6px;
        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: 92px;
        min-width: 92px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 8px;
        border-radius: 14px;
        background: #fff;
        color: #111827;
        text-align: center;
        box-shadow: 0 1px 6px rgba(0,0,0,.06);
        scroll-snap-align: start;
    }
    .home-mobile-menu-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: #f3f4f6;
        color: #d6a11d;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
    }
    .home-mobile-menu-icon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    .home-mobile-menu-name {
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.25;
        min-height: 2.5em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-transform: uppercase;
    }
    .fs-section { margin-top: 16px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 40px 0; }
.section-title {
    font-size: 1.5rem; font-weight: 700; color: #b30000;
    margin-bottom: 24px; padding-bottom: 8px;
    border-bottom: 2px solid #b30000;
}

/* ============================================================
   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(179, 0, 0, .12); color: #b30000; }
.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(179, 0, 0, .11); }
.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: #b30000; }
.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: #b30000; color: #fff; border: none; border-radius: 8px;
    cursor: pointer; font-size: .85rem; transition: background .2s;
}
.btn-add-cart:hover { background: #7f0000; }

@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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%); color: #fff; }
.btn-primary:hover  { background: linear-gradient(90deg, #720000 0%, #8f0000 52%, #b77912 100%); }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-outline  { background: transparent; color: #b30000; border: 1.5px solid #b30000; }
.btn-outline:hover  { background: #fcf2df; }
.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: #b30000; color: #fff; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid #e5e7eb; }
.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: #b30000; }
.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: #b30000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, border-color .12s, color .12s;
}
.cat-brand-nav:hover { background: #fcf2df; border-color: #b30000; }
.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: #b30000; background: #fcf2df; }
.cat-brand-item.active { border-color: #b30000; background: #fcf2df; box-shadow: 0 0 0 1px #b30000 inset; }
.cat-brand-item.active .cat-brand-text { color: #b30000; 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: #b30000; }
.cat-price-sep { font-size: .85rem; color: #9ca3af; }
.cat-price-btn {
    padding: 5px 12px; background: #b30000; color: #fff;
    border: none; border-radius: 8px; font-size: .82rem; cursor: pointer;
    transition: background .15s;
}
.cat-price-btn:hover { background: #d6a11d; }

/* 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: #b30000; color: #b30000; background: #fcf2df; }
.cat-toggle.active { border-color: #b30000; background: #b30000; 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: #b30000; }

/* ── 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: #f6e2b2; color: #7a3c15; border: 1px solid #edca9d;
    text-decoration: none; transition: background .15s;
}
.caf-chip span { font-size: .9rem; font-weight: 700; color: #7a3c15; }
.caf-chip:hover { background: #edca9d; }
.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, #b30000, #d6a11d);
    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: #b30000; box-shadow: 0 0 0 3px rgba(179, 0, 0, .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: #b30000; }
.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: #b30000; border-color: #b30000;
}
.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: #b30000; }
.cat-filter-item:hover .cat-fi-check { border-color: #b30000; }

/* Outline small button */
.btn-outline-sm {
    display: inline-block; margin-top: 12px; padding: 7px 18px;
    border: 1.5px solid #b30000; color: #b30000; border-radius: 8px;
    font-size: .85rem; text-decoration: none; transition: all .15s;
}
.btn-outline-sm:hover { background: #b30000; 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: #fcf2df; border-color: #b30000; color: #b30000; }
.page-btn.active { background: #b30000; color: #fff; border-color: #b30000; }
.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: #b30000; }
.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: #b30000; }

/* ── 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: #ea580c; 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 #b30000;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fcf2df;
    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: #b30000; 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: #f7dfd3; color: #7a3c15; }
.pd-badge-blue  { background: #fff0d9; color: #7a3c15; }
.pd-badge-stock { background: #fff0d9; color: #92590d; }

/* 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: #ea580c; 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: #b30000; 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: #8c0000; }

.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 #f7dfd3; 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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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: #b30000; margin-top: 2px; flex-shrink: 0; }

.pd-contact-box {
    border: 1.5px solid #f7dfd3; 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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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: #b30000; 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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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 #b30000; border-radius: 6px; background: #fcf2df;
    color: #b30000; font-size: .85rem; font-weight: 600; cursor: pointer;
    text-align: center; transition: background .15s;
}
.pd-desc-toggle:hover { background: #f6e2b2; }

/* 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: #b30000; color: #b30000; background: #fcf2df; }
.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: #b30000; }
.pd-btn-review {
    padding: 8px 22px; background: #b30000; color: #fff;
    border: none; border-radius: 6px; font-size: .88rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.pd-btn-review:hover { background: #8c0000; }

/* 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 #b30000; border-radius: 6px; background: #fcf2df;
    color: #b30000; font-size: .85rem; font-weight: 600; cursor: pointer;
    text-align: center; transition: background .15s;
}
.pd-specs-toggle:hover { background: #f6e2b2; }

/* 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: #b30000; }
.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: #b30000;
}
.pd-posts-more:hover { text-decoration: underline; }

/* FAQ */
.faq-section {
    margin-top: 32px;
}
.faq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    overflow: hidden;
}
.faq-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    color: #fff;
}
.faq-card__header i {
    font-size: 1rem;
}
.faq-card__header h2,
.faq-card__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.faq-list {
    display: flex;
    flex-direction: column;
}
.faq-item {
    border-top: 1px solid #f1f5f9;
}
.faq-item:first-child {
    border-top: none;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: none;
    background: #fff;
    color: #111827;
    text-align: left;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.faq-question:hover {
    background: #fff7ed;
}
.faq-question span {
    flex: 1;
}
.faq-question i {
    flex-shrink: 0;
    color: #b30000;
    transition: transform .2s ease;
}
.faq-item.is-open .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    display: none;
    padding: 0 18px 18px;
    color: #374151;
    line-height: 1.75;
}
.faq-item.is-open .faq-answer {
    display: block;
}
.faq-answer > *:first-child {
    margin-top: 0;
}
.faq-answer > *:last-child {
    margin-bottom: 0;
}

/* 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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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;
    justify-content: space-between;
    gap: 10px;
    font-size: .78rem;
    margin-top: 8px;
}
.pc-status-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.pc-instock  { color: #ea580c; 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; }
.product-hover-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(78vh, 620px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #f1d7a6;
    border-radius: 16px;
    box-shadow:
        0 22px 48px rgba(15, 23, 42, .18),
        0 0 0 1px rgba(255,255,255,.55) inset;
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    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: 14px 16px 12px;
    background: linear-gradient(135deg, #8f0000 0%, #b30000 56%, #d6a11d 100%);
    color: #fff;
}
.phpop-title {
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.45;
}
.phpop-body {
    padding: 14px 16px 16px;
    color: #374151;
}
.phpop-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 10px;
}
.phpop-price-label {
    font-size: .8rem;
    font-weight: 700;
    color: #6b7280;
}
.phpop-price-sale {
    font-size: 1.16rem;
    font-weight: 800;
    color: #dc2626;
}
.phpop-price-original {
    font-size: .84rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.phpop-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: .72rem;
    font-weight: 800;
}
.phpop-meta {
    font-size: .84rem;
    color: #374151;
    margin-bottom: 10px;
}
.phpop-meta-label {
    font-weight: 700;
    color: #111827;
}
.phpop-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(214,161,29,.35), rgba(214,161,29,0));
    margin: 12px 0;
}
.phpop-section-title,
.phpop-gifts-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.phpop-section-title i,
.phpop-gifts-head i {
    color: #d6a11d;
}
.phpop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}
.phpop-list li {
    position: relative;
    padding-left: 16px;
    font-size: .82rem;
    line-height: 1.55;
    color: #4b5563;
}
.phpop-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b30000, #d6a11d);
}
.phpop-gifts {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
}
.phpop-gifts-body .phpop-list li::before {
    background: #f97316;
}
@media (max-width: 1024px) {
    .product-hover-popup {
        display: none !important;
    }
}
.btn-card-add {
    position: static;
    width: 34px; height: 34px; border-radius: 50%;
    background: #b30000; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer; opacity: 1;
    transition: background .15s, transform .15s;
    flex: 0 0 auto;
}
.pc-status-row .btn-card-add.btn-add-cart {
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin-top: 0;
    padding: 0;
    border-radius: 50%;
    align-self: center;
}
.btn-card-add:hover { background: #8c0000; transform: scale(1.04); }

/* Pagination: replace blue */
.page-link.active { background: #b30000; color: #fff; border-color: #b30000; }

/* ============================================================
   FLASH SALE SECTION
   ============================================================ */
.fs-section {
    background: linear-gradient(90deg, #7f0000 0%, #b30000 40%, #c65b09 74%, #d6a11d 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: 5;
    --fs-gap: 16px;
}
.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(90deg, #970000 0%, #cf2d00 46%, #d6a11d 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: #b30000; }

/* 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, #940000 0%, #b30000 55%, #c88a17 100%);
    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(179, 0, 0, .22);
    transition: transform .15s, box-shadow .15s;
    line-height: 1;
}
.fs-btn-add:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(179, 0, 0, .32); }

/* 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: #b77912;
    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: #fff4dc;
    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: #fcf2df;
    border: 1px solid #d7a244;
    color: #92590d;
    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: #f6e2b2; border-color: #b77912; color: #7a3c15; }
.hcs-view-all {
    margin-left: auto;
    color: #b77912;
    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: #7a3c15; }

/* 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 #b77912;
    color: #b77912;
    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: #fcf2df; border-color: #92590d; }
.hcs-tab.active { background: #b77912; color: #fff; border-color: #b77912; }
.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: #b77912; }

/* Slider outer */
.hcs-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
}
.hcs-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
    --hcs-cols: 5;
    --hcs-gap: 12px;
}
.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: #b77912; color: #b77912; box-shadow: 0 2px 10px rgba(217,119,6,.22); 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;
    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: #d7a244; }
.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: 12px 12px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.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: 700;
    color: #dc2626;
    white-space: nowrap;
}
.hcs-card-name {
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.52em;
}

/* Card footer */
.hcs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 12px;
}
.hcs-stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 600;
    min-width: 0;
}
.hcs-stock.in-stock  { color: #ea580c; }
.hcs-stock.no-stock  { color: #ef4444; }
.hcs-btn-add {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #b30000;
    color: #fff;
    border: none;
    font-size: .95rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(179, 0, 0, .22);
    transition: transform .15s, box-shadow .15s;
    line-height: 1;
}
.hcs-btn-add:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(179, 0, 0, .32); }

/* 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: 10px 10px 4px; }
    .hcs-card-footer { padding: 0 10px 10px; }
    .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: #b30000;
    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: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f3f4f6;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    text-decoration: none;
    color: inherit;
}
.hb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
    border-color: #e5e7eb;
}

/* Thumbnail */
.hb-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 10px;
    flex-shrink: 0;
}
.hb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .28s ease;
    will-change: transform;
}
.hb-card:hover .hb-thumb img {
    transform: scale(1.065);
    filter: saturate(1.03);
}
.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: 14px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hb-post-title {
    font-size: .92rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    transition: color .2s ease;
}
.hb-card:hover .hb-post-title { color: #7f1d1d; }
.hb-excerpt {
    font-size: .81rem;
    color: #6b7280;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.86em;
    text-wrap: pretty;
}
.hb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 6px;
    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; }
    .hb-body { padding: 12px 12px 10px; gap: 7px; }
    .hb-excerpt { -webkit-line-clamp: 2; min-height: 3.24em; }
}
@media (max-width: 480px) {
    .hb-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hb-card { border-radius: 12px; }
    .hb-body { padding: 11px 11px 10px; gap: 6px; }
    .hb-thumb { border-radius: 9px; }
}
@media (max-width: 1280px) and (min-width: 1025px) {
    .fs-slider-viewport { --fs-cols: 4; }
}

/* ============================================================
   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: #b30000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
    }
    .cart-qty-btn:active { background: #fcf2df; }
    .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: #b30000; box-shadow: 0 0 0 3px rgba(179, 0, 0, .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(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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: #b30000; }

/* 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: #b30000; background: #fcf2df; }
.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: #b30000; }
.ck-payment-item:has(input:checked) .ck-payment-radio::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 8px; height: 8px; background: #b30000; 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: #b30000; font-weight: 600; }

.ck-submit-btn {
    display: block; width: calc(100% - 32px); margin: 4px 16px 8px;
    padding: 13px; background: linear-gradient(90deg, #8f0000 0%, #b30000 58%, #d6a11d 100%);
    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: #b30000; }

/* 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: #b30000; 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: #fcf2df; border: 1px solid #edca9d;
    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 #f6e2b2;
    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-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: #b30000; color: #fff;
    border-radius: 10px; font-size: .92rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.btn-ck-primary:hover { background: #d6a11d; }
.btn-ck-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 1.5px solid #b30000; color: #b30000;
    border-radius: 10px; font-size: .92rem; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.btn-ck-outline:hover { background: #b30000; color: #fff; }

@media (max-width: 860px) {
    .ck-layout { grid-template-columns: 1fr; }
    .ck-summary { position: static; }
}


/* ============================================================
   AUTH
   ============================================================ */
.auth-page { display: flex; justify-content: center; padding: 48px 16px; background: #fcf2df; 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(90deg,#8f0000 0%, #b30000 58%, #d6a11d 100%); 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: #b30000; }
.auth-links { text-align: center; margin-top: 16px; font-size: .88rem; color: #6b7280; }
.auth-links a { color: #b30000; 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, #b30000, #d6a11d); 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: 0 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(90deg, #860000 0%, #b30000 56%, #c99212 100%);
    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(90deg, #860000 0%, #b30000 56%, #c99212 100%); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pcb-row-head > div { padding: 10px 14px; }

.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: #d6a11d; 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: 10px; min-height: 48px; }
.pcb-slot-empty { font-size: .82rem; color: #9ca3af; font-style: italic; }
.pcb-sel-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; 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: #b30000; }
.pcb-sel-meta { display: none; margin-top: 4px; flex-wrap: wrap; gap: 8px; }
.pcb-sel-label { font-weight: 700; color: #111827; }
.pcb-sel-price { font-weight: 800; color: #111827; font-size: .85rem; }
.pcb-sel-warranty { font-size: .85rem; color: #9ca3af; }

/* Add / Remove buttons */
.pcb-add-btn {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8f0000 0%, #b30000 55%, #c99212 100%);
    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 #f7dfd3;
}
.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 #b30000; color: #b30000;
}
.pcb-btn-outline:hover { background: #b30000; color: #fff; }
.pcb-btn-excel { border-color: #b77912; color: #b77912; }
.pcb-btn-excel:hover { background: #b77912; color: #fff; }
.pcb-btn-primary {
    background: linear-gradient(90deg, #860000 0%, #b30000 56%, #c99212 100%);
    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(90deg, #860000 0%, #b30000 56%, #c99212 100%);
    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: #b30000; }
.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: #b30000; }
.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: #b30000; }
.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: #b30000; 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: #b30000; text-transform: uppercase;
    letter-spacing: .07em; padding: 9px 12px; background: #fcf2df;
    border-bottom: 1px solid #edca9d;
    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: #b30000; width: 14px; height: 14px; flex-shrink: 0; }
.pcb-attr-check:hover span { color: #b30000; }
.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: #b30000; box-shadow: 0 0 0 3px rgba(179, 0, 0, .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: #b30000; color: #b30000; }
.pcb-page-btn.pcb-page-active { background: #b30000; border-color: #b30000; 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: #fcf2df; }
.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: #b30000; color: #fff;
    transition: background .13s;
}
.pcb-row-pick-btn:hover { background: #7f0000; }
.pcb-row-pick-active { background: #d6a11d; }
.pcb-row-pick-active:hover { background: #9d570b; }

/* 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, #4f0000 0%, #7f0000 28%, #a01400 56%, #92590d 82%, #c99212 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;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-copyright {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-copyright strong {
    color: #fff;
    display: block;
    font-size: .9rem;
    font-weight: 700;
}
.footer-copyright span {
    color: rgba(255,255,255,.76);
    font-size: .8rem;
}
.footer-bct-link {
    display: inline-flex;
    align-items: center;
    transition: opacity .2s ease, transform .2s ease;
}
.footer-bct-link:hover {
    opacity: .92;
    transform: translateY(-1px);
}
.footer-bct-image {
    display: block;
    max-width: 145px;
    width: 100%;
    height: auto;
}
.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; }
    .footer-bottom-left { align-items: flex-start; gap: 12px; }
    .footer-bct-image { max-width: 130px; }
}
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: #b30000; color: #fff; border-color: #b30000; }
.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; }
    .faq-question { padding: 14px 16px; }
    .faq-answer { padding: 0 16px 16px; }
}
