/* =====================================================================
   Nahrung by Jade — Earthy Minimalist
   ===================================================================== */
:root {
  --cream: #FCF7EE;
  --cream-2: #F5ECDD;
  --beige: #EADCC6;
  --sand: #D8C3A2;
  --brown: #3E2B23;
  --brown-2: #5B4136;
  --brown-3: #2E1F19;
  --muted: #7A665C;
  --terracotta: #C96A3F;
  --terracotta-2: #AE552D;
  --terracotta-soft: #E9A47F;
  --white: #FFFCF7;
  --line: rgba(62, 43, 35, .13);
  --ok: #4F7A4A;
  --error: #B4442A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(62, 43, 35, .05), 0 18px 40px -22px rgba(62, 43, 35, .35);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  font-variation-settings: "SOFT" 60;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--terracotta); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.section-head a { color: var(--terracotta-2); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brown); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --btn-shadow: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: -4px 5px 0 var(--btn-shadow); }
.btn-primary:hover { transform: translate(2px, -2px); box-shadow: -6px 7px 0 var(--btn-shadow); }
.btn-primary:active { transform: translate(-2px, 3px); box-shadow: -1px 1px 0 var(--btn-shadow); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-light { background: var(--cream); color: var(--brown); box-shadow: -4px 5px 0 var(--terracotta); }
.btn-light:hover { transform: translate(2px, -2px); box-shadow: -6px 7px 0 var(--terracotta); }
.btn-outline { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--cream); }
.btn-small { padding: 10px 18px; font-size: .9rem; background: var(--brown); color: var(--cream); white-space: nowrap; }
.btn-small:hover { background: var(--terracotta); }
.btn-small.added { background: var(--ok); }
.btn-block { width: 100%; }
.text-link { color: var(--brown); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--terracotta-soft); padding-bottom: 2px; cursor: pointer; }
.text-link:hover { color: var(--terracotta-2); border-color: var(--terracotta); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brown); color: var(--cream);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(30, 18, 12, .55); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100;
  text-decoration: none; color: inherit; white-space: nowrap; line-height: 1;
}
.wordmark em { font-style: italic; font-weight: 400; font-size: .78em; color: var(--terracotta-soft); margin-left: 2px; }
.brand { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.brand img { height: 52px; width: auto; }
.brand-footer img { height: clamp(110px, 16vw, 150px); }
.brand-slim img { height: 40px; }
@media (max-width: 880px) { .site-header .brand img { height: 46px; } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .92; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--terracotta-soft); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 8px 18px; border-radius: 999px; background: var(--terracotta); color: #fff; font-weight: 600 !important; }
.nav-cta:hover { background: var(--terracotta-2); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; cursor: pointer; }
.cart-btn:hover { background: rgba(255, 255, 255, .16); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cart-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-back { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .9; }
.nav-back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brown); padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  font-weight: 720;
  line-height: 1.0;
  letter-spacing: -0.022em;
  max-width: 11ch;
  margin-bottom: .38em;
  isolation: isolate;
}
.swash { position: relative; color: var(--terracotta); white-space: nowrap; display: inline-block; }
.swash svg { position: absolute; left: -9%; top: 6%; width: 118%; height: 105%; z-index: -1; overflow: visible; pointer-events: none; }
.swash path { fill: none; stroke: var(--terracotta-soft); stroke-width: 2.6; stroke-linecap: round; opacity: .75; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { max-width: 590px; color: var(--muted); font-size: 1.06rem; margin: 0 auto 30px; }
.lede strong { color: var(--brown); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }

.hero-visual { position: relative; width: min(500px, 82vw); margin-top: clamp(40px, 6vw, 64px); }
.hero-loaf { aspect-ratio: 1; filter: drop-shadow(0 30px 34px rgba(62, 43, 35, .28)) drop-shadow(0 6px 8px rgba(62, 43, 35, .18)); animation: float 7s ease-in-out infinite; }
.hero-loaf img { width: 100%; height: 100%; object-fit: cover; clip-path: circle(48.6% at 50% 50%); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(1.5deg); } }

.hero-notes { list-style: none; margin: 0; padding: 0; }
.note {
  position: absolute;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--brown-2);
  width: 170px;
}
.note .arrow { position: absolute; width: 92px; height: 46px; fill: none; stroke: var(--brown); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note-1 { left: -205px; top: 6%; }
.note-1 .arrow { left: 120px; top: 52px; }
.note-2 { right: -215px; top: 36%; }
.note-2 .arrow { left: -24px; top: 62px; transform: scaleX(-1) rotate(-14deg); }
.note-3 { left: -200px; bottom: 6%; }
.note-3 .arrow { left: 112px; top: -52px; transform: scaleY(-1) rotate(-8deg); }

@media (max-width: 900px) {
  .hero-visual { width: min(420px, 84vw); }
  .hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 30px; }
  .note { position: static; width: auto; font-size: 1rem; padding: 6px 14px; border: 1.5px solid var(--sand); border-radius: 999px; background: var(--white); }
  .note br { display: none; }
  .note .arrow { display: none; }
}

/* ---------- story ---------- */
.story { background: var(--cream-2); }
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story-media { position: relative; padding-bottom: 60px; padding-right: 40px; }
.arch { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.story-inset { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--cream-2); box-shadow: var(--shadow); }
.story-inset img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.stamp { position: absolute; left: -22px; top: 30px; width: 112px; height: 112px; display: grid; place-items: center; background: var(--terracotta); color: #fff; border-radius: 50%; animation: spin 26s linear infinite; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; fill: #fff; }
.stamp b { font-family: var(--serif); font-size: 2rem; font-style: italic; font-weight: 500; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.story-copy p { color: var(--brown-2); font-size: 1.05rem; }
.values { list-style: none; padding: 0; margin: 30px 0 26px; display: grid; gap: 18px; }
.values li { display: flex; gap: 16px; align-items: flex-start; }
.values strong { display: block; font-size: 1.02rem; }
.values span:not(.value-icon) { color: var(--muted); font-size: .95rem; }
.value-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--sand); display: grid; place-items: center; }
.value-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--terracotta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem !important; color: var(--terracotta) !important; margin: 0; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 440px; margin: 0 auto; width: 100%; }
  .stamp { left: -6px; width: 92px; height: 92px; }
  .stamp text { font-size: 10px; }
}

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.product-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; color: var(--brown); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(62, 43, 35, .05), 0 28px 50px -24px rgba(62, 43, 35, .45); }
.product-media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--beige); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--brown); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.product-note { font-size: .82rem !important; font-weight: 600; color: var(--terracotta-2) !important; }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 650; font-variation-settings: "SOFT" 100; }

/* ---------- how ordering works ---------- */
.steps-band { padding: clamp(56px, 7vw, 88px) 0; background: var(--beige); }
.steps-title { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 8px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: calc(50% + 34px); right: calc(-50% + 34px); border-top: 2px dashed var(--sand); }
.step-num { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brown); color: var(--cream); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; flex: none; }
.steps strong { font-size: 1.05rem; }
.steps span:not(.step-num) { color: var(--brown-2); font-size: .93rem; max-width: 220px; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li::after { display: none; }
}

/* ---------- petite loaves ---------- */
.petite { background: var(--brown); color: var(--cream); }
.petite .eyebrow { color: var(--terracotta-soft); }
.petite h2 em { color: var(--terracotta-soft); }
.petite-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.petite-intro p { color: rgba(252, 247, 238, .82); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.petite .product-media { aspect-ratio: 4 / 3.6; }
.event-card { margin-top: clamp(56px, 8vw, 88px); background: var(--cream); color: var(--brown); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.event-head { max-width: 560px; margin-bottom: 26px; }
.event-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.event-head p { color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .petite-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-grid.two { grid-template-columns: 1fr; }
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field > span, .field legend { font-size: .86rem; font-weight: 600; color: var(--brown-2); padding: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--white); border: 1.5px solid var(--sand); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4136' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { resize: vertical; min-height: 52px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(201, 106, 63, .15); }
.was-validated .field :invalid { border-color: var(--error); }
.field input::placeholder, .field textarea::placeholder { color: #A8968B; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .segmented label { position: relative; }
.chip input, .segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--sand); background: var(--white); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.chip input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 2.5px solid var(--terracotta); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--cream-2); border: 1.5px solid var(--sand); }
.segmented span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.segmented input:checked + span { background: var(--brown); color: var(--cream); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.error { color: var(--error); font-weight: 600; }
.form-status a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 40px; }
.insta-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--beige); display: block; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.insta-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(62, 43, 35, .45); opacity: 0; transition: opacity .25s ease; }
.insta-overlay svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.7; }
.insta-tile:hover img { transform: scale(1.06); }
.insta-tile:hover .insta-overlay, .insta-tile:focus-visible .insta-overlay { opacity: 1; }
@media (max-width: 860px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- contact ---------- */
.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-copy > p { color: var(--brown-2); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); text-decoration: none; border: 1.5px solid transparent; transition: border-color .2s ease, transform .2s ease; }
.contact-list a:hover { border-color: var(--sand); transform: translateX(4px); }
.contact-list strong { display: block; font-size: 1.02rem; }
.contact-list small { color: var(--muted); font-size: .9rem; word-break: break-word; }
.contact-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brown); display: grid; place-items: center; }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-3); color: var(--cream); padding: 56px 0 40px; }
.site-footer.slim { padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a { text-decoration: none; opacity: .8; font-size: .95rem; }
.site-footer nav a:hover { opacity: 1; }
.fine { margin: 0; width: 100%; font-size: .85rem; opacity: .6; }
.site-footer.slim .fine { width: auto; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 999px; background: var(--brown); color: var(--cream); font-weight: 500; font-size: .95rem; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(46, 31, 25, .5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); background: var(--cream-2); }
.drawer-foot .small { margin: 2px 0 16px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; }
.cart-line-info .muted { font-size: .88rem; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 1.5px solid var(--sand); border-radius: 999px; width: max-content; }
.qty button { width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 1.05rem; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: .92rem; }
.empty { text-align: center; padding: 64px 10px; }
.empty-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.sum-row.total strong { font-family: var(--serif); font-size: 1.5rem; font-variation-settings: "SOFT" 100; }

/* ---------- checkout dialog ---------- */
.checkout { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); background: var(--cream); color: var(--brown); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); overflow: auto; }
.checkout::backdrop { background: rgba(46, 31, 25, .55); backdrop-filter: blur(3px); }
.checkout[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.checkout-inner { display: grid; grid-template-columns: 1.35fr 1fr; position: relative; }
.checkout-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.checkout-main { padding: clamp(24px, 4vw, 44px); }
.checkout-main h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.checkout-summary { padding: clamp(24px, 4vw, 44px); padding-top: clamp(56px, 6vw, 72px); background: var(--cream-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.checkout-summary h3, .pay-summary h3 { font-size: 1.3rem; }
.summary-lines { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; }
.checkout-summary .btn { margin-top: 22px; }
.checkout-summary .small { margin: 14px 0 0; }
@media (max-width: 760px) {
  .checkout { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .checkout-inner { grid-template-columns: 1fr; }
  .checkout-summary { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

/* ---------- payment page ---------- */
.pay-main { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); min-height: 70vh; }
.setup-warning { background: #FBE3D6; border: 1.5px solid var(--terracotta-soft); color: var(--brown); padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 28px; font-size: .95rem; }
.setup-warning code { background: rgba(255, 255, 255, .6); padding: 1px 6px; border-radius: 6px; }
.progress { list-style: none; margin: 0 0 clamp(32px, 5vw, 48px); padding: 0; display: flex; gap: 8px; counter-reset: p; }
.progress li { flex: 1; counter-increment: p; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--beige); }
.progress li::before { content: counter(p) ". "; }
.progress li.done { color: var(--brown); border-color: var(--brown); }
.progress li.done::before { content: "✓ "; }
.progress li.current { color: var(--terracotta-2); border-color: var(--terracotta); }
.pay-head { max-width: 720px; margin-bottom: 36px; }
.pay-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pay-head h1 em { display: block; }
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pay-steps { display: grid; gap: 24px; }
.pay-card { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.pay-card h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pay-card h2 .step-num { width: 36px; height: 36px; font-size: 1rem; margin: 0; }
.bank-card { background: var(--brown); color: var(--cream); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.bank-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 164, 127, .25), transparent 70%); }
.bank-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(252, 247, 238, .16); }
.bank-amount span { width: 100%; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.bank-amount strong { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 650; line-height: 1.1; font-variation-settings: "SOFT" 100; }
.bank-rows { margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.bank-rows div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bank-rows dt { font-size: .88rem; opacity: .75; }
.bank-rows dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.bank-rows .acct dd span { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; font-variation-settings: "SOFT" 100; }
.copy-btn { padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(252, 247, 238, .4); background: transparent; color: var(--cream); font-size: .78rem; font-weight: 600; cursor: pointer; position: relative; z-index: 1; }
.copy-btn:hover { background: var(--cream); color: var(--brown); }
.dropzone { position: relative; display: block; border: 2px dashed var(--sand); border-radius: var(--radius-sm); background: var(--cream); padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--terracotta); background: #FBF0E4; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); text-align: left; padding: 16px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2.5px solid var(--terracotta); outline-offset: 3px; }
.dropzone-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.dropzone-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--terracotta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.dropzone-file { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.dropzone-file img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.file-meta { display: flex; flex-direction: column; min-width: 0; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#receipt-form .btn { margin-top: 20px; }
.pay-card > .small:last-child { margin: 16px 0 0; }
.pay-card a { color: var(--terracotta-2); font-weight: 600; }
.pay-summary { background: var(--cream-2); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 32px); position: sticky; top: calc(var(--header-h) + 20px); }
.pay-summary.narrow { position: static; max-width: 560px; margin: 32px auto 0; }
.summary-details { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: .93rem; }
.summary-details dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.summary-details dd { margin: 2px 0 0; word-break: break-word; }
.done-state { text-align: center; }
.done-card { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }
.done-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.done-card p { color: var(--brown-2); }
.done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); display: inline-grid; place-items: center; margin-bottom: 20px; }
.done-icon svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 26px; }
.done-state .progress { text-align: left; }
@media (max-width: 860px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-summary { position: static; }
  .progress li { font-size: 0; }
  .progress li::before { font-size: .82rem; }
}

/* ---------- unpaid-order reminders ---------- */
.pending-bar { background: #FBE3D6; border-bottom: 1px solid var(--terracotta-soft); color: var(--brown); }
.pending-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 11px; padding-bottom: 11px; font-size: .93rem; }
.pending-inner p { margin: 0; flex: 1; min-width: 200px; }
.pending-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(201, 106, 63, .2); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(201, 106, 63, .08); } }
.pending-more { color: var(--muted); }
.pending-link { font-weight: 700; color: var(--terracotta-2); text-decoration: none; white-space: nowrap; }
.pending-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pending-orders { margin: 16px 0 8px; padding: 16px; border-radius: var(--radius-sm); background: #FBE3D6; text-align: left; }
.pending-orders-title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-2); }
.pending-orders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pending-orders li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-orders .btn-small { background: var(--terracotta); }
.pending-orders .btn-small:hover { background: var(--terracotta-2); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.product-grid .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .insta-grid .reveal:nth-child(even) { transition-delay: .08s; }
.product-grid .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.js .product-card.reveal.in { transition: opacity .8s ease, transform .3s ease, box-shadow .3s ease; }
.js .product-card.reveal.in:hover { transform: translateY(-4px); }
