/* ============ TOKENS ============ */
:root {
  --olive: #627553; --chestnut: #61432E; --sage: #A0B092; --gold: #C4A470; --warm-white: #FBFBF9;
  --ink: #2E2016;

  --olive-50: #EFF1EE; --olive-100: #E0E3DD; --olive-200: #C0C8BA; --olive-700: #556044; --olive-800: #4D533B;
  --chestnut-50: #EFECEA; --chestnut-100: #DFD9D5; --chestnut-200: #C0B4AB; --chestnut-700: #543A28; --chestnut-900: #422E20;
  --sage-50: #F6F7F4; --sage-100: #ECEFE9; --sage-200: #D9DFD3; --sage-300: #C6D0BE;
  --gold-50: #F9F6F1; --gold-100: #F3EDE2; --gold-300: #DCC8A9; --gold-700: #9E835A;
  --sand: #F4F1E9;

  --bg: var(--warm-white); --surface: #FFFFFF; --surface-alt: var(--sand);
  --text: var(--ink); --text-muted: #6B5A4C; --heading: var(--chestnut);
  --primary: var(--olive); --primary-hover: var(--olive-700); --on-primary: var(--warm-white);
  --accent: var(--gold);
  --border: #E6E0D4; --border-strong: #CFC6B4;
  --success: #4E7A4B; --danger: #A2432F;
  --zalo: #0068FF;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Be Vietnam Pro", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 6.4vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.25rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.5rem);
  --fs-h3: 1.5rem; --fs-h4: 1.25rem;
  --fs-body: 1rem; --fs-small: .875rem; --fs-caption: .75rem;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --section-y: clamp(56px, 9vw, 104px);

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-pill: 999px;
  --arch: 999px 999px var(--r-lg) var(--r-lg);
  --sh-1: 0 1px 2px rgb(97 67 46 / .06), 0 1px 3px rgb(97 67 46 / .06);
  --sh-2: 0 4px 12px rgb(97 67 46 / .08), 0 2px 4px rgb(97 67 46 / .05);
  --sh-3: 0 16px 40px rgb(97 67 46 / .14), 0 4px 10px rgb(97 67 46 / .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: 150ms; --dur: 280ms; --dur-slow: 700ms;
  --container: 1160px;
  --header-h: 76px;
}
@media (max-width: 1040px) { :root { --header-h: 64px; } }

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); font-weight: 500; line-height: 1.2; margin: 0 0 var(--sp-4); }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); } h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.eyebrow { display: block; font: 500 var(--fs-caption)/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--olive); margin-bottom: var(--sp-3); }
.muted { color: var(--text-muted); }
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--surface-alt); }
.section.tint { background: var(--sage-100); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider { display: flex; align-items: center; gap: var(--sp-4); color: var(--gold); max-width: 220px; margin: var(--sp-4) auto; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }

/* ============ BUTTON (+ wave) ============ */
.btn { --bg-c: var(--olive); --fg-c: var(--on-primary); --bd-c: var(--olive); --wave: rgb(251 251 249 / .35);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-5);
  font: 500 var(--fs-small)/1 var(--font-body); letter-spacing: .04em; border-radius: var(--r-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--bg-c); color: var(--fg-c); border: 1px solid var(--bd-c);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.btn:hover { --bg-c: var(--olive-700); --bd-c: var(--olive-700); color: var(--fg-c); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.15em; }
.btn.gold { --bg-c: var(--gold); --fg-c: var(--ink); --bd-c: var(--gold); --wave: rgb(255 255 255 / .45); }
.btn.gold:hover { --bg-c: var(--gold-300); --bd-c: var(--gold-300); }
.btn.outline { --bg-c: transparent; --fg-c: var(--olive); --bd-c: var(--olive); --wave: rgb(98 117 83 / .22); }
.btn.outline:hover { --bg-c: var(--olive-50); --fg-c: var(--olive-700); box-shadow: none; }
.btn.ghost { --bg-c: transparent; --fg-c: var(--chestnut); --bd-c: transparent; --wave: rgb(97 67 46 / .15); }
.btn.ghost:hover { --bg-c: var(--chestnut-50); box-shadow: none; }
.btn.on-dark { --bg-c: transparent; --fg-c: var(--warm-white); --bd-c: var(--gold); --wave: rgb(196 164 112 / .35); }
.btn.on-dark:hover { --bg-c: rgb(196 164 112 / .18); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-caption); }
.btn.lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-body); }
.btn.block { width: 100%; }
.btn .wave { position: absolute; border-radius: 50%; background: var(--wave); transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: -1; animation: wave 650ms var(--ease) forwards; }
@keyframes wave { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgb(251 251 249 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.scrolled { border-color: var(--border); box-shadow: var(--sh-1); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand-logo { display: flex; align-items: center; flex: none; }
.brand-logo img { height: calc(var(--header-h) - 22px); width: auto; }
.nav { display: none; margin-left: auto; gap: var(--sp-6); }
.nav a { position: relative; font-size: var(--fs-small); color: var(--chestnut); text-decoration: none; padding: var(--sp-2) 0; letter-spacing: .02em; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover, .nav a.active { color: var(--olive); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; border: 0; cursor: pointer; color: var(--chestnut); font-size: 1.4rem; transition: background var(--dur-fast); }
.icon-btn:hover { background: var(--chestnut-50); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--olive); color: var(--warm-white); font: 600 11px/20px var(--font-body); text-align: center; }
.cart-badge[hidden] { display: none; }
.cart-badge.bump { animation: bump 400ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.nav-toggle { display: inline-grid; }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--warm-white); border-bottom: 1px solid var(--border); box-shadow: var(--sh-2); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; display: none; }
.mobile-menu.open { display: block; animation: drop var(--dur) var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu ul { padding: var(--sp-3) clamp(16px, 4vw, 32px) var(--sp-2); }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--chestnut); text-decoration: none; border-bottom: 1px solid var(--border); font-size: var(--fs-body); }
.mobile-menu .mm-cta { padding: var(--sp-4) clamp(16px, 4vw, 32px) var(--sp-5); }
.header-cta { display: none; }
@media (min-width: 1041px) {
  .nav { display: flex; } .header-actions { margin-left: var(--sp-5); } .nav-toggle { display: none; } .header-cta { display: inline-flex; }
  .mobile-menu { display: none !important; }
}

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 var(--section-y); background: linear-gradient(180deg, var(--sage-100) 0%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; gap: var(--sp-7); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.05; margin-bottom: var(--sp-5); }
.hero h1 em { font-style: italic; color: var(--olive); }
.hero p.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); font-size: var(--fs-small); color: var(--text-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero-meta i { color: var(--gold-700); font-size: 1.2rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); }
.arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--sh-3); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: var(--arch); opacity: .7; }
.hero-badge { position: absolute; left: -12px; bottom: 36px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-small); }
.hero-badge i { color: var(--olive); font-size: 1.6rem; }
.hero-badge b { display: block; font-weight: 500; color: var(--chestnut); line-height: 1.3; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero-art { justify-self: end; } }
@media (max-width: 520px) { .hero-badge { left: 8px; } }

/* ============ VALUES ============ */
.values { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { text-align: center; padding: var(--sp-5); }
.value .ico { width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: 50%; background: var(--sage-100); color: var(--olive); display: grid; place-items: center; font-size: 1.7rem; border: 1px solid var(--sage-300); }
.value h3 { font-size: 1.35rem; }
.value p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* ============ SERVICES ============ */
.chips { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 2px 2px var(--sp-3); margin-bottom: var(--sp-5); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--chestnut); cursor: pointer; font-size: var(--fs-small); transition: all var(--dur-fast) var(--ease); }
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive); color: var(--on-primary); border-color: var(--olive); }
.grid-cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sage-100); display: block; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.card .tag { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.card .body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.35rem; margin-bottom: var(--sp-2); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--olive); }
.card p { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--sp-4); }
.card .meta { margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.card .dur { font-size: var(--fs-small); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--chestnut); line-height: 1.2; }
.card .actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.card .actions .btn { flex: 1; padding: 0 var(--sp-3); }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); font: 500 var(--fs-caption)/1.4 var(--font-body); letter-spacing: .04em; background: var(--gold-100); color: var(--gold-700); }
.badge.olive { background: var(--olive-100); color: var(--olive-800); }
.badge.solid { background: var(--chestnut); color: var(--warm-white); }

/* ============ ABOUT / SPACE ============ */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse .split-media { order: 2; } }
.split-media { position: relative; }
.split-media .arch { aspect-ratio: 1/1.05; }
.split-media .float { position: absolute; right: -8px; bottom: -20px; width: 42%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--bg); overflow: hidden; box-shadow: var(--sh-2); }
.split-media .float img { width: 100%; height: 100%; object-fit: cover; }
.section.alt .split-media .float, .section.tint .split-media .float { border-color: var(--surface-alt); }
.checklist { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-6); }
.checklist li { display: flex; gap: var(--sp-3); font-size: var(--fs-small); }
.checklist i { color: var(--olive); font-size: 1.2rem; flex: none; margin-top: 1px; }
.senses { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: var(--sp-6); }
.sense { padding: var(--sp-4) var(--sp-5); border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.sense b { display: block; font: 500 var(--fs-caption)/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }
.sense span { font-size: var(--fs-small); color: var(--text-muted); }

/* ============ GALLERY ============ */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-tall { grid-row: span 2; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } .gallery .g-wide { grid-column: span 2; } }

/* ============ CTA BAND ============ */
.cta-band { background: var(--chestnut); color: var(--warm-white); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--warm-white); }
.cta-band p { color: var(--chestnut-100); max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-band .eyebrow { color: var(--gold); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgb(196 164 112 / .35); }
.cta-band::before { left: -120px; top: -140px; } .cta-band::after { right: -140px; bottom: -180px; }
.cta-band .container { position: relative; z-index: 1; }

/* ============ BRANCHES ============ */
.city-tabs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.branch-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.branch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.branch h4 { margin: 0; font-size: 1.25rem; }
.branch .line { display: flex; gap: var(--sp-3); font-size: var(--fs-small); color: var(--text-muted); }
.branch .line i { color: var(--olive); font-size: 1.15rem; flex: none; margin-top: 2px; }
.branch .actions { display: flex; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); flex-wrap: wrap; }
.contact-strip { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--sp-7); }
.contact-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text); transition: box-shadow var(--dur), transform var(--dur); }
.contact-item:hover { box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--text); }
.contact-item i { width: 48px; height: 48px; border-radius: 50%; background: var(--olive-100); color: var(--olive); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.contact-item small { display: block; color: var(--text-muted); font-size: var(--fs-caption); letter-spacing: .06em; text-transform: uppercase; }
.contact-item b { font-weight: 500; color: var(--chestnut); overflow-wrap: anywhere; }

/* ============ FOOTER ============ */
.site-footer { background: var(--chestnut-900); color: var(--chestnut-100); padding: var(--sp-8) 0 var(--sp-5); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: var(--sp-6); border-bottom: 1px solid rgb(251 251 249 / .12); }
.site-footer h4 { color: var(--gold); font: 500 var(--fs-caption)/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: var(--chestnut-100); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: var(--sp-2); font-size: var(--fs-small); }
.footer-logo img { height: 64px; width: auto; margin-bottom: var(--sp-4); }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(196 164 112 / .5); display: grid; place-items: center; font-size: 1.3rem; transition: background var(--dur-fast), color var(--dur-fast); }
.footer-social a:hover { background: var(--gold); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); font-size: var(--fs-caption); color: var(--chestnut-200); }

/* ============ FLOATING ============ */
.fab-zone { position: fixed; z-index: 55; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.fab-zone > * { pointer-events: auto; }
body.has-sticky-cta .fab-zone { bottom: 92px; }
@media (min-width: 901px) { body.has-sticky-cta .fab-zone { bottom: 16px; } .fab-zone { left: 24px; right: 24px; bottom: 24px; } }
.zalo-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--zalo); color: var(--warm-white); display: grid; place-items: center; text-decoration: none; box-shadow: var(--sh-2); animation: ring-shake 3.2s ease-in-out infinite; }
.zalo-btn span { font: 700 13px/1 var(--font-body); letter-spacing: -.02em; }
.zalo-btn::before, .zalo-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--zalo); opacity: 0; animation: ring-wave 2.4s ease-out infinite; }
.zalo-btn::after { animation-delay: 1.2s; }
.zalo-btn:hover { color: var(--warm-white); }
@keyframes ring-wave { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ring-shake { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-12deg); } 68% { transform: rotate(10deg); } 72% { transform: rotate(-8deg); } 76% { transform: rotate(6deg); } 80% { transform: rotate(0); } }
.to-top { position: relative; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--surface); color: var(--chestnut); cursor: pointer; box-shadow: var(--sh-2); display: grid; place-items: center; font-size: 1.3rem; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity var(--dur), transform var(--dur), visibility var(--dur); margin-left: auto; }
.to-top.show { opacity: 1; transform: none; visibility: visible; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 3; }
.to-top .ring .track { stroke: var(--border); }
.to-top .ring .bar { stroke: var(--olive); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
.sticky-cta { position: fixed; z-index: 54; left: 0; right: 0; bottom: 0; padding: var(--sp-3) 16px calc(var(--sp-3) + env(safe-area-inset-bottom)); background: rgb(251 251 249 / .96); border-top: 1px solid var(--border); display: flex; align-items: center; gap: var(--sp-4); }
.sticky-cta .p { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--chestnut); line-height: 1.1; }
.sticky-cta .p small { display: block; font: 400 var(--fs-caption) var(--font-body); color: var(--text-muted); }
.sticky-cta .btn { flex: 1; }
@media (min-width: 901px) { .sticky-cta { display: none; } }

/* ============ MODAL / DRAWER / TOAST ============ */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgb(46 32 22 / .5); opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur); }
.overlay.open { opacity: 1; visibility: visible; }
.modal { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(92vw, 460px); transform: translate(-50%, -46%); background: var(--surface); border-radius: var(--r-xl); padding: var(--sp-7) var(--sp-6) var(--sp-6); box-shadow: var(--sh-3); text-align: center; opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease); max-height: 92vh; overflow-y: auto; }
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--olive-100); color: var(--olive); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto var(--sp-4); }
.modal .ctx { background: var(--sand); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); margin-bottom: var(--sp-4); }
.modal .close { position: absolute; top: 8px; right: 8px; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(100vw, 420px); background: var(--warm-white); box-shadow: var(--sh-3); transform: translateX(100%); transition: transform var(--dur) var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.drawer-foot { padding: var(--sp-5); border-top: 1px solid var(--border); background: var(--surface); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); align-items: start; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-md); }
.cart-line h4 { font: 500 var(--fs-small)/1.4 var(--font-body); color: var(--chestnut); margin: 0 0 4px; }
.cart-line .u { font-size: var(--fs-caption); color: var(--text-muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-pill); margin-top: var(--sp-2); background: var(--surface); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; border-radius: 50%; color: var(--chestnut); }
.qty button:hover { background: var(--olive-50); }
.qty output { min-width: 28px; text-align: center; font-size: var(--fs-small); }
.cart-line .rm { border: 0; background: none; color: var(--text-muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; }
.cart-line .rm:hover { color: var(--danger); background: var(--chestnut-50); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-4); }
.cart-total b { font-family: var(--font-display); font-size: 1.7rem; color: var(--chestnut); }
.cart-empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--text-muted); }
.cart-empty i { font-size: 3rem; color: var(--sage); display: block; margin-bottom: var(--sp-3); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--chestnut-900); color: var(--warm-white); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); font-size: var(--fs-small); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease); max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============ DETAIL PAGES ============ */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-small); color: var(--text-muted); padding: var(--sp-5) 0; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--olive); }
.crumbs i { font-size: 1rem; }
.detail { display: grid; gap: var(--sp-7); padding-bottom: var(--section-y); }
@media (min-width: 900px) { .detail { grid-template-columns: 1.05fr 1fr; align-items: start; } .detail-media { position: sticky; top: calc(var(--header-h) + 24px); } }
.detail-media .arch { aspect-ratio: 4/4.4; }
.detail-info h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.facts { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin: var(--sp-5) 0; padding: var(--sp-4) 0; border-block: 1px solid var(--border); font-size: var(--fs-small); }
.facts div { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-muted); }
.facts i { color: var(--gold-700); font-size: 1.3rem; }
.facts .price { margin-left: auto; }
.detail-block { margin-top: var(--sp-6); }
.detail-block h3 { font-size: 1.4rem; }
.steps { counter-reset: s; display: grid; gap: var(--sp-3); }
.steps li { counter-increment: s; display: flex; gap: var(--sp-4); align-items: flex-start; font-size: var(--fs-small); }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--olive); color: var(--warm-white); display: grid; place-items: center; font: 500 var(--fs-small) var(--font-body); }
.dot-list { display: grid; gap: var(--sp-2); }
.dot-list li { position: relative; padding-left: var(--sp-5); font-size: var(--fs-small); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.faq details { border-bottom: 1px solid var(--border); padding: var(--sp-3) 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--chestnut); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--olive); transition: transform var(--dur); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--sp-3); }
.thumbs { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.thumbs button { width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--olive); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-top: var(--sp-5); }
.buy-row .qty { margin: 0; }
.chip-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn .wave { display: none; }
}
