:root {
  --teal: #4aa9a0;
  --teal-dk: #1f6f69;
  --gold: #c9a24a;
  --gold-dk: #a8822f;
  --cream: #fbf7f0;
  --beige: #f1e8da;
  --ink: #2c3b39;
  --muted: #6b7a77;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--teal-dk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal-dk); margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 4.5rem 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dk); font-weight: 600; margin: 0 0 .8rem; }
.lede { color: var(--muted); margin-top: -.4rem; }
.link { font-weight: 600; text-decoration: none; }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; background: var(--teal-dk); color: #fff; padding: 1.05rem 1.8rem; border-radius: 999px; min-height: 48px; transition: .2s; }
.btn:hover { background: var(--teal); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: .8rem 1.1rem; min-height: 40px; font-size: .68rem; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--gold-dk); }
.btn.ghost { background: transparent; color: var(--teal-dk); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--teal-dk); color: #fff; }
.btn.ghost.light { color: #fff; }
.btn.ghost.light:hover { background: #fff; color: var(--teal-dk); }
.btn.full { width: 100%; margin-top: .7rem; }
.ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.center .ctas { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem 16px; background: rgba(251, 247, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--beige); }
.logo img { height: 46px; width: auto; }
.menu-toggle, .cart-btn { background: none; border: 0; font-size: 1.4rem; color: var(--teal-dk); cursor: pointer; width: 44px; height: 44px; position: relative; }
.cart-btn span { position: absolute; top: 4px; right: 2px; background: var(--gold); color: #fff; font: 600 .65rem/18px var(--sans); min-width: 18px; border-radius: 9px; }
.nav { display: none; }
.nav-open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: .5rem 16px 1rem; border-bottom: 1px solid var(--beige); }
.nav a { text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: .7rem 0; }
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .logo { order: -1; }
  .nav { display: flex; gap: 2rem; }
  .site-header { padding: .5rem 32px; }
}

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-text { padding: 2rem 16px 3rem; text-align: center; }
.hero-text .ctas { justify-content: center; }
@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; max-width: 1360px; margin: 0 auto; padding: 3rem 32px; }
  .hero img { order: 2; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(31,111,105,.4); }
  .hero-text { text-align: left; padding: 0; }
  .hero-text .ctas { justify-content: flex-start; }
}

/* Split */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-height: 560px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; } }

/* Product grid */
.filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0; }
.filters button { border: 1px solid var(--beige); background: #fff; border-radius: 999px; padding: .6rem 1.1rem; font: 500 .8rem var(--sans); color: var(--ink); cursor: pointer; min-height: 40px; }
.filters button.on { background: var(--teal-dk); border-color: var(--teal-dk); color: #fff; }
.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
/* Mobile: swipeable row, next card peeks in */
@media (max-width: 559px) {
  #grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 1rem; scrollbar-width: none; }
  #grid > * { scroll-snap-align: start; }
}
@media (min-width: 1000px) { .grid:not(.two) { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--beige); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(31,111,105,.35); }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--beige); }
.card-img img[src*="sunshine"] { object-position: 20% 50%; }
.card-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.type { color: var(--gold-dk); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin: .2rem 0 .6rem; }
.desc { color: var(--muted); font-size: .88rem; flex: 1; margin: 0 0 1rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price { font-weight: 600; color: var(--teal-dk); }

/* Ritual */
.ritual { background: var(--beige); }
.steps { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; counter-reset: s; }
.steps li { background: var(--cream); border-radius: 18px; padding: 1.6rem 1rem; position: relative; }
.steps span { font: 500 italic 2.4rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: .5rem; }
.steps h3 { text-transform: uppercase; letter-spacing: .12em; font: 600 .9rem var(--sans); }
.steps p { margin: 0; font-size: .9rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
  .steps li:not(:last-child)::after { content: '→'; position: absolute; right: -1.6rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; }
}

/* Statement / final */
.statement, .final { background: var(--teal-dk); color: #e9f3f1; }
.statement h2, .final h2 { color: #fff; }
.statement em { color: #f0d9a0; }
.moments { font: 500 italic 1.45rem/1.6 var(--serif); color: #fff; margin: 1.6rem 0; }
.final { background: linear-gradient(160deg, var(--teal-dk), #174f4b); }

/* Moods */
.moods { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 2rem; }
@media (min-width: 860px) { .moods { grid-template-columns: repeat(4, 1fr); } }
.moods a { background: #fff; border-radius: 18px; padding: 1.6rem 1rem; text-decoration: none; color: var(--ink); border: 1px solid var(--beige); transition: .2s; }
.moods a:hover { border-color: var(--gold); transform: translateY(-3px); }
.moods b { font-size: 2rem; display: block; }
.moods h3 { margin: .6rem 0 .1rem; font-size: 1.3rem; }
.moods p { margin: 0; color: var(--gold-dk); font-weight: 600; font-size: .85rem; }
.moods small { color: var(--muted); }

/* Promise */
.promise { background: #fff; }
.pillars { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars h3 { text-transform: uppercase; letter-spacing: .14em; font: 600 .85rem var(--sans); color: var(--teal-dk); }
.pillars h3::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); margin: 0 auto 1rem; }
.pillars p { color: var(--muted); font-size: .9rem; margin: 0; }
.sig { font: 500 italic 1.4rem var(--serif); color: var(--teal-dk); }

/* Footer */
.site-footer { background: #173f3c; color: #cfe2df; }
.site-footer .wrap { padding-bottom: 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo { width: 220px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #cfe2df; }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 200px; min-height: 48px; border-radius: 999px; border: 0; padding: 0 1.2rem; font: inherit; }
.copy { text-align: center; font-size: .75rem; opacity: .6; padding: 1rem; margin: 0; }

/* Product page */
.crumbs { font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem; }
#product.wrap { padding-top: 1.5rem; }
.pdp { display: grid; gap: 2rem; align-items: start; }
.pdp > img { border-radius: 20px; width: 100%; background: #fff; object-fit: contain; max-height: 620px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1fr 1fr; gap: 4rem; } .pdp > img { position: sticky; top: 90px; } }
.price.big { font-size: 1.5rem; margin: 0 0 1rem; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.suits { font-size: .85rem; color: var(--gold-dk); font-weight: 600; }
.buy { display: flex; gap: .7rem; margin-top: 1.5rem; }
.buy .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--beige); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--teal-dk); }
.qty input { width: 36px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
details { border-top: 1px solid var(--beige); padding: 1rem 0; }
details:first-of-type { margin-top: 2rem; }
summary { cursor: pointer; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dk); }
details p, details ul { color: var(--muted); margin: .8rem 0 0; }
details[open] > :not(summary) { animation: rise .35s ease-out both; }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
.ritual-fit { background: var(--beige); border-radius: 20px; padding: 3rem 1.5rem; margin: 4rem 0; }
.ritual-fit h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); max-width: 720px; margin: 0 auto; }
.grid.two { max-width: 760px; margin: 2rem auto 0; }

/* Cart drawer + checkout */
dialog { border: 0; padding: 0; background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(23, 63, 60, .45); }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--beige); }
dialog h2 { margin: 0; font-size: 1.7rem; }
.x { background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--teal-dk); width: 44px; height: 44px; }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100vw); flex-direction: column; }
.drawer[open] { display: flex; }
#cart-items { list-style: none; margin: 0; padding: 1rem 1.4rem; flex: 1; overflow: auto; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--beige); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-line small { display: block; color: var(--muted); font-size: .75rem; }
.cart-line span { font-size: .85rem; }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; }
.drawer footer { padding: 1.2rem 1.4rem; border-top: 1px solid var(--beige); }
.drawer footer .btn { width: 100%; }
.total-row { display: flex; justify-content: space-between; margin: 0 0 1rem; }
.modal { width: min(520px, calc(100vw - 32px)); border-radius: 20px; max-height: 92dvh; }
.modal form, .done { padding: 1.4rem; display: grid; gap: .9rem; }
.modal label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 600; }
.modal input, .modal textarea, .modal select { font: 400 16px var(--sans); padding: .75rem .9rem; border: 1px solid #ddd3c3; border-radius: 10px; background: #fff; width: 100%; }
.modal input:focus, .modal textarea:focus, .modal select:focus { outline: 2px solid var(--teal); border-color: transparent; }
.summary { list-style: none; margin: 0; padding: 1rem; background: #fff; border-radius: 12px; font-size: .88rem; }
.summary li { display: flex; justify-content: space-between; padding: .2rem 0; }
.summary .sum { border-top: 1px solid var(--beige); margin-top: .4rem; padding-top: .6rem; font-weight: 600; color: var(--teal-dk); }
.fine { font-size: .78rem; color: var(--muted); margin: 0; }
.error { color: #b3402f; font-size: .85rem; margin: 0; }
.done { text-align: center; }
.done .big { font: 600 2rem var(--serif); color: var(--teal-dk); margin: 0; }

/* Motion — all progressive: browsers without support just skip the animation */
@view-transition { navigation: auto; } /* cross-fade between pages */

dialog, dialog::backdrop { transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1), overlay .35s allow-discrete, display .35s allow-discrete; opacity: 0; }
dialog[open], dialog[open]::backdrop { opacity: 1; transform: none; }
.drawer { transform: translateX(100%); }
.modal { transform: translateY(20px) scale(.97); }
@starting-style {
  dialog[open], dialog[open]::backdrop { opacity: 0; }
  .drawer[open] { transform: translateX(100%); }
  .modal[open] { transform: translateY(20px) scale(.97); }
}

.done:not([hidden]) { animation: rise .45s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@supports (animation-timeline: view()) {
  main section:not(.hero) { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
