/* ------------------------------------------------------------
   1. TOKENS + RESET
   ------------------------------------------------------------ */
:root {
    --bg: #f4f1ea;
    --surface: #faf8f3;                 /* neutral-100 — elevated opaque surfaces (dropdowns, modals, toasts) */
    --wash: #eae5da;                    /* color-surface from the Classical ramp */
    --border: color-mix(in srgb, #1c1b19 16%, transparent); /* hairline divider */

    --ink: #1c1b19;
    --ink-2: color-mix(in srgb, #1c1b19 70%, transparent);
    --ink-3: color-mix(in srgb, #1c1b19 66%, transparent);

    --accent: #b38b45;                  /* the single accent — gold, used as line not fill */
    --accent-hover: #9a743a;            /* accent-600 */
    --accent-700: #76561f;              /* small colored text sits on this darker step */
    --accent-bg: #f8eedb;               /* accent-100 — tiny tag fills only */

    --paper: #f4f1ea;                   /* text color on the dark colophon */
    --colophon: #1c1b19;                /* dark brand band (hero, page-end, headers) */
    --hairline-dark: color-mix(in srgb, #f4f1ea 14%, transparent);

    --success: #5E8C61;
    --success-bg: #EEF3EE;
    --warning: #76561f;
    --warning-bg: #f8eedb;
    --danger: #C04A3A;
    --danger-bg: #F9ECEA;

    --radius: 4px;
    --radius-btn: 4px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
    --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);

    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-heading: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --container: 1120px;
    --header-h: 64px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600; /* semibold is the interface-heading ceiling; display sizes drop to 400 */
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--ink);
}

img {
    max-width: 100%;
    display: inline-block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
}

::selection {
    background: var(--accent-bg);
    color: var(--ink);
}

::placeholder {
    color: var(--ink-3);
}

/* ------------------------------------------------------------
   2. GENERIC FORM CONTROLS
   ------------------------------------------------------------ */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

input.error,
textarea.error {
    border-color: var(--danger);
    background: var(--danger-bg);
}

/* ------------------------------------------------------------
   3. HEADER / NAV / SEARCH
   ------------------------------------------------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: transform .28s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center; /* không đổi gì khi có đủ nội dung (desktop); chỉ để căn giữa
                                  logo-mark khi min-width kéo dài vùng bấm trên điện thoại */
    gap: 10px;
    flex-shrink: 0;
    min-height: 40px; /* vùng bấm cảm ứng — logo-mark cao 39px, dưới ngưỡng WCAG */
    min-width: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 7px 13px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--radius-btn);
    transition: color .15s ease, background .15s ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--wash);
}

.nav-links a.active {
    color: var(--accent-hover);
    background: var(--accent-bg);
}

/* Search */
.search-container {
    position: relative;
    flex: 1;
    max-width: 340px;
    margin-left: auto;
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    display: flex;
    align-items: center;
    pointer-events: none;
}

input.search-input {
    width: 100%;
    min-height: 40px; /* vùng bấm cảm ứng — trước 38px, dưới ngưỡng WCAG */
    padding: 9px 14px 9px 38px;
    font-size: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

/* Search results dropdown */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 380px;
    overflow-y: auto;
    z-index: 950;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    transition: background .15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--wash);
    color: var(--ink);
}

.search-result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wash);
    border-radius: 8px;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
}

.search-result-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.search-no-results {
    padding: 18px 14px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-2);
}

/* Cart icon (hidden in public mode by public-only.css) */

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.35); }
    65% { transform: scale(.9); }
}

/* */
.nav-lienhe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius-btn);
    transition: background .15s ease;
}

.nav-lienhe-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ------------------------------------------------------------
   4. PAGES + SECTION SHELL
   ------------------------------------------------------------ */
.page {
    display: none;
}

.page.active {
    display: block;
}

#homePage section {
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 44px 24px;
}

#homePage section:first-of-type {
    padding-top: 64px;
}

/* ------------------------------------------------------------
   7. PRODUCT GRID + CARDS
   ------------------------------------------------------------ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    background: var(--wash);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 20px;
}

.product-image img {
    max-height: 100%;
    max-width: 70%;
    object-fit: contain;
}

/* Khung CẢ thẻ sản phẩm — cùng nguyên tắc trang chi tiết: viền ngoài vàng đồng đậm 2px,
   đường chỉ vàng nhạt chạy quanh bên trong (outline âm, vẽ đè lên nội dung nên liền mạch
   qua cả ô ảnh). "body" để thắng rule .product-card cuối file. Thẻ logo: ngoài đậm, trong nhạt. */
body .product-card {
    border: 2px solid var(--frame-bold);
    outline: 1px solid var(--frame-soft);
    outline-offset: -8px;
}
body .product-card:hover { border-color: var(--frame-bold); }
body .product-card .product-image { border-bottom-color: var(--frame-soft); }
.product-card .product-image img {
    position: relative;
    z-index: 1;
    height: calc(100% - 22px);   /* chừa chỗ cho outline, không chạm các đường khung */
    width: auto;
    max-width: none;
    aspect-ratio: 1;
    padding: 9px;
    background: var(--surface);
    border: 1px solid var(--frame-soft);
    border-radius: 16px;
    outline: 2px solid var(--frame-bold);
    outline-offset: 3px;
    box-shadow: 0 10px 20px -14px rgb(28 27 25 / .55);
}

.product-card-flash-sale {
    border-color: var(--accent);
}

.flash-sale-card-badge,
.flash-sale-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--accent-hover);
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
}

.flash-sale-card-badge {
    position: absolute;
    z-index: 2; /* nằm trên thẻ logo (z-index 1) */
    top: 10px;
    left: 10px;
}

.product-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.product-tagline {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 38px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.product-rating-stars {
    color: var(--warning);
    font-weight: 500;
}

.stars {
    letter-spacing: 1px;
}

.product-sold {
    color: var(--ink-3);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-hover);
}

.price-sale {
    color: var(--accent);
}

.product-original-price,
.variant-original-price {
    font-size: 13px;
    color: var(--ink-3);
    text-decoration: line-through;
}

.product-discount-pct,
.variant-discount-pct {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-hover);
    background: var(--accent-bg);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
}

/* Card CTA */
.buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-btn);
    transition: background .15s ease;
}

.buy-now-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ------------------------------------------------------------
   11. PRODUCTS PAGE (all services + filters)
   ------------------------------------------------------------ */
.products-container {
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 48px 24px 88px;
}

.products-header-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.filter-chips-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.filter-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 2px;
}

.filter-list li {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
}

.filter-list li:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}

.filter-list li.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* ------------------------------------------------------------
   12. PRODUCT DETAIL
   ------------------------------------------------------------ */
.product-detail {
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 48px 24px 88px;
}

.product-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 40px;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    background: var(--wash);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    min-height: 240px;
}

.main-image img {
    max-height: 180px;
    object-fit: contain;
}

/* Khung ảnh theo logo "nhãn giá treo" — nguyên tắc: viền NGOÀI đậm, viền TRONG nhạt.
   Ô ảnh: viền vàng đồng đậm 2px → đường chỉ vàng nhạt bên trong + 4 góc chữ L đậm (kiểu khung tranh).
   Thẻ logo: vòng ngoài đậm 2px (outline) → viền trong mảnh nhạt. Thẻ lật/xoay cùng logo (motion.css). */
.main-image,
.product-card {
    --frame-bold: var(--accent-icon, #9a743a);
    --frame-soft: color-mix(in srgb, var(--accent-line) 40%, transparent);
}
.main-image {
    position: relative;
    border: 2px solid var(--frame-bold);
}
.main-image::before {
    --c: var(--frame-bold);
    --l: 18px;
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid var(--frame-soft);
    border-radius: 2px;
    background:
        linear-gradient(var(--c), var(--c)) top left    / var(--l) 2px no-repeat,
        linear-gradient(var(--c), var(--c)) top left    / 2px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) top right   / var(--l) 2px no-repeat,
        linear-gradient(var(--c), var(--c)) top right   / 2px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / var(--l) 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 2px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right/ var(--l) 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right/ 2px var(--l) no-repeat;
    pointer-events: none;
}
.main-image img {
    width: 206px;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1;          /* thẻ vuông cho mọi logo, logo ngang (Netflix…) căn giữa trong thẻ */
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--frame-soft);
    border-radius: 22px;
    outline: 2px solid var(--frame-bold);
    outline-offset: 5px;
    box-shadow: 0 16px 30px -18px rgb(28 27 25 / .55);
}

/* Order info panel */
.order-info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-info-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--wash);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all .15s ease;
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

/* Price summary */
.detail-price-summary {
    background: var(--wash);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 14px 16px;
}

.price-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-2);
    padding: 3px 0;
}

.price-summary-row.total-row {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
}

.total-value {
    color: var(--accent-700);
    font-size: 18px;
}

.price-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Detail action buttons */
.buy-now-row {
    display: flex;
    gap: 10px;
}

.buy-now-row .buy-now-btn {
    flex: 1;
    padding: 13px 16px;
    font-size: 15px;
}

/* Details column */
.product-details h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.product-description {
    font-size: 15.5px;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.delivery-info-box {
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.delivery-line {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-700);
}

/* Variants */
.variant-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.variant-option:hover {
    border-color: var(--ink-3);
}

.variant-option.selected {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 0 1px var(--accent);
}

.variant-option.just-selected {
    animation: variantPop .3s ease;
}

@keyframes variantPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.012); }
    100% { transform: scale(1); }
}

.variant-option.variant-out-of-stock {
    opacity: .55;
    cursor: not-allowed;
}

.variant-select-circle {
    padding-top: 3px;
    flex-shrink: 0;
}

.variant-select-circle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.variant-info {
    flex: 1;
}

.variant-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.variant-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-name {
    font-size: 15px;
    font-weight: 600;
}

.variant-price-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    text-align: right;
}

.variant-price-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-700);
}

.variant-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.out-of-stock-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    background: var(--danger-bg);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
}

/* Nhãn lưu ý của gói (giá biến động, cài đặt phức tạp) — nhắc khách hỏi tiệm */
.variant-flag-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--warning-text);
    background: var(--warning-bg);
    border: 1px solid color-mix(in srgb, var(--palette-gold-600) 45%, transparent);
    border-radius: var(--radius-pill);
    padding: 1px 8px;
    white-space: nowrap;
}

.variant-flag-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--warning-text);
}

/* Duration badges */
.duration-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    background: var(--wash);
    color: var(--ink-2);
    border: 1px solid var(--border);
}

.duration-badge.duration-year {
    color: var(--success);
    background: var(--success-bg);
}

.duration-badge.duration-month {
    color: var(--accent-700);
    background: var(--accent-bg);
}

.duration-badge.duration-day,
.duration-badge.duration-once {
    color: var(--warning);
    background: var(--warning-bg);
}

/* Product tabs */
.product-tabs {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: var(--wash);
}

.tab-button {
    flex-shrink: 0;
    padding: 14px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.tab-button:hover {
    color: var(--ink);
}

.tab-button.active {
    color: var(--accent-700);
    border-bottom-color: var(--accent);
    background: var(--surface);
}

.tab-content {
    display: none;
    padding: 26px 28px;
    font-size: 15px;
    color: var(--ink-2);
}

.tab-content.active {
    display: block;
}

.tab-content h3,
.tab-content h4 {
    color: var(--ink);
    margin: 18px 0 8px;
    font-size: 17px;
}

.tab-content h3:first-child {
    margin-top: 0;
}

.tab-content ul,
.tab-content ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.tab-content li {
    margin-bottom: 5px;
}

.tab-content p {
    margin-bottom: 10px;
}

.tab-content strong {
    color: var(--ink);
}

/* Timeline */

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CTV payment timeline */

@keyframes ctvFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
.footer-v2 {
    background: var(--wash);
    border-top: 1px solid var(--border);
}

.footer-v2-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-2);
    padding: 4px 0;
    transition: color .15s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-about-text {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.65;
}

.footer-about-text strong {
    color: var(--ink);
}

.footer-contact-item {
    font-size: 14px;
    color: var(--ink-2);
    padding: 4px 0;
}

.footer-contact-item a {
    display: inline;
    padding: 0;
    color: var(--accent);
}

.footer-v2-social {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--ink-2);
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .15s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-v2-bottom {
    border-top: 1px solid var(--border);
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px 28px;
    font-size: 13px;
    color: var(--ink-2);
}

/* Legal disclaimer — must out-rank public-only.css white !important */
footer.footer-v2 .footer-v2-bottom > div {
    color: var(--ink-3) !important;
    font-size: 12px !important;
    margin-top: 6px;
    line-height: 1.6;
}

footer.footer-v2 .footer-v2-bottom > div strong {
    color: var(--ink-2);
}

/* ------------------------------------------------------------
   18. TOAST / BACK-TO-TOP / FABs / MOBILE NAV / POLICY MODAL
   ------------------------------------------------------------ */
#toast-container {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 360px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--ink-3);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    animation: toastSlideIn .3s ease;
    pointer-events: auto;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.info {
    border-left-color: var(--accent);
}

.toast.info .toast-icon {
    color: var(--accent);
}

.toast-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(24px); }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 92px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 850;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* */
.contact-fab {
    position: fixed;
    right: 20px;
    bottom: 26px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    z-index: 860;
    transition: transform .15s ease;
}

.contact-fab:hover {
    transform: translateY(-2px);
}

.contact-fab svg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: block;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 880;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
}

.mobile-nav-item svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
    fill: none;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-hover);
}

/* Policy modal */
.policy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 30, 29, .45);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal-overlay.open {
    display: flex;
}

.policy-modal {
    width: min(640px, 100%);
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.policy-modal-header h2 {
    font-size: 20px;
}

.policy-modal-close {
    width: 32px;
    height: 32px;
    font-size: 19px;
    line-height: 1;
    color: var(--ink-2);
    background: var(--wash);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.policy-modal-body {
    padding: 20px 24px 26px;
    overflow-y: auto;
    font-size: 14.5px;
    color: var(--ink-2);
}

.policy-modal-body h3 {
    font-size: 16.5px;
    color: var(--ink);
    margin: 16px 0 8px;
}

.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.policy-modal-body li {
    margin-bottom: 5px;
}

/* ------------------------------------------------------------
   19. ANIMATION HELPERS (reveal / stagger / ripple / confetti)
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
}

.stagger.visible > * {
    opacity: 1;
    transform: none;
}

.stagger.visible > *:nth-child(1) { transition-delay: .03s; }
.stagger.visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.visible > *:nth-child(3) { transition-delay: .13s; }
.stagger.visible > *:nth-child(4) { transition-delay: .18s; }
.stagger.visible > *:nth-child(5) { transition-delay: .23s; }
.stagger.visible > *:nth-child(6) { transition-delay: .28s; }
.stagger.visible > *:nth-child(n+7) { transition-delay: .32s; }

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(31, 30, 29, .12);
    transform: scale(0);
    animation: rippleGrow .5s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleGrow {
    to { transform: scale(2.2); opacity: 0; }
}

@keyframes confettiFall {
    to {
        transform: translateY(105vh) rotate(540deg);
        opacity: .4;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
    *,
*::before,
*::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal,
.stagger > * {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    

    

    .product-layout {
        grid-template-columns: 340px 1fr;
        gap: 24px;
    }

    .footer-v2-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 58px;
    }

    body {
        padding-bottom: 64px;
    }

    nav {
        gap: 12px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-lienhe-btn {
        min-height: 40px; /* vùng bấm cảm ứng — trước 39.7px, dưới ngưỡng WCAG */
        padding: 8px 12px;
        font-size: 13px;
    }

    .logo-text {
        display: none;
    }

    .search-container {
        max-width: none;
    }

    .mobile-bottom-nav {
        display: block;
    }

    #homePage section {
        padding: 32px 16px;
    }

    #homePage section:first-of-type {
        padding-top: 40px;
    }

    

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 120px;
        padding: 14px;
    }

    .product-info {
        padding: 12px 12px 14px;
    }

    .product-tagline {
        display: none;
    }

    .products-container,
.product-detail {
        padding: 32px 16px 72px;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .product-details h1 {
        font-size: 27px;
    }

    

    

    .footer-v2-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 40px 20px 24px;
    }

    .contact-fab {
        bottom: 82px;
        right: 14px;
        width: 46px;
        height: 46px;
    }

    .contact-fab svg {
        width: 46px;
        height: 46px;
    }

    .back-to-top {
        bottom: 142px;
        right: 14px;
    }

    #toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    

    
}

/* — shared keyframes — */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes growBar {
    from { width: 0; }
}

@keyframes lineUp {
    from { transform: translateY(112%); }
    to { transform: none; }
}

@keyframes drawRule {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes drift {
    from { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    to { transform: translateY(0); }
}

@keyframes ghostDrift {
    from { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(.4deg); }
    to { transform: translateY(0) rotate(0deg); }
}

/* Safety net: if the IntersectionObserver never fires (old browser,
   JS error), .reveal/.stagger content must still become visible. */
@keyframes revealSafety {
    to { opacity: 1; transform: none; }
}

.reveal:not(.visible) {
    animation: revealSafety .6s ease 1.5s forwards;
}

.stagger:not(.visible) > * {
    animation: revealSafety .6s ease 1.7s forwards;
}

/* Page mount fade (Classical: fadeUp .35s on every screen change) */
.page.active {
    animation: fadeUp .35s ease both;
}

/* — base typography tune — */
body {
    font-size: 15.5px;
    line-height: 1.55;
}

::selection {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--ink);
}

a {
    color: var(--accent-700);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* input:focus (không phải :focus-visible): input KHÔNG có chế độ "chỉ viền khi dùng bàn
   phím" như link/nút — luôn cần thấy được đang gõ ô nào, dù bấm chuột hay Tab.
   Trước đây outline:none (dòng khối trên) + box-shadow:none ở đây = focus vô hình
   trên MỌI input text của site (kể cả ô tìm kiếm header). */
input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring, 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent));
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    caret-color: var(--accent);
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* — nav — */
.logo-text {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-links a {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 0;
    color: var(--ink-2);
}

.nav-links a:hover {
    background: transparent;
    color: var(--accent);
}

.nav-links a.active {
    background: transparent;
    color: var(--accent-700);
}

input.search-input {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
}

/* */
.nav-lienhe-btn {
    color: var(--accent-700);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    transition: background .15s ease, color .15s ease;
}

.nav-lienhe-btn:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-700);
}

.nav-lienhe-btn svg {
    display: none;
}

/* ════════ HOME · DARK HERO (colophon band) ════════ */

.hero-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.hero-line {
    display: block;
    animation: lineUp .9s cubic-bezier(.22, 1, .36, 1) .15s both;
}

.hero-line-mask:nth-of-type(2) .hero-line {
    animation-delay: .3s;
}

/* Thiếu logo (handleImgError) → ô chữ tên sản phẩm, gạch vàng mảnh bên dưới */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wash);
}
.logo-fallback-mark {
    padding: 0 12px 6px;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
    pointer-events: none;
}
.main-image.logo-fallback .logo-fallback-mark {
    font-size: 56px;
}

/* Vùng bấm trên điện thoại: nút −/+ số lượng chỉ 28px, link "Xem tất cả" cao 26px */
@media (max-width: 768px) {
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    
}

.product-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.product-image {
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.product-name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 23px;
    line-height: 27px;
    letter-spacing: -0.01em;
}

.product-tagline {
    font-size: 14px;
    line-height: 1.55;
    color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.product-meta-row {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ink-3);
}

.product-rating-stars {
    color: var(--accent-700);
    font-weight: 400;
}

.product-price-row {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
    margin-bottom: 12px;
}

.product-price {
    font-size: 16px;
    font-weight: 400;
    font-feature-settings: 'tnum' 1;
    color: var(--accent-700);
}

.price-sale {
    color: var(--accent-700);
}

.product-original-price,
.variant-original-price {
    font-feature-settings: 'tnum' 1;
}

.product-discount-pct,
.variant-discount-pct {
    font-weight: 500;
    color: var(--accent-700);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 3px;
}

.flash-sale-card-badge,
.flash-sale-badge {
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 3px;
}

/* Card CTA — ghost button (bare accent text, tint on hover) */
.buy-now-btn {
    color: var(--accent-700);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    transition: background .15s ease, color .15s ease;
}

.buy-now-btn:hover {
    color: var(--accent-700);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ════════ SERVICES PAGE · DARK HEADER BAND ════════ */
.services-hero {
    background: var(--colophon);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.services-hero-ghost {
    position: absolute;
    top: -30px;
    right: clamp(-40px, 2vw, 40px);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(180px, 20vw, 320px);
    line-height: 1;
    color: color-mix(in srgb, var(--accent) 10%, transparent);
    font-feature-settings: 'tnum' 1;
    pointer-events: none;
    user-select: none;
}

.services-hero-inner {
    position: relative;
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 64px 24px 56px;
}

.services-kicker {
    display: block;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    animation: fadeUp .6s ease .05s both;
}

.services-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(38px, 4.6vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin: 0 0 0 -0.042em;
}

.services-title .hero-line {
    animation-delay: .1s;
}

.services-rule {
    width: 96px;
    height: 1px;
    background: var(--accent);
    margin-top: 22px;
    transform-origin: left;
    animation: drawRule 1s cubic-bezier(.22, 1, .36, 1) .5s both;
}

/* Filter chips → bare text tabs with accent underline */
.products-header-v2 {
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.filter-list {
    gap: 2px;
    padding: 2px 0;
}

.filter-list li {
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    color: color-mix(in srgb, var(--ink) 68%, transparent);
    transition: color .15s ease, border-color .15s ease;
}

.filter-list li:hover {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
}

.filter-list li.active {
    color: var(--accent-700);
    background: transparent;
    border-bottom: 1px solid var(--accent);
}

.results-count {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-feature-settings: 'tnum' 1;
    color: color-mix(in srgb, var(--ink) 70%, transparent);
    white-space: nowrap;
}

.products-footnote {
    margin: 42px 0 0;
    font-size: 13px;
    line-height: 28px;
    color: color-mix(in srgb, var(--ink) 70%, transparent);
}

/* ════════ FOOTER — dark colophon, 13px muted ════════ */
.footer-v2 {
    background: var(--colophon);
    border-top: none;
}

.footer-col h4 {
    color: var(--paper);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.footer-col a,
.footer-about-text,
.footer-contact-item,
.footer-v2-social {
    color: color-mix(in srgb, #f4f1ea 55%, transparent);
    font-size: 13px;
    line-height: 1.7;
}

.footer-about-text strong {
    color: color-mix(in srgb, #f4f1ea 82%, transparent);
}

.footer-col a:hover,
.footer-contact-item a {
    color: var(--accent);
}

.footer-v2-bottom {
    border-top: 1px solid var(--hairline-dark);
    color: color-mix(in srgb, #f4f1ea 50%, transparent);
    font-size: 13px;
}

/* Legal disclaimer — must out-rank public-only.css !important */
footer.footer-v2 .footer-v2-bottom > div {
    color: color-mix(in srgb, #f4f1ea 62%, transparent) !important;
}

footer.footer-v2 .footer-v2-bottom > div strong {
    color: color-mix(in srgb, #f4f1ea 62%, transparent);
}

/* — toast: hairline card, accent line — */
.toast {
    border-left-width: 2px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* — back-to-top / policy modal follow the tokens automatically — */
.policy-modal {
    border-radius: var(--radius);
}

.policy-modal-close {
    background: transparent;
}

/* ════════ RESPONSIVE for the new sections ════════ */

@media (max-width: 768px) {
    

    

    

    

    

    

    

    

    .services-hero-inner {
        padding: 44px 16px 40px;
    }

    .products-header-v2 {
        align-items: flex-start;
    }

    
}

/* — reduced motion: kill the decorative loops outright — */
@media (prefers-reduced-motion: reduce) {
    .hero-line,
.services-title .hero-line,
.services-rule,
.services-kicker,
.page.active {
        animation: none !important;
    }

    

    .reveal:not(.visible),
.stagger:not(.visible) > * {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   KHUNG NHẸ — trang Dịch vụ (dải tiêu đề + bảng lọc)
   Cùng ngôn ngữ khung với thẻ sản phẩm nhưng nhẹ hơn một bậc:
   dải tối → đường chỉ vàng mảnh + 4 góc chữ L như thiệp mời;
   danh mục + bộ lọc → một tấm bảng sáng, viền vàng nhạt, bóng rất khẽ.
   ============================================================ */
.services-hero-inner { padding-left: 56px; padding-right: 56px; }
/* Khung thẳng hàng cột nội dung (bảng lọc + lưới thẻ bên dưới), chữ lùi vào trong khung */
.services-hero-inner::after {
    --c: color-mix(in srgb, var(--accent) 75%, transparent);
    --l: 22px;
    content: "";
    position: absolute;
    inset: 18px 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: 2px;
    background:
        linear-gradient(var(--c), var(--c)) top left    / var(--l) 1.5px no-repeat,
        linear-gradient(var(--c), var(--c)) top left    / 1.5px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) top right   / var(--l) 1.5px no-repeat,
        linear-gradient(var(--c), var(--c)) top right   / 1.5px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1.5px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 1.5px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right/ var(--l) 1.5px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right/ 1.5px var(--l) no-repeat;
    pointer-events: none;
}

/* Danh mục (hàng trên) + thời hạn/sắp xếp (hàng dưới, catalog-plus) = 1 tấm bảng */
#productsPage .products-header-v2,
#productsPage .cp-toolbar {
    --panel-line: color-mix(in srgb, var(--accent-line) 42%, transparent);
    background: var(--surface);
    border: 1px solid var(--panel-line);
    padding: 12px 20px;
}
#productsPage .products-header-v2 {
    border-radius: var(--radius);
    margin-bottom: 32px;
}
#productsPage .products-header-v2:has(+ .cp-toolbar) {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 22%, transparent);
    margin-bottom: 0;
}
#productsPage .cp-toolbar {
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 0 32px;
    box-shadow: 0 14px 28px -24px rgb(28 27 25 / .45);
}
@media (max-width: 768px) {
    .services-hero-inner { padding-left: 30px; padding-right: 30px; }
    .services-hero-inner::after { inset: 12px; --l: 16px; }
    #productsPage .products-header-v2,
    #productsPage .cp-toolbar { padding: 10px 14px; }
}

/* */
header {
    --frame-bold: var(--accent-icon, #9a743a);
    --frame-soft: color-mix(in srgb, var(--accent-line) 45%, transparent);
    border-bottom: 1px solid var(--frame-bold);
    box-shadow: 0 3px 0 0 var(--bg), 0 4px 0 0 var(--frame-soft);
}
header input.search-input {
    border-color: var(--frame-soft);
    background: var(--surface);
    transition: border-color var(--dur-fast, .15s) ease;
}
header input.search-input:hover { border-color: color-mix(in srgb, var(--accent-line) 70%, transparent); }
header input.search-input:focus { border-color: var(--frame-bold); }
header .nav-links a.active {
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 9px;
}
header .nav-lienhe-btn { border: 1.5px solid var(--frame-bold); }

/* Trang chi tiết: hàng nút chỉ còn 1 nút "Báo người bán tư vấn" → rộng hết hàng
   (trước nằm trong public-only.css, đã gỡ cùng hệ thống bán hàng cũ) */
.buy-now-row .buy-now-btn {
    flex: 1 1 100%;
    width: 100%;
}
