/* =========================================================
   JFOODTEST — Plateaux Cachers
   Design system: editorial / premium food
   ========================================================= */

:root {
  /* Color */
  --cream:        #FBF8F1;
  --cream-2:      #F3ECDD;
  --surface:      #FFFFFF;
  --ink:          #1A1712;
  --ink-soft:     #4A453C;
  --muted:        #837C6E;
  --forest:       #163529;
  --forest-2:     #1F4A38;
  --forest-3:     #0F261D;
  --gold:         #C2A14D;
  --gold-2:       #AE8C39;
  --gold-soft:    #E6D5A6;
  --line:         rgba(26, 23, 18, .10);
  --line-strong:  rgba(26, 23, 18, .16);
  --danger:       #B4452E;
  --success:      #2F7D55;

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Spacing & shape */
  --container: 1180px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26,23,18,.05), 0 2px 8px rgba(26,23,18,.04);
  --shadow-md: 0 4px 16px rgba(26,23,18,.07), 0 12px 32px rgba(26,23,18,.06);
  --shadow-lg: 0 18px 50px rgba(15,38,29,.18);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur:  .28s;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow .ic { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,241,.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold-soft);
  background: var(--forest); box-shadow: var(--shadow-sm);
}
.brand-mark .ic { width: 22px; height: 22px; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.brand-name span { color: var(--gold-2); }

.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; font-size: .96rem; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color var(--dur); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--dur) var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 100px;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  font-weight: 600; font-size: .92rem;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.cart-btn:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cart-btn .ic { width: 1.25em; height: 1.25em; color: var(--forest); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--gold); color: #fff; transition: transform var(--dur) var(--ease);
}
.cart-count[data-empty="true"] { background: var(--cream-2); color: var(--muted); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.35); } }

/* ====================================================
   HERO
   ==================================================== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -25%; right: -10%; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(194,161,77,.20), transparent 62%);
  filter: blur(8px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.hero-trust .ic { width: 18px; height: 18px; color: var(--forest); }

/* hero visual */
.hero-visual { position: relative; min-height: 440px; }
.hv-card {
  position: absolute; display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-md);
}
.hv-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--cream-2); color: var(--forest); }
.hv-icon svg { width: 40px; height: 40px; }
.hv-meta span { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.hv-meta strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.hv-card--main  { top: 6%;  left: 0;   z-index: 3; animation: float 7s ease-in-out infinite; }
.hv-card--sushi { top: 40%; right: 0;  z-index: 2; animation: float 7s ease-in-out infinite .9s; }
.hv-card--sweet { bottom: 4%; left: 8%; z-index: 2; animation: float 7s ease-in-out infinite 1.8s; }
.hv-badge {
  position: absolute; top: 0; right: 6%; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--forest); color: var(--gold-soft); font-weight: 700; font-size: .82rem;
  padding: 9px 15px; border-radius: 100px; box-shadow: var(--shadow-md);
}
.hv-badge .ic { width: 16px; height: 16px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ====================================================
   VALUES
   ==================================================== */
.values { padding: 8px 0 12px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--cream-2); color: var(--forest); }
.value-ic .ic { width: 24px; height: 24px; }
.value strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 3px; }
.value p { font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ====================================================
   SECTIONS
   ==================================================== */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* process */
.process { background: linear-gradient(180deg, var(--cream), #fff 60%, var(--cream)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold); display: block; margin-bottom: 12px; line-height: 1; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ====================================================
   PRODUCTS
   ==================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-chip {
  padding: 10px 18px; border-radius: 100px; font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--line-strong); color: var(--ink-soft); background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--forest); color: var(--forest); }
.filter-chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.selected { border-color: var(--forest); box-shadow: 0 0 0 1.5px var(--forest), var(--shadow-md); }

.pc-visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--grad, linear-gradient(135deg, #EDE6D6, #F6F1E6)); }
.pc-visual svg { width: 92px; height: 92px; color: var(--forest); opacity: .9; }
.pc-cat { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); background: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(4px); }
.pc-selected-flag { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: all var(--dur) var(--ease); }
.pc-selected-flag .ic { width: 18px; height: 18px; }
.product-card.selected .pc-selected-flag { opacity: 1; transform: scale(1); }

.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-title { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.2; }
.pc-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.pc-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pc-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.pc-price small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); }

.pc-actions { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 100px; overflow: hidden; }
.qty button { width: 38px; height: 40px; display: grid; place-items: center; color: var(--forest); transition: background var(--dur); }
.qty button:hover { background: var(--cream-2); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty .ic { width: 16px; height: 16px; }
.qty input { width: 38px; text-align: center; border: none; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pc-add {
  flex: 1; height: 44px; border-radius: 100px; font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: #fff; transition: all var(--dur) var(--ease);
}
.pc-add:hover { background: var(--forest-2); }
.pc-add .ic { width: 1.05em; height: 1.05em; }
.product-card.selected .pc-add { background: var(--cream-2); color: var(--forest); }

/* note area */
.pc-note-toggle {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: .85rem; font-weight: 600; color: var(--gold-2); padding: 4px 0;
  transition: color var(--dur);
}
.pc-note-toggle:hover { color: var(--gold); }
.pc-note-toggle .ic { width: 1em; height: 1em; }
.pc-note-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: none; }
.pc-note-toggle.has-note .dot { display: inline-block; }
.pc-note-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.pc-note-wrap.open { grid-template-rows: 1fr; }
.pc-note-inner { overflow: hidden; }
.pc-note-wrap textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .88rem; resize: vertical; min-height: 64px; background: var(--cream);
  transition: border-color var(--dur);
}
.pc-note-wrap textarea:focus { border-color: var(--forest); outline: none; }

/* ====================================================
   REVIEWS
   ==================================================== */
.reviews { background: var(--forest); color: var(--cream); }
.reviews .eyebrow { color: var(--gold-soft); }
.reviews h2 { color: #fff; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(4px); }
.stars { color: var(--gold-soft); letter-spacing: 3px; margin-bottom: 14px; font-size: 1.05rem; }
.review blockquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; font-style: italic; color: #fff; margin-bottom: 16px; }
.review figcaption { font-size: .9rem; color: var(--gold-soft); font-weight: 600; }

/* ====================================================
   ORDER FORM
   ==================================================== */
.order { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.order-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }

.order-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.order-summary h3 { margin-bottom: 18px; }
.order-summary-list { display: flex; flex-direction: column; gap: 12px; max-height: 360px; overflow-y: auto; margin: -4px -6px 0; padding: 4px 6px; }
.empty-note { color: var(--muted); font-size: .92rem; }
.empty-note a { color: var(--forest); font-weight: 600; text-decoration: underline; }

.os-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.os-item .os-name { font-weight: 600; font-size: .95rem; }
.os-item .os-qty { color: var(--muted); font-size: .85rem; }
.os-item .os-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--forest); }
.os-item .os-note { grid-column: 1 / -1; font-size: .82rem; color: var(--gold-2); display: flex; gap: 6px; align-items: flex-start; }
.os-item .os-note .ic { width: 14px; height: 14px; margin-top: 3px; flex: none; }

.order-summary-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.order-summary-foot span { font-weight: 600; }
.order-summary-foot strong { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); font-variant-numeric: tabular-nums; }
.micro { font-size: .78rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }

/* form */
.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; }
.input-wrap { position: relative; }
.input-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.order-form input, .order-form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: var(--cream); color: var(--ink);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.input-wrap input { padding-left: 44px; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(22,53,41,.10); }
.order-form input.invalid, .order-form textarea.invalid { border-color: var(--danger); background: #FCF4F1; }
.order-form textarea { resize: vertical; min-height: 110px; }
.helper { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.err { display: block; min-height: 0; font-size: .82rem; color: var(--danger); font-weight: 500; margin-top: 6px; }

.consent { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--ink-soft); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--forest); cursor: pointer; }

.btn .btn-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn { margin-top: 12px; }
#submitBtn.loading { pointer-events: none; opacity: .85; }
#submitBtn.loading .btn-text { opacity: .7; }
#submitBtn.loading .btn-spinner { display: inline-block; }

.form-status { margin-top: 16px; padding: 0; border-radius: var(--radius-sm); font-weight: 500; font-size: .94rem; }
.form-status.show { padding: 14px 16px; }
.form-status.success { background: #EAF5EE; color: var(--success); border: 1px solid #BFE0CC; }
.form-status.error { background: #FBEEEA; color: var(--danger); border: 1px solid #ECC7BC; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer { background: var(--forest-3); color: rgba(255,255,255,.78); padding: 60px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-mark { background: var(--forest-2); }
.footer-brand .brand-name { color: #fff; display: inline-flex; }
.footer-brand p { margin-top: 14px; max-width: 32ch; font-size: .92rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 11px; font-size: .94rem; transition: color var(--dur); }
.footer-col a:hover { color: #fff; }
.footer-col a .ic { width: 17px; height: 17px; color: var(--gold-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .85rem; }
.footer-cacher { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); }
.footer-cacher .ic { width: 16px; height: 16px; }

/* ====================================================
   CART DRAWER
   ==================================================== */
.drawer-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,38,29,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--dur); }
.drawer-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 210; height: 100dvh; width: min(420px, 92vw);
  background: var(--cream); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform var(--dur) var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.drawer-head .ic { width: 1.1em; height: 1.1em; color: var(--forest); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); transition: background var(--dur); }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn .ic { width: 22px; height: 22px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.drawer-empty { text-align: center; color: var(--muted); margin: auto 0; }
.drawer-empty svg { width: 64px; height: 64px; color: var(--line-strong); margin: 0 auto 14px; }
.drawer-empty p { font-size: .96rem; }

.di-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.di-top { display: flex; gap: 12px; align-items: flex-start; }
.di-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--cream-2); color: var(--forest); display: grid; place-items: center; flex: none; }
.di-icon svg { width: 30px; height: 30px; }
.di-info { flex: 1; min-width: 0; }
.di-name { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.di-price { font-size: .85rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.di-remove { color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; transition: all var(--dur); }
.di-remove:hover { background: #FBEEEA; color: var(--danger); }
.di-remove .ic { width: 17px; height: 17px; }
.di-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.di-controls .qty { transform: scale(.92); transform-origin: left; }
.di-line { font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }
.di-note { width: 100%; margin-top: 10px; padding: 9px 11px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; font-size: .85rem; resize: vertical; min-height: 42px; background: var(--cream); }
.di-note:focus { outline: none; border-color: var(--forest); }
.di-note-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--gold-2); margin-top: 10px; }
.di-note-label .ic { width: 14px; height: 14px; }

.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.drawer-total span { font-weight: 600; }
.drawer-total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); font-variant-numeric: tabular-nums; }

/* ====================================================
   MOBILE CART BAR
   ==================================================== */
.mobile-cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 150;
  width: min(560px, calc(100% - 24px)); display: none; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-radius: 100px; background: var(--forest); color: #fff;
  box-shadow: var(--shadow-lg); font-weight: 600; animation: slideUp .3s var(--ease);
}
.mcb-left { display: inline-flex; align-items: center; gap: 9px; }
.mcb-left .ic { width: 20px; height: 20px; color: var(--gold-soft); }
.mcb-right { font-family: var(--serif); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@keyframes slideUp { from { transform: translate(-50%, 80px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ====================================================
   TOAST
   ==================================================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 300;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 100px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0;
  transition: opacity var(--dur), transform var(--dur) var(--ease); pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; color: var(--gold-soft); }

/* ====================================================
   REVEAL ANIMATION
   ==================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 460px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .main-nav { display: none; }
  .cart-btn-label { display: none; }
  .cart-btn { padding: 11px 14px; }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .lead { max-width: none; }
  .hero-visual { margin-inline: auto; }
  .mobile-cart-bar.show { display: flex; }
  .product-grid { gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .values-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ====================================================
   REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
