:root {
  --wine: #752336;
  --wine-dark: #5d1a2a;
  --cream: #f7f2ee;
  --cream-2: #efe7e1;
  --white: #fffdfb;
  --text: #666;
  --heading: #555;
  --ink: #343b4c;
  --line: rgba(0, 0, 0, .1);
  --sans: "Century Gothic", "Urbanist", "Futura", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
  --bar: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.cart-open, body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; color: var(--heading); line-height: 1.15; margin: 0; letter-spacing: .02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: var(--heading);
  font: 700 .95rem var(--sans); text-transform: uppercase; letter-spacing: .03em;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.pill.solid { background: var(--wine); border-color: var(--wine); color: #fff; }
.pill.solid:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.pill.light { color: #fff; border-color: rgba(255,255,255,.85); }
.pill.light:hover { background: #fff; color: var(--wine); border-color: #fff; }
.pill.glass { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); padding: 14px 34px; font-size: 1.05rem; }
.pill.glass:hover { background: #fff; color: var(--wine); }
.pill.big { padding: 16px 34px; font-size: 1.05rem; line-height: 1.2; }
.pill.full { width: 100%; }
.pill:disabled { opacity: .4; cursor: not-allowed; }
.pill:disabled:hover { background: var(--wine); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--text); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--wine); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--bar);
  background: var(--wine); color: #fff;
}
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.logo { font-family: var(--script); font-size: 2.4rem; line-height: 1; color: #fff; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 44px; height: 44px; margin-top: -6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.bar-right { display: flex; align-items: center; gap: 18px; }
.cart-pill { padding: 9px 22px; font-size: .9rem; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--wine); font-size: .7rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
.badge[hidden] { display: none; }
.cart-pill:hover .badge { background: var(--wine); color: #fff; }
.burger { width: 34px; height: 26px; position: relative; background: none; border: 0; cursor: pointer; padding: 0; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 12px; }
.burger span:nth-child(3) { top: 22px; }

/* ---------- Full-screen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(60, 40, 40, .55); backdrop-filter: blur(18px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav-open .menu-overlay { opacity: 1; pointer-events: auto; }
.menu-overlay nav { display: grid; gap: 6px; }
.menu-overlay nav a {
  color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; text-transform: uppercase;
  transform: translateY(12px); opacity: 0; transition: transform .4s, opacity .4s, color .2s;
}
.nav-open .menu-overlay nav a { transform: none; opacity: 1; }
.nav-open .menu-overlay nav a:nth-child(2) { transition-delay: .05s; }
.nav-open .menu-overlay nav a:nth-child(3) { transition-delay: .1s; }
.nav-open .menu-overlay nav a:nth-child(4) { transition-delay: .15s; }
.menu-overlay nav a:hover { color: #f3c9d2; }
.close-x { position: relative; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: inherit; }
.close-x::before, .close-x::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: currentColor;
}
.close-x::before { transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }
.menu-overlay .close-x { position: absolute; top: 16px; right: 18px; color: #fff; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); min-height: 480px; overflow: hidden; background: #2a1a1c; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.on img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,.35) 100%); }
.slide-caption {
  position: absolute; top: 9%; left: 0; right: 0; z-index: 2; text-align: center;
  color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.slide-caption b { font-weight: 700; }
.hero-cta { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 3; white-space: nowrap; }
.dots { position: absolute; left: 0; right: 0; bottom: 3.5%; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }

/* ---------- Split: photos + text ---------- */
.split { padding: 56px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 12px; align-items: stretch; }
.split-grid > img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.split-text { padding: 20px 10px 20px 28px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.split-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.split-text p { margin: 0; }
.split-text .pill { align-self: flex-start; }

/* ---------- Section headings ---------- */
.section { padding: 90px 0; }
.title { text-align: center; margin-bottom: 48px; }
.title h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.title p { margin: 12px auto 0; max-width: 520px; }

/* ---------- Order (store) ---------- */
.store { background: var(--white); }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { background: var(--cream); display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.05); }
.ribbon {
  position: absolute; top: 16px; left: 16px; background: var(--wine); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px;
}
.product-body { padding: 26px 24px 28px; text-align: center; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1.35rem; }
.product-body .sub { font-size: .88rem; }
.product-body .price { font-size: 1.6rem; font-weight: 700; color: var(--wine); margin: 8px 0 16px; }
.product-body .pill { margin-top: auto; }
.add-btn.in-cart { background: transparent; color: var(--wine); border-color: var(--wine); }
.store-note { text-align: center; margin: 36px 0 0; font-size: .9rem; }

/* ---------- Full-width photo pair with button ---------- */
.photo-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.photo-pair img { width: 100%; height: 520px; object-fit: cover; }
.photo-pair .pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }

/* ---------- Script divider ---------- */
.script-mark { text-align: center; padding: 110px 0; font-family: var(--script); font-size: clamp(3.4rem, 8vw, 5.2rem); color: var(--wine); line-height: 1; }

/* ---------- Three-up: photo / text / photo ---------- */
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.trio img { width: 100%; height: 420px; object-fit: cover; }
.trio .trio-text { display: flex; align-items: center; padding: 40px 34px; }
.trio .trio-text p { margin: 0 0 14px; }
.trio .big-line { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; line-height: 1.25; color: var(--heading); font-weight: 400; }
.trio .big-line b { display: block; }
.trio .trio-head { display: flex; align-items: center; justify-content: center; padding: 40px; }
.trio .trio-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-weight: 700; text-transform: uppercase; color: var(--heading); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--wine); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; }

/* ---------- Info row ---------- */
.info { padding: 70px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.info-grid svg { width: 30px; height: 30px; stroke: var(--heading); margin: 0 auto 14px; }
.info-grid h4 { font-size: 1rem; margin-bottom: 6px; }
.info-grid p { margin: 0; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: #fff; padding: 46px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 700; text-transform: uppercase; font-size: .88rem; }
.footer-links a:hover { opacity: .75; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; gap: 16px; }
.to-top { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.to-top:hover { background: #fff; color: var(--wine); }

/* ---------- Cart & checkout pages ---------- */
.page { padding: 70px 0 110px; min-height: 60vh; }
.page-title { text-align: center; margin-bottom: 44px; }
.page-title h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-title p { margin: 8px 0 0; }
.page-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.card { background: var(--white); padding: 32px; }
.card > h2 { font-size: 1.15rem; margin-bottom: 22px; }
.summary { position: sticky; top: calc(var(--bar) + 24px); }
.sum { display: flex; justify-content: space-between; padding: 10px 0; }
.sum strong { color: var(--heading); }
.sum.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 18px; font-weight: 700; text-transform: uppercase; color: var(--heading); }
.sum.total strong { font-size: 1.5rem; color: var(--wine); }
.summary .pill { margin-top: 18px; }
.secure { text-align: center; font-size: .82rem; margin: 12px 0 0; }

/* Line item + size picker (shared with the drawer) */
.line { display: flex; align-items: center; gap: 18px; }
.line img { width: 84px; height: 84px; object-fit: cover; flex: none; }
.line-info { flex: 1; min-width: 0; }
.line-info h3 { font-size: 1rem; margin-bottom: 4px; }
.line-info p { margin: 0 0 4px; font-size: .86rem; }
.line > strong { font-size: 1.2rem; color: var(--wine); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.sizes button {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 6px;
  cursor: pointer; font: inherit; color: var(--heading); transition: border-color .2s, background .2s, color .2s;
}
.sizes button:hover { border-color: var(--wine); }
.sizes button.on { border-color: var(--wine); background: var(--wine); color: #fff; }
.sizes b { display: block; font-size: 1.05rem; line-height: 1.2; }
.sizes span { font-size: .78rem; opacity: .8; }
.sizes-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; color: var(--heading); margin: 28px 0 0; }
.hint { font-size: .84rem; margin: 16px 0 0; }

.empty { text-align: center; padding: 40px 10px; }
.empty-icon { font-size: 2.6rem; }
.empty h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.empty p { margin: 0 0 24px; }

.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border: 0; }
.steps-list li::before {
  content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem;
}
.steps-list b { display: block; color: var(--heading); text-transform: uppercase; font-size: .92rem; }
.notice { background: #f3e3e6; color: var(--wine); padding: 16px 20px; margin-bottom: 14px; display: flex; gap: 12px; }
.notice b { display: block; text-transform: uppercase; font-size: .9rem; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(40, 20, 24, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--bar); padding: 0 16px 0 24px; background: var(--wine); color: #fff; }
.drawer-head h2 { color: #fff; font-size: 1.05rem; }
.drawer-body { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-items { padding: 24px; flex: 1; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--white); }
.drawer-foot .sum { font-weight: 700; text-transform: uppercase; color: var(--heading); padding: 0 0 6px; }
.drawer-foot .sum strong { font-size: 1.35rem; color: var(--wine); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-grid > img { min-height: 300px; }
  .split-text { grid-column: span 2; padding: 30px 6px 0; text-align: center; align-items: center; }
  .split-text .pill { align-self: center; }
  .store-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .photo-pair img { height: 340px; }
  .trio { grid-template-columns: 1fr; }
  .trio img { height: 320px; }
  .trio .trio-text, .trio .trio-head { padding: 40px 24px; justify-content: center; text-align: center; }
  .page-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .info-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  :root { --bar: 64px; }
  .wrap { padding: 0 16px; }
  .site-header .bar { padding: 0 14px; }
  .logo { font-size: 2rem; }
  .bar-right { gap: 14px; }
  .cart-pill { padding: 7px 16px; font-size: .82rem; }
  .split { padding: 16px 0 40px; }
  .split-grid { gap: 8px; }
  .split-grid > img { min-height: 220px; }
  .section { padding: 64px 0; }
  .photo-pair img { height: 240px; }
  .photo-pair .pill { padding: 12px 22px; font-size: .9rem; white-space: nowrap; }
  .script-mark { padding: 70px 0; }
  .card { padding: 22px 18px; }
  .line img { width: 64px; height: 64px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Sign in ---------- */
.auth { display: flex; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: var(--wine-dark); color: #fff; font: 700 16px var(--sans); cursor: pointer; padding: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .logo img { width: 36px; height: 36px; } }

/* ---------- Sign-in page ---------- */
.signin-page { display: grid; place-items: center; min-height: 60vh; padding: 48px 20px; }
.signin-card { max-width: 420px; width: 100%; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; box-shadow: 0 20px 50px -30px rgba(117,35,54,.4); }
.signin-card h1 { text-transform: none; letter-spacing: 0; font-family: var(--script); font-weight: 400; color: var(--wine); font-size: 2.6rem; margin: 10px 0 8px; }
.signin-card p { margin: 0 0 22px; line-height: 1.55; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #3c4043; font: 700 16px var(--sans); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.gbtn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.signin-card .back { display: inline-block; margin-top: 18px; color: var(--wine); font-size: .95rem; }


/* ---------- Privacy & Terms ---------- */
.legal .wrap { max-width: 780px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -20px 0 40px; }
.legal-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--wine); text-decoration: none; font-weight: 700; font-size: .95rem; background: var(--white); }
.legal section { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; margin-bottom: 22px; scroll-margin-top: calc(var(--bar) + 16px); }
.legal h2 { margin: 0 0 12px; color: var(--wine); }
.legal h3 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--heading); }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0; }

.signin-card .agree { font-size: .85rem; margin: 16px 0 0; color: var(--text); }
.signin-card .agree a { color: var(--wine); }


/* ---------- Checkout details ---------- */
.details { display: grid; gap: 14px; margin-top: 22px; }
.details h3 { margin: 10px 0 0; font-size: 1.05rem; color: var(--heading); }
.details label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--heading); }
.details input, .details textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9cfc8; background: #fff; color: var(--ink); }
.details input:focus, .details textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.details .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.details .opt { font-weight: 400; color: var(--text); }
.details .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.details .choice label { display: block; cursor: pointer; }
.details .choice input { position: absolute; opacity: 0; }
.details .choice span { display: block; padding: 14px; border-radius: 14px; border: 2px solid #e6dcd5; background: #fff; font-weight: 400; transition: border-color .2s, background .2s; }
.details .choice span b { display: block; font-size: 1rem; color: var(--ink); }
.details .choice input:checked + span { border-color: var(--wine); background: #fbf3f4; }
.details .choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.details .who { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-size: .92rem; }
.details .who img { width: 30px; height: 30px; border-radius: 50%; }
.details .saved { margin: 0; font-size: .85rem; color: var(--text); }
@media (max-width: 560px) { .details .two { grid-template-columns: 1fr; } }


/* ---------- Account menu ---------- */
.auth { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.35); padding: 8px; z-index: 50; }
.acct-menu .acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu .acct-who b { display: block; color: var(--ink); }
.acct-menu .acct-who span { display: block; font-size: .85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--cream); }
.acct-menu button { color: var(--wine); font-weight: 700; }

/* Bigger tap areas on touch screens (the look stays the same) */
.dots button { position: relative; }
.dots button::after { content: ""; position: absolute; inset: -14px -5px; }
.burger::after { content: ""; position: absolute; inset: -10px -8px; }
@media (pointer: coarse) {
  .footer-links a { display: inline-block; padding: 10px 2px; }
}

/* ---------- Phones: order bar ---------- */
.order-bar { display: none; }
@media (max-width: 760px) {
  .order-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--wine); color: #fff; text-decoration: none; box-shadow: 0 14px 34px -10px rgba(93,26,42,.7); transform: translateY(150%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .order-bar.on { transform: none; }
  .order-bar span { flex: 1; font-size: .8rem; line-height: 1.3; opacity: .9; }
  .order-bar span b { display: block; font-size: .95rem; opacity: 1; }
  .order-bar em { font-style: normal; font-weight: 700; background: #fff; color: var(--wine); padding: 10px 18px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
}

/* Header on phones: Log in, Cart and the menu fit beside the logo */
.bar-right .pill { white-space: nowrap; }
@media (max-width: 520px) {
  .bar-right { gap: 10px; }
  .bar-right .pill { padding: 8px 12px; font-size: .78rem; }
  .logo { font-size: 1.7rem; gap: 6px; }
  .logo img { width: 32px; height: 32px; }
  .avatar { width: 34px; height: 34px; }
}
@media (max-width: 360px) { .logo { font-size: 0; gap: 0; } }

/* ---------- Hero headline ---------- */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(30,10,14,.15) 0%, rgba(30,10,14,.05) 40%, rgba(30,10,14,.6) 100%); }
.hero-copy { position: absolute; left: 50%; bottom: calc(9% + 78px); transform: translateX(-50%); z-index: 3; text-align: center; color: #fff; width: min(92%, 760px); pointer-events: none; animation: heroIn 1s .2s both cubic-bezier(.2,.7,.2,1); }
.hero-kicker { display: inline-block; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; padding: 6px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.hero-copy h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: .01em; margin: 14px 0 6px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-copy h1 em { font: 400 1.15em var(--script); text-transform: none; display: inline-block; margin-left: .2em; color: #ffe2d1; }
.hero-copy p { margin: 0; font-size: 1.1rem; opacity: .92; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .slide-caption { display: none; }
@keyframes heroIn { from { opacity: 0; transform: translate(-50%, 24px); } }

/* ---------- Product extras ---------- */
.product { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .35s, box-shadow .35s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(117,35,54,.35); }
.product.featured { outline: 2px solid var(--wine); outline-offset: -2px; }
.ribbon { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--wine); color: #fff; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(117,35,54,.35); }
.ribbon.alt { background: #fff; color: var(--wine); }
.product-body .each { font-size: .8rem; letter-spacing: .06em; color: var(--wine); opacity: .75; }

/* ---------- How it works ---------- */
.steps { background: var(--white); }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps-grid li { text-align: center; padding: 34px 24px; border-radius: 18px; background: var(--cream); }
.steps-grid span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--wine); color: #fff; font: 400 1.9rem var(--script); }
.steps-grid h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps-grid p { margin: 0; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; gap: 14px; } .hero-copy { bottom: calc(9% + 70px); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.product.reveal.in:hover { transform: translateY(-6px); }

/* ---------- Flavor picker ---------- */
.flavor-wrap { margin: -24px 0 36px; }
.flavors { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.flavors button { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--heading); font: 700 .9rem var(--sans); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.flavors button img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.flavors button:hover { border-color: var(--wine); }
.flavors button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.drawer .flavors, .line + .flavors { justify-content: flex-start; }

/* 8 flavors: a tidy grid on the menu, compact in the cart */
.flavor-wrap .flavors { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 14px auto; }
.flavor-wrap .flavors button { text-align: left; line-height: 1.2; font-size: .78rem; }
.drawer .flavors, .line + .flavors { gap: 8px; }
.drawer .flavors button, .line + .flavors button { font-size: .72rem; padding: 4px 12px 4px 4px; }
.drawer .flavors button img, .line + .flavors button img { width: 28px; height: 28px; }
@media (max-width: 900px) { .flavor-wrap .flavors { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--wine); color: #fff; overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee > div { display: inline-flex; gap: 28px; align-items: center; animation: marq 38s linear infinite; }
.marquee span { font: 700 .9rem var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.marquee i { font-style: normal; color: #ffc9b0; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee > div { animation: none; } }

/* ---------- Flavor menu ---------- */
.menu { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.script-kicker { display: block; font: 400 2rem var(--script); color: var(--wine); margin-bottom: -4px; }
.flavor-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flavor-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 16px 22px; border-radius: 22px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(117,35,54,.4); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.flavor-card:hover, .flavor-card:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 44px -20px rgba(117,35,54,.45); }
.flavor-card:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.fc-img { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 8px; background: var(--cream-2); }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.flavor-card:hover .fc-img img { transform: scale(1.06); }
.fc-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); opacity: .8; }
.flavor-card b { font: 700 1rem/1.25 var(--sans); text-transform: uppercase; color: var(--heading); letter-spacing: .02em; min-height: 2.5em; display: flex; align-items: center; }
.fc-pick { font-size: .8rem; color: var(--text); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.flavor-card:hover .fc-pick, .flavor-card.on .fc-pick { opacity: 1; transform: none; }
.flavor-card.on { outline: 2px solid var(--wine); outline-offset: -2px; }
.flavor-card.on .fc-pick { color: var(--wine); font-weight: 700; }
@media (max-width: 900px) { .flavor-menu { grid-template-columns: repeat(2, 1fr); gap: 14px; } .flavor-card { padding: 12px 10px 16px; } .flavor-card b { font-size: .85rem; } .fc-pick { opacity: 1; transform: none; } }

/* phones: the flavor picker is one swipeable row */
@media (max-width: 900px) {
  .flavor-wrap { margin: -28px 0 28px; min-width: 0; }
  .flavor-wrap .flavors { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 10px; gap: 10px; scrollbar-width: none; max-width: 100%; margin: 0; padding: 4px 2px 10px; }
  .flavor-wrap .flavors::-webkit-scrollbar { display: none; }
  .flavor-wrap .flavors button { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* the hidden attribute always wins (e.g. the delivery address when Pickup is picked) */
[hidden] { display: none !important; }

/* cart page: flavors in a tidy two-column grid */
.sizes-label + .flavors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.sizes-label + .flavors button { font-size: .7rem; padding: 4px 10px 4px 4px; text-align: left; line-height: 1.2; min-height: 44px; }
.sizes-label + .flavors button img { width: 32px; height: 32px; flex: none; }
@media (min-width: 700px) { .sizes-label + .flavors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* checkout: pickup only */
.pickup-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: .92rem; line-height: 1.5; }

/* ---------- Phones: shorter, quicker to order ---------- */
@media (max-width: 760px) {
  /* packs: compact rows, photo on the left */
  .store-grid { grid-template-columns: 1fr; gap: 12px; }
  .product { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .product:hover { transform: none; }
  .product-img { width: 118px; flex: none; aspect-ratio: auto; }
  .product-body { text-align: left; padding: 14px 16px; gap: 2px; }
  .product-body h3 { font-size: 1.05rem; }
  .product-body .sub { font-size: .8rem; }
  .product-body .price { font-size: 1.3rem; margin: 2px 0 10px; }
  .product-body .pill { padding: 10px 14px; font-size: .82rem; }
  .ribbon { top: 8px; left: 8px; font-size: .58rem; padding: 4px 8px; letter-spacing: .08em; }
  .store-note { font-size: .85rem; }

  /* how it works: number on the left */
  .steps-grid li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 16px 18px; }
  .steps-grid span { grid-row: span 2; margin: 0; width: 46px; height: 46px; font-size: 1.6rem; }
  .steps-grid h3 { margin: 0; font-size: 1rem; }
  .steps-grid p { font-size: .88rem; line-height: 1.45; }

  /* the big photo sections */
  .photo-pair img { height: 260px; }
  .trio img { height: 240px; }
  .trio .trio-text { padding: 26px 22px; }

  /* section spacing */
  .section { padding-top: 56px; padding-bottom: 56px; }
  .title { margin-bottom: 28px; }
}
