/* ============ TOKENS ============ */
/* Cổ Thạch Handmade — stylesheet dùng chung */
:root {
    --paper: #f7f2e9;
    --paper-2: #efe7d8;
    --card: #fffdf8;
    --ink: #1e1a16;
    --ink-soft: #5b534a;
    --muted: #8a8075;
    --line: #e2d8c6;
    --seal: #a3302a;          /* đỏ son – màu triện thư pháp */
    --seal-dark: #842520;
    --gold: #b08a4a;
    --stone: #3a3631;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(30,26,22,.04), 0 8px 24px rgba(30,26,22,.07);
    --shadow-lg: 0 2px 4px rgba(30,26,22,.05), 0 18px 40px rgba(30,26,22,.12);
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 500; font-size: 15px; letter-spacing: .2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ============ TOP BAR ============ */
.topbar {
    background: var(--stone); color: #e9e1d3;
    font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--gold); margin-right: 6px; }

/* ============ HEADER ============ */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247,242,233,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(30,26,22,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav ul a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav ul a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--seal); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav ul a:hover, .nav ul a.active { color: var(--ink); }
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; padding: 8px; }

/* ============ HERO SLIDER ============ */
.hero { position: relative; height: min(82vh, 720px); min-height: 480px; overflow: hidden; background: var(--stone); }
.slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.active img { transform: scale(1); }
.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,17,14,.82) 0%, rgba(20,17,14,.55) 42%, rgba(20,17,14,.05) 75%);
}
.slide-content {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center;
}
.slide-text { max-width: 540px; color: #fff; }
.slide-text > * { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.slide.active .slide-text > * { opacity: 1; transform: none; }
.slide.active .slide-text > *:nth-child(2) { transition-delay: .12s; }
.slide.active .slide-text > *:nth-child(3) { transition-delay: .24s; }
.slide.active .slide-text > *:nth-child(4) { transition-delay: .36s; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.slide-text h2 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(40px, 6vw, 68px); line-height: 1.05;
    margin: 16px 0 18px;
}
.price-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.price-now { font-size: 30px; font-weight: 600; }
.price-old { color: rgba(255,255,255,.6); text-decoration: line-through; font-size: 17px; }
.badge-sale { background: var(--seal); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; align-self: center; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-ctrl {
    position: absolute; z-index: 3; bottom: 34px; right: 24px;
    display: flex; align-items: center; gap: 18px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
    width: 28px; height: 3px; border: 0; padding: 0; border-radius: 2px;
    background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .3s;
}
.hero-dots button.active { background: #fff; width: 44px; }
.hero-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
    cursor: pointer; transition: background .25s, color .25s;
}
.hero-arrow:hover { background: #fff; color: var(--ink); }

/* ============ TRUST STRIP ============ */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item i {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper-2); color: var(--seal); font-size: 17px;
}
.trust-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ============ SECTIONS ============ */
section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--seal); }
.section-head .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-head h2 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1;
    margin: 14px 0 14px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ============ TAM ĐA ============ */
.tamda-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.combo-feature {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); min-height: 520px; display: block;
}
.combo-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.combo-feature:hover img { transform: scale(1.04); }
.combo-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,17,14,.85) 0%, rgba(20,17,14,0) 55%); }
.combo-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px; color: #fff; }
.combo-feature-body h3 { font-family: var(--serif); font-size: 38px; font-weight: 600; margin: 8px 0 6px; line-height: 1.1; }
.combo-feature-body .meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.combo-feature-body .price-now { font-size: 26px; }

.tamda-list { display: flex; flex-direction: column; gap: 16px; }
.tamda-item {
    display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; transition: box-shadow .3s, transform .3s, border-color .3s;
    flex: 1;
}
.tamda-item:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: transparent; }
.tamda-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.tamda-item h4 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 6px; line-height: 1.2; }
.tamda-item .price { color: var(--seal); font-weight: 600; }
.tamda-item .go { font-size: 13px; color: var(--muted); margin-left: 12px; }

/* ============ PRODUCT FILTER ============ */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button {
    font: inherit; font-size: 14px; font-weight: 500;
    padding: 9px 22px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
    cursor: pointer; transition: all .25s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow .35s, transform .35s, border-color .35s;
    display: flex; flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product.hide { display: none; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product:hover .product-media img { transform: scale(1.06); }
.product.is-out .product-media img { filter: grayscale(.35); }
.tag {
    position: absolute; top: 14px; left: 14px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    background: rgba(255,253,248,.92); color: var(--ink); padding: 5px 11px; border-radius: 999px;
}
.stock {
    position: absolute; top: 14px; right: 14px;
    font-size: 11.5px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px;
}
.stock.out { background: var(--stone); color: #fff; }
.stock.in  { background: #2f6b4f; color: #fff; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 0 0 2px; }
.product-body .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }

/* ============ COMBO 2 VIÊN ============ */
.combo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 920px; margin: 0 auto; }
.combo-grid .product-media { aspect-ratio: 4 / 3; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-img .seal {
    position: absolute; right: -22px; bottom: 36px;
    width: 108px; height: 108px; border-radius: 12px;
    background: var(--seal); color: #fff;
    display: grid; place-items: center; text-align: center;
    font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.15;
    box-shadow: var(--shadow-lg); transform: rotate(-4deg);
}
.about-text .eyebrow { color: var(--seal); }
.about-text h2 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 46px); font-weight: 600; line-height: 1.12; margin: 14px 0 20px; }
.about-text > p { color: var(--ink-soft); margin: 0 0 16px; }
.values { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 30px 0; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.value i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--seal); border: 1px solid var(--line); }
.value strong { display: block; font-weight: 600; margin-bottom: 2px; }
.value span { font-size: 14.5px; color: var(--ink-soft); }
blockquote {
    margin: 0; padding: 22px 26px;
    border-left: 3px solid var(--seal); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--stone);
}

/* ============ CTA BAND ============ */
.cta-band { background: var(--stone); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d6cdbf; }

/* ============ FOOTER ============ */
footer { background: #17140f; color: #b9b0a2; font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 44px; padding: 72px 0 52px; }
footer h4 { font-family: var(--sans); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 20px; }
footer p { margin: 0 0 10px; }
footer a:hover { color: #fff; }
.f-brand .brand-name { color: #fff; }
.f-brand .brand-name small { color: #8a8075; }
.f-brand p { margin-top: 18px; }
.f-list { list-style: none; padding: 0; margin: 0; }
.f-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin-bottom: 12px; }
.f-list i { color: var(--gold); margin-top: 4px; }
.qr { background: #fff; padding: 8px; border-radius: 10px; width: 140px; margin-bottom: 18px; }
.stats { display: flex; flex-direction: column; gap: 8px; }
.stat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.stat .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 4px rgba(63,191,127,.18); }
.stat .dot.alt { background: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,74,.2); }
.stat b { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid #2c2720; padding: 22px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed; left: 22px; bottom: 22px; z-index: 40;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 0; cursor: pointer;
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: var(--seal); }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .slide img, .slide-text > * { transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .trust .wrap { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 76px; left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 24px;
        display: none;
    }
    .nav.open { display: flex; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav ul a::after { display: none; }
    .nav .btn { margin-top: 18px; justify-content: center; }
    .tamda-grid, .about-grid { grid-template-columns: 1fr; }
    .combo-feature { min-height: 420px; }
    .about-grid { gap: 48px; }
    .about-img .seal { right: 16px; }
    section { padding: 72px 0; }
}
@media (max-width: 640px) {
    .topbar .hide-sm { display: none; }
    .topbar .wrap { justify-content: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .combo-grid { grid-template-columns: 1fr; }
    .product-body { padding: 14px; }
    .product-body h3 { font-size: 21px; }
    .product-body .btn { align-self: stretch; justify-content: center; }
    .tag, .stock { font-size: 10px; padding: 4px 8px; top: 10px; }
    .tag { left: 10px; } .stock { right: 10px; }
    .trust .wrap { grid-template-columns: 1fr; }
    .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
    .tamda-item { grid-template-columns: 90px 1fr; }
    .tamda-item img { width: 90px; height: 90px; }
    .tamda-item h4 { font-size: 19px; }
    .combo-feature-body { padding: 24px; }
    .combo-feature-body h3 { font-size: 30px; }
    .footer-main { grid-template-columns: 1fr; gap: 36px; }
    .hero-ctrl { left: 24px; right: 24px; justify-content: space-between; }
    .slide::after { background: linear-gradient(0deg, rgba(20,17,14,.88) 0%, rgba(20,17,14,.45) 60%, rgba(20,17,14,.15) 100%); }
    .slide-content { align-items: flex-end; padding-bottom: 100px; }
    .brand-name { font-size: 22px; }
    .brand img { width: 44px; height: 44px; }
}

/* =========================================================
   TRANG LEN HANDMADE
   ========================================================= */
.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--seal); }
.breadcrumb i { font-size: 10px; }

.page-hero { padding: 56px 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 5.6vw, 66px); line-height: 1.05; margin: 16px 0 20px; }
.page-hero h1 em { font-style: italic; color: var(--seal); }
.page-hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 500px; margin: 0 0 30px; }
.page-hero .eyebrow { color: var(--seal); }
.hero-facts { display: flex; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-facts div { font-size: 13.5px; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; }

.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 520px; }
.collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.collage figure:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .sticker {
    position: absolute; left: -26px; bottom: 34px; z-index: 2;
    background: var(--card); border-radius: 999px; padding: 12px 20px 12px 14px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500;
}
.collage .sticker i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--seal); color: #fff; }

/* Loại sản phẩm */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; transition: box-shadow .3s, transform .3s, border-color .3s;
}
.type-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.type-card i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--seal); font-size: 19px; margin-bottom: 16px; }
.type-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 4px; }
.type-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Lưới thú len */
.len-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.len-grid .product-media { aspect-ratio: 4 / 5; cursor: zoom-in; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.swatch span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.price-ask { font-weight: 600; color: var(--seal); font-size: 15px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }

/* Quy trình đặt hàng */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
    counter-increment: step; content: '0' counter(step);
    font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--seal); opacity: .9;
    display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Bảo quản */
.care-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.care-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.care-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.care-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.care-list i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--seal); font-size: 14px; }
.care-list span { padding-top: 6px; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(20,17,14,.92);
    display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button {
    position: absolute; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; font-size: 17px;
}
.lightbox button:hover { background: #fff; color: var(--ink); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #e9e1d3; font-size: 14px; }

/* Liên kết chéo giữa các trang */
.f-links { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.f-links a { color: #fff; border-bottom: 1px solid #4a4339; padding-bottom: 2px; }
.f-links a:hover { border-color: var(--gold); }

@media (max-width: 1080px) {
    .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .page-hero-grid, .care-grid { grid-template-columns: 1fr; gap: 44px; }
    .collage { height: 420px; }
    .collage .sticker { left: 12px; }
    .len-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-hero { padding: 36px 0 64px; }
    .collage { height: 340px; gap: 10px; }
    .len-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .type-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .type-card { padding: 18px 16px; }
    .type-card h3 { font-size: 19px; }
    .product-foot .btn { width: 100%; justify-content: center; }
    .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; }
}

/* =========================================================
   CỬA HÀNG: giỏ hàng, thanh toán, đơn hàng
   ========================================================= */
.brand { order: 1; }
.nav { order: 2; margin-left: auto; }
.header-actions { order: 3; display: flex; align-items: center; gap: 4px; margin-left: 22px; }
.cart-link {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; color: var(--ink);
    transition: background .25s;
}
.cart-link:hover { background: var(--paper-2); }
.cart-count {
    position: absolute; top: 2px; right: 0;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--seal); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
    border: 2px solid var(--paper);
}
.cart-count.empty { display: none; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.45)} 100%{transform:scale(1)} }

.btn-xs { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-outline.is-disabled { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.add-form { display: inline-flex; margin: 0; }

.price { font-weight: 600; color: var(--seal); }
.price-strike { color: var(--muted); text-decoration: line-through; font-size: 13.5px; margin-left: 4px; }
.product-price { margin-bottom: 14px; font-size: 15.5px; }
.product-body .add-form { margin-top: auto; }
.tamda-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.combo-feature { cursor: default; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 120;
    transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
    background: var(--ink); color: #fff; padding: 13px 18px 13px 16px; border-radius: 12px;
    box-shadow: var(--shadow-lg); font-size: 14.5px; display: flex; align-items: center; gap: 14px;
    transition: all .3s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { color: #7fd1a3; }
.toast.err i { color: #ff9b8f; }
.toast a { color: #f2d6a2; font-weight: 600; white-space: nowrap; }

/* Khung trang shop */
.shop-page { padding: 36px 0 96px; min-height: 60vh; }
.page-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 42px); font-weight: 600; margin: 0 0 22px; }
.page-title small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 18px; }
.muted { color: var(--muted); font-size: 14px; }
.link { color: var(--ink-soft); font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.link:hover { color: var(--seal); }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0; }

.checkout-steps { list-style: none; padding: 0; margin: 0 0 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.checkout-steps li + li::before { content: ''; width: 36px; height: 1px; background: var(--line); margin-right: 2px; }
.checkout-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; background: var(--card); }
.checkout-steps .active { color: var(--ink); font-weight: 500; }
.checkout-steps .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.checkout-steps .done span { background: var(--seal); color: #fff; border-color: var(--seal); font-size: 11px; }

.alert { padding: 13px 16px; border-radius: 10px; font-size: 14.5px; margin: 0 0 18px; border: 1px solid; }
.alert-ok   { background: #eef6f0; border-color: #cfe5d6; color: #245a3f; }
.alert-err  { background: #fbefed; border-color: #f0d0cb; color: #8a2a23; }
.alert-warn { background: #fdf6e7; border-color: #f0e0b8; color: #7a5a17; }

.empty-state { text-align: center; padding: 80px 20px; max-width: 520px; margin: 0 auto; }
.empty-state > i { font-size: 46px; color: var(--gold); margin-bottom: 18px; }
.empty-state h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 0 0 8px; }
.empty-state p { color: var(--ink-soft); margin: 0 0 26px; }

.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 100px; }
.checkout-main { display: grid; gap: 22px; }

/* Giỏ hàng */
.cart-card { padding: 8px 26px; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0,1fr) auto 110px 40px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.cart-line h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 2px; line-height: 1.2; }
.cart-line-total { font-weight: 600; text-align: right; }
.cart-line.is-unavailable img { filter: grayscale(1); opacity: .6; }
.line-warn { color: var(--seal); font-size: 13px; margin-top: 6px; }
.cart-foot { padding: 18px 0 14px; }
.qty-form { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 34px; height: 36px; border: 0; background: none; font-size: 17px; cursor: pointer; color: var(--ink); }
.stepper button:hover:not([disabled]) { background: var(--paper-2); }
.stepper button[disabled] { color: var(--line); cursor: not-allowed; }
.stepper input { width: 40px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: #fbefed; color: var(--seal); }
.remove-form { margin: 0; }

.ship-progress { background: var(--paper); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.ship-progress p { margin: 0 0 10px; }
.ship-progress i { color: #2f6b4f; }
.ship-progress .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--seal)); border-radius: 99px; transition: width .6s; }

.sum-rows { margin: 0 0 20px; }
.sum-rows > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.sum-rows dt { color: var(--ink-soft); }
.sum-rows dd { margin: 0; font-weight: 500; }
.sum-rows .sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.sum-rows .sum-total dt { color: var(--ink); font-weight: 600; }
.sum-rows .sum-total dd { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--seal); line-height: 1; }
.assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.assure i { color: var(--gold); width: 20px; }

/* Form thanh toán */
.form-card h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.form-card .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 14px; display: grid; place-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field > span { font-weight: 500; }
.field em { color: var(--seal); font-style: normal; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
    font: inherit; font-size: 15px; color: var(--ink);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(30,26,22,.07); }
.field.has-err input, .field.has-err select { border-color: var(--seal); background: #fffaf9; }
.field-err { color: var(--seal); font-size: 12.5px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pay-options { display: grid; gap: 12px; }
.pay-option { cursor: pointer; display: block; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-box { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; transition: all .2s; background: #fff; }
.pay-box > i { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-soft); font-size: 18px; }
.pay-box strong { display: block; font-weight: 600; font-size: 15px; }
.pay-box small { color: var(--muted); font-size: 13px; }
.pay-option input:checked + .pay-box { border-color: var(--seal); background: #fffaf8; box-shadow: 0 0 0 3px rgba(163,48,42,.08); }
.pay-option input:checked + .pay-box > i { background: var(--seal); color: #fff; }
.pay-option input:focus-visible + .pay-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.pill { font-size: 11px; font-weight: 600; background: #eef6f0; color: #245a3f; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.mini-lines { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.mini-lines li { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; font-size: 14.5px; }
.thumb { position: relative; width: 58px; height: 58px; }
.thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.thumb b { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; border-radius: 99px; background: var(--stone); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.mini-name { line-height: 1.35; }

/* Trang đơn hàng */
.pay-card { padding: 34px; margin-bottom: 26px; }
.pay-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.pay-head h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; margin: 8px 0 6px; }
.pay-head .eyebrow { color: var(--seal); }
.waiting-pill { display: inline-flex; align-items: center; gap: 10px; background: #fdf6e7; color: #7a5a17; border: 1px solid #f0e0b8; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #d39b2a; box-shadow: 0 0 0 0 rgba(211,155,42,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(211,155,42,0); } 100% { box-shadow: 0 0 0 0 rgba(211,155,42,0); } }
.pay-body { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.qr-box img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; }
.bank-info { display: grid; gap: 2px; }
.bank-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.bank-row span { color: var(--muted); font-size: 14px; }
.bank-row b { font-weight: 600; word-break: break-all; }
.bank-row.hl b { color: var(--seal); font-size: 18px; }
.bank-row .code { letter-spacing: 1px; }
.copy-btn { font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink-soft); white-space: nowrap; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.copy-btn.copied { background: #eef6f0; border-color: #cfe5d6; color: #245a3f; }
.note-box { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--paper); border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.note-box i { color: var(--gold); margin-top: 3px; }

.success-card { text-align: center; padding: 48px 28px; margin-bottom: 26px; }
.success-card.is-hidden { display: none; }
.success-card h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 600; margin: 18px 0 10px; }
.success-card > p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.slide-actions.center { justify-content: center; }
.success-icon { width: 84px; height: 84px; margin: 0 auto; }
.success-icon svg { width: 84px; height: 84px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke: #2f6b4f; fill: #eef6f0; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease forwards; }
.success-icon path { stroke: #2f6b4f; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-icon.cancel { display: grid; place-items: center; border-radius: 50%; background: #fbefed; color: var(--seal); font-size: 34px; }
.success-card.pop { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }

.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.info-list { margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); margin: 0 4px 4px 0; }
.st-new { background: #fdf6e7; color: #7a5a17; }
.st-confirmed { background: #e9f0fb; color: #23497e; }
.st-shipping { background: #efeafb; color: #4e3a86; }
.st-completed, .ps-paid { background: #eef6f0; color: #245a3f; }
.st-cancelled { background: #f3f0ec; color: #8a8075; }
.ps-unpaid { background: #fbefed; color: #8a2a23; }
.ps-partial { background: #fdf6e7; color: #7a5a17; }

@media (max-width: 1000px) {
    .shop-grid, .order-detail-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .pay-body { grid-template-columns: 1fr; }
    .qr-box { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 900px) {
    .header-actions { margin-left: auto; }
    .nav { margin-left: 0; }
}
@media (max-width: 640px) {
    .card { padding: 20px 18px; }
    .cart-card { padding: 4px 18px; }
    .cart-line { grid-template-columns: 70px 1fr 34px; grid-template-areas: "img info rm" "img qty total"; gap: 8px 14px; }
    .cart-line img { grid-area: img; width: 70px; height: 70px; }
    .cart-line-info { grid-area: info; }
    .qty-form { grid-area: qty; }
    .cart-line-total { grid-area: total; align-self: center; }
    .remove-form { grid-area: rm; align-self: start; }
    .cart-line h3 { font-size: 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .pay-box { grid-template-columns: 40px 1fr; }
    .pay-box .pill { grid-column: 2; justify-self: start; }
    .pay-card { padding: 22px 18px; }
    .bank-row { grid-template-columns: 1fr auto; }
    .bank-row span { grid-column: 1 / -1; }
    .checkout-steps li + li::before { width: 14px; }
    .checkout-steps { font-size: 13px; }
    .info-list > div { grid-template-columns: 92px 1fr; }
    .toast { bottom: 16px; width: calc(100vw - 32px); }
}
.success-card .fine { margin-top: 20px; }
.badge { font-family: var(--sans); vertical-align: middle; }

/* =========================================================
   TRANG CHI TIẾT SẢN PHẨM (product.php)
   ========================================================= */
.product-body h3 a:hover { color: var(--seal); }
.product-body .sub { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.stock.sale { background: var(--seal); color: #fff; }
a.type-card { display: block; color: inherit; }
.type-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--seal); }
.type-card.is-soon { opacity: .6; pointer-events: none; }
.type-card.is-soon .type-more { color: var(--muted); }

.product-page { padding-top: 24px; }
.pd-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding: 26px; margin-bottom: 22px; }
.pd-stage { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.pd-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pd-off { position: absolute; top: 14px; left: 14px; background: var(--seal); color: #fff; font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,253,248,.92); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow); }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--seal); }

.pd-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.pd-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; margin: 0 0 8px; }
.pd-short { color: var(--ink-soft); margin: 0 0 18px; }
.pd-price-box { background: var(--paper); border-radius: 10px; padding: 16px 20px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-old { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.pd-price { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--seal); line-height: 1; }
.pd-pct { background: var(--seal); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }

.pd-rows { margin: 0 0 24px; display: grid; gap: 20px; }
.pd-rows > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.pd-rows dt { color: var(--muted); font-size: 14px; padding-top: 8px; }
.pd-rows dd { margin: 0; font-size: 14.5px; }
.pd-rows dd > i { color: #2f6b4f; margin-right: 6px; }
.pd-rows dd small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.pd-rows > div:first-child dt { padding-top: 0; }
.pd-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { cursor: pointer; }
.vchip input { position: absolute; opacity: 0; pointer-events: none; }
.vchip span {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; min-height: 40px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; transition: all .15s; position: relative;
}
.vchip span:not(:has(img)) { padding-left: 14px; }
.vchip img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; }
.vchip:hover span { border-color: var(--seal); color: var(--seal); }
.vchip input:checked + span { border-color: var(--seal); color: var(--seal); background: #fffaf8; box-shadow: inset 0 0 0 1px var(--seal); }
.vchip input:checked + span::after { content: '✓'; position: absolute; right: -1px; bottom: -1px; background: var(--seal); color: #fff; font-size: 9px; line-height: 1; padding: 2px 3px 2px 5px; border-radius: 6px 0 7px 0; }
.vchip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.vchip.is-out { cursor: not-allowed; }
.vchip.is-out span { opacity: .45; background: var(--paper); }
.vchip small { font-size: 11px; color: var(--muted); }
.pd-variant-err { display: none; color: var(--seal); font-size: 13px; margin-top: 8px; }
.pd-variants-row.need .pd-variant-err { display: block; }
.pd-variants-row.need dd { background: #fff5f3; margin: -8px; padding: 8px; border-radius: 10px; }
.pd-qty { display: flex; align-items: center; gap: 14px; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { padding: 14px 28px; border-radius: 10px; font-size: 15.5px; }
.btn-cart { background: #fff5f3; border: 1px solid var(--seal); color: var(--seal); }
.btn-cart:hover { background: #fde9e5; }
.pd-assure { list-style: none; padding: 18px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--ink-soft); }
.pd-assure i { color: var(--gold); margin-right: 6px; }

.pd-detail { padding: 26px 30px; margin-bottom: 40px; }
.pd-sec-title { font-family: var(--sans) !important; font-size: 15px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 1px; background: var(--paper); padding: 12px 16px; border-radius: 8px; margin: 0 0 18px !important; }
.pd-detail .pd-sec-title + * { margin-bottom: 28px; }
.pd-spec { display: grid; gap: 12px; padding: 0 16px; font-size: 14.5px; }
.pd-spec > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.pd-spec dt { color: var(--muted); }
.pd-spec dd { margin: 0; }
.pd-spec a { color: var(--seal); }
.pd-desc { padding: 0 16px; line-height: 1.8; color: var(--ink-soft); white-space: normal; }
.pd-related { margin-bottom: 40px; }
.pd-related .pd-sec-title { background: none; padding: 0; }

.pd-mobile-bar { display: none; }

@media (max-width: 900px) {
    .pd-main { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
    .pd-thumbs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 64px; overflow-x: auto; }
}
@media (max-width: 640px) {
    .product-page { padding-bottom: 120px; }
    .pd-rows > div { grid-template-columns: 1fr; gap: 8px; }
    .pd-rows dt { padding-top: 0; }
    .pd-actions { display: none; }
    .pd-detail { padding: 18px 14px; }
    .pd-spec, .pd-desc { padding: 0 4px; }
    .pd-spec > div { grid-template-columns: 100px 1fr; }
    .pd-mobile-bar {
        display: grid; grid-template-columns: 64px 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.1); height: 58px; padding-bottom: env(safe-area-inset-bottom);
    }
    .pd-mobile-bar > * { border: 0; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
    .mb-chat { color: var(--ink-soft); font-size: 11px; background: #fff; }
    .mb-chat i { font-size: 18px; }
    .mb-cart { background: #fff5f3; color: var(--seal); font-size: 11px; border-left: 1px solid var(--line) !important; }
    .mb-cart i { font-size: 18px; }
    .mb-buy { background: var(--seal); color: #fff; font-weight: 600; font-size: 15px; grid-column: auto; }
    a.mb-buy:only-of-type { grid-column: span 2; }
    #back-to-top { bottom: 76px; }
    .zalo-chat-widget { display: none; }
    .toast { bottom: 74px; }
}
.pd-gallery, .pd-info { min-width: 0; }
