/* ==========================================================
   naeru — styles
   ========================================================== */

:root {
  --bg: #f8f5f0;
  --bg-soft: #faf8f4;
  --bg-warm: #f4f0ea;
  --bg-box: #efe9e0;
  --bg-img: #efe8de;
  --ink: #3b3d36;
  --ink-soft: #55574f;
  --ink-mute: #7a7c72;
  --green: #3f4a36;
  --green-hover: #4d5a42;
  --green-deep: #2f3d2c;
  --sage: #7d8a68;
  --line: #ece6dc;
  --line-strong: #e3ddd3;
  --line-input: #cfc8bc;

  --serif: 'Gilda Display', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #6d7a5c; }
button, input { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Images that are missing (assets not added yet) are hidden by main.js */
img.is-broken { visibility: hidden; }

/* ---------- Shared bits ---------- */
.ornament { color: var(--sage); display: block; }

.kicker {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); font-weight: 500;
}
.label-caps {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 0; transition: background 0.15s, color 0.15s;
}
.btn-solid { background: var(--green); color: #fff; padding: 14px 26px; }
.btn-solid:hover { background: var(--green-hover); color: #fff; }
.btn-outline {
  border: 1px solid var(--ink); color: var(--ink);
  padding: 11px 22px; letter-spacing: 0.1em; margin-top: 6px;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.ticks { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink); }
.ticks li { display: flex; gap: 10px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 22px var(--pad-x);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
}
.main-nav {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 34px);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.main-nav a { color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.is-current { color: var(--green); border-bottom-color: var(--green); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); }
.logo-word { font-family: var(--serif); font-size: 30px; letter-spacing: 0.14em; line-height: 1; }
.logo-tag { font-size: 11px; letter-spacing: 0.04em; color: #5b5d55; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.icon-btn {
  background: none; border: 0; padding: 4px; display: flex; position: relative; color: var(--ink);
}
.cart-count {
  position: absolute; top: -4px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--green); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  min-height: clamp(420px, 46vw, 640px);
  background: var(--bg); overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide video {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block;
}
.hero-copy {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(32px, 5vw, 72px);
  width: min(100%, 560px);
  margin-right: clamp(0px, 4vw, 80px);
}
.hero-copy h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.15; color: var(--ink);
}
.hero-copy p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 36ch; }
.hero-copy .btn { align-self: flex-start; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(59, 61, 54, 0.25);
  background: rgba(248, 245, 240, 0.8); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--bg); }
.hero-prev { left: clamp(10px, 2vw, 24px); }
.hero-next { right: clamp(10px, 2vw, 24px); }

.hero-dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0;
  background: rgba(63, 74, 54, 0.3); transition: all 0.3s;
}
.hero-dots button.is-active { width: 24px; background: var(--green); }

/* ---------- Benefits ---------- */
.benefits {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: clamp(12px, 2vw, 24px) var(--pad-x);
}
.benefits-list {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); row-gap: 18px;
  padding: 10px 0; color: var(--green-deep);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; text-align: center;
}
.benefits-list li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 10px;
}
.benefits-list li + li { border-left: 1px solid #dcd6ca; }
.benefits-list strong { font-weight: 500; }

/* ---------- Gentle ---------- */
.gentle {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  background: var(--bg-warm); border-bottom: 1px solid var(--line);
}
.gentle-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(20px, 2.5vw, 36px) clamp(24px, 5vw, 80px);
}
.gentle-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; color: var(--ink);
}
.gentle-copy p { font-size: 14px; line-height: 1.75; color: var(--ink-soft); max-width: 40ch; }
.gentle-copy .btn { align-self: flex-start; }
.gentle-img { width: 100%; height: auto; align-self: center; display: block; }

/* ---------- Product ---------- */
.shop { max-width: 1240px; margin: 0 auto; padding: 22px var(--pad-x) 0; }

.breadcrumb {
  display: flex; gap: 8px; margin-bottom: 22px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a80;
}
.breadcrumb a { color: #8a8a80; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--ink); }

.product {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 72px); align-items: start;
}

.gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; }
.gallery-main { position: relative; aspect-ratio: 3 / 2; background: var(--bg-img); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-label {
  position: absolute; top: 16px; left: 16px; background: var(--bg); padding: 6px 12px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-thumbs button {
  padding: 0; border: 1px solid transparent; background: var(--bg-img);
  aspect-ratio: 3 / 2; overflow: hidden; opacity: 0.7;
}
.gallery-thumbs button.is-active { border-color: var(--green); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info { display: flex; flex-direction: column; gap: 26px; padding-bottom: 40px; }
.product-head { display: flex; flex-direction: column; gap: 12px; }
.product-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4vw, 50px); line-height: 1.1; color: var(--ink);
}
.product-head p {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty;
}

.price-block { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-now { font-family: var(--serif); font-size: 34px; color: var(--ink); }
.price-was { font-size: 17px; color: #9a9a90; text-decoration: line-through; }
.price-save {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: #e6ead9; color: var(--green); padding: 5px 10px;
}
.price-block [hidden] { display: none; }
.price-meta { font-size: 13px; color: var(--ink-mute); width: 100%; }

.bundles { display: flex; flex-direction: column; gap: 12px; }
.bundle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bundle {
  position: relative; text-align: left; display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 10px;
  background: #fbf9f5; border: 1px solid var(--line-strong); color: var(--ink);
  transition: all 0.15s;
}
.bundle.is-active { background: #fff; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.bundle img {
  width: 62px; height: 62px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0;
}
.bundle-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bundle-name { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.bundle-tag { font-size: 12px; color: var(--ink-mute); }
.bundle-price { font-size: 14px; margin-top: 2px; }
.bundle-price em { font-style: normal; color: var(--sage); font-size: 12px; }
.bundle-flag {
  position: absolute; top: -9px; right: 12px;
  background: var(--green); color: #fff;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px;
}

.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-input); height: 50px; }
.qty button {
  width: 44px; height: 100%; background: none; border: 0; font-size: 18px; color: var(--ink);
}
.qty span { width: 30px; text-align: center; font-size: 15px; }
.btn-add { flex: 1; min-width: 200px; height: 50px; font-size: 13px; padding: 0 26px; }

.ticks-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
  color: var(--ink-soft);
}
.ticks-grid li { gap: 8px; }
.ticks-grid svg { color: var(--green); }

.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; background: none; border: 0; text-align: left;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.acc-sign { font-size: 18px; font-weight: 300; }
.acc-item p {
  margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); text-wrap: pretty;
}
.acc-item p[hidden] { display: none; }

/* ---------- Ingredients ---------- */
.ingredients {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  margin-top: 40px; padding: clamp(48px, 6vw, 72px) var(--pad-x);
}
.ingredients h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 clamp(28px, 4vw, 44px); text-align: center; color: #2b2d28;
}
.ingredients-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); row-gap: 36px;
}
.ingredients article {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 0 clamp(12px, 2vw, 28px);
}
.ingredients article + article { border-left: 1px solid #dcd6ca; }
.ingredients img {
  width: 100%; max-width: 150px; height: auto; display: block; mix-blend-mode: multiply;
}
.big-num { font-family: var(--serif); font-size: 34px; line-height: 1; color: #2f4a36; margin-top: 6px; }
.ingredients h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: #2f4a36; }
.rule { width: 36px; height: 1px; background: var(--line-input); }
.ingredients p { font-size: 13px; line-height: 1.7; color: var(--ink-soft); max-width: 30ch; text-wrap: pretty; }

/* ---------- Story ---------- */
.story {
  background: var(--bg-warm);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) var(--pad-x); margin-bottom: 56px;
}
.story-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.story-head { display: flex; flex-direction: column; gap: 18px; }
.story-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.2; color: var(--ink); text-wrap: pretty;
}
.story-body {
  display: flex; flex-direction: column; gap: 16px;
  font-size: 15px; line-height: 1.8; color: var(--ink-soft);
  padding-top: clamp(0px, 2.4vw, 34px);
}
.story-body p { text-wrap: pretty; }

/* ---------- Coming soon ---------- */
.coming { max-width: 1140px; margin: 0 auto 56px; padding: 0 var(--pad-x); }
.coming-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; background: var(--bg-box);
  padding: clamp(28px, 4vw, 56px);
}
.coming-box h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.coming-box p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); max-width: 40ch; }
.notify { display: flex; flex-wrap: wrap; max-width: 420px; width: 100%; }
.notify input {
  flex: 1; min-width: 180px; height: 46px;
  border: 1px solid var(--line-input); border-right: 0; background: var(--bg);
  padding: 0 14px; font-size: 14px; color: var(--ink); border-radius: 0;
}
.notify input:focus-visible { outline-offset: -2px; }
.notify button {
  height: 46px; padding: 0 22px; background: var(--green); color: #fff; border: 0;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.notify button:hover { background: var(--green-hover); }
.coming-box .notify-msg { font-size: 14px; color: var(--green); }
.coming-box .notify-msg.is-error { color: #8a3b2e; }
.notify-msg[hidden], .cart-msg[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 var(--pad-x) 36px; }
.footer-badges {
  max-width: 1140px; margin: 0 auto;
  background: var(--bg-box); border-radius: 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px;
  padding: 26px 30px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
}
.footer-badges li { display: flex; align-items: center; gap: 14px; justify-content: center; }
.footer-sign { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 30px; }
.footer-sign p { font-family: var(--serif); font-size: 19px; text-align: center; }
.footer-sign a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.footer-sign a:hover { color: var(--green); }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(40, 42, 36, 0.35); }
.cart-overlay[hidden] { display: none; }
.cart {
  position: fixed; top: 0; right: 0; z-index: 51;
  width: min(420px, 100%); height: 100%;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform 0.28s ease; }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 26px; border-bottom: 1px solid var(--line-strong);
}
.cart-head h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.cart-head button { background: none; border: 0; font-size: 26px; color: var(--ink); font-weight: 300; line-height: 1; padding: 4px 8px; }
.cart-body { flex: 1; overflow: auto; padding: 8px 26px; }
.cart-empty { font-size: 14px; color: var(--ink-mute); padding: 30px 0; }

.cart-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 88px; height: 64px; object-fit: cover; background: var(--bg-img); flex-shrink: 0; }
.cart-line-main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cart-line-meta { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }
.cart-line-ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cart-qty { display: flex; align-items: center; border: 1px solid var(--line-input); height: 30px; }
.cart-qty button { width: 28px; height: 100%; background: none; border: 0; color: var(--ink); }
.cart-qty span { width: 22px; text-align: center; font-size: 13px; }
.cart-remove {
  background: none; border: 0; font-size: 12px; color: var(--ink-mute); text-decoration: underline;
}

.cart-foot {
  padding: 22px 26px; border-top: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 14px;
}
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; }
.cart-note { font-size: 12px; color: var(--ink-mute); }
.cart-msg { font-size: 13px; line-height: 1.5; color: var(--green); overflow-wrap: anywhere; }
.cart-msg.is-error { color: #8a3b2e; }
.cart-foot .btn-add { flex: none; width: 100%; min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { grid-template-columns: auto 1fr; row-gap: 12px; }
  .logo { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  html { scroll-padding-top: 150px; }
  .gallery { position: static; }
  .hero { justify-content: center; }
  .hero-copy { margin-right: 0; background: linear-gradient(to top, rgba(248,245,240,0.92), rgba(248,245,240,0.6)); }
  .benefits-list li:nth-child(4) { border-left: 0; }
  .ingredients article + article { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .cart, .cart.is-open { transition: none; }
}
