/* ============================================================================
   ZEST — STYLES  (matched to the "Savor" storefront theme)
   White background · black text · deep-red accent · Barlow Condensed UPPERCASE
   headings · Inter body · square corners. Colours live in :root below.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg: #ffffff;            /* page background */
  --panel: #ededed;         /* product image / hero panel grey (matches jar renders) */
  --ink: #111111;           /* text */
  --muted: #6d6d6d;
  --red: #a42325;           /* brand / primary accent (Savor --color-primary) */
  --red-dark: #831a1c;
  --line: #e4e4e4;
  --black: #111111;
  --maxw: 1280px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;        /* body */
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;                /* headings */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }

/* Headings — condensed, bold, uppercase (Savor) */
h1, h2, h3, .logo, .hero h1, .section h2, .card .body h3, .pdp .info h1, footer.site h5 {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; line-height: 1.05;
}

/* ---- Buttons (square, Savor style) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; border: 1.5px solid var(--red); cursor: pointer;
  padding: 14px 30px; border-radius: 0; font-family: var(--font-head); font-weight: 600;
  font-size: 16px; text-transform: uppercase; letter-spacing: .6px; transition: background .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.gold:hover { background: #000; }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 30px; letter-spacing: 1.5px; color: var(--ink); font-weight: 700; }
.logo span { color: var(--red); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--font-head); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .6px; }
.nav-links a:hover { color: var(--red); }
.cart-link { position: relative; font-size: 20px; }
.cart-count {
  position: absolute; top: -8px; right: -12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; font-family: var(--font);
}
.menu-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* ---- Hero ---- */
.hero { background: #fff; padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 72px; line-height: .98; margin-bottom: 20px; color: var(--ink); }
.hero h1 .accent { color: var(--red); display: block; }
.hero p.lead { font-size: 16px; color: var(--muted); margin-bottom: 28px; max-width: 440px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1/1; border-radius: 0; overflow: hidden; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .emoji { font-size: 150px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }

/* ---- Section headings ---- */
.section { padding: 72px 0; }
.section h2 { font-size: 46px; margin-bottom: 6px; color: var(--ink); }
.section .sub { color: var(--muted); margin-bottom: 38px; font-size: 16px; }

/* ---- Product grid / cards (Savor: image on grey, title + price below) ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: none; border-radius: 0; display: flex; flex-direction: column; }
.card .thumb {
  aspect-ratio: 1/1; position: relative; overflow: hidden; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
}
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card .thumb .ph { font-size: 72px; opacity: .9; }
.card .badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 0; text-transform: uppercase; letter-spacing: .5px;
}
.card .body { padding: 14px 4px 22px; display: flex; flex-direction: column; gap: 4px; }
.card .body .cat { font-size: 12px; color: var(--red); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .7px; }
.card .body h3 { font-size: 20px; color: var(--ink); }
.card .body .size { font-size: 13px; color: var(--muted); font-family: var(--font); }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.card .price { font-weight: 600; font-size: 15px; font-family: var(--font); color: var(--ink); }
.card .row .btn.sm { background: transparent; color: var(--red); border: none; padding: 0; font-size: 14px; }
.card .row .btn.sm:hover { color: var(--ink); }
.price .cur { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---- Product detail ---- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
.pdp .media { aspect-ratio: 1/1; border-radius: 0; overflow: hidden; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.pdp .media img { width: 100%; height: 100%; object-fit: cover; }
.pdp .media .ph { font-size: 130px; }
.pdp .info h1 { font-size: 44px; margin-bottom: 10px; color: var(--ink); }
.pdp .info .size { color: var(--muted); margin-bottom: 20px; }
.pdp .info .price { font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 24px; font-family: var(--font); }
.pdp .info p.desc { font-size: 16px; color: #333; margin-bottom: 30px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 0; overflow: hidden; margin-right: 12px; }
.qty button { width: 42px; height: 46px; border: none; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 46px; height: 46px; border: none; text-align: center; font-size: 16px; font-family: var(--font); }
.back-link { display: inline-block; margin: 26px 0 0; color: var(--muted); font-weight: 500; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; }
.back-link:hover { color: var(--red); }

/* ---- Cart ---- */
.cart-wrap { display: grid; grid-template-columns: 1.6fr .9fr; gap: 40px; align-items: start; padding: 40px 0 72px; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-thumb { width: 78px; height: 78px; border-radius: 0; overflow: hidden; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-size: 18px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .3px; }
.cart-item .ci-size { font-size: 13px; color: var(--muted); }
.cart-item .ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; margin-top: 6px; padding: 0; }
.cart-item .ci-remove:hover { color: var(--red); }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 26px; position: sticky; top: 92px; }
.summary h3 { font-size: 24px; margin-bottom: 16px; font-family: var(--font-head); text-transform: uppercase; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; color: #444; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 18px; color: var(--ink); }
.empty { text-align: center; padding: 80px 0; }
.empty .ph { font-size: 64px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* delivery / pickup choice (echoes the Local Delivery + Pickup app) */
.method-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.method-toggle label { border: 1.5px solid var(--line); padding: 12px; text-align: center; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; font-size: 14px; }
.method-toggle input { display: none; }
.method-toggle input:checked + span { color: var(--red); }
.method-toggle label:has(input:checked) { border-color: var(--red); }
.map-embed { width: 100%; height: 200px; border: 1px solid var(--line); margin-top: 4px; filter: grayscale(.2); }

/* ---- Accent strip (echoes the deep-red toolbar) ---- */
.strip { background: var(--red); color: #fff; }
.strip .grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 30px 0; text-align: center; }
.strip .feat .ic { font-size: 24px; margin-bottom: 6px; }
.strip .feat h4 { font-size: 18px; margin-bottom: 2px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .4px; }
.strip .feat p { font-size: 13px; color: rgba(255,255,255,.8); font-family: var(--font); }

/* ---- Footer ---- */
footer.site { background: #fff; color: var(--ink); padding: 56px 0 26px; margin-top: 0; border-top: 1px solid var(--line); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer.site .logo { color: var(--ink); font-size: 30px; }
footer.site .logo span { color: var(--red); }
footer.site p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 320px; }
footer.site h5 { font-size: 16px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; color: var(--ink); }
footer.site a { display: block; color: #333; font-size: 14px; padding: 4px 0; }
footer.site a:hover { color: var(--red); }
footer.site .copy { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 0;
  font-size: 14px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 200; transition: transform .3s ease;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .4px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 52px; }
  .pdp { grid-template-columns: 1fr; }
  .cart-wrap { grid-template-columns: 1fr; }
  .strip .grid4 { grid-template-columns: repeat(2,1fr); gap: 22px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px 28px; gap: 16px; border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: block; }
  .grid, .grid.three { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero h1 { font-size: 44px; }
  .section { padding: 50px 0; }
}
