/* =========================================================================
   Salt & Cellar — Gourmet Provisions
   Editorial "modern American larder" system.
   Display: Fraunces (high-contrast serif) · Body: DM Sans · Labels: DM Mono
   Paper #F6F1E7 · Ink #1F1A15 · Wine #7B2233 · Olive #5E6641 · Terracotta #C06A3E
   ========================================================================= */

:root {
  /* surfaces */
  --paper:      #F6F1E7;
  --paper-2:    #EFE8D8;
  --card:       #FCFAF3;
  --ink:        #1F1A15;
  --ink-2:      #4A4239;
  --ink-3:      #6E6558;
  --ink-4:      #9A9082;

  /* accents */
  --wine:       #7B2233;
  --wine-d:     #641A29;
  --olive:      #5E6641;
  --olive-d:    #4B5233;
  --terra:      #C06A3E;
  --gold:       #B0842E;
  --cream:      #FBF7EE;

  /* lines & shadow */
  --line:       rgba(31,26,21,.14);
  --line-soft:  rgba(31,26,21,.08);
  --hair:       rgba(94,102,65,.30);
  --shadow:     rgba(31,26,21,.10);
  --shadow-lg:  rgba(31,26,21,.16);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", system-ui, -apple-system, sans-serif;
  --mono:  "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--cream); }

/* ---------- type helpers ---------- */
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.mono  { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive-d);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker .idx { color: var(--terra); font-weight: 500; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.kicker.no-rule::before { display: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- demo ribbon ---------- */
.demobar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  position: relative;
  z-index: 200;
}
.demobar .wrap { display: flex; align-items: center; gap: 14px; padding: 9px 32px; flex-wrap: wrap; }
.demobar .chip {
  font-family: var(--mono);
  background: var(--terra);
  color: var(--ink);
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 10.5px;
  letter-spacing: .16em;
  font-weight: 500;
}
.demobar .db-txt { opacity: .82; font-size: 12.5px; }
.demobar b { font-weight: 600; opacity: 1; }
.db-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.db-tour {
  font-family: var(--mono);
  background: none;
  border: 1px solid rgba(251,247,238,.35);
  color: var(--cream);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 11.5px;
  letter-spacing: .04em;
  transition: background .15s, border-color .15s;
}
.db-tour:hover { background: rgba(251,247,238,.12); border-color: rgba(251,247,238,.6); }
.demobar a.db-link { font-family: var(--mono); font-size: 11.5px; color: var(--cream); opacity: .7; padding: 5px 6px; transition: opacity .15s; }
.demobar a.db-link:hover { opacity: 1; }

/* ---------- header ---------- */
.header {
  background: rgba(246,241,231,.86);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .25s, background .25s;
}
.header.shrink { box-shadow: 0 1px 0 var(--line), 0 8px 28px -18px var(--shadow-lg); }
.nav { display: flex; align-items: center; gap: 28px; padding: 16px 32px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .seal { width: 42px; height: 42px; flex-shrink: 0; }
.brand .bt { line-height: 1; }
.brand .bt b { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .01em; display: block; }
.brand .bt span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.menu { display: flex; gap: 26px; margin-left: 12px; }
.menu a { font-size: 14.5px; color: var(--ink-2); padding: 4px 0; position: relative; transition: color .15s; }
.menu a::after { content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px; background: var(--wine); transition: right .25s; }
.menu a:hover, .menu a.active { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { right: 0; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: none; cursor: pointer; color: var(--ink);
  border-radius: 6px; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 5px; right: 5px;
  background: var(--wine); color: var(--cream);
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center; line-height: 1;
}
.hamb { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 11px 22px; cursor: pointer; border: 1.5px solid transparent;
  border-radius: 4px; transition: background .18s, color .18s, border-color .18s, transform .08s;
  white-space: nowrap; letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: var(--wine-d); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #000; }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-cream:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; width: 100%; }
.wa-ico { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 640px; }
.hero-copy {
  padding: 84px 6vw 84px 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px; margin-left: auto; padding-left: 32px;
}
.hero-copy .kicker { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: .98; letter-spacing: -.01em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--wine); font-weight: 500; }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta .hm { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .hm b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.hero-meta .hm span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hero-photo { position: relative; overflow: hidden; background: var(--paper-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .stamp {
  position: absolute; bottom: 26px; right: 26px;
  width: 108px; height: 108px;
}

/* ---------- band / section ---------- */
.band { padding: 92px 0; }
.band.tight { padding: 56px 0; }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink .kicker { color: var(--terra); }
.band-ink .section-title { color: var(--cream); }
.band-olive { background: var(--olive); color: var(--cream); }
.band-paper2 { background: var(--paper-2); }

.section-head { margin-bottom: 46px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02; letter-spacing: -.01em; margin-top: 12px;
  max-width: 18ch;
}
.section-sub { font-size: 16px; color: var(--ink-3); margin-top: 14px; max-width: 52ch; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catcard {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 4/5; display: block; color: var(--cream);
  border: 1px solid var(--line);
}
.catcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.catcard::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,16,12,.05) 30%, rgba(20,16,12,.72) 100%); }
.catcard:hover img { transform: scale(1.05); }
.catcard .cc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
.catcard .cc-num { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; opacity: .7; }
.catcard h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.05; margin: 4px 0 8px; }
.catcard .cc-go { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.catcard .cc-go::after { content: "→"; transition: transform .25s; }
.catcard:hover .cc-go::after { transform: translateX(4px); }

/* ---------- shop controls ---------- */
.shop-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.shop-search {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); border-radius: 5px;
  padding: 10px 15px; flex: 1; min-width: 220px; background: var(--card);
  transition: border-color .15s;
}
.shop-search:focus-within { border-color: var(--olive); }
.shop-search svg { width: 17px; height: 17px; color: var(--ink-4); flex-shrink: 0; }
.shop-search input { border: none; outline: none; background: none; width: 100%; font-size: 15px; }
.shop-search input::placeholder { color: var(--ink-4); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-f {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 40px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-2); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip-f:hover { border-color: var(--ink-3); }
.chip-f.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.prod-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 22px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.prod-card:hover { box-shadow: 0 18px 40px -24px var(--shadow-lg); transform: translateY(-3px); border-color: var(--line); }
.pc-thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--paper-2); position: relative; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.prod-card:hover .pc-thumb img { transform: scale(1.05); }
.pc-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px; color: var(--cream); backdrop-filter: blur(2px);
}
.pc-body { padding: 16px 16px 4px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.pc-name { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.18; }
.pc-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-unit { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-4); text-transform: uppercase; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-soft); margin-top: auto; }
.pc-price { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.pc-price.consultar { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.add-btn { padding: 8px 14px; font-size: 12.5px; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.qty button { width: 30px; height: 32px; display: grid; place-items: center; background: var(--cream); border: none; cursor: pointer; font-size: 17px; line-height: 1; transition: background .12s; }
.qty button:hover { background: var(--paper-2); }
.qty span { font-family: var(--mono); padding: 0 10px; font-size: 13px; min-width: 34px; text-align: center; }
.qty.sm button { width: 26px; height: 28px; font-size: 15px; }
.qty.sm span { padding: 0 6px; min-width: 26px; font-size: 12px; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty-state b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* ---------- lifestyle strip ---------- */
.strip { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.strip.flip { direction: rtl; }
.strip.flip > * { direction: ltr; }
.strip-photo { min-height: 460px; background: var(--paper-2); overflow: hidden; }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; }
.strip-copy { padding: 8vw 7vw; display: flex; flex-direction: column; justify-content: center; }
.strip-copy .kicker { margin-bottom: 22px; }
.strip-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px,3.6vw,46px); line-height: 1.05; margin-bottom: 18px; }
.strip-copy p { color: var(--ink-2); font-size: 16px; max-width: 42ch; margin-bottom: 14px; }
.band-ink .strip-copy p { color: rgba(251,247,238,.78); }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feat-list .fi { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex-shrink: 0; font-family: var(--mono); font-size: 11px; opacity: .8; }

/* ---------- catalog / price list ---------- */
.lista-hero { background: var(--ink); color: var(--cream); padding: 66px 0 44px; }
.lista-hero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lista-hero .kicker { color: var(--terra); margin-bottom: 16px; }
.lista-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px,5vw,60px); line-height: 1; }
.lista-hero p { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; opacity: .7; margin-top: 12px; }
.print-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terra); color: var(--ink); border: none; border-radius: 4px; padding: 11px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.print-btn:hover { background: #a95c34; }

.lista-toolbar { background: rgba(246,241,231,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; padding: 12px 0; }
.lista-toolbar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.lista-note { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: 5px; padding: 14px 18px; margin-bottom: 28px; font-size: 14px; color: var(--ink-2); }
.lista-note .ln-ic { font-family: var(--mono); color: var(--olive-d); flex-shrink: 0; }
.lista-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }

.catsec { margin-bottom: 44px; }
.catsec-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.catsec-head .cs-num { font-family: var(--mono); font-size: 12px; color: var(--terra); }
.catsec-head h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.catsec-head .cs-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }

.lrow { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.lrow:hover { background: var(--card); }
.lr-tile { width: 56px; height: 56px; border-radius: 5px; overflow: hidden; background: var(--paper-2); }
.lr-tile img { width: 100%; height: 100%; object-fit: cover; }
.lr-main .lr-name { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.2; }
.lr-main .lr-desc { font-size: 13px; color: var(--ink-3); margin-top: 3px; max-width: 60ch; }
.lr-unit { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; text-align: right; }
.lr-price { font-family: var(--mono); font-size: 17px; font-weight: 500; white-space: nowrap; text-align: right; min-width: 78px; }
.lr-price.consultar { font-size: 12px; color: var(--ink-3); }

/* ---------- story / brand strip on ink ---------- */
.brandline { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; justify-content: center; }
.brandline span { font-family: var(--serif); font-weight: 500; font-size: clamp(18px,2.4vw,26px); color: var(--cream); opacity: .55; letter-spacing: .01em; transition: opacity .2s; }
.brandline span:hover { opacity: 1; }
.brandline .dot { font-family: var(--sans); opacity: .3; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 4px; }
.ci-row { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.ci-row .ci-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); width: 90px; flex-shrink: 0; padding-top: 3px; }
.ci-row .ci-v { font-size: 16px; }
.ci-row .ci-v b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.contact-card { background: var(--ink); color: var(--cream); border-radius: 8px; padding: 34px; }
.contact-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.contact-card p { color: rgba(251,247,238,.7); font-size: 14px; margin-bottom: 22px; }
.field-inline { display: flex; flex-direction: column; gap: 10px; }
.field-inline input { background: rgba(251,247,238,.06); border: 1.5px solid rgba(251,247,238,.16); border-radius: 5px; padding: 12px 14px; color: var(--cream); font-size: 15px; outline: none; transition: border-color .15s; }
.field-inline input::placeholder { color: rgba(251,247,238,.4); }
.field-inline input:focus { border-color: var(--terra); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.foot-brand .seal-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand .seal-line b { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.foot-brand p { color: rgba(251,247,238,.6); font-size: 14px; max-width: 34ch; line-height: 1.65; }
.foot-col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,247,238,.45); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: rgba(251,247,238,.8); margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--terra); }
.foot-bottom { border-top: 1px solid rgba(251,247,238,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-bottom p { font-family: var(--mono); font-size: 11.5px; color: rgba(251,247,238,.5); letter-spacing: .04em; }
.foot-bottom a { text-decoration: underline; text-underline-offset: 2px; color: rgba(251,247,238,.7); }

/* ---------- drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.drawer.open { pointer-events: all; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20,16,12,.5); opacity: 0; transition: opacity .28s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: var(--paper); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.drawer.open .panel { transform: translateX(0); }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 5px; background: var(--paper-2); }
.ci-info { min-width: 0; }
.ci-info b { font-family: var(--serif); font-weight: 500; font-size: 15px; display: block; line-height: 1.2; }
.ci-info span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.ci-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ci-sub { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; color: var(--ink-3); }
.cart-empty svg { width: 52px; height: 52px; opacity: .25; }
.cart-empty b { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cart-total b { font-family: var(--mono); font-size: 24px; font-weight: 500; }
.cart-clear { background: none; border: none; cursor: pointer; color: var(--ink-4); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px; }
.cart-clear:hover { color: var(--wine); }
.cart-note { font-size: 11.5px; color: var(--ink-4); text-align: center; line-height: 1.5; }

.nav-drawer .panel { padding: 22px; gap: 4px; }
.nav-drawer .panel .close { align-self: flex-end; }
.nav-drawer .panel a { font-family: var(--serif); font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px); background: var(--ink); color: var(--cream); border-radius: 6px; padding: 12px 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 34px -12px rgba(0,0,0,.5); z-index: 500; transition: transform .3s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .tk { width: 20px; height: 20px; background: var(--terra); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- FAB ---------- */
.fab { position: fixed; bottom: 26px; right: 26px; z-index: 150; width: 54px; height: 54px; border-radius: 50%; background: #128C7E; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(18,140,126,.6); transition: transform .2s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: calc(100vh - 42px); }
.admin-sidebar { background: var(--ink); color: var(--cream); padding: 26px 0; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 0 22px 20px; border-bottom: 1px solid rgba(251,247,238,.1); margin-bottom: 14px; }
.sb-brand .seal { width: 36px; height: 36px; }
.sb-brand b { font-family: var(--serif); font-weight: 600; font-size: 17px; display: block; line-height: 1; }
.sb-brand span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,247,238,.5); }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 22px; background: none; border: none; cursor: pointer; color: rgba(251,247,238,.62); font-size: 14px; border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: var(--cream); background: rgba(251,247,238,.04); }
.nav-item.active { color: var(--cream); background: rgba(192,106,62,.14); border-left-color: var(--terra); }
.admin-main { padding: 32px; overflow-x: auto; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.admin-head .ah-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 18px 20px; }
.stat-card b { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1; display: block; }
.stat-card span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pc-head h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; }

.prod-table { width: 100%; border-collapse: collapse; }
.prod-table th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.prod-table td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.prod-table tr:last-child td { border-bottom: none; }
.prod-table tbody tr:hover td { background: var(--paper); }
.pt-thumb { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; background: var(--paper-2); }
.pt-name { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.pt-price { font-family: var(--mono); font-size: 14px; }
.cat-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; color: var(--cream); white-space: nowrap; }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; }
.badge-on { background: rgba(94,102,65,.16); color: var(--olive-d); }
.badge-off { background: rgba(31,26,21,.08); color: var(--ink-4); }
.row-actions { display: flex; gap: 6px; }
.row-actions button { width: 32px; height: 32px; border-radius: 5px; border: none; cursor: pointer; display: grid; place-items: center; transition: background .12s; }
.row-actions button svg { width: 15px; height: 15px; }
.btn-edit { background: var(--paper-2); color: var(--ink); }
.btn-edit:hover { background: var(--gold); color: var(--cream); }
.btn-del { background: rgba(123,34,51,.1); color: var(--wine); }
.btn-del:hover { background: var(--wine); color: var(--cream); }

/* modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(20,16,12,.6); z-index: 400; display: none; place-items: center; padding: 20px; overflow-y: auto; }
.modal-scrim.open { display: grid; }
.modal { background: var(--paper); border-radius: 10px; width: min(580px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.modal-head h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.modal-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select { border: 1.5px solid var(--line); border-radius: 5px; padding: 10px 13px; font-size: 15px; background: var(--card); outline: none; transition: border-color .15s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--olive); }
.field textarea { resize: vertical; min-height: 74px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-preview { width: 100%; aspect-ratio: 4/3; border-radius: 6px; border: 2px dashed var(--line); display: grid; place-items: center; overflow: hidden; cursor: pointer; background: var(--card); transition: border-color .15s; }
.img-preview:hover { border-color: var(--olive); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview span { font-size: 14px; color: var(--ink-4); text-align: center; padding: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-row label { font-size: 14.5px; }
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; inset: 0; background: var(--line); border-radius: 26px; cursor: pointer; transition: background .2s; }
.slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .slider { background: var(--olive); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

.settings-section { padding: 24px; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border-bottom: none; }
.settings-section h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin-bottom: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.setting-row:last-child { border-bottom: none; }
.setting-row b { font-family: var(--mono); font-size: 13px; }
.setting-row code { font-family: var(--mono); font-size: 12.5px; background: var(--paper-2); padding: 2px 7px; border-radius: 4px; }
.danger-zone { background: rgba(123,34,51,.05); border: 1px solid rgba(123,34,51,.25); border-radius: 7px; padding: 18px 20px; }
.danger-zone h4 { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--wine); margin-bottom: 8px; }
.danger-zone p { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.btn-danger { background: var(--wine); color: var(--cream); }
.btn-danger:hover { background: var(--wine-d); }

/* =========================================================================
   PRINT
   ========================================================================= */
@media print {
  .demobar, .header, .lista-toolbar, .fab, .drawer, .toast, .print-btn, .lr-action { display: none !important; }
  body { background: #fff; color: #000; }
  .lista-hero { background: #fff; color: #000; padding: 0 0 20px; border-bottom: 2px solid #000; }
  .lista-hero .kicker, .lista-hero p { color: #000; }
  .catsec { break-inside: avoid; }
  .band { padding: 12px 0; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; padding: 60px 32px; }
  .hero-photo { min-height: 420px; order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 208px 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .menu { display: none; }
  .hamb { display: grid; }
  .band { padding: 60px 0; }
  .strip { grid-template-columns: 1fr; direction: ltr; }
  .strip.flip { direction: ltr; }
  .strip-photo { min-height: 300px; order: -1; }
  .strip-copy { padding: 44px 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .lrow { grid-template-columns: 48px 1fr auto; }
  .lr-unit { display: none; }
  .demobar .db-txt { display: none; }
}
@media (max-width: 440px) {
  .foot-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .catcard img, .prod-card .pc-thumb img { transition: none !important; }
}
