:root {
  --cream: #F8F3F0;
  --red: #DA291C;
  --blue: #0057B8;
  --yellow: #FFC845;
  --ink: #1C1C1C;
  --white: #fff;
  --muted: #6b635c;
  --green: #1a7a3c;
  --fd: "Anton", sans-serif;
  --fh: "Zilla Slab", Georgia, serif;
  --fb: "Space Grotesk", system-ui, sans-serif
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer
}

.wrap {
  max-width: 1100px;
  margin: 0 auto 10px;
  padding: 0 20px
}

svg {
  display: block
}

h1,
h2,
h3 {
  font-family: var(--fh)
}

.btn {
  font-family: var(--fb);
  font-weight: 700;
  cursor: pointer;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  transition: transform .12s, box-shadow .12s
}

.btn:hover {
  transform: translate(-2px, -2px)
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink)
}

.btn-red:hover {
  box-shadow: 6px 6px 0 var(--ink)
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink)
}

.btn-blue:hover {
  box-shadow: 6px 6px 0 var(--ink)
}

.btn-ink {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink)
}

.btn-ink:hover {
  box-shadow: 6px 6px 0 var(--ink)
}

.btn.wide {
  width: 100%;
  justify-content: center;
  padding: 13px
}

input,
select {
  width: 100%;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: var(--fb);
  margin-bottom: 10px
}

/* The Special-instructions prompt is a long line — shrink just its placeholder so
   the full text shows on narrow screens (what the customer types stays full size). */
#cNotes::placeholder { font-size: 11px; }
#cNotes::-webkit-input-placeholder { font-size: 11px; }

label.fl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 3px solid var(--ink)
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0
}

.logo {
  font-family: var(--fd);
  font-size: 24px;
  color: var(--red);
  line-height: .9;
  cursor: pointer;
  display: inline-flex;
  align-items: center
}

.logo b {
  color: var(--ink);
  font-weight: 400
}

.logo small {
  display: block;
  font-family: var(--fb);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  margin-top: 3px
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain
}

.logo-foot-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain
}

@media (max-width:640px) {
  .logo-img {
    height: 30px;
    max-width: 190px
  }
}

nav.main {
  display: flex;
  align-items: center;
  gap: 18px
}

nav.main a {
  font-size: 14px;
  font-weight: 700
}

nav.main a:hover,
nav.main a.on {
  color: var(--red)
}

/* Icon group is layout-neutral on desktop (the 3 icons flow inline as before);
   on mobile it becomes a horizontal row inside the open menu. */
.nav-icons {
  display: contents
}

/* "Powered by WebWibe" — only shown inside the open mobile menu. */
.nav-foot {
  display: none
}

.nav-logout {
  display: none;
  margin: 0
}

.nav-logout button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer
}

.icn {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.icn svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink)
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700
}

.badge.pop {
  animation: pop .34s ease
}

@keyframes pop {
  0% {
    transform: scale(1)
  }

  30% {
    transform: scale(.85)
  }

  62% {
    transform: scale(1.12)
  }

  100% {
    transform: scale(1)
  }
}

.ham {
  display: none;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center
}

.ham svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink)
}

/* Dim backdrop behind the open mobile menu — dulls the page to spotlight the menu.
   Lives inside <header> so it sits below the nav panel (z-45) and the ham (z-50). */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 43;
  background: rgba(18, 16, 22, .5);
  -webkit-backdrop-filter: saturate(.85) blur(2px);
  backdrop-filter: saturate(.85) blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease
}

.nav-scrim.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

@media (min-width:641px) {
  .nav-scrim {
    display: none
  }
}

.closedbar {
  display: none;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center
}

.closedbar.show {
  display: block
}

.screen {
  padding: 28px 0 60px
}

.crumb {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 14px;
  display: inline-block
}

.crumb:hover {
  color: var(--red)
}

.ph1 {
  font-size: clamp(30px, 5vw, 46px);
  text-transform: uppercase;
  line-height: .95;
  font-weight: 700;
  margin-bottom: 10px
}

.lead {
  font-size: 16px;
  color: #3a3733;
  max-width: 60ch;
  margin-bottom: 18px
}

.sec-h {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 8px 0 14px
}

.note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600
}

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px
}

/* Cake pickup date + time — side by side, stacking on small phones. */
.cake-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px
}

@media (max-width:460px) {
  .cake-when {
    grid-template-columns: 1fr
  }
}

.prose p {
  margin-bottom: 12px;
  color: #3a3733;
  font-size: 15px
}

.prose h3 {
  margin: 16px 0 6px;
  font-size: 18px
}

/* HOME */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink)
}

@media (max-width:640px) {
  .video {
    aspect-ratio: 9/16
  }
}

.video .ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8a827b;
  background: repeating-linear-gradient(45deg, #232323, #232323 14px, #1c1c1c 14px, #1c1c1c 28px)
}

.video .play {
  width: 60px;
  height: 60px;
  border: 3px solid #8a827b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.video .play svg {
  width: 22px;
  height: 22px;
  fill: #8a827b;
  margin-left: 4px
}

.vbtns {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 0 4px;
  flex-wrap: wrap
}

/* HOME — offer banner (sliding images) */
.offers {
  padding: 20px 0 40px
}

.carousel {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink)
}

.track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1)
}

.slide {
  min-width: 100%;
  aspect-ratio: 24/9;
  position: relative;
  cursor: pointer;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center
}

.slide.s1 {
  background: linear-gradient(120deg, #DA291C, #b31f14)
}

.slide.s2 {
  background: linear-gradient(120deg, #FFC845, #f0a500)
}

.slide.s3 {
  background: linear-gradient(120deg, #0057B8, #00408a)
}

.slide .imgnote {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7)
}

.slide .cap {
  color: #fff;
  text-align: center;
  padding: 0 20px
}

.slide.s2 .cap {
  color: var(--ink)
}

.slide .cap .k {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 40px);
  text-transform: uppercase;
  line-height: 1
}

.slide .cap .p {
  font-weight: 700;
  margin-top: 6px;
  font-size: clamp(13px, 1.6vw, 16px);
  opacity: .95
}

.slide .cap .tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700
}

.slide.s2 .cap .tap {
  background: var(--ink);
  color: #fff
}

.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3
}

.dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  display: block;
  flex-shrink: 0
}

.dots .dot.on {
  background: var(--ink)
}

.arw {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3
}

.arw svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink)
}

.arw.prev {
  left: 12px
}

.arw.next {
  right: 12px
}

@media (max-width:640px) {
  .offers .slide {
    aspect-ratio: 16/10
  }

  .offers .arw {
    display: none
  }
}

/* MENU */
.cats-scroll {
  position: sticky;
  top: 70px;
  background: var(--cream);
  z-index: 20;
  padding-top: 8px;
}

.cats {
  display: flex;
  gap: 10px;
  padding: 0 0 8px;
  overflow-x: auto;
  /* Native bar is hidden — we draw the dashed "scroll me" indicator below. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

/* Dashed track that reads as "there's more — scroll →" */
.cats-hint {
  position: relative;
  height: 7px;
  margin: 0 2px 10px;
  border-radius: 999px;
  background-image: repeating-linear-gradient(to right,
      rgba(28, 28, 28, .35) 0 7px,
      transparent 7px 15px);
  background-position: left center;
  background-repeat: repeat-x;
  background-size: 15px 2.5px;
}

.cats-hint-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4.5px;
  transform: translateY(-50%);
  min-width: 34px;
  border-radius: 999px;
  background: var(--red);
  cursor: grab;
  touch-action: none;
}

.cats-hint-thumb:active {
  cursor: grabbing;
}

.cat {
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap
}

.cat.on {
  background: var(--yellow);
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

.msec {
  display: none
}

.msec.on {
  display: block
}

/* ---- menu search ---- */
#searchInput {
  width: 100%;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 3px 3px 0 var(--ink)
}

#searchInput:focus {
  outline: none;
  border-color: var(--red)
}

.srch-results {
  display: flex;
  flex-direction: column;
  max-height: min(46vh, 340px);
  overflow-y: auto
}

.srch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  cursor: pointer;
  font-family: var(--fb)
}

.srch-row:hover,
.srch-row:focus-visible {
  background: var(--yellow);
  outline: none
}

.srch-row .n {
  font-weight: 700;
  font-size: 14px
}

.srch-row .c {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em
}

.srch-row mark,
.srch-empty mark {
  background: var(--yellow);
  padding: 0 1px;
  border-radius: 2px
}

.srch-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted)
}

.srch-back[hidden] {
  display: none
}

.srch-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 8px 14px 8px 11px;
  margin: 2px 0 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s, background .12s
}

.srch-back svg {
  width: 16px;
  height: 16px
}

.srch-back:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink)
}

.srch-back:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--ink)
}

.srch-empty {
  text-align: center;
  padding: 40px 20px;
  border: 2.5px dashed var(--ink);
  border-radius: 14px;
  margin-top: 16px;
  background: #fff
}

.srch-empty h3 {
  font-size: 20px;
  margin-bottom: 6px
}

.srch-empty p {
  font-size: 14px;
  color: var(--muted)
}

#menuRoot.searching .msec {
  display: block
}

#menuRoot.searching .msec.no-match {
  display: none
}

.item.hide-search,
.byo-bar.hide-search {
  display: none !important
}

.msec h2 {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 10px 0 4px
}

/* "Build your own" horizontal bar — sits above the pizza grid, replaces the old card */
.byo-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  /* Top gap 14px. Bottom = 14px + 5px to offset the drop shadow sitting in the gap below.
     .byo-bar + .grid zeroes the grid's own top margin so these are the only spacers. */
  margin: 14px 0 19px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}

/* Bar owns the full gap to the grid — kill the grid's own top margin here so it
   doesn't stack on top (flex/grid container margins don't reliably collapse). */
.byo-bar+.grid {
  margin-top: 0;
}

/* "Make it a meal?" upsell rows */
.meal-added {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.up-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.up-row .n {
  font-weight: 700;
  font-size: 14px;
}

.up-row .m {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  margin-top: 2px;
}

.up-add {
  flex: none;
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  padding: 7px 15px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  transition: transform .12s, box-shadow .12s;
}

.up-add:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.up-add.done {
  background: var(--green);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  transform: none;
  cursor: default;
}

.byo-bar__icon {
  flex: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
  border: 3px solid #fff;
  border-radius: 12px;
}

.byo-bar__text {
  flex: 1;
  min-width: 0;
}

.byo-bar__title {
  margin: 0;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--cream);
}

.byo-bar__sub {
  margin: 4px 0 0;
  font-family: var(--fb);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}

.byo-bar .byo-bar__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .12s, background .12s;
}

.byo-bar .byo-bar__cta:hover {
  background: #b81f14;
  transform: translate(-2px, -2px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .byo-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px;
  }

  .byo-bar__icon {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .byo-bar__title {
    font-size: 22px;
  }

  .byo-bar .byo-bar__cta {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 4px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px
}

.item {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px;
  display: flex;
  flex-direction: column
}

.pic {
  aspect-ratio: 1/1;
  width: 100%;
  background: #fff;
  border: 2.5px dashed var(--ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  padding: 6px
}

.pic svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted)
}

/* Real product photo fills the square, replacing the dashed placeholder. */
.pic.has-img {
  border-style: solid;
  border-color: var(--ink);
  padding: 0;
  overflow: hidden;
}

.pic.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item h3 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1
}

.item .d {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.35;
  /* Show the full topping list — wrap freely, never clip or hide behind the Add button. */
  overflow-wrap: anywhere
}

/* Small status pill on a card (e.g. "Pickup only" for soft-serve cones). */
.item .item-tag {
  align-self: flex-start;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4
}

.item .f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  white-space: nowrap;
  flex-wrap: nowrap
}

.item .f>div {
  display: flex;
  align-items: center;
  gap: 8px
}

.item .p {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  white-space: nowrap;
  line-height: 1
}

.add {
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--fb);
  white-space: nowrap;
  transition: transform .12s, box-shadow .12s
}

.add:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink)
}

.fav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1
}

.fav.on {
  color: var(--red)
}

.item.build {
  border-style: dashed;
  background: var(--cream);
  align-items: center;
  text-align: center
}

.item.build .bic {
  width: 52px;
  height: 52px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 12px
}

.item.build .bic svg {
  width: 26px;
  height: 26px;
  stroke: var(--red)
}

/* Drink cards are a compact single-line row: [icon] Name ........ from $X  ♡  Add */
.simple {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  /* Grid items default to min-width:auto, which lets a long name blow the card past
     the screen edge. Pin to 0 so the row stays in its column and the name ellipsizes. */
  min-width: 0
}

.simple .pic {
  display: none
}

/* Left: icon + name share one line; a long name truncates with … (never wraps). */
.simple>div:first-child {
  flex: 1;
  min-width: 0
}

.simple>div:first-child>div:last-child {
  min-width: 0
}

/* The 34px card title is for photo cards; drink rows use a tidy list-size name. */
.simple h3 {
  font-size: 20px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.simple .d {
  display: none
}

/* Right: price + favourite + Add stay on the line and never shrink. */
.simple>div:last-child {
  flex-shrink: 0
}

/* lists / tables */
.line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 2px solid rgba(28, 28, 28, .1)
}

.line .n {
  font-weight: 700;
  font-size: 14px
}

.line .qmult {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle
}

.line .m {
  font-size: 12px;
  color: var(--muted)
}

.line .rm {
  background: none;
  border: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fb)
}

/* "Add another item" affordance under the cart line list. */
.add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 2.5px dashed var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s, transform .12s
}

.add-more:hover {
  background: var(--yellow);
  transform: translateY(-1px)
}

.totals div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0
}

.totals .tot {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 20px;
  border-top: 2.5px solid var(--ink);
  margin-top: 8px;
  padding-top: 10px
}

.two {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 22px;
  align-items: start
}

.seg {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.segb {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  text-align: center;
  font-family: var(--fb);
  font-size: 14px
}

.segb.on {
  background: var(--red);
  color: #fff
}

/* delivery address autocomplete dropdown */
.ac-wrap {
  position: relative;
  margin-bottom: 10px
}

.ac-wrap>input {
  margin-bottom: 0
}

.ac-list {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  max-height: 240px;
  overflow-y: auto
}

.ac-list.show {
  display: block
}

.ac-item {
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--fb);
  line-height: 1.35;
  cursor: pointer;
  border-bottom: 1px solid #eee
}

.ac-item:last-child {
  border-bottom: 0
}

.ac-item.on {
  background: var(--red);
  color: #fff
}

.tips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.tip {
  flex: 1;
  min-width: 60px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  font-family: var(--fb)
}

.tip.on {
  background: var(--ink);
  color: #fff
}

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

.acct-tile {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 20px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s
}

.acct-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink)
}

.acct-tile h3 {
  font-size: 17px;
  margin-bottom: 4px
}

.acct-tile p {
  font-size: 12px;
  color: var(--muted)
}

/* status stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 18px 0
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 26px;
  position: relative
}

.step:not(:last-child):before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 3px;
  background: var(--ink);
  opacity: .25
}

.step.done:not(:last-child):before {
  opacity: 1;
  background: var(--green)
}

.dot {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--fh)
}

.step.done .dot {
  background: var(--green);
  color: #fff
}

.step.cur .dot {
  background: var(--red);
  color: #fff
}

.step h4 {
  font-size: 16px
}

.step p {
  font-size: 12px;
  color: var(--muted)
}

/* modals / dialog / toast */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100
}

.overlay.show {
  display: flex
}

.modal {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  width: 100%;
  max-width: 360px;
  padding: 24px 22px;
  max-height: 88vh;
  overflow-y: auto
}

.modal.center {
  text-align: center
}

.x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer
}

.x:hover {
  color: var(--red)
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 6px;
  padding-right: 34px
}

.modal .md {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.chip {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fb)
}

.chip.on {
  background: var(--ink);
  color: #fff
}

.chip.locked {
  cursor: default
}

.chip.locked::before {
  content: "✓";
  margin-right: 5px;
  font-weight: 800
}

.topcat {
  margin-bottom: 10px
}

.topcat-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.qbtn {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--fb)
}

.modal .btn {
  width: 100%;
  justify-content: space-between
}

.dialog-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px
}

.dialog-ico svg {
  width: 28px;
  height: 28px;
  stroke: #fff
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  z-index: 130;
  transition: transform .3s cubic-bezier(.2, .9, .25, 1)
}

.toast.show {
  transform: translateX(-50%) translateY(0)
}

footer {
  border-top: 3px solid var(--ink);
  background: var(--cream)
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding: 40px 0 28px;
  align-items: start
}

.foot-col ul {
  list-style: none
}

.foot-h {
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin-bottom: 14px
}

.foot-col li {
  margin-bottom: 9px
}

.foot-col a {
  font-size: 13px;
  color: var(--ink)
}

.foot-col a:hover {
  color: var(--red)
}

/* 1 · Brand column — logo on top, social pinned to the bottom */
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%
}

.foot-brand .logo-foot-img {
  height: 82px;
  max-width: 180px
}

.foot-tag {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 220px
}

.foot-social {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px
}

/* Shared social / search icon button — white square, ink border + shadow,
   lifts and fills red on hover. Used in the footer and the Find-us card. */
.soc-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s ease, color .15s ease
}

.soc-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink)
}

.soc-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

.soc-btn svg {
  width: 19px;
  height: 19px
}

/* 5 · Contact column */
.foot-contact li {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 11px;
  line-height: 1.45
}

.foot-hours {
  color: var(--muted)
}

.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(28, 28, 28, .12);
  flex-wrap: wrap
}

.foot-copy {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted)
}

.foot-bar .wb {
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  vertical-align: middle
}

.foot-bar .wb:hover {
  color: #1e6dfa
}

.wb-logo {
  height: 13px;
  width: auto;
  display: inline-block;
  vertical-align: middle
}

/* Tablet: brand spans the top row, the four link columns sit 2×2 below */
@media (max-width:900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 2rem;
    padding: 32px 0 24px
  }

  .foot-brand {
    grid-column: 1 / -1;
    min-height: 0;
    margin-bottom: 4px
  }

  .foot-social {
    margin-top: 4px
  }
}

/* Mobile: brand on top, then the link columns 2×2 (Order|Support / Legal|Contact) */
@media (max-width:560px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    padding: 26px 0 20px
  }

  .foot-tag {
    max-width: none
  }

  .foot-bar {
    justify-content: center;
    text-align: center
  }
}

@media (max-width:860px) {
  .grid {
    grid-template-columns: 1fr 1fr
  }

  .two {
    grid-template-columns: 1fr
  }

  .acct-grid {
    grid-template-columns: 1fr 1fr
  }
}

/* Close (✕) button — only shown inside the open mobile menu. */
.nav-close {
  display: none
}

body.nav-open {
  overflow: hidden
}

@media (max-width:640px) {
  nav.main {
    display: none
  }

  /* Slide-in drawer — the original cream side-panel, polished: full-height,
     a close ✕, divided tap rows with chevrons, and a clear active state. */
  nav.main.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(84vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-left: 3px solid var(--ink);
    box-shadow: -10px 0 0 rgba(0, 0, 0, .12);
    padding: 66px 20px 22px;
    overflow-y: auto;
    z-index: 60;
    animation: navIn .26s cubic-bezier(.22, .61, .36, 1)
  }

  @keyframes navIn {
    from {
      opacity: 0;
      transform: translateX(22px)
    }
  }

  /* divided, easy-to-tap rows with a chevron */
  nav.main.open > a:not(.nav-foot) {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    padding: 14px 4px;
    border-bottom: 1.5px solid rgba(28, 28, 28, .1)
  }

  nav.main.open > a:not(.nav-foot)::after {
    content: '\203a';
    float: right;
    color: var(--muted);
    font-weight: 700
  }

  nav.main.open > a.on {
    color: var(--red)
  }

  /* search / account / cart in a row */
  nav.main.open .nav-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(28, 28, 28, .12)
  }

  nav.main.open .nav-logout {
    display: block;
    margin-top: 14px
  }

  /* "Powered by WebWibe" pinned to the bottom */
  nav.main.open .nav-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    opacity: .78
  }

  nav.main.open .nav-foot .wb-logo {
    height: 15px;
    width: auto
  }

  /* close ✕, top-right — white tile with the brand's offset shadow */
  nav.main.open .nav-close {
    display: flex;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2.5px solid var(--ink);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ink);
    color: var(--ink);
    z-index: 61;
    cursor: pointer
  }

  nav.main.open .nav-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink)
  }

  .ham {
    display: flex;
    position: relative;
    z-index: 50
  }

  .grid,
  .acct-grid {
    grid-template-columns: 1fr
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important
  }
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px
}

/* ===== MOBILE-FIRST (this is a phone-first ordering site) ===== */
#mobar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--cream);
  border-top: 3px solid var(--ink);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px
}

#mobar .mb-tot {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap
}

#mobar .btn {
  flex: 1;
  justify-content: center;
  padding: 13px
}

#stars span {
  padding: 2px
}

@media (max-width:640px) {
  .wrap {
    padding: 0 20px;
    margin-bottom: 10px;
  }

  header .wrap.bar {
    padding: 12px 10px;
  }

  .screen {
    padding: 18px 0 92px
  }

  /* clear the sticky order bar */
  .ph1 {
    font-size: 26px
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .btn {
    padding: 13px 16px;
    font-size: 15px
  }

  .add {
    padding: 8px 14px;
    font-size: 14px
  }

  /* thumb-size tap targets */
  .cat {
    padding: 11px 16px
  }

  .icn,
  .qbtn {
    width: 44px;
    height: 44px
  }

  .two {
    gap: 16px
  }

  .item.simple {
    padding: 14px
  }

  .acct-grid {
    grid-template-columns: 1fr
  }

  /* modals slide up as bottom sheets */
  .overlay {
    align-items: flex-end;
    padding: 0
  }

  .modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom-width: 0;
    box-shadow: 0 -6px 0 var(--ink);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    max-height: 92vh;
    animation: sheet .22s ease
  }

  @keyframes sheet {
    from {
      transform: translateY(100%)
    }

    to {
      transform: translateY(0)
    }
  }

  #mobar.show {
    display: flex
  }
}

/* =========================================================
   Unified press interaction — the SAME "press down" as a
   selected category chip (.cat.on). Every raised button sits
   raised (offset shadow); on press it sinks into that shadow:
   translate by the shadow amount + collapse the shadow to 0.
   No hover lift — only the pressed-down state, exactly like
   the category button. Applied everywhere it was missing:
   search & top-menu icons, hamburger, the white close (×)
   buttons, qty +/−, primary CTAs, add pills, chips.
   ========================================================= */

/* Category chip — smooth the toggle so the press-down animates */
.cat {
  transition: transform .1s, box-shadow .1s
}

.cat:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

/* Top-menu icon buttons: search, account, cart */
.icn {
  transition: transform .12s, box-shadow .12s
}

.icn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

/* Hamburger */
.ham {
  transition: transform .12s, box-shadow .12s
}

.ham:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

/* White close button with the black × (all modals) */
.x {
  transition: transform .12s, box-shadow .12s, color .12s
}

.x:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

/* Quantity −/+ buttons (2px shadow) */
.qbtn {
  transition: transform .12s, box-shadow .12s
}

.qbtn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink)
}

/* Primary CTAs — .btn-red / .btn-blue / .btn-ink (4px shadow) */
.btn:active {
  transform: translate(4px, 4px)
}

.btn-red:active,
.btn-blue:active,
.btn-ink:active {
  box-shadow: 0 0 0 var(--ink)
}

/* Add-to-cart pills */
.add:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink)
}

/* Size / flavour / topping chips (no shadow — sink slightly) */
.chip {
  transition: transform .1s, background .12s, color .12s
}

.chip:not(.locked):active {
  transform: translate(1px, 1px) scale(.97)
}

/* "Start building" BYO CTA (white-bordered, no shadow) */
.byo-bar .byo-bar__cta:active {
  transform: translate(2px, 2px)
}

/* =========================================================
   DAIRY BAR — same menu structure as the food menu, but a
   blue "world". Scoped under .dairy-theme so it only recolours
   the dairy page; cards, sizes and the flavour picker are the
   exact same components (item-card + the customize modal).
   ========================================================= */
.dhero {
  padding: 22px 0 20px;
  border-bottom: 3px solid var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(0, 87, 184, .12) 1.5px, transparent 1.5px);
  background-size: 15px 15px
}

.dhero .back {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px
}

.dhero .back:hover {
  color: var(--blue)
}

.dhero .htin {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.dhero h1 {
  font-family: var(--fh);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  color: var(--blue);
  font-size: clamp(28px, 5vw, 44px)
}

.dhero p {
  font-size: 14px;
  color: #3a3733;
  margin-top: 4px;
  max-width: 52ch
}

/* Blue recolour of the shared menu bits, scoped to the dairy page */
.dairy-theme .cat.on {
  background: var(--blue);
  color: #fff
}

.dairy-theme .msec h2 {
  color: var(--blue)
}

.dairy-theme .item .p {
  color: var(--blue)
}

.dairy-theme .add,
.dairy-theme .btn-red,
body[data-route="dairy"] .btn-red,
body[data-route="dairy"] #addCart,
body[data-route="dairy"] #qtyAdd,
.dairy-modal .btn-red,
.dairy-modal #addCart,
.dairy-modal #qtyAdd {
  background: var(--blue)
}

.dairy-theme .item .item-tag {
  color: var(--blue)
}

/* Cakes tab links out to the ice-cream-cake order form */
.dairy-theme .cat-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue)
}

/* ---- Menu <-> Dairy flip cover ----
   A full-screen coloured panel that wipes upward. It has NO transition by
   default (so it can be placed instantly, e.g. covering an incoming page);
   `.anim` turns the transition on only when we want it to slide.
   States:  hidden (below) -> .show (covering) -> .up (gone, above).  */
.cover {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(101%);
  pointer-events: none
}

.cover.anim {
  transition: transform .5s cubic-bezier(.66, 0, .34, 1)
}

/* Colour: blue by default (dairy), red for the pizza menu */
.cover.red,
html.flip-in.flip-menu .cover {
  background: var(--red)
}

/* Transform states */
html.flip-in .cover {
  transform: translateY(0)
}

.cover.show {
  transform: translateY(0)
}

.cover.up {
  transform: translateY(-101%)
}

/* Logos — only the active side is shown */
.cover-logo {
  width: min(60vw, 300px);
  height: auto;
  display: none
}

.cover.side-dairy .cover-logo--dairy,
html.flip-in.flip-dairy .cover-logo--dairy {
  display: block
}

.cover.side-pizza .cover-logo--pizza,
html.flip-in.flip-menu .cover-logo--pizza {
  display: block
}