/* Dolcetta Gelato & Coffee — demo theme (cocoa + strawberry + pistachio on cream) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2-variations"), url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2-variations"), url("../fonts/manrope.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --cocoa: #3b2219;
  --cocoa-2: #553429;
  --cocoa-deep: #24140e;
  --pink: #f48aa6;
  --pink-2: #f8a9bd;
  --pink-ink: #b0244f;
  --pista: #bfe0b0;
  --cream: #fff8ee;
  --vanilla: #fff1d6;
  --waffle: #e9b872;
  --card: #ffffff;
  --ink: #2a1a14;
  --muted: #6d5a52;
  --line: #efe0cf;
  --red: #b42318;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.04; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--pink); color: var(--cocoa-deep); }
.btn-pink:hover { background: var(--pink-2); }
.btn-cocoa { background: var(--cocoa); color: #fff; }
.btn-cocoa:hover { background: var(--cocoa-2); }
.btn-ghost { color: var(--cocoa); border-color: rgba(59, 34, 25, .25); }
.btn-ghost:hover { border-color: var(--cocoa); }
.btn-ghost-dark { color: var(--cocoa); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--cocoa); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--cocoa); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cocoa); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.logo svg { width: 36px; height: 36px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.top-nav a:hover { color: var(--cocoa); background: var(--vanilla); }
.basket-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 14px; border-radius: 999px; border: 0; background: var(--cocoa); color: #fff; cursor: pointer; font-weight: 800; }
.basket-btn svg { width: 20px; height: 20px; }
.basket-count { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--pink); color: var(--cocoa-deep); font-size: .85rem; font-variant-numeric: tabular-nums; }
.basket-btn.bump .basket-count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
@media (max-width: 720px) { .top-nav { display: none; } .basket-btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 7vw, 92px); background: linear-gradient(180deg, var(--vanilla), var(--cream)); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -60px -10%; height: 120px; background: radial-gradient(60px 60px at 60px 0, var(--pink) 98%, transparent) 0 0 / 120px 120px repeat-x; opacity: .12; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9aaa2; }
.status.open .dot { background: #22a55a; box-shadow: 0 0 0 4px rgba(34, 165, 90, .18); }
.status.closed .dot { background: #e8742c; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.6rem); font-weight: 700; color: var(--cocoa); }
.hero h1 em { font-style: italic; color: var(--pink-ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.cone { position: relative; width: 200px; height: 330px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.wafer { position: absolute; left: 34px; bottom: 0; width: 132px; height: 190px; clip-path: polygon(0 0, 100% 0, 50% 100%); background:
  repeating-linear-gradient(55deg, transparent 0 16px, rgba(160, 100, 40, .35) 16px 19px),
  repeating-linear-gradient(-55deg, transparent 0 16px, rgba(160, 100, 40, .35) 16px 19px), var(--waffle); }
.scoop { position: absolute; width: 120px; height: 110px; border-radius: 50% 50% 46% 46%; box-shadow: inset -10px -12px 0 rgba(0,0,0,.06); }
.sc1 { left: 6px; top: 72px; background: var(--pink); }
.sc2 { right: 6px; top: 72px; background: var(--pista); }
.sc3 { left: 40px; top: 6px; background: #fff3dc; z-index: 1; }
.drip { position: absolute; z-index: 2; left: 60px; top: 96px; width: 20px; height: 40px; border-radius: 0 0 12px 12px; background: #fff3dc; }
.sprinkle { position: absolute; width: 14px; height: 5px; border-radius: 4px; animation: twinkle 3s ease-in-out infinite; }
.p1 { top: 14%; left: 18%; background: var(--pink-ink); transform: rotate(30deg); }
.p2 { top: 22%; right: 16%; background: #4c9be8; transform: rotate(-20deg); animation-delay: .6s; }
.p3 { top: 52%; left: 8%; background: #f5c400; transform: rotate(70deg); animation-delay: 1.2s; }
.p4 { top: 46%; right: 8%; background: #22a55a; transform: rotate(10deg); animation-delay: 1.8s; }
.p5 { top: 8%; left: 52%; background: var(--waffle); transform: rotate(-50deg); animation-delay: 2.4s; }
@keyframes twinkle { 50% { opacity: .35; } }
.hero-card { position: absolute; right: 0; bottom: 18px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--cocoa); color: #fff; box-shadow: 0 18px 40px -20px rgba(36, 20, 14, .8); max-width: 170px; }
.hero-card b { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--pink); }
.hero-card span { font-size: .9rem; color: #eadbd2; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 250px; } .cone { transform: scale(.66); animation: none; margin-block: -50px; } .hero-card { bottom: 6px; } }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); color: var(--cocoa); }
.kicker { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 6px; }

/* Flavour board */
.flavours { padding-block: clamp(48px, 7vw, 88px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed #d8c3ae; color: var(--muted); font-weight: 600; font-size: .92rem; transition: all .15s ease; }
.chip input:checked + span { border-style: solid; border-color: var(--cocoa); background: var(--cocoa); color: #fff; }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; }
.chip input:focus-visible + span { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.board { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.flav { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px 16px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flav-tub { height: 74px; border-radius: 14px 14px 18px 18px; position: relative; overflow: hidden; margin-bottom: 6px; }
.flav-tub::after { content: ""; position: absolute; left: 12%; right: 12%; top: 18px; height: 40px; border-radius: 50% 50% 40% 40%; background: rgba(255,255,255,.22); filter: blur(1px); }
.flav h3 { font-size: 1.2rem; color: var(--cocoa); font-weight: 700; }
.flav p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.flav-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #e6f3df; color: #2f5d22; }
.tag.new { background: var(--pink); color: var(--cocoa-deep); }
.tag.nuts { background: #f7e6d0; color: #7a4b12; }
.al { font-size: .78rem; color: var(--muted); }
.flav.out { opacity: .55; }
.flav.out .flav-tub { filter: grayscale(.8); }
.flav .sold { position: absolute; top: 24px; left: 50%; transform: translateX(-50%) rotate(-6deg); background: var(--cocoa); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.no-items { padding: 28px 0; color: var(--muted); }
.board-foot { margin-top: 20px; font-size: .88rem; color: var(--muted); }

/* Order */
.order { padding-block: clamp(48px, 7vw, 88px); background: var(--vanilla); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 22px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tabs button:hover { border-color: var(--cocoa); }
.tabs button[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }

.builder { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.bld-steps { display: grid; gap: 14px; }
.bld-step { margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 16px 18px 18px; min-width: 0; }
.bld-step legend { padding: 0 6px; margin-left: -6px; font-weight: 800; color: var(--cocoa); }
.bld-step legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: var(--pink); color: var(--cocoa-deep); font-size: .85rem; }
.bld-step legend em { font-style: normal; font-weight: 500; color: var(--muted); }
.opts, .pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 700; cursor: pointer; transition: all .15s ease; }
.opt span small { font-weight: 600; color: var(--muted); }
.opt input:checked + span { border-color: var(--cocoa); background: var(--cocoa); color: #fff; }
.opt input:checked + span small { color: #eadbd2; }
.opt input:focus-visible + span { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.opt .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; }

.bld-sum { position: sticky; top: 84px; display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: var(--cocoa); color: #fff; }
.bld-sum h3 { font-size: 1.5rem; color: var(--pink); }
.mini-cone { position: relative; height: 150px; display: grid; justify-items: center; align-content: end; }
.mini-cone .mc-cup { width: 110px; height: 50px; border-radius: 4px 4px 28px 28px; background: #fff; }
.mini-cone .mc-cone { width: 74px; height: 70px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: repeating-linear-gradient(55deg, transparent 0 9px, rgba(160,100,40,.4) 9px 11px), var(--waffle); }
.mini-cone .mc-scoops { display: flex; flex-direction: column-reverse; align-items: center; margin-bottom: -10px; }
.mini-cone .mc-s { width: 76px; height: 50px; border-radius: 50% 50% 44% 44%; margin-top: -18px; box-shadow: inset -6px -8px 0 rgba(0,0,0,.07); transition: background-color .2s ease; }
.mini-cone .mc-s.empty { background: rgba(255,255,255,.12) !important; border: 2px dashed rgba(255,255,255,.35); box-shadow: none; }
.bld-desc { color: #eadbd2; font-size: .95rem; min-height: 3em; }
.bld-price { font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bld-sum .err { color: #ffc2cf; }
.bld-sum .btn-cocoa { background: var(--pink); color: var(--cocoa-deep); }
.bld-sum .btn-cocoa:hover { background: var(--pink-2); }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } .bld-sum { position: static; } }

.items { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid #e8d4bf; animation: fadeUp .3s ease both; }
.item-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--cocoa); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pop { font-family: var(--body); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--pink); color: var(--cocoa-deep); padding: 3px 8px; border-radius: 999px; }
.item-price { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--cocoa); }
.item-desc { grid-column: 1; color: var(--muted); font-size: .97rem; }
.item-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.add { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--cocoa); background: transparent; color: var(--cocoa); font-weight: 800; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.add:hover, .add.added { background: var(--cocoa); color: #fff; }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } }

/* Loyalty */
.loyal { background: var(--pink); color: var(--cocoa-deep); padding-block: 36px; }
.loyal-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.loyal h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 6px; }
.loyal p { max-width: 52ch; font-weight: 500; }
.stamps { display: grid; grid-template-columns: repeat(4, 52px); gap: 10px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.55); border: 2px dashed rgba(36, 20, 14, .3); }
.stamp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(36,20,14,.35); background: transparent; color: var(--cocoa); }
.stamp svg { width: 26px; height: 26px; }
.stamp.on { border: 0; background: var(--cocoa); color: var(--pink); animation: stampIn .35s cubic-bezier(.2,.9,.3,1.4) both; }
.stamp.free { border-style: solid; border-color: var(--cocoa); font-weight: 800; font-size: .72rem; text-align: center; line-height: 1.1; }
@keyframes stampIn { from { transform: scale(1.6) rotate(-20deg); opacity: 0; } }
@media (max-width: 700px) { .loyal-grid { grid-template-columns: 1fr; } .stamps { justify-self: start; grid-template-columns: repeat(4, 46px); } .stamp { width: 46px; height: 46px; } }

/* Cakes */
.cakes { padding-block: clamp(48px, 7vw, 88px); }
.cakes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.cakes-copy { display: grid; gap: 14px; }
.cakes-copy h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--cocoa); }
.cakes-copy > p { color: var(--muted); }
.cake-sizes { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.cake-sizes li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--vanilla); font-weight: 600; }
.cake-sizes b { font-variant-numeric: tabular-nums; color: var(--cocoa); }
.cake-form { display: grid; gap: 14px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -34px rgba(36,20,14,.5); }
.row { display: grid; gap: 6px; }
.row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.row.two > div { display: grid; gap: 6px; }
.row label { font-weight: 800; font-size: .92rem; }
.row label em { font-style: normal; font-weight: 500; color: var(--muted); }
.row input, .row select { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; }
.row input:focus, .row select:focus { outline: none; border-color: var(--cocoa); }
.row input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: .88rem; font-weight: 700; }
.cake-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--cocoa); }
.cake-total em { font-style: normal; color: var(--muted); font-size: .88rem; }
.cake-total strong { font-family: var(--display); font-size: 1.8rem; color: var(--cocoa); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .cakes-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .row.two { grid-template-columns: 1fr; } }

/* Visit */
.visit { padding-block: clamp(48px, 7vw, 88px); background: var(--vanilla); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--cocoa); margin-bottom: 14px; }
.visit-addr { font-weight: 800; font-size: 1.1rem; }
.visit-note { color: var(--muted); margin: 6px 0 18px; }
.season { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.season button { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.season button[aria-pressed="true"] { background: var(--cocoa); color: #fff; }
.gift { display: grid; gap: 2px; margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px dashed var(--pink-ink); }
.gift b { color: var(--pink-ink); }
.gift span { color: var(--muted); font-size: .95rem; }
.hours { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.hours th, .hours td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today { background: #ffe6ed; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--cocoa-deep); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--cocoa); color: #fff; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

.foot { background: var(--cocoa-deep); color: #cdbcb2; padding-block: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--pink); font-weight: 800; }

/* Floating basket on phones */
.basket-float { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px; border: 0; border-radius: 16px; background: var(--cocoa); color: #fff; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(36, 20, 14, .7); animation: slideUp .25s ease both; }
.basket-float span { font-weight: 800; }
.basket-float b { font-weight: 500; color: #eadbd2; font-size: .9rem; }
.basket-float strong { margin-left: auto; background: var(--pink); color: var(--cocoa-deep); padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
@keyframes slideUp { from { transform: translateY(120%); } to { transform: none; } }
@media (min-width: 861px) { .basket-float { display: none !important; } }
@media (max-width: 860px) { body.has-items .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(36, 20, 14, .45); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--card); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); animation: inRight .28s cubic-bezier(.2,.7,.2,1) both; padding-top: env(safe-area-inset-top, 0px); }
@keyframes inRight { from { transform: translateX(100%); } }
@media (max-width: 600px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation-name: inUp; padding-top: 0; }
  @keyframes inUp { from { transform: translateY(100%); } }
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; color: var(--cocoa); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 16px; }
.lines { list-style: none; display: grid; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 800; }
.line-sub { grid-column: 1; font-size: .86rem; color: var(--muted); }
.line-price { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--cocoa); grid-row: 1; grid-column: 2; }
.qty { display: flex; align-items: center; gap: 4px; grid-column: 2; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.qty button:hover { border-color: var(--cocoa); }
.qty output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 20px 0; }
.checkout { display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--cocoa); }
.total strong { font-family: var(--display); font-size: 1.8rem; font-variant-numeric: tabular-nums; color: var(--cocoa); }
.demo-note { font-size: .84rem; color: var(--muted); text-align: center; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(36, 20, 14, .55); animation: fade .2s ease both; }
.modal-card { width: min(480px, 100%); max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 24px; padding: 28px; display: grid; gap: 14px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-card h2 { font-size: 1.9rem; color: var(--cocoa); }
.modal-card > p { color: var(--muted); }
.tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--cocoa-deep); }
.tick svg { width: 28px; height: 28px; }
.confirm-lines { list-style: none; display: grid; gap: 6px; padding: 12px 0; border-block: 1px dashed var(--line); font-size: .95rem; }
.confirm-lines li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.confirm-stamp { font-weight: 800; color: var(--pink-ink) !important; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.allergen-list { columns: 2; column-gap: 28px; padding-left: 22px; color: var(--muted); }
.allergen-list li { padding: 3px 0; }

.toast { position: fixed; z-index: 110; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--cocoa-deep); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 861px) { .toast { bottom: 28px; } }

section[id] { scroll-margin-top: 72px; }

/* Phones: two flavours per row so the board isn't a long scroll */
@media (max-width: 560px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flav { padding: 12px; border-radius: 16px; gap: 4px; }
  .flav-tub { height: 54px; }
  .flav h3 { font-size: 1.02rem; }
  .flav p { display: none; }
  .flav .sold { top: 18px; font-size: .7rem; }
}

/* Late night (dessert parlour version) */
.late { padding-block: clamp(44px, 6vw, 72px); background: var(--cocoa); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.late::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 138, 166, .28), transparent 65%); }
.late .kicker { color: var(--pink); }
.late .sec-head h2 { color: #fff; }
.late-note { max-width: 40ch; color: #eadbd2; }
.late-items { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.late-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.late-card h3 { font-size: 1.2rem; color: #fff; }
.late-card p { font-size: .9rem; color: #d9c8be; }
.late-card .late-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.late-card b { font-variant-numeric: tabular-nums; color: var(--pink); font-size: 1.1rem; }
.late-card .add { grid-column: auto; grid-row: auto; border-color: var(--pink); color: var(--pink); }
.late-card .add:hover, .late-card .add.added { background: var(--pink); color: var(--cocoa-deep); }
@media (max-width: 900px) { .late-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .late-items { grid-template-columns: 1fr; } }
