/* Lebo Closet — hướng A "Nắng Hà Tiên": xanh biển sâu, cát, vàng hoàng hôn.
   Sáng / tối tự theo cài đặt của thiết bị (prefers-color-scheme). */
:root {
  color-scheme: light dark;
  /* Nền & chữ chính */
  --bg: #F6F0E6;
  --bg-deep: #ECE3D3;
  --paper: #FBF8F3;
  --surface: #FFFFFF;
  --header-bg: rgba(246, 240, 230, 0.94);
  --ink: #12313A;
  --ink-soft: #3B5259;
  --muted: #4E6168;
  --accent: #0F6E74;           /* xanh biển: nút chính, link, trạng thái chọn */
  --accent-hover: #0B5257;
  --on-accent: #FFFFFF;
  --sun: #F2A541;              /* vàng hoàng hôn: CTA nổi bật, nhãn */
  --sun-hover: #E8922A;
  --on-sun: #12313A;
  --sea-block: #0F6E74;        /* khối nền xanh biển (gói nổi bật) */
  --line: rgba(18, 49, 58, 0.18);
  --line-soft: rgba(18, 49, 58, 0.10);
  --line-strong: rgba(18, 49, 58, 0.35);
  --input-border: #8A9A9E;
  /* Khối nền xanh đậm (bộ sưu tập, các bước, footer) */
  --deep: #12313A;
  --deep-hover: #0B2128;
  --on-deep: #F6F0E6;
  --on-deep-muted: #C9D6D8;
  --on-deep-line: rgba(246, 240, 230, 0.2);
  --accent-light: #F2A541;
  /* Ảnh giữ chỗ */
  --ph: #E3D9C8;
  --ph-stripe: rgba(18, 49, 58, 0.05);
  --ph-text: #3B4A4E;
  /* Thông báo */
  --error: #B3261E;
  --success-bg: #E3F0EF;
  --success-text: #0B4A4E;
  --error-bg: #F7E1DD;
  --error-text: #8A1F14;
  --radius: 20px;
  --font-display: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1B1F;
    --bg-deep: #15262B;
    --paper: #122226;
    --surface: #182B30;
    --header-bg: rgba(14, 27, 31, 0.94);
    --ink: #EEF1EC;
    --ink-soft: #C4D0D1;
    --muted: #A3B3B6;
    --accent: #5CC2BE;
    --accent-hover: #82D4D0;
    --on-accent: #06292B;
    --sun: #F2A541;
    --sun-hover: #F6B861;
    --on-sun: #12313A;
    --sea-block: #145A60;
    --line: rgba(238, 241, 236, 0.16);
    --line-soft: rgba(238, 241, 236, 0.10);
    --line-strong: rgba(238, 241, 236, 0.35);
    --input-border: #5E7076;
    --deep: #163A42;
    --deep-hover: #1D4851;
    --ph: #22363B;
    --ph-stripe: rgba(238, 241, 236, 0.04);
    --ph-text: #C9D1CC;
    --error: #F2A097;
    --success-bg: #12383A;
    --success-text: #BDE7E4;
    --error-bg: #3D1C18;
    --error-text: #F4B7AC;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Ảnh, nhãn nổi... không được đẩy trang tràn ngang trên điện thoại */
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Trên nền xanh đậm, viền đất nung không đủ tương phản (cần ≥ 3:1) */
.section-dark :focus-visible, .package-featured :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }
a, button, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3 { margin: 0; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.logo-word { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; }
.logo-light { color: var(--on-deep); }
.logo-brand { display: block; }
.logo-brand img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px; font-size: 13px; font-weight: 600; }
.site-nav .lang-switch a { min-width: 44px; min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; color: var(--ink); }
.site-nav .lang-switch a:hover { background: var(--line-soft); text-decoration: none; }
.site-nav .lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s, color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--deep); color: var(--on-deep); }
.btn-dark:hover { background: var(--deep-hover); color: var(--on-deep); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-sun:hover { background: var(--sun-hover); color: var(--on-sun); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.eyebrow-light { color: var(--accent-light); }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h1 em { color: var(--accent); }
.lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: var(--ink-soft); max-width: 34em; }
.section-lead { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 28em; }

/* ---------- Placeholder ảnh ---------- */
.ph { background-color: var(--ph); background-image: repeating-linear-gradient(135deg, var(--ph-stripe) 0 2px, transparent 2px 14px); border-radius: var(--radius); display: flex; align-items: flex-end; padding: 16px; color: var(--ph-text); font-size: 13px; line-height: 1.4; min-height: 160px; }
.ph-dark { background-color: #1B414B; background-image: repeating-linear-gradient(135deg, rgba(246,240,230,.06) 0 2px, transparent 2px 14px); color: #E3ECEB; }
.ph-tall { aspect-ratio: 4 / 3.6; }
.ph-xtall { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-block: 88px 96px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text .eyebrow { margin: 0; }
.hero-media { position: relative; height: 600px; }
.hero-main { position: absolute; right: 0; top: 0; width: min(460px, 88%); height: 560px; border-radius: 240px 240px 16px 16px; justify-content: flex-end; text-align: right; }
.hero-main > span { max-width: 55%; }  /* chú thích không chui xuống dưới ảnh nhỏ */
.hero-sub { position: absolute; left: 0; bottom: 0; width: 240px; height: 300px; border: 8px solid var(--bg); }

/* ---------- Steps ---------- */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.steps-list li { display: flex; gap: 16px; align-items: center; padding: 28px 32px; }
.steps-list li:first-child { padding-left: 0; }
.steps-list li + li { border-left: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 34px; color: var(--accent); line-height: 1; }

/* ---------- Sections ---------- */
.section { padding-block: 112px; }
.section-head { margin-bottom: 56px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head.center { text-align: center; }
.section-dark { background: var(--deep); color: var(--on-deep); }
.section-dark .collection p { color: var(--on-deep-muted); }
.section-paper { background: var(--paper); }
.grid { display: grid; gap: 32px 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.service, .collection, .location { display: flex; flex-direction: column; gap: 16px; }
.service h3 { font-size: 24px; font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
.service-num { font-family: var(--font-display); font-size: 20px; color: var(--accent); font-weight: 500; }
.service p, .location p { color: var(--ink-soft); }
.collection h3, .location h3 { font-size: 20px; font-weight: 600; }
.location .ph { aspect-ratio: 16 / 10; }
.link-arrow { color: var(--on-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.link-arrow:hover { color: var(--accent-light); }

/* ---------- Packages ---------- */
.packages { align-items: stretch; }
.package { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.package-featured { background: var(--sea-block); color: #FFFFFF; border-color: var(--sea-block); }
.package-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.package h3 { font-size: 22px; font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.price span { font-family: var(--font-body); font-size: 15px; color: var(--muted); }
.package-featured .price span { color: #DDF0EF; }
.package ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); }
.package-featured ul { color: #DDF0EF; }
.package-featured .price { color: var(--sun); }
.package-featured .badge { background: var(--sun); color: var(--on-sun); }
.package-featured .btn-accent { background: var(--sun); color: var(--on-sun); }
.package-featured .btn-accent:hover { background: var(--sun-hover); color: var(--on-sun); }
.package .btn { margin-top: auto; }
.package-featured .btn-outline { border-color: var(--on-deep); color: var(--on-deep); }
.package-featured .btn-outline:hover { background: var(--on-deep); color: var(--deep); }
.fine-print { margin-top: 40px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Store teaser ---------- */
.store-teaser { margin-block: 112px 0; padding: 56px; border-radius: 28px; background: var(--sun); color: var(--on-sun); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.store-teaser > div:first-child { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.store-teaser .eyebrow { margin: 0; }
.store-teaser p:not(.eyebrow) { color: var(--on-sun); font-size: 17px; }
.store-teaser .eyebrow { color: var(--on-sun); }
.store-teaser :focus-visible { outline-color: var(--on-sun); }
.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser-grid .ph { aspect-ratio: 3 / 4; border-radius: 12px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; font-size: 17px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { font-weight: 600; }
.contact-list a { display: inline-block; padding: 8px 0; }

.booking-form { padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.booking-form h3 { font-size: 24px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--accent); margin-left: 2px; }
.form-hint { font-size: 14px; color: var(--muted); margin-top: -8px; }
.slot-status { grid-column: 1 / -1; margin-top: -6px; }
.slot-status:empty { display: none; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.field input, .field select, .field textarea { min-height: 48px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--input-border); font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); width: 100%; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }

/* ---------- Shop ---------- */
.shop-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; padding-block: 80px 48px; }
.shop-hero h1 { margin-bottom: 16px; }
.shop-note { max-width: 340px; font-size: 15px; color: var(--muted); }
.shop-filters { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.shop-count { color: var(--muted); font-size: 15px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; padding-bottom: 96px; }
.product { display: flex; flex-direction: column; gap: 10px; }
.product[hidden] { display: none; }
.product-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 4px; }
.product-cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.product-name { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.35; }
.product-desc { font-size: 14px; color: var(--ink-soft); }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-price { font-weight: 500; }
.empty { padding-block: 96px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 24px; align-items: center; }
.empty h1 { font-size: clamp(28px, 3vw, 40px); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); padding-block: 64px 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-tag { margin-top: 12px; color: var(--on-deep-muted); font-size: 15px; max-width: 360px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a { color: var(--on-deep); padding: 10px 0; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--on-deep-line); font-size: 14px; color: var(--on-deep-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav { gap: 20px; }
  .hero { gap: 40px; }
  .hero-media { height: 520px; }
  .hero-main { height: 480px; }
  .hero-sub { width: 200px; height: 250px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .lang-switch { align-self: flex-start; margin-top: 16px; }
  .site-nav .btn { margin-top: 16px; }
  .no-js .site-nav { position: static; display: flex; }

  .hero { grid-template-columns: 1fr; padding-block: 36px 40px; }
  .hero-media { height: 440px; order: 2; }
  .hero-main { width: 100%; height: 420px; border-radius: 170px 170px 14px 14px; }
  .hero-sub { display: none; }
  .btn-row .btn { flex: 1 1 100%; }

  .steps-list { grid-template-columns: 1fr; border-bottom: 0; }
  .steps-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .steps-list li + li { border-left: 0; }

  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head.center { text-align: left; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-2-mobile, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .location .ph { aspect-ratio: 1; }
  .location p { font-size: 13px; }
  .collection h3, .location h3 { font-size: 16px; }
  .package { padding: 28px 24px; }
  .package-featured { order: -1; }
  .price { font-size: 36px; }
  .fine-print { text-align: left; font-size: 13px; margin-top: 24px; }

  .store-teaser { margin-top: 32px; padding: 28px 20px; grid-template-columns: 1fr; gap: 20px; }
  .store-teaser .btn { width: 100%; }

  .contact { grid-template-columns: 1fr; gap: 32px; }
  .booking-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }

  .shop-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 36px 24px; }
  .shop-filters { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chip { font-size: 14px; padding: 0 16px; }
  .product-name { font-size: 15px; }
  .product-cat { font-size: 12px; letter-spacing: .08em; }
  .product-foot .btn { width: 100%; }
  .site-footer { padding-block: 40px 24px; }
}

/* =====================================================================
   Nắng Hà Tiên — khối bo tròn, rõ ràng, chuyển động nhẹ
   ===================================================================== */
:root {
  --shadow-sm: 0 8px 20px -12px rgba(18, 49, 58, 0.35);
  --shadow-lg: 0 24px 44px -24px rgba(18, 49, 58, 0.45);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 24px 44px -22px rgba(0, 0, 0, 0.8);
  }
}

/* Header đổ bóng khi cuộn */
.site-header { transition: box-shadow .3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

/* Hero: ảnh lớn bo góc + ảnh phụ */
.hero-main { border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-sub { border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: 4%; top: 6%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
              background: var(--sun); color: var(--on-sun); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.hero-badge svg { width: 18px; height: 18px; }

/* Các bước: thẻ trên nền xanh đậm */
.steps-band { background: var(--deep); color: var(--on-deep); padding-block: 56px; }
.steps-band .steps-list { border: 0; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps-band .steps-list li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 0; border-radius: 18px; background: rgba(246, 240, 230, 0.07); }
.steps-band .steps-list li + li { border-left: 0; }
.steps-band .steps-list li:first-child { padding-left: 24px; }
.steps-band :focus-visible { outline-color: var(--accent-light); }
.step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
            font-family: var(--font-body); font-size: 18px; font-weight: 800; background: var(--sun); color: var(--on-sun); }
.steps-band .steps-list li > span:last-child { font-size: 17px; font-weight: 600; line-height: 1.45; }

/* Nút: nhấc nhẹ khi rê chuột, lún khi bấm */
.btn { transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

/* Thẻ: nhấc lên khi rê chuột */
.service .ph, .collection .ph, .location .ph, .product-img { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.service:hover .ph, .collection:hover .ph, .location:hover .ph, .product:hover .product-img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.package { position: relative; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.package:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.package-featured { box-shadow: var(--shadow-lg); }
.package-featured :focus-visible { outline-color: var(--sun); }

/* Địa điểm: thẻ ảnh bo góc, nền trắng */
.location { background: var(--surface); border-radius: 20px; padding: 10px 10px 18px; gap: 10px; }
.location .ph { border-radius: 14px; }
.location h3, .location p { padding-inline: 8px; }
.teaser-grid .ph { border-radius: 16px; background-color: var(--paper); }

/* Hiện dần khi cuộn tới (chỉ khi máy cho phép chuyển động) */
.motion-ok [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion-ok [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* Hero xuất hiện khi mở trang */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes frame-in { from { opacity: 0; transform: scale(.96); } }
.motion-ok .hero-text > * { animation: rise .9s var(--ease-out) both; }
.motion-ok .hero-text > :nth-child(2) { animation-delay: .1s; }
.motion-ok .hero-text > :nth-child(3) { animation-delay: .2s; }
.motion-ok .hero-text > :nth-child(4) { animation-delay: .3s; }
.motion-ok .hero-main { animation: frame-in 1.1s var(--ease-out) both; }
.motion-ok .hero-sub, .motion-ok .hero-badge { animation: rise 1s .35s var(--ease-out) both; }

@media (hover: none) {
  .btn:hover, .package:hover, .service:hover .ph, .collection:hover .ph, .location:hover .ph, .product:hover .product-img { transform: none; box-shadow: none; }
  .package-featured:hover { box-shadow: var(--shadow-lg); }
}

@media (max-width: 860px) {
  .hero-main { border-radius: 24px; }
  .hero-badge { left: 12px; top: 12px; font-size: 13px; }
  .steps-band { padding-block: 32px; }
  .steps-band .steps-list li { padding: 18px; flex-direction: row; align-items: center; }
  .steps-band .steps-list li:first-child { padding-left: 18px; }
  .step-num { width: 40px; height: 40px; font-size: 16px; }
  .location { padding: 6px 6px 12px; border-radius: 16px; }
  .location h3, .location p { padding-inline: 4px; }
}

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

/* =====================================================================
   Máy tính bảng & thanh hành động trên điện thoại
   ===================================================================== */

/* Máy tính bảng dọc (600–860px): tận dụng chiều ngang thay vì xếp một cột */
@media (min-width: 600px) and (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .grid-3.packages { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .service h3 { font-size: 18px; }
  .service p { font-size: 15px; }
  .hero-media { height: 520px; }
  .hero-main { height: 500px; width: min(560px, 100%); left: 0; right: 0; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .booking-form { max-width: 620px; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Thanh "Nhắn Zalo / Đặt lịch" cố định cuối màn hình điện thoại */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg);
    backdrop-filter: blur(8px); border-top: 1px solid var(--line-soft); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .45);
    transition: transform .25s var(--ease-out);
  }
  .mobile-cta .btn { min-height: 48px; padding: 0 12px; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  body:has(.mobile-cta) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media print { .mobile-cta { display: none !important; } }

/* =====================================================================
   Trang phục cho thuê: danh sách mẫu + lịch còn / hết theo size
   ===================================================================== */
:root { --free-bg: #E3EFE7; --free-fg: #1D4D2F; --busy-bg: #EFE8DE; --busy-fg: #6B5E4E; }
@media (prefers-color-scheme: dark) {
  :root { --free-bg: #1C3527; --free-fg: #BFE3CB; --busy-bg: #22302F; --busy-fg: #9AA6A3; }
}
.outfit-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.outfit-link:hover .product-name { text-decoration: underline; text-underline-offset: 4px; }
.product-price small { font-size: 13px; color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); }
.field-hint { margin-top: 0; }
.back-link { margin: 32px 0 16px; }
.back-link a { display: inline-block; padding: 10px 0; }

.outfit-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.outfit-media { position: sticky; top: 104px; }
.outfit-media .product-img { aspect-ratio: 3 / 4; }
.outfit-info { display: flex; flex-direction: column; gap: 14px; }
.outfit-info h1 { font-size: clamp(32px, 4vw, 52px); }
.outfit-info .eyebrow { margin: 0; }
.outfit-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent); margin: 0; }
.outfit-price span { font-family: var(--font-body); font-size: 15px; color: var(--muted); }
.cal-title { font-size: 24px; margin-top: 16px; }

.size-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; }
.size-chips .chip { cursor: pointer; min-width: 52px; justify-content: center; }
.size-cal { display: none; }
.cal-nav-public { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.cal-nav-public strong { min-width: 120px; text-align: center; }
.btn.is-disabled { opacity: .35; pointer-events: none; }

.avail-cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.avail-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.avail-head div { padding: 8px 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--paper); }
.avail-cell { min-height: 64px; padding: 6px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
              display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; }
.avail-row .avail-cell:first-child { border-left: 0; }
.avail-cell .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.avail-cell .t { font-size: 12px; font-weight: 600; }
.avail-cell.is-free { background: var(--free-bg); color: var(--free-fg); transition: transform .15s var(--ease-out), box-shadow .15s; }
.avail-cell.is-free:hover { box-shadow: inset 0 0 0 2px var(--free-fg); color: var(--free-fg); }
.avail-cell.is-busy { background: var(--busy-bg); color: var(--busy-fg); }
.avail-cell.is-busy .t { text-decoration: line-through; }
.avail-cell.is-closed { color: var(--muted); opacity: .5; }
.avail-cell.is-today .d { text-decoration: underline; text-underline-offset: 3px; }
.avail-legend { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.avail-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--line); }
.avail-legend .sw.is-free { background: var(--free-bg); }
.avail-legend .sw.is-busy { background: var(--busy-bg); }
.avail-legend .sw.is-closed { background: transparent; }
.fine-note { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .outfit-layout { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .outfit-media { position: static; max-width: 420px; }
  .back-link { margin: 20px 0 8px; }
  .avail-cell { min-height: 52px; padding: 4px 2px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .outfit-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .outfit-media { position: sticky; top: 100px; }
}

/* =====================================================================
   Trang xác nhận lịch hẹn + mã VietQR tiền cọc
   ===================================================================== */
.confirm { padding-block: 56px 96px; display: flex; flex-direction: column; gap: 28px; }
.confirm-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.confirm-head .eyebrow { margin: 0; }
.confirm-save { font-size: 14px; color: var(--muted); }
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.confirm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.confirm-card h2 { font-size: 26px; }
.confirm-list { margin: 0; display: flex; flex-direction: column; }
.confirm-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.confirm-list > div:last-child { border-bottom: 0; }
.confirm-list dt { color: var(--muted); font-size: 15px; }
.confirm-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.confirm-note { font-size: 15px; color: var(--ink-soft); background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.deposit-amount { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.deposit-done { font-weight: 600; color: var(--success-text); background: var(--success-bg); border-radius: 12px; padding: 12px 14px; }
.qr-box { align-self: center; background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--line); line-height: 0; }
.qr-box svg { width: min(260px, 70vw); height: auto; }
.qr-hint { text-align: center; font-size: 14px; color: var(--muted); }
.copy-btn { margin-left: 8px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.confirm-back a { display: inline-block; padding: 10px 0; }
@media (max-width: 860px) {
  .confirm { padding-block: 32px 48px; }
  .confirm-grid { grid-template-columns: 1fr; }
  .deposit-card { order: -1; }   /* điện thoại: phần chuyển cọc lên trước */
  .confirm-card { padding: 20px; }
}

/* Báo giá tạm tính trên trang xác nhận */
.quote-title { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-top: 6px; }
.quote-list small { color: var(--muted); font-weight: 400; }
.quote-list .quote-total dt, .quote-list .quote-total dd { font-weight: 700; color: var(--ink); font-size: 17px; }

/* Hướng A — bổ sung cho trang chủ */
.btn-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 6px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
.btn-link:hover { color: var(--accent); }
.steps-title { color: var(--on-deep); font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 28px; }
.section-head .section-lead { margin-top: 12px; }
@media (max-width: 860px) {
  .btn-row .btn-link { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .steps-title { margin-bottom: 18px; }
}

.section-dark h2 em, .steps-band h2 em { color: var(--sun); }

/* =====================================================================
   Đơn của tôi + các bước của lịch hẹn
   ===================================================================== */
.progress { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.progress li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; font-size: 14px; color: var(--muted); }
.progress li::after { content: ""; position: absolute; top: 15px; left: 38px; right: 6px; height: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.is-done::after { background: var(--accent); }
.progress-dot { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
                border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); position: relative; z-index: 1; }
.progress-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.progress li.is-done .progress-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.progress li.is-current .progress-dot { border-color: var(--sun); background: var(--sun); color: var(--on-sun); }
.progress li.is-done, .progress li.is-current { color: var(--ink); font-weight: 600; }

.confirm-code { display: inline-flex; align-items: baseline; gap: 12px; align-self: flex-start; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1.5px dashed var(--accent); }
.confirm-code span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.confirm-code strong { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }

.orders { padding-block: 56px 96px; display: flex; flex-direction: column; gap: 32px; }
.orders-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.orders-head .eyebrow { margin: 0; }
.orders-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.order-card.is-cancelled { opacity: .7; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-code { font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.order-status { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--on-sun); }
.order-card.is-cancelled .order-status { background: var(--bg-deep); color: var(--ink); }
.order-card h2 { font-size: 24px; }
.order-items { font-size: 15px; color: var(--ink-soft); }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.text-btn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
.orders-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; color: var(--ink-soft); }
.lookup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 104px; }
.lookup-card h2 { font-size: 24px; }
.lookup-card .form-hint { margin-top: -6px; }

@media (max-width: 860px) {
  .orders { padding-block: 32px 48px; gap: 24px; }
  .orders-grid { grid-template-columns: 1fr; }
  .lookup-card { position: static; padding: 22px 20px; }
  .order-card { padding: 20px; }
  .progress { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .progress li { flex-direction: row; align-items: center; gap: 12px; padding: 6px 0; }
  .progress li::after { top: 38px; left: 15px; right: auto; width: 2px; height: calc(100% - 32px); }
  .order-actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Nến thơm tự làm — mục giới thiệu trên trang chủ
   ===================================================================== */
.candles { padding-block: 88px; }
.candles-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.candles-intro { display: flex; flex-direction: column; gap: 22px; }
.candle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.candle { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.candle:hover { color: var(--ink); }
.candle-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 20px; margin-bottom: 6px; background-color: var(--sun); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.candle .ph.candle-img { background-color: #F6D9A8; color: #12313A; }
.candle:hover .candle-img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.candle-name { font-size: 18px; font-weight: 700; line-height: 1.35; }
.candle-desc { font-size: 14px; color: var(--ink-soft); }
.candle-price { font-weight: 700; color: var(--accent); }
.candle-facts { list-style: none; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; font-weight: 600; }
.candle-facts li { display: inline-flex; align-items: center; gap: 10px; }
.candle-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
@media (hover: none) { .candle:hover .candle-img { transform: none; box-shadow: none; } }
@media (max-width: 1100px) { .candle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .candles { padding-block: 56px; }
  .candles-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
  .candle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .candle-name { font-size: 15px; }
  .candle-facts { flex-direction: column; margin-top: 24px; }
}

/* Cửa hàng: dải ảnh nhỏ của sản phẩm có nhiều ảnh */
.product-thumbs { display: flex; gap: 6px; margin: -2px 0 2px; }
.product-thumb { display: block; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; flex-shrink: 0; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb[aria-current="true"] { border-color: var(--accent); }
.product-thumb:hover { border-color: var(--line-strong); }
@media (max-width: 860px) { .product-thumb { width: 44px; height: 44px; } }

/* Ảnh trang chủ đã tải lên (thay cho ô minh hoạ .ph — cùng kích thước) */
.ph-img { display: block; object-fit: cover; border-radius: var(--radius); background: var(--ph); }
/* Ảnh đầu trang giữ kích thước / vị trí của .hero-main, .hero-sub; các ảnh khác rộng hết ô */
.ph-img:not(.hero-main):not(.hero-sub) { width: 100%; min-height: 160px; }
.location .ph-img { aspect-ratio: 16 / 10; border-radius: 14px; }
.teaser-grid .ph-img { aspect-ratio: 3 / 4; border-radius: 16px; min-height: 0; }
.service .ph-img, .collection .ph-img, .location .ph-img { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.service:hover .ph-img, .collection:hover .ph-img, .location:hover .ph-img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (hover: none) { .service:hover .ph-img, .collection:hover .ph-img, .location:hover .ph-img { transform: none; box-shadow: none; } }
@media (max-width: 860px) { .location .ph-img { aspect-ratio: 1; } }

/* =====================================================================
   Cửa hàng: tìm kiếm + bộ lọc; trang chi tiết sản phẩm
   ===================================================================== */
.shop-filters { flex-direction: column; align-items: stretch; gap: 18px; }
.shop-q { flex: 2 1 260px; position: relative; }
.product-link { display: block; color: inherit; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty h2 { font-size: clamp(24px, 3vw, 32px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 28px 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); padding: 8px 0; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: 72px; }
.pd-media { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 12px; }
.pd-img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 24px; }
.pd-thumbs { margin: 0; }
.pd-thumbs .product-thumb { width: 72px; height: 72px; border-radius: 14px; }
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-info .eyebrow { margin: 0; }
.pd-info h1 { font-size: clamp(32px, 4vw, 52px); }
.pd-price { font-size: 30px; font-weight: 800; color: var(--accent); }
.pd-desc { font-size: 17px; line-height: 1.7; color: var(--ink-soft); white-space: pre-line; }
.pd-facts { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.pd-facts li { display: flex; gap: 10px; }
.pd-facts li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--sun); }
.pd-related { padding-bottom: 96px; }
.pd-related h2 { margin-bottom: 24px; font-size: clamp(24px, 3vw, 34px); }
.pd-related .product-grid { padding-bottom: 0; }

@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .pd-media { position: static; }
  .pd-img { border-radius: 20px; }
  .pd-info .btn-row .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Cửa hàng — bộ lọc (thiết kế lại): máy tính có cột lọc bên trái,
   điện thoại có nút "Bộ lọc" mở bảng trượt từ dưới lên
   ===================================================================== */
.shop { padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; }
.shop-top { display: flex; align-items: center; gap: 12px; }
.shop-q { flex: 1 1 auto; position: relative; display: flex; align-items: center; min-width: 0; }
.shop-q > svg { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.shop-q input { width: 100%; min-height: 52px; padding: 0 56px 0 46px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.shop-q input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(15, 110, 116, .18); }
.shop-q input::-webkit-search-cancel-button { cursor: pointer; }
.shop-q-btn { position: absolute; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.shop-q-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shop-sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.shop-sort select { min-height: 52px; padding: 0 36px 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; }
.shop-filter-btn { display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.shop-filter-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--on-sun); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.shop-quick { display: none; }

.shop-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.shop-panel { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.shop-panel-head { display: none; }
.facet { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.facet legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facet-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.facet-opt:hover { background: var(--paper); }
.facet-opt input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.facet-opt span:first-of-type { flex: 1; }
.facet-opt:has(input:checked) { font-weight: 700; color: var(--accent); }
.facet-n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facet-opt.is-empty { opacity: .5; }
.facet-custom { margin-top: 6px; }
.facet-custom summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent); list-style: none; }
.facet-custom summary::-webkit-details-marker { display: none; }
.facet-custom summary::before { content: "+"; margin-right: 8px; font-weight: 800; }
.facet-custom[open] summary::before { content: "−"; }
.facet-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.facet-range input { min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.facet-range .btn { grid-column: 1 / -1; margin-top: 4px; }
.shop-panel-foot { display: none; }

.shop-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shop-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.shop-status .shop-count { margin: 0; }
.shop-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-pills a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.shop-pills a:hover { background: var(--deep-hover); color: var(--on-deep); }
.shop-pills a.pill-clear { background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; }
.shop .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 0; }
.shop-empty { padding-block: 56px; }
.shop-backdrop { display: none; }

@media (max-width: 1100px) {
  .shop .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Điện thoại & máy tính bảng dọc */
@media (max-width: 860px) {
  .shop { gap: 12px; padding-bottom: 48px; }
  .shop-top { flex-wrap: wrap; gap: 8px; }
  .shop-q { flex: 1 1 100%; }
  .shop-q input { min-height: 48px; }
  .shop-filter-btn { display: inline-flex; flex: 1 1 0; justify-content: center; min-height: 44px; }
  .shop-sort { flex: 1 1 0; }
  .shop-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shop-sort select { width: 100%; min-height: 44px; font-size: 14px; }
  .shop-quick { display: flex; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shop-quick::-webkit-scrollbar { display: none; }
  .shop-quick .chip { min-height: 40px; font-size: 14px; padding: 0 14px; }
  .shop-body { display: block; }
  .shop .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .shop-status { gap: 8px; }
  .shop-pills a { min-height: 34px; font-size: 13px; padding: 0 12px; }

  /* Bảng lọc trượt từ dưới lên (chỉ khi có JavaScript; không có thì hiện ngay trong trang) */
  html:not(.no-js) .shop-panel { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
                    border-radius: 24px 24px 0 0; border: 0; padding: 0 20px calc(16px + env(safe-area-inset-bottom)); gap: 18px;
                    transform: translateY(105%); transition: transform .28s var(--ease-out); visibility: hidden; box-shadow: 0 -20px 50px rgba(0, 0, 0, .25); }
  html:not(.no-js) .shop-panel.is-open { transform: none; visibility: visible; }
  html:not(.no-js) .shop-panel-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
                         padding: 16px 0 12px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
  html:not(.no-js) .shop-panel-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
  .shop-panel-head h2 { font-size: 20px; }
  .shop-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .shop-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  html:not(.no-js) .shop-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom));
                         padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-bottom: calc(-16px - env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-soft); }
  .shop-panel-foot .btn { flex: 1; min-height: 50px; }
  html:not(.no-js) .shop-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(10, 20, 23, .45); }
  html:not(.no-js) .shop .facet-opt { min-height: 48px; font-size: 16px; }
  .no-js .shop-panel { position: static; margin-bottom: 16px; }
  html.sheet-open { overflow: hidden; }
}

/* Nút chỉ có biểu tượng: bỏ padding mặc định của trình duyệt để biểu tượng nằm đúng giữa */
.shop-q-btn, .shop-close, .menu-toggle { padding: 0; }
.shop-q-btn svg, .shop-close svg, .menu-toggle svg { display: block; flex-shrink: 0; }

/* =====================================================================
   Thẻ sản phẩm (cửa hàng + sản phẩm cùng loại): mỗi sản phẩm là một thẻ riêng,
   cả thẻ bấm được để mở trang chi tiết
   ===================================================================== */
.product-grid:has(.pcard) { gap: 24px; }
.pcard { position: relative; gap: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden;
         box-shadow: 0 1px 2px rgba(18, 49, 58, .06); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.pcard-media { position: relative; overflow: hidden; background: var(--ph); }
.pcard .product-img { display: block; margin: 0; border-radius: 0; aspect-ratio: 1 / 1; transition: transform .5s var(--ease-out); }
.pcard .ph > span { display: none; }  /* tên đã có bên dưới, tránh chồng lên nhãn danh mục */
.pcard-tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--accent);
             font-size: 11px; letter-spacing: .1em; line-height: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.pcard .product-thumbs { position: relative; z-index: 2; margin: 0 0 2px; }
.pcard .product-thumb { width: 40px; height: 40px; border-radius: 8px; }
.pcard .product-name { font-size: 17px; line-height: 1.35; }
.pcard .product-name a { text-decoration: none; }
.pcard.has-link .product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard .product-desc { margin: 0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .product-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: nowrap; }
.pcard .product-price { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard-go { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--paper); color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
            transition: background .25s, color .25s, transform .25s var(--ease-out); }
.pcard-go svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pcard-zalo { position: relative; z-index: 2; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.pcard:hover .product-img, .product.pcard:hover .product-img { transform: scale(1.04); box-shadow: none; }
.pcard:hover .pcard-go { background: var(--accent); color: var(--on-accent); transform: translateX(2px); }
.pcard:hover .product-name a { text-decoration: none; }
.pcard:focus-within { border-color: var(--accent); }
.pcard .product-name a:focus-visible { outline: none; }
.pcard .product-name a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.pd-related .product-grid:has(.pcard) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pcard-tag { background: rgba(14, 27, 31, .85); }
}
:root[data-theme="dark"] .pcard-tag { background: rgba(14, 27, 31, .85); }

@media (max-width: 1100px) {
  .pd-related .product-grid:has(.pcard) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .product-grid:has(.pcard), .shop .product-grid { gap: 12px; }
  .pd-related .product-grid:has(.pcard) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard { border-radius: 16px; }
  .pcard-tag { left: 8px; top: 8px; padding: 5px 8px; font-size: 10px; letter-spacing: .06em; }
  .pcard-body { padding: 12px 12px 14px; gap: 6px; }
  .pcard .product-thumb { width: 32px; height: 32px; border-radius: 6px; }
  .pcard .product-thumbs { gap: 4px; }
  .pcard .product-name { font-size: 15px; }
  .pcard .product-desc { display: none; }
  .pcard .product-foot { padding-top: 8px; gap: 8px; }
  .pcard .product-foot .btn { width: auto; }
  .pcard .product-price { font-size: 15px; }
  .pcard-go { width: 32px; height: 32px; }
  .pcard-go svg { width: 16px; height: 16px; }
  .pcard-zalo { min-height: 32px; padding: 0 10px; font-size: 12px; }
}
@media (hover: none) { .pcard:hover { transform: none; box-shadow: 0 1px 2px rgba(18, 49, 58, .06); } .pcard:hover .product-img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard .product-img, .pcard-go { transition: none; } .pcard:hover { transform: none; } .pcard:hover .product-img { transform: none; } }

/* =====================================================================
   Sắp xếp: danh sách chọn tuỳ biến (JavaScript thay <select>; không có JS vẫn dùng <select>)
   ===================================================================== */
.shop-sort { position: relative; }
.shop-sort.is-enhanced > label, .shop-sort.is-enhanced > select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sort-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
            background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.sort-btn:hover { border-color: var(--ink-soft); }
.sort-btn[aria-expanded="true"], .sort-btn:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(15, 110, 116, .18); }
.sort-btn svg { display: block; flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sort-btn .sort-ico { color: var(--muted); }
.sort-btn-label { color: var(--muted); font-weight: 500; }
.sort-btn-value { font-weight: 700; }
.sort-btn .sort-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease-out); }
.sort-btn[aria-expanded="true"] .sort-chev { transform: rotate(180deg); }
.sort-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; margin: 0; padding: 6px; list-style: none;
             background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(18, 49, 58, .35);
             transform-origin: top right; animation: sortIn .16s var(--ease-out); }
.sort-menu[hidden] { display: none; }
.sort-menu:focus { outline: none; }
@keyframes sortIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sort-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--ink); }
.sort-opt.is-active { background: var(--paper); }
.sort-opt[aria-selected="true"] { color: var(--accent); font-weight: 700; }
.sort-opt svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.sort-opt[aria-selected="true"] svg { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .sort-menu { animation: none; } .sort-btn .sort-chev { transition: none; } }
@media (max-width: 860px) {
  .sort-btn { width: 100%; min-height: 44px; justify-content: center; padding: 0 14px; font-size: 14px; gap: 8px; }
  .sort-btn-label { display: none; }
  .sort-btn-value { overflow: hidden; text-overflow: ellipsis; }
  .sort-menu { min-width: 0; width: max(100%, 220px); }
  .sort-opt { min-height: 48px; font-size: 16px; }
}
