:root {
  --premium-gold: #f2c94c;
  --premium-gold-soft: #ffe892;
  --premium-glow: rgba(242, 201, 76, 0.17);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 201, 76, 0.07), transparent 22rem),
    radial-gradient(circle at 95% 20%, rgba(175, 57, 16, 0.11), transparent 28rem),
    #070706;
  padding-bottom: 170px;
}

.order-header {
  height: 66px;
  grid-template-columns: 42px 1fr 48px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.38);
}

.order-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.order-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.order-brand span {
  min-width: 0;
}

.order-brand strong {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.order-brand small {
  white-space: nowrap;
  font-size: 7px;
}

.header-cart {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #11110f;
  color: var(--white);
  cursor: pointer;
}

.header-cart b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--premium-gold);
  color: #090806;
  font-size: 10px;
}

.order-hero {
  padding: 40px 0 22px;
}

.order-hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 10vw, 88px);
}

.order-hero > p:last-of-type {
  margin-bottom: 10px;
}

.service-pills {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--premium-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-pills i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--premium-gold);
}

.search-field {
  max-width: 720px;
  margin-top: 22px;
  height: 58px;
  border-color: rgba(242, 201, 76, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 14px 35px rgba(0, 0, 0, 0.2);
}

.search-field:focus-within {
  border-color: var(--premium-gold-soft);
  box-shadow: 0 0 0 3px var(--premium-glow);
}

#clear-search {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
}

.category-nav {
  top: 66px;
  gap: 9px;
  padding-block: 11px;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
}

.category-nav button {
  min-height: 42px;
  padding-inline: 16px;
  transition: 160ms ease;
}

.category-nav button.active {
  border-color: var(--premium-gold);
  background: linear-gradient(135deg, var(--premium-gold-soft), #dca800);
  color: #080704;
  font-weight: 800;
  box-shadow: 0 7px 20px var(--premium-glow);
}

.results-status {
  margin-top: 16px;
}

.menu-category {
  padding-top: 42px;
}

.category-heading {
  margin-bottom: 11px;
}

.category-heading h2 {
  font-size: clamp(36px, 6vw, 54px);
}

.product-grid {
  gap: 9px;
}

.product-card {
  position: relative;
  min-height: 0;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: rgba(242, 201, 76, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.product-card h3 {
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.product-card .description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.from-price {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.from-price strong {
  color: var(--premium-gold);
  font-size: 15px;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 6px;
  margin: 13px 0;
}

.option-chip span {
  min-height: 48px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
}

.option-chip input:checked + span {
  box-shadow: inset 0 0 0 1px var(--premium-gold);
}

.product-actions {
  gap: 8px;
}

.quantity-picker {
  flex: none;
  height: 44px;
}

.quantity-picker button {
  width: 39px;
  height: 42px;
}

.add-button {
  flex: 1;
  min-width: 0;
  padding-inline: 12px;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 120ms ease, filter 120ms ease;
}

.add-button:active {
  transform: scale(0.97);
}

.is-unavailable {
  opacity: 0.58;
  border-style: dashed;
}

.is-unavailable .quantity-picker {
  visibility: hidden;
}

.added-feedback {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 3;
  padding: 11px;
  border: 1px solid rgba(49, 220, 119, 0.35);
  border-radius: 11px;
  background: #102919;
  color: #7ff3a9;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.just-added .added-feedback {
  opacity: 1;
  transform: none;
}

.empty-state {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state > span {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
  filter: grayscale(1);
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 7px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
}

.sticky-cart {
  display: none;
  min-height: 64px;
  bottom: 72px;
  border-radius: 18px;
  padding-inline: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: cartEnter 220ms ease both;
}

.sticky-cart.has-items {
  display: flex;
}

.sticky-cart span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-cart strong {
  max-width: 130px;
  text-align: right;
}

@keyframes cartEnter {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

.cart-drawer {
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.62);
}

.cart-item {
  align-items: center;
}

.cart-controls button {
  min-width: 38px;
  min-height: 38px;
}

.remove-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.order-totals {
  margin: 18px 0 0;
  border-block: 1px solid var(--line);
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
}

.grand-total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

.grand-total strong {
  color: var(--premium-gold);
  font-size: 29px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 7px;
}

.form-section-title > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--premium-gold);
  font-size: 11px;
}

.form-section-title h3,
.form-section-title p {
  margin: 0;
}

.form-section-title h3 {
  font-size: 15px;
}

.form-section-title p,
.field-help {
  color: var(--muted);
  font-size: 10px;
}

.field-help {
  margin: -5px 0 3px;
}

.radio-card span {
  min-height: 53px;
  text-transform: uppercase;
  font-weight: 800;
}

#delivery-field:not([hidden]) {
  display: grid;
  gap: 8px;
  animation: revealField 180ms ease both;
}

@keyframes revealField {
  from { opacity: 0; transform: translateY(-7px); }
}

.send-button {
  box-shadow: 0 12px 30px rgba(34, 201, 104, 0.18);
}

.confirm-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  opacity: 0;
  visibility: hidden;
  transition: 180ms ease;
}

.bottom-nav {
  width: min(620px, calc(100% - 12px));
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.bottom-nav button span,
.bottom-nav button small {
  display: block;
}

.bottom-nav button span {
  color: var(--gold);
  font-size: 18px;
}

.bottom-nav button small {
  font-size: 10px;
}

.confirm-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.confirm-sheet {
  position: fixed;
  z-index: 81;
  left: 50%;
  bottom: 0;
  width: min(470px, 100%);
  padding: 30px 22px max(28px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(160deg, #1a1915, #0a0a09);
  text-align: center;
  transform: translate(-50%, 105%);
  transition: 250ms ease;
}

.confirm-sheet.open {
  transform: translate(-50%, 0);
}

.confirm-check {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--premium-gold);
  color: #080705;
  font-size: 26px;
}

.confirm-sheet h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
}

#confirm-total {
  display: block;
  color: var(--premium-gold);
  font-size: 26px;
}

.confirm-sheet .send-button,
.continue-button {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border-radius: 13px;
  cursor: pointer;
}

.continue-button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #10100e;
  color: var(--white);
}

@media (max-width: 650px) {
  .cart-drawer {
    top: auto;
    width: 100%;
    height: min(92dvh, 820px);
    padding: 22px 18px 90px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    transform: translateY(105%);
  }

  .cart-drawer.open {
    transform: none;
  }

  .drawer-heading::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-50%);
  }
}

@media (max-width: 430px) {
  .order-header {
    grid-template-columns: 40px 1fr 44px;
    padding-inline: 10px;
  }

  .order-brand img {
    width: 34px;
    height: 34px;
  }

  .order-hero {
    padding-top: 34px;
  }

  .order-hero h1 {
    font-size: 53px;
  }

  .product-card {
    padding: 15px;
  }

  .option-list {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  }
}

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

  .sticky-cart.has-items {
    bottom: 22px;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
