/* ==========================================================
   Sunshine's Boutique — design system
   ========================================================== */
/* self-hosted fonts */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/fraunces-latin-full-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/fraunces-latin-full-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2'); }
:root {
  --cream: #FBF6EE;
  --paper: #FFFDF9;
  --sand: #F3E9DA;
  --sand-2: #EADBC4;
  --ink: #2A1E17;
  --ink-2: #4A3A2F;
  --muted: #7C6A5C;
  --line: #E8DCCB;
  --sun: #E9A23B;
  --sun-2: #F4C165;
  --sun-deep: #C47716;
  --blush: #F2D3C4;
  --terra: #B85C38;
  --leaf: #2F6F6A;
  --wa: #1FA855;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(42,30,23,.04), 0 12px 32px -12px rgba(42,30,23,.18);
  --shadow-lg: 0 30px 80px -30px rgba(42,30,23,.45);
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
dialog :focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* subtle paper grain over everything */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .4  0 0 0 0 .3  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type ---------- */
.eyebrow { font: 700 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sun-deep); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; margin: 0; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
h2 { font-size: clamp(34px, 5.4vw, 64px); }
h2 em, h1 em { font-style: italic; color: var(--sun-deep); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 14px/1 var(--sans); letter-spacing: .04em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 24px -12px rgba(42,30,23,.5);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(42,30,23,.55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.sun { --bg: var(--sun); --fg: var(--ink); }
.btn.wa { --bg: var(--wa); --fg: #fff; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.light { --bg: var(--paper); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); position: relative; text-decoration: none;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(42,30,23,.06); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--sun); color: var(--ink); font: 800 10px/16px var(--sans); text-align: center; padding: 0 4px; }

/* ---------- sun mark ---------- */
.sunmark { width: 100%; height: 100%; fill: var(--sun); }
.sunmark .rays { transform-origin: 32px 32px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sunmark .rays, .marquee-track, .hero-sun .rays { animation: none !important; } }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: var(--sand); font: 600 12px/1 var(--sans); letter-spacing: .08em; text-align: center; padding: 11px 16px; }
.announce b { color: var(--sun-2); font-weight: 700; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(42,30,23,.4); }
.header .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo .mark { width: 38px; height: 38px; flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word b { font: italic 400 25px/0.95 var(--serif); letter-spacing: -.02em; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.logo .word small { font: 700 9px/1 var(--sans); letter-spacing: .42em; color: var(--muted); margin-top: 5px; padding-left: 2px; }
.nav { display: none; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--sun-deep); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav { display: flex; margin-right: 24px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 80px) 0 clamp(40px, 7vw, 100px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(52px, 10.5vw, 128px); line-height: .92; letter-spacing: -.035em; margin: 18px 0 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lead { animation: fade 1s .45s var(--ease) both; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade 1s .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.hero .meta { display: flex; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 13px; flex-wrap: wrap; animation: fade 1s .75s var(--ease) both; }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta svg { width: 18px; height: 18px; color: var(--sun-deep); }

.hero-art { position: relative; aspect-ratio: 4/5; max-width: 520px; width: 100%; justify-self: center; animation: fade 1.2s .2s var(--ease) both; }
.hero-sun { position: absolute; width: 78%; aspect-ratio: 1; top: -8%; right: -14%; z-index: 0; }
.hero-sun .sunmark { fill: var(--sun-2); opacity: .9; }
.arch {
  position: absolute; overflow: hidden; background: var(--sand);
  border-radius: 999px 999px 26px 26px; box-shadow: var(--shadow-lg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch:hover img { transform: scale(1.05); }
.arch.a1 { inset: 6% 18% 0 0; z-index: 1; }
.arch.a2 { width: 44%; aspect-ratio: 3/4; right: 0; bottom: 8%; z-index: 2; border: 6px solid var(--cream); }
.hero-badge {
  position: absolute; left: -4%; bottom: 10%; z-index: 3;
  width: 116px; height: 116px; border-radius: 50%; background: var(--ink); color: var(--sand);
  display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-lg);
  font: italic 400 17px/1.1 var(--serif);
}
.hero-badge svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 22s linear infinite; }
.hero-badge text { font: 700 8.6px var(--sans); letter-spacing: .28em; fill: var(--sun-2); text-transform: uppercase; }
.arch.blank { display: grid; place-items: center; background: linear-gradient(160deg, #F7E3C0, #EFC9B8 60%, #E9A23B); }
.arch.blank .sunmark { width: 45%; fill: #fff; opacity: .8; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: italic 400 clamp(22px, 3vw, 34px)/1 var(--serif); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; color: var(--ink-2); }
.marquee-track span::after { content: '✺'; font-style: normal; color: var(--sun); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 30px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin-top: 14px; }

/* ---------- shop tools ---------- */
.tools { display: grid; gap: 14px; margin-bottom: 28px; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 18px; height: 52px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(233,162,59,.15); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.sortbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.sortbar select { border: 0; background: transparent; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (min-width: 900px) { .tools { grid-template-columns: 340px 1fr auto; align-items: center; } .sortbar { gap: 16px; } .chips { margin: 0; padding: 2px 0; } }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px) clamp(12px, 2vw, 26px); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; text-decoration: none; display: block; animation: fade .7s var(--ease) both; }
.card .ph {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--sand);
  box-shadow: var(--shadow); isolation: isolate;
}
.card:nth-child(4n+1) .ph { border-radius: 999px 999px var(--radius) var(--radius); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.card .ph img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .ph img { transform: scale(1.06); } .card:hover .ph img.alt { opacity: 1; } }
.card .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--paper); color: var(--ink);
  font: 800 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px;
}
.card:nth-child(4n+1) .tag { top: auto; bottom: 12px; }
.card:nth-child(4n+1) .heart { top: auto; bottom: 10px; }
.card .tag.sale { background: var(--terra); color: #fff; }
.card .tag.new { background: var(--sun); }
.card.sold .ph::after { content: 'Sold'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42,30,23,.42); color: #fff; font: italic 400 34px var(--serif); z-index: 1; }
.card .heart { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,253,249,.9); display: grid; place-items: center; backdrop-filter: blur(6px); transition: transform .2s; }
.card .heart:active { transform: scale(.85); }
.card .heart svg { width: 19px; height: 19px; }
.heart[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }
.card .info { padding: 14px 4px 0; display: grid; gap: 4px; }
.card .cat { font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card .name { font: 400 clamp(17px, 1.9vw, 21px)/1.2 var(--serif); letter-spacing: -.01em; }
.card .price { font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.card .price s { color: var(--muted); font-weight: 500; font-size: 12.5px; }

.skeleton .ph { background: linear-gradient(100deg, var(--sand) 30%, #f8efe2 50%, var(--sand) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
.skeleton .line { height: 12px; border-radius: 6px; background: var(--sand); margin-top: 12px; width: 70%; }
.skeleton .line + .line { width: 40%; }
@keyframes shimmer { to { background-position: -150% 0; } }

.empty { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--sand-2); border-radius: var(--radius); background: var(--paper); }
.empty .mark { width: 72px; height: 72px; margin: 0 auto 16px; }
.empty h3 { font-size: 30px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 40ch; }

/* ---------- promises ---------- */
.promises { display: grid; gap: 14px; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.promise .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--sun-deep); }
.promise .ic svg { width: 24px; height: 24px; }
.promise h3 { font-size: 24px; }
.promise p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- about ---------- */
.about { background: var(--ink); color: var(--sand); border-radius: clamp(28px, 5vw, 56px); margin: 0 clamp(8px, 2vw, 24px); position: relative; overflow: hidden; }
.about .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.about h2 { color: var(--cream); }
.about h2 em { color: var(--sun-2); }
.about p { color: #CDBBA6; font-size: 17px; }
.about .eyebrow { color: var(--sun-2); }
.about .portrait { position: relative; aspect-ratio: 4/5; max-width: min(440px, 80%); margin-top: 18px; width: 100%; justify-self: center; }
.about .portrait .arch { inset: 0; box-shadow: none; }
.about .ring { position: absolute; inset: -18px; border: 1px solid rgba(244,193,101,.35); border-radius: 999px 999px 40px 40px; }
.about .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(233,162,59,.28), transparent 65%); top: -160px; right: -160px; pointer-events: none; }
.stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stats div b { display: block; font: 400 40px/1 var(--serif); color: var(--cream); }
.stats div span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #A8927C; }

/* ---------- reviews ---------- */
.rating-sum { display: flex; align-items: center; gap: 16px; }
.rating-sum .big { font: 400 64px/1 var(--serif); }
.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars .off { color: var(--sand-2); }
.reviews { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(86%, 360px); scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.review p { margin: 0; font: 400 19px/1.45 var(--serif); letter-spacing: -.005em; }
.review footer { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-top: auto; }
.review .av { width: 38px; height: 38px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-weight: 800; color: var(--terra); }
.review-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.card-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px rgba(233,162,59,.15); }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.visit { display: grid; gap: 16px; align-content: start; }
.visit .line { display: flex; gap: 14px; align-items: flex-start; }
.visit .line svg { width: 22px; height: 22px; color: var(--sun-deep); flex: none; margin-top: 3px; }
.visit .line b { display: block; }
.visit .line span, .visit .line a { color: var(--muted); text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }

/* ---------- footer ---------- */
.footer { padding: 70px 0 110px; }
.footer .big { font: italic 400 clamp(56px, 13vw, 180px)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink); margin: 0 0 40px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.footer .big span { color: var(--sun); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 34px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer .logo { display: flex; }
.footer a:not(.logo) { display: block; text-decoration: none; padding: 5px 0; color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--sun-deep); }
.footer .fine { color: var(--muted); font-size: 12.5px; margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.socials { display: flex; gap: 8px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; padding: 0; }
.socials svg { width: 18px; height: 18px; }

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(31,168,85,.7); transition: transform .3s var(--ease); text-decoration: none;
}
.fab:hover { transform: scale(1.06) rotate(-6deg); }
.fab svg { width: 30px; height: 30px; }
.fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.6s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- sheets / dialogs ---------- */
dialog.sheet {
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.sheet[open] { animation: sheetUp .5s var(--ease); display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(30,20,14,.55); backdrop-filter: blur(4px); animation: fadeIn .3s; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (min-width: 900px) {
  dialog.sheet { max-width: 1080px; width: calc(100% - 64px); margin: auto; border-radius: 32px; max-height: 88vh; }
  dialog.sheet[open] { animation: pop .45s var(--ease); }
  dialog.sheet.narrow { max-width: 480px; }
}
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--sand-2); margin: 10px auto 0; flex: none; }
@media (min-width: 900px) { .sheet .grab { display: none; } }
.sheet .close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(255,253,249,.92); box-shadow: var(--shadow); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; }
.sheet .pad { padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom)); }

.pd { display: grid; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.1fr 1fr; } .pd .pd-info { max-height: 88vh; overflow-y: auto; } }
.gallery { position: relative; background: var(--sand); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4/5; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
@media (min-width: 900px) { .gallery .track { aspect-ratio: auto; height: 88vh; } }
.gallery .dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery .dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.6); transition: all .3s; }
.gallery .dots i.on { width: 22px; background: #fff; }
.pd-info { padding: 26px var(--gutter) calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .pd-info { padding: 56px 48px 40px; } }
.pd-info h2 { font-size: clamp(34px, 4vw, 48px); }
.pd-info .price { font: 700 20px var(--sans); display: flex; gap: 12px; align-items: baseline; }
.pd-info .price s { color: var(--muted); font-weight: 500; font-size: 15px; }
.pd-info .desc { color: var(--ink-2); white-space: pre-line; margin: 0; }
.opt-label { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 50px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); font-weight: 700; }
.size[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pd-actions { display: grid; gap: 10px; }
.pd-sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, transparent); display: flex; gap: 10px; z-index: 4; }
.pd-sticky .btn { flex: 1; }
@media (min-width: 900px) { .pd-sticky { position: static; padding: 0; background: none; } }
.pd-note { display: flex; gap: 12px; align-items: center; background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); }
.pd-note svg { width: 22px; height: 22px; color: var(--sun-deep); flex: none; }

/* install sheet */
.steps { display: grid; gap: 14px; counter-reset: s; margin: 18px 0 8px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 800; flex: none; }
.steps svg { width: 20px; height: 20px; vertical-align: -4px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 200; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 13px 20px; border-radius: 99px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease); max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--terra); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } *, *::before { animation-duration: .01ms !important; } }

.install-only { display: none !important; }
.can-install .install-only, .ios .install-only { display: inline-flex !important; }
.standalone .install-only { display: none !important; }

/* ---------- account page ---------- */
.auth-wrap { min-height: calc(100dvh - 72px); display: grid; place-items: center; padding: 30px var(--gutter) 80px; position: relative; overflow: hidden; }
.auth-wrap .bgsun { position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; opacity: .5; pointer-events: none; }
.auth-card { width: 100%; max-width: 440px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.auth-card h1 { font-size: clamp(38px, 8vw, 50px); }
.btn.google { --bg: #fff; --fg: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linkish { background: none; border: 0; padding: 0; color: var(--sun-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 99px; padding: 4px; }
.tabs button { border: 0; background: transparent; height: 42px; border-radius: 99px; font-weight: 700; color: var(--muted); transition: all .25s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.dash { padding: 30px 0 100px; }
.hello { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hello .av { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font: italic 400 30px var(--serif); color: var(--terra); overflow: hidden; flex: none; }
.hello .av img { width: 100%; height: 100%; object-fit: cover; }
.hello h1 { font-size: clamp(34px, 6vw, 54px); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; scroll-margin-top: 90px; }
.panel h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.rate-stars { display: flex; gap: 6px; }
.rate-stars button { width: 52px; height: 52px; border: 0; background: var(--cream); border-radius: 16px; color: var(--sand-2); display: grid; place-items: center; transition: transform .2s var(--ease), color .2s; }
.rate-stars button svg { width: 30px; height: 30px; }
.rate-stars button.on { color: var(--sun); }
.rate-stars button:active { transform: scale(.88); }
.google-nudge { display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, #FFF6E6, #FBE7DF); border-radius: var(--radius-sm); padding: 16px; }
