/* ───────── SEAEED shared styles ───────── */
:root {
  --cream: #f6f2ea;
  --cream-deep: #ece5d6;
  --paper: #fbf8f2;
  --ink: #1e2620;
  --ink-soft: #3d4a42;
  --sage: #b9c9a7;
  --sage-deep: #6c8a6a;
  --sea: #3a5b53;
  --sea-dark: #21372f;
  --coral: #d99a7a;
  --rule: rgba(30, 38, 32, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--sea); color: var(--cream); }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(60,70,55,0.04) 1px, transparent 1px),
    radial-gradient(rgba(60,70,55,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* ───────── nav ───────── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background 280ms ease, padding 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  padding: 14px 40px;
}
nav.top .mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.42em;
  font-size: 15px;
  color: var(--sea);
  text-decoration: none;
}
nav.top ul { list-style: none; display: flex; gap: 36px; }
nav.top a.link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  transition: color 200ms ease;
}
nav.top a.link:hover, nav.top a.link.active { color: var(--sea); }
nav.top a.link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--sea);
  transition: width 260ms ease;
}
nav.top a.link:hover::after, nav.top a.link.active::after { width: 100%; }
nav.top .cart {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.24em;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}
nav.top .cart:hover { background: var(--ink); color: var(--cream); }

/* ───────── shared atoms ───────── */
section { position: relative; z-index: 1; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--sage-deep);
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.005em;
}
em { font-style: italic; color: var(--sea); }
.script {
  font-family: 'Caveat', cursive;
  color: var(--sage-deep);
  font-weight: 500;
  transform: rotate(-3deg);
  display: inline-block;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 220ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--sea); color: var(--cream); }
.btn-primary:hover { background: var(--sea-dark); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow {
  width: 18px; height: 10px;
  position: relative;
}
.btn .arrow::before, .btn .arrow::after {
  content: ""; position: absolute;
  background: currentColor;
}
.btn .arrow::before { left: 0; right: 0; top: 50%; height: 1px; }
.btn .arrow::after {
  right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
}

/* ───────── marquee ───────── */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.marquee-track {
  display: flex; gap: 64px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--sea);
  font-style: italic;
  font-weight: 300;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .dot { width: 4px; height: 4px; background: var(--sage-deep); border-radius: 50%; display: inline-block; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ───────── footer ───────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 50px 0 36px;
  background: var(--cream);
  margin-top: auto;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
footer .mark {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.42em;
  font-size: 14px;
  color: var(--sea);
  text-decoration: none;
}
footer .meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
footer .links { display: flex; gap: 28px; flex-wrap: wrap; }
footer .links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
footer .links a:hover { color: var(--sea); }
footer .links a.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
footer .links a.social svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

/* ───────── reveal animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ───────── cart drawer ───────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(33, 55, 47, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 100;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--cream);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(33,55,47,0.16);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer header {
  padding: 26px 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.cart-drawer header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cart-drawer .close {
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1;
  transition: color 200ms ease;
}
.cart-drawer .close:hover { color: var(--sea); }
.cart-drawer .items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-drawer .items:empty::before {
  content: "Your cart is empty.\A Blended by hand — bottles waiting for you.";
  white-space: pre-line;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  padding: 60px 20px;
  display: block;
  line-height: 1.5;
}
.cart-line {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.cart-line:last-child { border-bottom: none; padding-bottom: 0; }
.cart-line .thumb {
  width: 60px; height: 76px;
  background: var(--sea-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 0.3em;
}
.cart-line .info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2px;
}
.cart-line .info .meta {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.cart-line .info .qty-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.cart-line .qty-btn {
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: all 180ms;
}
.cart-line .qty-btn:hover { border-color: var(--sea); color: var(--sea); }
.cart-line .qty-val {
  font-size: 12px;
  min-width: 22px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}
.cart-line .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}
.cart-line .remove {
  background: none; border: none;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
  font-family: inherit;
  text-align: right;
}
.cart-line .remove:hover { color: var(--coral); }
.cart-drawer footer {
  padding: 22px 30px 30px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.cart-drawer .total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-drawer .total-row .lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cart-drawer .total-row .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--ink);
  font-weight: 400;
}
.cart-drawer .checkout {
  width: 100%;
  justify-content: center;
  font-size: 11px;
  padding: 18px;
}
.cart-drawer .ship-note {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* cart toast */
.cart-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--sea-dark);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 99;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 14px 30px rgba(33,55,47,0.18);
}
.cart-toast.show { transform: translate(-50%, 0); }

/* ───────── responsive ───────── */
@media (max-width: 880px) {
  nav.top { padding: 14px 20px; }
  nav.top.scrolled { padding: 12px 20px; }
  nav.top ul { display: none; }
  .container { padding: 0 22px; }
  footer .container { flex-direction: column; text-align: center; }
}
