/* [Claude/Kin] 2026-07-19 — Kedai Emas · ISTANA DIRAJA royal-opulent Malay premium.
   Deep marun/emerald jewel base + heavy gold; songket texture, songket-band dividers,
   awan-larat flourishes, gold-foil headings, Jawi accent. All motifs self-contained SVG/CSS. */

/* songket diamond lattice (faint) — reused on dark bands */
:root {
  --songket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23E4BE6E' stroke-opacity='0.11' stroke-width='1'%3E%3Cpath d='M22 2 42 22 22 42 2 22Z'/%3E%3Cpath d='M22 13 31 22 22 31 13 22Z'/%3E%3C/g%3E%3C/svg%3E");
  --songketband: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='26' viewBox='0 0 60 26'%3E%3Cg fill='%23E4BE6E'%3E%3Cpath d='M30 4 37 13 30 22 23 13Z'/%3E%3Cpath d='M6 13 11 8 16 13 11 18Z' fill-opacity='0.55'/%3E%3Cpath d='M44 13 49 8 54 13 49 18Z' fill-opacity='0.55'/%3E%3C/g%3E%3C/svg%3E");
}

body { background: var(--marun-900); color: var(--on-dark); font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh-body); background-image: var(--songket); background-attachment: fixed; }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--chrome-pad); }

/* ---- ornaments ---- */
.ornament { display: block; height: 14px; color: var(--gold); margin: var(--space-4) auto 0; }
.section-head.center .ornament { margin-inline: auto; }
.songket-band { height: 26px; background-image: var(--songketband); background-repeat: repeat-x; background-position: center; border-block: 1px solid var(--line-gold); opacity: .9; }
.gold-foil { background: var(--grad-foil); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .gold-foil { animation: foil 6s linear infinite; } }
@keyframes foil { to { background-position: 220% center; } }

/* ---- shared ---- */
.eyebrow { font-family: var(--font-ui); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }
.section-title { font-family: var(--font-display); font-size: var(--fs-section); line-height: var(--lh-section); font-weight: var(--fw-bold); color: var(--on-dark); letter-spacing: -0.01em; }
.section-sub { margin-top: var(--space-4); color: var(--on-dark-mut); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 56ch; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-bottom: var(--space-16); }
.section-head.center .section-sub { margin-inline: auto; }
.section { padding-block: var(--section-pad-y); position: relative; }
.section.emerald { background: linear-gradient(180deg, var(--emerald), var(--emerald-2)); background-image: var(--songket); }
@media (min-width: 900px) { .section { padding-block: var(--section-pad-y-lg); } }

/* ---- scroll reveal (js-gated, failsafe in app.js) ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: var(--fs-body); padding: 14px 26px; border-radius: var(--r-pill); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease); }
.btn .ic { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(0); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -12px rgba(37,211,102,0.7); }
.btn-wa:hover { background: #1ebe5b; }
.btn-gold { background: var(--grad-gold); color: var(--on-gold); box-shadow: var(--glow-gold); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--gold-soft); border: 1px solid var(--line-gold); }
.btn-ghost:hover { background: rgba(228,190,110,0.12); }
.btn-sm { padding: 9px 18px; font-size: var(--fs-meta); } .btn-sm .ic { width: 17px; height: 17px; }
.btn-lg { padding: 17px 36px; font-size: 18px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(27,5,9,0.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-gold-s); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .brand-jawi { font-family: var(--font-jawi); font-size: 15px; color: var(--gold); opacity: .9; margin-bottom: 3px; }
.brand .brand-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 22px; color: var(--on-dark); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav a { font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--on-dark-mut); transition: color var(--dur-fast) var(--ease); }
.nav a:hover { color: var(--gold-soft); }
.nav a.btn { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--gold-soft); border-radius: 2px; transition: all var(--dur-base) var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero (royal, asymmetric) ---- */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 78% 34%, rgba(228,190,110,0.22), transparent 60%), radial-gradient(50% 60% at 10% 10%, rgba(20,80,59,0.25), transparent 60%); }
.hero-frame { position: absolute; inset: 16px; border: 1px solid var(--line-gold); border-radius: var(--r-lg); pointer-events: none; }
.hero-frame span { position: absolute; width: 46px; height: 46px; color: var(--gold); opacity: .8; }
.hero-frame .fl-tl { top: -1px; left: -1px; } .hero-frame .fl-tr { top: -1px; right: -1px; transform: scaleX(-1); }
.hero-frame .fl-bl { bottom: -1px; left: -1px; transform: scaleY(-1); } .hero-frame .fl-br { bottom: -1px; right: -1px; transform: scale(-1); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--space-16); padding-block: clamp(60px, 8vw, 118px); }
.hero-copy { text-align: left; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero-title { font-family: var(--font-display); font-size: var(--fs-hero); line-height: var(--lh-hero); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--on-dark); }
.hero-title .gold-foil { display: inline-block; }
.hero-sub { margin-top: var(--space-6); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--on-dark-mut); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.ht-chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--on-dark-mut); background: rgba(255,240,210,0.05); border: 1px solid var(--line-gold-s); padding: 8px 16px; border-radius: var(--r-pill); }
.ht-chip svg { width: 17px; height: 17px; color: var(--gold); }

/* hero visual — royal gold medallion */
.hero-visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.hv-orb { width: 76%; aspect-ratio: 1/1; border-radius: var(--r-pill); background: var(--grad-gold); box-shadow: var(--glow-gold), inset 0 8px 34px rgba(255,255,255,0.5), inset 0 -16px 44px rgba(140,97,26,0.5); display: grid; place-items: center; position: relative; }
.hv-orb::before { content: ""; position: absolute; inset: 9%; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,0.4); }
.hv-orb::after { content: ""; position: absolute; inset: 15%; border-radius: var(--r-pill); border: 1px dashed rgba(90,60,15,0.35); }
.hv-motif { width: 50%; height: 50%; color: rgba(58,36,8,0.6); }
.hv-chip { position: absolute; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream); border: 1px solid var(--line-gold); border-radius: var(--r-chip); padding: 12px 17px; box-shadow: var(--shadow-soft); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; color: var(--ink); line-height: 1; }
.hv-chip small { font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: 11px; letter-spacing: .1em; color: var(--gold-strong); margin-top: 5px; text-transform: uppercase; }
.hv-chip-1 { top: 5%; right: 0; } .hv-chip-2 { bottom: 15%; left: -3%; } .hv-chip-3 { bottom: 0; right: 14%; }
@media (min-width: 780px) { .hv-chip { animation: float 5s ease-in-out infinite; } .hv-chip-2 { animation-delay: -1.6s; } .hv-chip-3 { animation-delay: -3.1s; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hv-chip { animation: none; } }

/* ---- gold price band (the hook) ---- */
.price-band { background: var(--ink-band); background-image: var(--songket); color: var(--on-dark); padding-block: clamp(60px, 8vw, 104px); position: relative; }
.price-head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-12); }
.price-updated { font-size: var(--fs-meta); color: var(--on-dark-dim); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.price-card { background: linear-gradient(165deg, var(--marun-700), var(--marun-800)); border: 1px solid var(--line-gold); border-radius: var(--r-card); padding: var(--space-8); position: relative; overflow: hidden; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-gold); }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--glow-gold); }
.price-card .pc-label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-weight: var(--fw-medium); color: var(--on-dark-mut); font-size: var(--fs-meta); }
.pc-badge { font-family: var(--font-display); font-size: 13px; font-weight: var(--fw-bold); color: var(--on-gold); background: var(--grad-gold); padding: 3px 12px; border-radius: var(--r-pill); }
.pc-main { margin-top: var(--space-6); }
.pc-buy { font-family: var(--font-display); font-feature-settings: var(--num-tabular); font-size: var(--fs-price); font-weight: var(--fw-bold); line-height: 1; }
.pc-buy .cur { font-size: 0.42em; color: var(--on-dark-mut); font-weight: var(--fw-semibold); margin-right: 5px; vertical-align: 0.28em; -webkit-text-fill-color: var(--on-dark-mut); }
.pc-unit { font-size: var(--fs-meta); color: var(--on-dark-dim); margin-top: var(--space-3); }
.pc-sell { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-gold-s); font-size: var(--fs-meta); color: var(--on-dark-mut); display: flex; justify-content: space-between; align-items: baseline; }
.pc-sell b { color: var(--gold-soft); font-feature-settings: var(--num-tabular); font-weight: var(--fw-semibold); }
.trend { display: inline-flex; font-weight: var(--fw-bold); font-size: 0.46em; vertical-align: 0.4em; -webkit-text-fill-color: currentColor; }
.trend.up { color: var(--up); } .trend.down { color: var(--down); }
.price-note { margin-top: var(--space-8); font-size: var(--fs-meta); color: var(--on-dark-dim); max-width: 68ch; }

/* ---- products (ivory cards pop on jewel) ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.product-card { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); border: 1px solid var(--line-gold); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.product-card:hover { transform: translateY(-6px); }
.pcard-media { aspect-ratio: 4/5; background: radial-gradient(120% 80% at 50% 18%, #FDF3D6 0%, #EFD8A0 45%, #D9B871 100%); display: grid; place-items: center; position: relative; overflow: hidden; }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%); transform: translateX(-110%); transition: transform var(--dur-slow) var(--ease); }
.product-card:hover .pcard-media::after { transform: translateX(110%); }
.pcard-media svg { width: 42%; height: 42%; color: rgba(60,40,10,0.42); transition: transform var(--dur-slow) var(--ease); }
.product-card:hover .pcard-media svg { transform: scale(1.07) rotate(-2deg); }
.pcard-purity { position: absolute; top: var(--space-4); left: var(--space-4); font-family: var(--font-display); font-size: 13px; font-weight: var(--fw-bold); color: var(--on-gold); background: var(--grad-gold); padding: 4px 13px; border-radius: var(--r-pill); box-shadow: var(--shadow-soft); }
.pcard-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.pcard-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--ink); letter-spacing: -0.01em; }
.pcard-meta { font-size: var(--fs-meta); color: var(--gold-strong); font-weight: var(--fw-semibold); font-feature-settings: var(--num-tabular); }
.pcard-note { font-size: var(--fs-meta); color: var(--ink-soft); }
.pcard-cta { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--line-cream); }
.pcard-cta a { display: inline-flex; align-items: center; gap: 7px; font-weight: var(--fw-semibold); font-size: var(--fs-meta); color: #167a3d; margin-top: var(--space-4); }
.pcard-cta a:hover { gap: 10px; }
.pcard-cta .ic { width: 16px; height: 16px; transition: all var(--dur-base) var(--ease); }

/* ---- why / trust (emerald jewel band, ornate icons) ---- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.why-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.why-ic { width: 74px; height: 74px; border-radius: var(--r-pill); background: radial-gradient(circle at 30% 25%, rgba(246,227,174,0.28), rgba(228,190,110,0.08)); border: 1px solid var(--line-gold); display: grid; place-items: center; color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.why-ic svg { width: 32px; height: 32px; }
.why-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--on-dark); }
.why-card p { font-size: var(--fs-meta); color: var(--on-dark-mut); max-width: 30ch; }

/* ---- location ---- */
.loc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-12); align-items: stretch; }
.loc-info { display: flex; flex-direction: column; gap: var(--space-6); }
.branch-picker { display: flex; flex-direction: column; gap: var(--space-2); }
.branch-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: var(--space-4) var(--space-5); border-radius: var(--r-card); border: 1px solid var(--line-gold-s); background: rgba(255,240,210,0.03); color: var(--on-dark); transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease); }
.branch-btn:hover { border-color: var(--line-gold); background: rgba(228,190,110,0.06); }
.branch-btn.is-active { border-color: var(--gold); background: rgba(228,190,110,0.10); box-shadow: inset 3px 0 0 var(--gold); }
.bb-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; color: var(--on-dark); }
.bb-tag { display: inline-block; font-family: var(--font-ui); font-size: 10px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--on-gold); background: var(--grad-gold); padding: 2px 8px; border-radius: var(--r-pill); vertical-align: middle; margin-left: 6px; }
.bb-city { font-size: var(--fs-meta); color: var(--on-dark-mut); }
.branch-detail { padding-top: var(--space-4); border-top: 1px solid var(--line-gold-s); }
.loc-h { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--gold-soft); margin-bottom: var(--space-3); }
.branch-tag { font-family: var(--font-ui); font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--on-gold); background: var(--grad-gold); padding: 3px 10px; border-radius: var(--r-pill); vertical-align: middle; }
.branch-tag:empty { display: none; }
.branch-address { color: var(--on-dark-mut); margin-bottom: var(--space-4); }
.loc-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.hours { display: flex; flex-direction: column; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-gold-s); font-size: var(--fs-meta); }
.hours li:last-child { border-bottom: 0; }
.hours .h-day { color: var(--on-dark); font-weight: var(--fw-medium); } .hours .h-time { color: var(--on-dark-mut); text-align: right; }
.loc-map { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; box-shadow: var(--shadow-card); border: 1px solid var(--line-gold); }
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---- cta band (gold) ---- */
.cta-band { background: var(--grad-gold); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -10%, rgba(255,255,255,0.42), transparent 55%); }
.cta-inner { position: relative; text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta-band .ornament { color: var(--on-gold); opacity: .5; }
.cta-title { font-family: var(--font-display); font-size: var(--fs-section); font-weight: var(--fw-bold); color: var(--on-gold); letter-spacing: -0.01em; }
.cta-sub { margin: var(--space-4) auto 0; max-width: 50ch; color: #3A2408; font-size: var(--fs-lead); }
.cta-inner .btn { margin-top: var(--space-10); background: var(--ink-band); color: var(--gold-soft); box-shadow: 0 18px 38px -14px rgba(0,0,0,0.7); }
.cta-inner .btn:hover { background: #000; }

/* ---- footer ---- */
.site-foot { background: var(--ink-band); background-image: var(--songket); color: var(--on-dark-mut); padding-block: var(--space-20) var(--space-8); }
.foot-grid { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: space-between; }
.foot-brand { font-family: var(--font-display); font-size: 23px; font-weight: var(--fw-bold); color: var(--gold-soft); }
.foot-jawi { font-family: var(--font-jawi); color: var(--gold); font-size: 16px; margin-bottom: 4px; }
.foot-tag { margin-top: var(--space-3); font-size: var(--fs-meta); max-width: 40ch; line-height: 1.7; }
.foot-contact { font-size: var(--fs-meta); line-height: 2; }
.foot-contact a { color: var(--gold-soft); }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line-gold-s); font-size: var(--fs-legal); color: var(--on-dark-dim); }

/* ---- floating WhatsApp ---- */
.wa-float { position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px); z-index: 60; width: 58px; height: 58px; border-radius: var(--r-pill); background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,0.6); transition: transform var(--dur-base) var(--ease); }
.wa-float:hover { transform: scale(1.08); } .wa-float svg { width: 30px; height: 30px; }

/* ---- state helpers ---- */
.state { grid-column: 1 / -1; text-align: center; padding: var(--space-16); color: var(--on-dark-mut); font-size: var(--fs-meta); }
.sk { background: linear-gradient(90deg, rgba(255,240,210,0.05), rgba(255,240,210,0.11), rgba(255,240,210,0.05)); background-size: 200% 100%; animation: sk 1.3s var(--ease) infinite; border-radius: var(--r-lg); }
.sk-price { height: 210px; } .sk-prod { height: 360px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-12); text-align: center; }
  .hero-copy { text-align: center; }
  .hero .eyebrow, .hero-sub, .hero-ctas, .hero-trust { justify-content: center; margin-inline: auto; }
  .hero-visual { max-width: 380px; margin-inline: auto; order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 780px) {
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--marun-800); border-bottom: 1px solid var(--line-gold); padding: var(--space-2) var(--chrome-pad) var(--space-5); transform: translateY(-140%); transition: transform var(--dur-base) var(--ease); box-shadow: var(--shadow-card); }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: var(--space-4) 0; border-bottom: 1px solid var(--line-gold-s); font-size: var(--fs-body); }
  .nav a.btn { margin-top: var(--space-3); border-bottom: 0; }
  .burger { display: flex; }
  .hero-frame { inset: 8px; }
  .price-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } .hv-chip { font-size: 17px; padding: 10px 14px; } }

/* ============ HERO BANNER CAROUSEL (auto-slide) ============ */
.hero-banner { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.hb-viewport { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow-card); background: var(--marun-800); }
.hb-track { display: flex; transition: transform var(--dur-slow) var(--ease); }
.hb-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; background: var(--marun-800); }
.hb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-cta { position: absolute; left: 0; right: 0; bottom: clamp(38px, 6vw, 60px); display: flex; justify-content: center; padding-inline: var(--space-6); }
.hb-cta .btn { box-shadow: var(--glow-gold), 0 10px 24px rgba(0,0,0,0.45); }
.hb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: var(--r-pill); background: rgba(20,10,6,0.5); backdrop-filter: blur(4px); border: 1px solid var(--line-gold); color: var(--gold-soft); display: grid; place-items: center; transition: background var(--dur-base) var(--ease); z-index: 2; }
.hb-arrow:hover { background: rgba(20,10,6,0.85); }
.hb-arrow svg { width: 22px; height: 22px; }
.hb-prev { left: 14px; } .hb-next { right: 14px; }
.hb-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hb-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: rgba(255,240,210,0.4); transition: width var(--dur-base) var(--ease), background var(--dur-base) var(--ease); }
.hb-dot.is-active { width: 26px; background: var(--gold); }
.hb-empty { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--on-dark-mut); font-size: var(--fs-meta); }

/* ============ BRANCH CARD GRID (KESS-style) ============ */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.branch-card { display: flex; flex-direction: column; background: linear-gradient(165deg, var(--marun-700), var(--marun-800)); border: 1px solid var(--line-gold); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.bc-map { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line-gold-s); background: var(--marun-900); }
.bc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bc-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.bc-name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--gold-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-tag { font-family: var(--font-ui); font-size: 10px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--on-gold); background: var(--grad-gold); padding: 2px 9px; border-radius: var(--r-pill); }
.bc-tag:empty { display: none; }
.bc-address { font-size: var(--fs-meta); color: var(--on-dark-mut); line-height: 1.55; }
.bc-hours { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-1); }
.bc-hours li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; color: var(--on-dark-mut); }
.bc-hours .h-day { color: var(--on-dark); } .bc-hours .h-time { text-align: right; }
.bc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line-gold-s); }

/* ============ SIZE GUIDE ============ */
.sg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-bottom: var(--space-16); }
.sg-card { text-align: center; }
.sg-img { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-gold); background: var(--marun-700); margin-bottom: var(--space-5); }
.sg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--gold-soft); margin-bottom: var(--space-3); }
.sg-steps { counter-reset: sg; text-align: left; display: flex; flex-direction: column; gap: var(--space-3); }
.sg-steps li { counter-increment: sg; display: flex; gap: var(--space-3); font-size: var(--fs-meta); color: var(--on-dark-mut); }
.sg-steps li::before { content: counter(sg); flex: none; width: 24px; height: 24px; border-radius: var(--r-pill); background: rgba(228,190,110,0.14); border: 1px solid var(--line-gold); color: var(--gold); font-family: var(--font-ui); font-weight: var(--fw-bold); font-size: 12px; display: grid; place-items: center; }
.sg-table-wrap { max-width: 560px; margin-inline: auto; }
.sg-table-note { text-align: center; color: var(--on-dark-mut); font-size: var(--fs-meta); margin-bottom: var(--space-4); }
.sg-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-gold); border-radius: var(--r-card); overflow: hidden; }
.sg-table th { background: var(--marun-700); color: var(--gold-soft); font-family: var(--font-ui); font-size: var(--fs-meta); font-weight: var(--fw-semibold); text-align: left; padding: var(--space-3) var(--space-5); }
.sg-table td { padding: var(--space-3) var(--space-5); font-size: var(--fs-meta); color: var(--on-dark); border-top: 1px solid var(--line-gold-s); font-feature-settings: var(--num-tabular); }
.sg-table tbody tr:nth-child(even) td { background: rgba(255,240,210,0.02); }

/* ============ PROMO POPUP (full image, subtle close) ============ */
.promo-popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-6); animation: ppfade var(--dur-base) var(--ease); }
.promo-popup[hidden] { display: none; }
.pp-backdrop { position: absolute; inset: 0; background: rgba(10,5,3,0.74); backdrop-filter: blur(3px); }
/* dialog wraps the image; image is bounded by BOTH max-width and max-height with auto sizing,
   so the WHOLE image always shows (never cut) and the popup follows the image's size/ratio. */
.pp-dialog { position: relative; display: inline-block; max-width: 92vw; }
.pp-link { display: block; }
.pp-img { display: block; width: auto; height: auto; max-width: min(440px, 92vw); max-height: 86vh; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.pp-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: var(--r-pill); background: rgba(0,0,0,0.22); color: rgba(255,255,255,0.5); font-size: 18px; line-height: 1; display: grid; place-items: center; transition: all var(--dur-base) var(--ease); }
.pp-close:hover { background: rgba(0,0,0,0.5); color: #fff; }
@keyframes ppfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .promo-popup { animation: none; } .hb-track { transition: none; } }

/* ---- responsive for the new blocks ---- */
@media (max-width: 900px) { .branch-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .sg-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
@media (min-width: 561px) and (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .hb-cta .btn { padding: 10px 18px; font-size: var(--fs-meta); } .hb-arrow { width: 36px; height: 36px; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ============ FULL-BLEED CHROME + HERO (MiYi wide-screen standard #39) ============ */
/* Header nav + hero banner go edge-to-edge; inner content padded off the screen edges. */
.head-inner { max-width: none; margin-inline: 0; padding-inline: var(--chrome-pad); }
.hero-banner { padding-inline: 0; }
.hero-banner > .container { max-width: none; margin-inline: 0; padding-inline: 0; }
.hero-banner .hb-viewport { border-radius: 0; border-left: 0; border-right: 0; }

/* ============ INTERACTIVE MAP (Leaflet) — left panel + main map + status ============ */
.map-shell { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line-gold); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); min-height: 480px; }
.map-panel { background: linear-gradient(165deg, var(--marun-700), var(--marun-800)); display: flex; flex-direction: column; border-right: 1px solid var(--line-gold-s); }
.map-branches { display: flex; flex-direction: column; }
.mb-item { display: flex; align-items: flex-start; gap: var(--space-3); text-align: left; width: 100%; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line-gold-s); color: var(--on-dark); transition: background var(--dur-base) var(--ease); }
.mb-item:hover { background: rgba(228,190,110,0.06); }
.mb-item.is-active { background: rgba(228,190,110,0.12); box-shadow: inset 3px 0 0 var(--gold); }
.mb-pin { flex: none; width: 26px; height: 26px; color: var(--gold); }
.mb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mb-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; color: var(--gold-soft); display: flex; align-items: center; gap: 8px; }
.mb-city { font-size: var(--fs-meta); color: var(--on-dark-mut); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--fw-semibold); margin-top: 6px; padding: 2px 9px; border-radius: var(--r-pill); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-pill); background: currentColor; }
.status.open { color: #6FCf97; background: rgba(111,207,151,0.12); }
.status.soon { color: #E7B24C; background: rgba(231,178,76,0.12); }
.status.closed { color: #E8998A; background: rgba(232,153,138,0.12); }
.map-info { margin-top: auto; padding: var(--space-5); border-top: 1px solid var(--line-gold-s); }
.mi-address { font-size: var(--fs-meta); color: var(--on-dark-mut); line-height: 1.6; }
.mi-hours { display: flex; flex-direction: column; gap: 2px; margin: var(--space-3) 0; }
.mi-hours li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; color: var(--on-dark-mut); }
.mi-hours .h-day { color: var(--on-dark); } .mi-hours .h-time { text-align: right; }
.mi-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.map-canvas { min-height: 480px; background: var(--marun-900); z-index: 0; }
.map-canvas .leaflet-container { height: 100%; width: 100%; background: var(--marun-800); font-family: var(--font-ui); }
.map-canvas .leaflet-popup-content-wrapper { background: var(--marun-700); color: var(--on-dark); border: 1px solid var(--line-gold); border-radius: var(--r-card); }
.map-canvas .leaflet-popup-tip { background: var(--marun-700); border: 1px solid var(--line-gold); }
.map-canvas .leaflet-popup-content { font-size: var(--fs-meta); }
.map-canvas .leaflet-popup-content b { color: var(--gold-soft); font-family: var(--font-display); }
.map-canvas .leaflet-control-attribution { background: rgba(20,10,6,0.7); color: var(--on-dark-dim); }
.map-canvas .leaflet-control-attribution a { color: var(--on-dark-mut); }
.map-pin { width: 30px; height: 40px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); transition: transform var(--dur-base) var(--ease); }
.map-pin.is-active { transform: scale(1.25); }
.map-empty { display: grid; place-items: center; color: var(--on-dark-mut); font-size: var(--fs-meta); padding: var(--space-16); }
@media (max-width: 900px) {
  .map-shell { grid-template-columns: 1fr; min-height: 0; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--line-gold-s); }
  .map-canvas { min-height: 360px; order: -1; }
  .map-info { margin-top: 0; }
}

.mi-hint { text-align: center; color: var(--on-dark-mut); font-size: var(--fs-meta); padding: var(--space-5) var(--space-3); line-height: 1.6; }

/* ============ DEMO STYLE SWITCHER (sales tool — flip the look in front of the boss) ============
   Not part of the section contract; it's demo chrome. Hide with ?demo=0 (or delete the element). */
.style-switch { position: fixed; left: clamp(12px, 3vw, 22px); bottom: clamp(16px, 4vw, 28px); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: var(--r-pill);
  background: rgba(20,12,8,0.72); backdrop-filter: blur(10px); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-soft); }
.style-switch[hidden] { display: none; }
.style-switch .ss-label { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-dark-mut); padding-inline: 8px 4px; }
.style-switch button { width: 28px; height: 28px; border-radius: var(--r-pill); font-family: var(--font-ui);
  font-size: 13px; font-weight: var(--fw-bold); color: var(--on-dark-mut); background: transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.style-switch button:hover { background: rgba(228,190,110,0.16); color: var(--on-dark); }
.style-switch button[aria-current="true"] { background: var(--grad-gold); color: var(--on-gold); }
/* light styles need a light chip so it doesn't punch a dark hole in the page */
:root[data-style="2"] .style-switch { background: rgba(255,255,255,0.86); border-color: var(--line-gold-s); }
@media (max-width: 480px) { .style-switch .ss-label { display: none; } }
