/* =====================================================================
   Ordering: dish cards, menu page layout, basket (bar, panel, drawer),
   checkout form, toasts
   ===================================================================== */

/* ---------------- Dish cards (shared) ---------------- */

.dish {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(212, 162, 69, 0.28);
  box-shadow: var(--shadow-1);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.45s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.dish:hover {
  border-color: rgba(212, 162, 69, 0.7);
  box-shadow: var(--shadow-2);
}

.dish.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.3s, border-color 0.3s;
}

.dish::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.dish.is-tilting::after {
  opacity: 1;
}

.dish__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #efe3c9 8%, #f8f0de 18%, #efe3c9 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.dish__media.is-loaded {
  animation: none;
  background: var(--cream-100);
}

.dish__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s, transform 0.8s var(--ease-out);
}

.dish__media.is-loaded .dish__img {
  opacity: 1;
  transform: none;
}

.dish__media.is-broken .dish__img {
  opacity: 0;
}

.dish:hover .dish__media.is-loaded .dish__img {
  transform: scale(1.06);
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.dish__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 6px;
  padding: 14px 16px 16px;
}

.dish__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dish__badges:empty {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge .icon {
  width: 11px;
  height: 11px;
}

.badge--best {
  background: rgba(212, 162, 69, 0.18);
  color: var(--gold-700);
}

.badge--new {
  background: var(--saffron);
  color: #fff;
}

.dish__name {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.dish__desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.dish--feature .dish__desc,
.dish--deal-card .dish__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish__note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-700);
}

.dish__option select {
  width: 100%;
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d6781' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 0.86rem;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}

.dish__option select:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 59, 124, 0.25);
}

.dish__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-top: auto;
  padding-top: 6px;
}

.dish__price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.price__value {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-900);
}

.price__value--ask {
  font-size: 0.95rem;
  color: var(--gold-700);
  white-space: nowrap;
}

@media (max-width: 479px) {
  .dish--deal-card .dish__media {
    flex-basis: 84px;
  }

  .dish--deal-card .dish__body {
    padding-left: 12px;
  }
}

.price__unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qty-control {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.btn-add,
.btn-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 40px;
  padding: 6px 16px 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  animation: control-in 0.3s var(--ease-spring);
}

.btn-add {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-200);
  box-shadow: 0 8px 18px -10px rgba(11, 29, 68, 0.9);
}

.btn-add .icon {
  color: var(--gold-400);
}

.btn-ask {
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
}

.btn-add:hover,
.btn-ask:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-add:active {
  transform: scale(0.95);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  border: 1.5px solid var(--gold-500);
  animation: control-in 0.3s var(--ease-spring);
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--navy-900);
  transition: background-color 0.2s, transform 0.15s;
}

.stepper__btn:hover:not(:disabled) {
  background: #fff;
}

.stepper__btn:active:not(:disabled) {
  transform: scale(0.9);
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper__qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stepper--sm .stepper__btn {
  width: 32px;
  height: 32px;
}

.stepper--xs .stepper__btn {
  width: 28px;
  height: 28px;
}

.stepper--xs .stepper__btn .icon {
  width: 14px;
  height: 14px;
}

.stepper--xs .stepper__qty {
  min-width: 18px;
  font-size: 0.85rem;
}

@keyframes control-in {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}

/* List variant: Deliveroo-style, details left, square photo right */
.dish--list {
  flex-direction: row-reverse;
  align-items: stretch;
}

.dish--list .dish__media {
  flex: 0 0 clamp(108px, 30%, 150px);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.dish--list .dish__img {
  position: absolute;
  inset: 0;
}

/* Feature variant (home best sellers): arch photo on top */
.dish--feature {
  flex-direction: column;
  padding: 14px 14px 0;
}

.dish--feature .dish__media {
  aspect-ratio: 4 / 3.2;
  border-radius: 200px 200px 14px 14px;
  outline: 1.5px solid rgba(212, 162, 69, 0.6);
  outline-offset: 4px;
}

.dish--feature .dish__body {
  padding: 16px 4px 18px;
}

.dish--feature .dish__name {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
}

.dish--feature .price__value {
  font-size: 1.3rem;
}

/* Deal variant (home meal deals): navy, like the printed menu */
.dish--deal-card {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(229, 184, 96, 0.55);
  color: var(--on-navy);
  box-shadow: 0 20px 40px -24px rgba(6, 18, 41, 0.9);
  --focus: var(--gold-300);
}

.dish--deal-card .dish__media {
  flex: 0 0 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-500), 0 0 0 7px rgba(229, 184, 96, 0.18);
}

.dish--deal-card .dish__body {
  padding: 4px 6px 4px 16px;
}

.dish--deal-card .dish__name {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-400);
}

.dish--deal-card .dish__desc {
  color: var(--on-navy-muted);
}

.dish--deal-card .price__value {
  font-size: 1.45rem;
  color: var(--gold-300);
}

.dish--deal-card .price__value--ask {
  font-size: 1.05rem;
}

.dish--deal-card .btn-add {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
}

.dish--deal-card .btn-add .icon {
  color: var(--navy-900);
}

.dish--deal-card .stepper {
  background: rgba(255, 255, 255, 0.08);
}

.dish--deal-card .stepper__btn,
.dish--deal-card .stepper__qty {
  color: var(--gold-200);
}

.dish--deal-card .stepper__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.dish--deal-card .badge--new {
  display: none;
}

/* Deals on the menu page (list cards) get a navy edge */
.dish--list.dish--deal {
  border-color: var(--gold-500);
  background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--cream-100) 100%);
}

.feature-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Skeletons while JS renders */
.skeleton-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  min-height: 150px;
  background-image: linear-gradient(110deg, #f5ecd7 8%, #fbf6ea 18%, #f5ecd7 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------------- Menu page layout ---------------- */

.order-layout {
  display: grid;
  gap: 28px;
  padding-block: clamp(24px, 4vw, 44px) var(--section-y);
  align-items: start;
}

@media (min-width: 1024px) {
  .order-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (min-width: 1240px) {
  .order-layout {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    width: min(1440px, 100% - var(--gutter) * 2);
  }
}

/* Sidebar categories (desktop) */
.menu-nav {
  display: none;
}

@media (min-width: 1024px) {
  .menu-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
    background: var(--navy-900);
    color: var(--on-navy);
    scrollbar-width: thin;
    --focus: var(--gold-300);
  }
}

.menu-nav__title {
  padding: 0 10px 10px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-400);
  border-bottom: 1px solid rgba(229, 184, 96, 0.25);
  margin-bottom: 8px;
}

.menu-nav ul {
  list-style: none;
  display: grid;
  gap: 2px;
}

.menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-navy-muted);
  transition: background-color 0.2s, color 0.2s;
}

.menu-nav a small {
  min-width: 26px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  text-align: center;
}

.menu-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-navy);
}

.menu-nav a.is-active {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  font-weight: 600;
}

.menu-nav a.is-active small {
  background: rgba(6, 18, 41, 0.15);
}

.menu-nav a.is-empty {
  opacity: 0.4;
}

/* Toolbar: search + mobile category chips */
.order-main {
  min-width: 0;
}

.menu-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: grid;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1) 6px;
  padding: 12px var(--gutter);
  background: rgba(255, 250, 241, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(212, 162, 69, 0.3);
}

@media (min-width: 1024px) {
  .menu-toolbar {
    top: calc(var(--header-h) + 12px);
    margin: 0 0 8px;
    padding: 12px;
    border: 1px solid rgba(212, 162, 69, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
  }
}

.menu-toolbar__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.menu-search > .icon {
  position: absolute;
  left: 15px;
  color: var(--muted);
  pointer-events: none;
}

.menu-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
}

.menu-search input::-webkit-search-cancel-button {
  display: none;
}

.menu-search input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 59, 124, 0.25);
}

.menu-search__clear {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
}

.menu-search__clear:hover {
  background: var(--cream-100);
  color: var(--ink);
}

.chip-row {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
}

.chip-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .chip-row {
    display: none;
  }
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(212, 162, 69, 0.45);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.chip.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-300);
}

.chip.is-empty {
  opacity: 0.45;
}

.menu-status {
  margin: 8px 2px 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Sections & grid */
.menu-section {
  padding-top: 26px;
  scroll-margin-top: calc(var(--header-h) + 150px);
}

@media (min-width: 1024px) {
  .menu-section {
    scroll-margin-top: calc(var(--header-h) + 100px);
  }
}

.menu-section__head {
  margin-bottom: 16px;
}

.menu-section__head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--gold-heading);
}

.menu-section__head h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 162, 69, 0.7), transparent);
}

.menu-section__head p {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.dish-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) and (max-width: 1399px) {
  .dish-grid {
    grid-template-columns: 1fr;
  }
}

.menu-empty {
  margin: 40px auto;
  max-width: 480px;
  padding: 36px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.menu-empty__icon {
  width: 60px;
  height: 60px;
  padding: 15px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--gold-700);
}

.menu-empty h2 {
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}

.menu-empty p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------------- Basket panel (desktop menu page) ---------------- */

.basket-panel {
  display: none;
}

@media (min-width: 1240px) {
  .basket-panel {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

.basket-panel__inner {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(212, 162, 69, 0.4);
  box-shadow: var(--shadow-2);
}

.basket-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--cream-300);
}

.basket-panel__title span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.78rem;
}

.basket-panel__empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 6px 22px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.basket-panel__empty strong {
  color: var(--ink);
}

.basket-panel__empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--gold-700);
}

.basket-panel__empty-icon .icon {
  width: 28px;
  height: 28px;
}

.basket-panel__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.basket-panel__note .icon {
  color: var(--gold-600);
}

.mini-lines {
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.mini-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}

.mini-line__info {
  display: grid;
  min-width: 0;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
}

.mini-line__info small {
  color: var(--gold-700);
  font-weight: 600;
}

.mini-line__price {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Basket bar + WhatsApp button ---------------- */

.basket-bar {
  position: fixed;
  z-index: 800;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px 8px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-950));
  border: 1px solid rgba(229, 184, 96, 0.55);
  color: var(--cream-50);
  box-shadow: 0 20px 40px -14px rgba(6, 18, 41, 0.85);
  font-weight: 600;
  --focus: var(--gold-300);
  transform: translateY(150%);
  transition: transform 0.45s var(--ease-spring);
}

.basket-bar.has-items {
  transform: none;
}

.basket-bar__count {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  font-weight: 700;
}

.basket-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.basket-bar__label .icon {
  color: var(--gold-400);
}

.basket-bar__total {
  font-variant-numeric: tabular-nums;
  color: var(--gold-300);
}

.basket-bar.is-bumping,
.header-basket.is-bumping {
  animation: bump 0.55s var(--ease-spring);
}

@keyframes bump {
  35% {
    transform: scale(1.08) rotate(-2deg);
  }
  65% {
    transform: scale(0.97) rotate(1deg);
  }
}

@media (min-width: 720px) {
  .basket-bar {
    left: auto;
    right: max(20px, env(safe-area-inset-right));
    bottom: 20px;
    width: 360px;
  }
}

/* The menu page shows its own basket panel on wide screens */
@media (min-width: 1240px) {
  .has-basket-panel .basket-bar {
    display: none;
  }
}

.wa-fab {
  position: fixed;
  z-index: 799;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1b9a51, var(--wa));
  box-shadow: 0 16px 34px -12px rgba(18, 128, 63, 0.85);
  transition: transform 0.3s var(--ease-spring), bottom 0.45s var(--ease-spring);
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-bright);
  animation: ping 2.4s ease-out 1s 3 both;
}

.wa-fab:hover {
  transform: scale(1.08) rotate(-6deg);
}

.wa-fab .icon {
  width: 28px;
  height: 28px;
}

html.has-basket .wa-fab {
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 74px);
}

@media (min-width: 1240px) {
  html.has-basket .has-basket-panel .wa-fab,
  html.has-basket.has-basket-panel .wa-fab {
    bottom: 20px;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

html.is-locked .basket-bar,
html.is-locked .wa-fab,
html.nav-open .basket-bar,
html.nav-open .wa-fab {
  opacity: 0;
  pointer-events: none;
}

.fly-ghost {
  position: fixed;
  z-index: 1200;
  border-radius: 50%;
  background: var(--navy-900) center / cover no-repeat;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--gold-400);
  pointer-events: none;
}

/* ---------------- Drawer ---------------- */

.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 18, 41, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0s 0.35s;
}

.cart-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: min(460px, 100vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  box-shadow: -30px 0 60px -30px rgba(6, 18, 41, 0.7);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s 0.45s;
}

.cart-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease-out);
}

.cart-drawer__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px;
  background: radial-gradient(ellipse at 80% 0%, var(--navy-700), var(--navy-900));
  color: var(--on-navy);
  overflow: hidden;
  --focus: var(--gold-300);
}

.cart-drawer__header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: url("../Images/Ornaments/rope.svg") 0 0 / 14px 10px repeat-x;
  opacity: 0.85;
}

.cart-drawer__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.cart-drawer__title:focus {
  outline: none;
}

.steps {
  list-style: none;
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.steps li {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-navy-muted);
  letter-spacing: 0.04em;
}

.steps li.is-current {
  background: var(--gold-400);
  color: var(--navy-950);
}

.steps li.is-done {
  background: rgba(37, 211, 102, 0.2);
  color: #b9f5cf;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 184, 96, 0.5);
  color: var(--gold-300);
  transition: background-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 24px;
}

.cart-drawer__footer {
  display: grid;
  gap: 12px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 162, 69, 0.35);
  background: #fff;
}

.cart-lines {
  list-style: none;
  display: grid;
  gap: 12px;
}

.cart-line {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 40px 12px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(212, 162, 69, 0.28);
  animation: line-in 0.35s var(--ease-out);
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

.cart-line__thumb img,
.cart-line__ph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold-400);
}

.cart-line__info {
  min-width: 0;
}

.cart-line__name {
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.cart-line__option {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold-700);
}

.cart-line__unit {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.cart-line__side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.cart-line__subtotal {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cart-line__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
}

.cart-line__remove:hover {
  background: rgba(179, 38, 30, 0.1);
  color: var(--error);
}

.cart-line__remove .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 400px) {
  .cart-line {
    grid-template-columns: 52px 1fr;
  }

  .cart-line__thumb img {
    width: 52px;
    height: 52px;
  }

  .cart-line__side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 12px;
  text-align: center;
}

.cart-empty__art {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  box-shadow: 0 0 0 6px var(--cream-50), 0 0 0 7.5px var(--gold-500);
  animation: bob 5s ease-in-out infinite;
}

.cart-empty__art .icon {
  width: 40px;
  height: 40px;
}

.cart-empty h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
}

.cart-empty p {
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 8px;
}

.totals {
  display: grid;
  gap: 6px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 500;
}

.totals dd {
  color: var(--ink);
}

.totals__grand {
  padding-top: 8px;
  border-top: 1px dashed var(--cream-300);
  font-size: 1.15rem;
}

.totals__grand dt,
.totals__grand dd {
  color: var(--ink);
  font-weight: 700;
}

.basket-panel .totals__grand {
  border-top: 0;
  padding-top: 0;
}

.footer-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* Seasonal offer nudge in the basket ("Add £5 more for free delivery") */
.offer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 162, 69, 0.4);
  background: rgba(229, 184, 96, 0.16);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.offer-note .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold-ink);
}

.offer-note.is-unlocked {
  border-color: rgba(14, 112, 56, 0.35);
  background: rgba(14, 112, 56, 0.08);
}

.offer-note.is-unlocked .icon {
  color: var(--wa-dark);
}

/* Delivery quote under the postcode field */
.delivery-quote {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
}

.delivery-quote[data-state="pending"] {
  color: var(--muted);
}

.delivery-quote[data-state="free"] {
  background: rgba(14, 112, 56, 0.1);
  color: var(--wa-dark);
}

.delivery-quote[data-state="error"] {
  background: rgba(229, 184, 96, 0.18);
}

[data-field="postcode"] .field__hint {
  margin-top: 6px;
  text-align: left;
}

.totals small {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--muted);
}

.totals__free {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wa-dark);
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.btn--grow {
  flex: 1;
}

/* ---------------- Checkout form ---------------- */

.checkout-form {
  display: grid;
  gap: 16px;
}

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f0;
  color: var(--error);
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seg-option {
  position: relative;
  cursor: pointer;
}

.seg-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.seg-option__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-spring);
}

.seg-option__box > .icon {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.seg-option__text {
  display: grid;
  line-height: 1.25;
}

.seg-option__text strong {
  font-weight: 600;
  color: var(--ink);
}

.seg-option__text small {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.seg-option:hover .seg-option__box {
  border-color: rgba(212, 162, 69, 0.7);
}

.seg-option input:checked + .seg-option__box {
  border-color: var(--gold-500);
  background: var(--cream-100);
  box-shadow: 0 0 0 3px rgba(212, 162, 69, 0.22);
  transform: translateY(-1px);
}

.seg-option input:checked + .seg-option__box > .icon {
  color: var(--gold-700);
}

.seg-option input:focus-visible + .seg-option__box {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field.has-error .seg-option__box {
  border-color: var(--error);
}

.remember-details {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: -4px 0 14px;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}

.remember-details input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--navy-700);
  cursor: pointer;
}

.order-summary {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px dashed var(--cream-300);
}

.order-summary h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-700);
  margin-bottom: 8px;
}

.order-summary ul {
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: var(--fs-sm);
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-summary li span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn--wa.is-loading {
  pointer-events: none;
}

.btn--wa.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-shaking {
  animation: shake 0.45s;
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Sent view */
.sent {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 4px;
  text-align: center;
}

.sent__badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1b9a51, var(--wa));
  box-shadow: 0 0 0 6px var(--cream-50), 0 0 0 7.5px var(--gold-500), 0 20px 40px -16px rgba(18, 140, 74, 0.9);
  animation: control-in 0.5s var(--ease-spring);
}

.sent__badge .icon {
  width: 44px;
  height: 44px;
}

.sent h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
}

.sent h3:focus {
  outline: none;
}

.sent p {
  color: var(--muted);
}

.sent__steps {
  display: grid;
  gap: 8px;
  margin: 6px 0;
  padding: 16px 18px 16px 36px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(212, 162, 69, 0.3);
  text-align: left;
}

.sent__note {
  font-size: var(--fs-sm);
}

.sent__note a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------------- Toasts ---------------- */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px);
  z-index: 1100;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--radius);
  color: var(--cream-50);
  background: rgba(11, 29, 68, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 184, 96, 0.45);
  box-shadow: var(--shadow-2);
  font-weight: 500;
  font-size: 0.92rem;
  --focus: var(--gold-300);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
  pointer-events: auto;
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast__msg {
  flex: 1;
}

.toast--error {
  background: rgba(140, 24, 20, 0.95);
}

/* Undo bar: top of the basket, stays until the basket changes again */
.cart-undo {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--cream-50);
  box-shadow: var(--shadow-2);
  animation: line-in 0.3s var(--ease-out);
  --focus: var(--gold-300);
}

.cart-undo__msg {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.cart-undo__btn {
  flex: none;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.875rem;
}

html.is-locked .toast-region {
  top: max(16px, env(safe-area-inset-top));
  bottom: auto;
}

/* ---------------- Touch screens: 44 pt minimum hit targets ---------------- */

@media (pointer: coarse) {
  .btn-add,
  .btn-ask,
  .qty-control,
  .chip,
  .dish__option select,
  .btn--sm {
    min-height: 44px;
  }

  .stepper {
    padding: 2px;
  }

  .stepper__btn,
  .stepper--sm .stepper__btn,
  .stepper--xs .stepper__btn {
    width: 44px;
    height: 44px;
  }

  .menu-search__clear {
    width: 44px;
    height: 44px;
  }

  .menu-search__clear {
    right: 1px;
  }

  .cart-line {
    padding-right: 52px;
  }

  .cart-line__remove {
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
  }

  .menu-toolbar {
    padding-block: 10px;
    gap: 8px;
  }
}

/* ---------------- Reduce Transparency ---------------- */

@media (prefers-reduced-transparency: reduce) {
  .menu-toolbar,
  .toast,
  .cart-scrim {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .menu-toolbar {
    background: var(--cream-50);
  }

  .toast {
    background: var(--navy-900);
  }

  .toast--error {
    background: #8c1814;
  }
}
