/* Ozone Gold: shared design system.
   Emphasis comes from size, weight and colour. No italics anywhere. */

:root {
  --bg: #ffffff;
  --surface: #f5f4ef;      /* product tiles, quiet panels */
  --surface-2: #ecebe3;
  --line: #e6e3d8;
  --ink: #2f2f18;          /* main text, dark sections */
  --ink-2: #57563f;        /* secondary text */
  --muted: #85836d;
  --olive: #4d4c27;
  --gold: #c99700;         /* fills: buttons, meters, dots */
  --gold-soft: #f3e2a2;
  --gold-pale: #fbf5e1;
  --gold-text: #8c6a00;    /* gold that passes contrast as text on white */
  --gold-on-dark: #e0b53a; /* gold text on olive */
  --sale: #a63a2b;
  --ok: #4d6b2f;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(47, 47, 24, .06);
  --shadow: 0 18px 50px rgba(47, 47, 24, .10);
  --product-shadow: drop-shadow(0 18px 22px rgba(47, 47, 24, .16)) drop-shadow(0 3px 5px rgba(47, 47, 24, .10));
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1320px;
  --gutter: 24px;
  --header-h: 72px;
  color-scheme: light; /* the brand uses one light look */
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
em, i, cite { font-style: normal; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin: 0; }
.h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; margin: 0; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); margin: 0; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.gold { color: var(--gold-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--gold-text); margin: 0 0 16px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-on-dark); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b88a00; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--olive); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; position: relative;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }
.count-dot {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.count-dot.show { transform: scale(1); }
.count-dot.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Badges, chips ---------- */
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: #fff; color: var(--ink);
}
.badge-new { background: var(--ink); color: #fff; }
.badge-best { background: var(--gold); color: var(--ink); }
.badge-fav { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge-sale { background: var(--sale); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .chip-n { font-size: 12px; color: var(--muted); }
.chip.is-active .chip-n { color: var(--gold-soft); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #f1efe4; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar-msg { display: flex; gap: 28px; }
.topbar-msg span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-msg span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) {
  .topbar .tb-side { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-msg span:not(:first-child) { display: none; }
}

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; color: var(--gold); width: 168px; }
.logo-svg { width: 100%; height: auto; display: block; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a.is-current { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.menu-toggle { display: none; }
@media (max-width: 1020px) {
  .site-header .container { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .logo { width: 140px; justify-self: center; }
  .header-actions .hide-m { display: none; }
}

/* Paint the phone's top safe area so content never shows above the sticky header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #fff; }

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; visibility: hidden; transition: visibility 0s linear .4s; }
.mnav.open { visibility: visible; transition: none; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(47, 47, 24, .35); opacity: 0; transition: opacity .3s var(--ease); }
.mnav-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff;
  transform: translateX(-100%); transition: transform .4s var(--ease); padding: 20px var(--gutter);
  display: flex; flex-direction: column; gap: 8px;
}
.mnav.open { pointer-events: auto; }
.mnav.open .mnav-scrim { opacity: 1; }
.mnav.open .mnav-panel { transform: none; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mnav-panel a.mnav-link { font-size: 22px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }

/* ---------- Product card (shared by home, shop, product) ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-top { position: relative; } /* image area: badges, wishlist and quick add sit inside it */
.card-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: background .35s var(--ease);
}
.card-media img {
  position: absolute; left: 14%; top: 11%; width: 72%; height: 76%; object-fit: contain; filter: var(--product-shadow);
  transition: transform .55s var(--ease);
}
.card:hover .card-media { background: var(--surface-2); }
.card:hover .card-media img { transform: translateY(-8px) scale(1.03); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.card-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--ink-2);
  opacity: 0; transform: translateY(-4px); transition: all .25s var(--ease);
}
.card-wish svg { width: 18px; height: 18px; }
.card:hover .card-wish, .card-wish.on, .card-wish:focus-visible { opacity: 1; transform: none; }
.card-wish.on { color: var(--sale); }
.card-wish.on svg path { fill: currentColor; }
@media (hover: none) { .card-wish { opacity: 1; transform: none; } }
.card-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
}
.card:hover .card-quick, .card-quick:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .card-quick { display: none; } }
.card-body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-cat { font-size: 13px; color: var(--muted); margin: 0; }
.card-title { font-size: 16px; line-height: 1.35; font-weight: 500; margin: 0; letter-spacing: -0.005em; }
.card-title a:hover { color: var(--gold-text); }
.card-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.price { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.price-old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price.is-sale { color: var(--sale); }
.card-pts { font-size: 13px; color: var(--gold-text); font-weight: 500; }
.card-add-m { display: none; }
@media (hover: none) {
  .card-add-m { display: inline-flex; margin-top: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { max-width: 520px; margin-top: 14px; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 16px; } }
.on-dark { background: var(--ink); color: #f6f4ea; }
.on-dark .lead, .on-dark .muted { color: #c9c6b0; }
.panel { background: var(--surface); border-radius: var(--radius-lg); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { color: var(--ink-2); max-width: 320px; margin: 18px 0 0; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.drawer.open { visibility: visible; transition: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(47, 47, 24, .35); opacity: 0; transition: opacity .3s var(--ease); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff;
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 500; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ship-meter { font-size: 14px; color: var(--ink-2); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .6s var(--ease); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { position: relative; width: 76px; height: 92px; border-radius: 14px; background: var(--surface); }
.cart-thumb img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.cart-line h3 { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 34px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 500; }
.cart-remove { font-size: 13px; color: var(--muted); margin-left: 12px; }
.cart-remove:hover { color: var(--sale); }
.cart-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-row strong { font-size: 18px; font-weight: 600; }
.cart-pts { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--gold-pale); font-size: 14px; color: var(--ink); }
.cart-pts b { font-weight: 600; }
.o3-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; letter-spacing: -.02em; }
.cart-empty { text-align: center; padding: 64px 0; color: var(--ink-2); }
.cart-empty p { margin: 0 0 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transition: transform .45s var(--ease), visibility 0s linear .45s;
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.toast .o3-dot { width: 22px; height: 22px; font-size: 9px; }

/* ---------- Forms ---------- */
.field { height: 52px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 20px; width: 100%; font-size: 15px; }
.field:focus { outline: none; border-color: var(--ink); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
