/* Shared shop template (SiteSaaz samples). Mobile first; each site sets its colours/fonts in :root inside index.html. */
:root {
  --bg: #faf8f5; --card: #fff; --ink: #1c1a17; --muted: #6b645c; --line: #e8e2da;
  --brand: #1c1a17; --on-brand: #fff; --accent: #b0752d; --top-bg: #fff; --top-ink: #1c1a17;
  --head: Georgia, serif; --body: system-ui, sans-serif; --head-case: none; --head-weight: 600;
  --r: 10px; --pad: 16px; --max: 1180px; --wa: #1fa855;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); line-height: 1.1; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
body.locked { overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { opacity: .9; }
.btn-light { background: #fff; color: #1c1a17; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.15); }
.btn-line { border: 1.5px solid currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: var(--top-bg); color: var(--top-ink); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.logo b { font: var(--head-weight) 22px/1 var(--head); text-transform: var(--head-case); letter-spacing: .02em; }
.logo small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.top-links { display: none; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); color: inherit; text-decoration: none; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px var(--body); text-align: center; }
.notice { margin: 0; background: var(--brand); color: var(--on-brand); text-align: center; font-size: 13px; padding: 7px var(--pad); }

/* hero */
.hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; background: #222; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 88%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 28px; }
.hero-kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hero h1 { font-size: 38px; max-width: 16ch; }
.hero-sub { margin: 10px 0 20px; font-size: 17px; max-width: 42ch; opacity: .92; }
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; }

.facts { list-style: none; margin: 0; padding: 14px var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.facts li { display: grid; text-align: center; align-content: start; }
.facts b { font-weight: 600; font-size: 15px; }
.facts span { font-size: 12px; color: var(--muted); }

/* sections */
.sec { padding: 36px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.sec-head h2, .about h2, .visit h2 { font-size: 28px; }
.sec-head p { margin: 0; font-size: 14px; color: var(--muted); }

/* category strip (round photo tiles) */
.cat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tile { display: grid; gap: 6px; justify-items: center; text-decoration: none; font-size: 13px; font-weight: 500; text-align: center; }
.cat-tile img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }

/* filters + grid */
.chips { position: sticky; top: 60px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 14px; padding: 10px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.card { display: flex; flex-direction: column; cursor: pointer; text-align: left; }
.card-img { position: relative; aspect-ratio: var(--card-ratio, 4 / 5); border-radius: var(--r); overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--card); color: var(--ink); }
.badge.sale { background: #c62828; color: #fff; }
.card-name { margin: 10px 0 2px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.card-sub { font-size: 13px; color: var(--muted); }
.price { font-weight: 600; }
.price s { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.card .price { margin-top: 4px; font-size: 15px; }

/* info block (gold rate / services / timings) */
.info-wrap { display: grid; gap: 16px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table-card h3 { font-family: var(--body); text-transform: none; font-size: 16px; font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.table-card h3 small { font-weight: 400; font-size: 12px; color: var(--muted); }
.table-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-card td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.table-card td small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.table-card .foot-note { margin: 0; padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* about */
.about { background: var(--about-bg, var(--brand)); color: var(--about-ink, var(--on-brand)); }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text { padding: 28px var(--pad) 36px; }
.about p { margin: 12px 0; opacity: .88; }
.about .btn { margin-top: 6px; }

/* visit */
.info { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.info div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info dd { margin: 2px 0 0; }
.visit-btns { display: grid; gap: 10px; margin-top: 16px; }

.foot { padding: 28px var(--pad) 100px; text-align: center; border-top: 1px solid var(--line); font-size: 14px; }
.foot p { margin: 4px 0; }
.credit { color: var(--muted); font-size: 12px; }

/* floating WhatsApp + cart bar */
.wa-float { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: var(--r); background: var(--brand); color: var(--on-brand); font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cart-bar b { font-weight: 600; }
body.has-cart .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15,12,10,.55); animation: fade .2s ease; }
.sheet-panel { position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); border-radius: 18px 18px 0 0; animation: up .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1c1a17; font-size: 26px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pv-imgs { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--line); }
.pv-imgs::-webkit-scrollbar { display: none; }
.pv-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.pv-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.pv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.pv-dots i.on { background: var(--ink); }
.pv-body { padding: 14px var(--pad) 20px; }
.pv-body h3 { font-size: 24px; }
.pv-body .price { display: block; font-size: 20px; margin: 6px 0 10px; }
.pv-desc { margin: 0 0 14px; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); width: 42%; }
.specs td { padding: 8px 0; border-top: 1px solid var(--line); }
.opt { border: 0; margin: 0 0 14px; padding: 0; }
.opt legend { font-weight: 600; margin-bottom: 8px; padding: 0; font-size: 15px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 44px; min-width: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 15px; }
.choice small { color: var(--muted); margin-left: 4px; }
.choice[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pv-foot { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 4px; }
.pv-ask { margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.qty button { width: 42px; height: 46px; font-size: 20px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }

.cart-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 22px; }
.cart-head .x { position: static; }
#cartItems { padding: 0 var(--pad); }
.ci { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.ci-name { font-weight: 600; font-size: 15px; }
.ci-meta { font-size: 13px; color: var(--muted); }
.ci .qty { grid-column: 2; justify-self: start; margin-top: 4px; }
.ci .qty button { width: 36px; height: 34px; font-size: 18px; }
.ci-price { grid-column: 3; grid-row: 1; font-weight: 600; }
.cart-empty { padding: 32px 0; text-align: center; color: var(--muted); }
#checkout { padding: 16px var(--pad) 20px; display: grid; gap: 12px; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 16px; width: 100%; font-weight: 400; }
.field input.bad { border-color: #c62828; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.totals { display: grid; gap: 4px; padding: 6px 0; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.form-err { margin: 0; color: #c62828; font-size: 14px; }
.form-err:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 84px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1c1a17; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --pad: 28px; }
  .hero { min-height: 540px; }
  .hero h1 { font-size: 54px; }
  .hero-btns { display: flex; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: center; gap: 64px; padding: 18px var(--pad); }
  .facts b { font-size: 16px; }
  .facts span { font-size: 13px; }
  .sec { padding: 52px 0; }
  .sec-head h2, .about h2, .visit h2 { font-size: 36px; }
  .cat-tiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, 140px); justify-content: center; gap: 28px; overflow: visible; margin: 0; padding: 0; }
  .cat-tile img { transition: transform .4s ease, box-shadow .4s ease; }
  .cat-tile:hover img { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
  .cat-tile img { width: 130px; height: 130px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .info-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .about img { height: 100%; max-height: 540px; aspect-ratio: auto; }
  .about-text { padding: 48px var(--pad); max-width: 540px; }
  .visit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
  .visit-btns { margin-top: 0; }
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { max-width: 480px; border-radius: 16px; max-height: 88dvh; }
  .sheet-panel.wide { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; }
  .sheet-panel.wide .pv-imgs img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .cart-bar { left: auto; right: 24px; bottom: 24px; width: 380px; }
  body.has-cart .wa-float { bottom: 24px; right: 420px; }
  .toast { bottom: 32px; }
}
/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .top-links { display: flex; gap: 2px; }
  .top-links a { text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; }
  .top-links a:hover { background: rgba(127,127,127,.12); }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 66px; }
  /* darker left side so the heading stays readable on bright photos */
  .hero::after { background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
  .hero-text { padding-bottom: 72px; }
  .hero-sub { font-size: 19px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips { flex-wrap: wrap; position: static; border: 0; margin: 0 0 20px; padding: 0; background: none; }
}
@media (hover: hover) {
  .card:hover .card-img .alt { opacity: 1; }
  .card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sheet-bg, .sheet-panel { animation: none; }
}
