.catalog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lang-switch {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
}

.table-badge {
  background: var(--turquoise-dim);
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.table-badge:hover {
  transform: translateY(-1px);
}

.table-badge--missing {
  border-color: #ff9d6b;
  color: #ffb38a;
  background: rgba(255, 157, 107, 0.12);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 157, 107, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 157, 107, 0); }
}

.hero {
  position: relative;
  margin: 0 0.75rem 1rem;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(6, 26, 48, 0.82), rgba(10, 37, 64, 0.55) 55%, rgba(0, 183, 255, 0.18)),
    url('../img/beach-bg.svg') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.hero--luxury {
  background:
    linear-gradient(125deg, rgba(6, 26, 48, 0.86), rgba(10, 37, 64, 0.6) 55%, rgba(212, 175, 55, 0.16)),
    image-set(
      url('../img/beach-sunset-hero-960.webp') 1x,
      url('../img/beach-sunset-hero-1920.webp') 2x
    ) center 62%/cover no-repeat;
}

@supports not (background: image-set(url('a.webp') 1x)) {
  .hero--luxury {
    background:
      linear-gradient(125deg, rgba(6, 26, 48, 0.86), rgba(10, 37, 64, 0.6) 55%, rgba(212, 175, 55, 0.16)),
      url('../img/beach-sunset-hero-960.jpg') center 62%/cover no-repeat;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 26, 48, 0.55), transparent 55%);
  pointer-events: none;
}

.hero__title,
.hero__subtitle {
  position: relative;
}

.hero__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.94;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.demo-banner {
  margin: 0 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.55);
  color: #ffe08a;
  font-size: 0.88rem;
}

.error-box {
  max-width: 480px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.category-nav {
  position: sticky;
  top: 78px;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: var(--ivory);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.category-chip.is-active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: var(--shadow-gold);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 0.75rem 130px;
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

.product-card {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--motion-base) var(--ease-luxury),
    box-shadow var(--motion-base) var(--ease-luxury),
    border-color var(--motion-base) ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-card:hover .product-card__image,
.product-card:focus-within .product-card__image {
  transform: scale(1.06);
}

.product-card:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.2) center/cover;
  overflow: hidden;
}

.product-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-luxury), opacity var(--motion-base) ease;
}

.product-card__image[data-loaded="false"] {
  opacity: 0;
}

.product-card__image[data-loaded="true"] {
  opacity: 1;
}

.product-card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(192, 57, 43, 0.92);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card__allergen {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd166;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
}

.product-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.product-card__desc {
  font-size: 0.9rem;
  opacity: 0.82;
  margin: 0 0 0.75rem;
  flex: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--turquoise);
}

.product-card__add {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), #00d4aa);
  color: var(--navy);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

.product-card--unavailable {
  opacity: 0.55;
}

.product-card--unavailable .product-card__add {
  display: none;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 37, 64, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 200;
}

.bottom-bar .btn {
  flex: 1;
}

.cart-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 200;
  width: auto;
  min-width: auto;
  max-width: 10rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0.96;
  transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.cart-fab:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.customer-actions--top {
  padding: 0 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.split-person-block {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.split-person-block:last-child {
  border-bottom: none;
}

.bill-summary {
  margin: 0.75rem 0 1rem;
}

.bill-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.bill-total,
.split-person-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  text-align: right;
  color: var(--turquoise);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem;
  animation: slideUp 0.25s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    border-radius: var(--radius);
  }
}

.modal-overlay--cart {
  justify-content: flex-end;
  align-items: stretch;
}

@media (min-width: 640px) {
  .modal-overlay--cart {
    align-items: stretch;
  }
}

.modal-sheet--cart {
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  max-width: min(420px, 100vw);
  max-height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  animation: slideLeft 0.25s ease;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  margin: 0.5rem 0 1rem;
}

.cart-drawer__total {
  font-weight: 700;
  text-align: right;
  color: var(--turquoise);
  margin: 0.5rem 0 0;
}

@media (min-width: 640px) {
  .modal-sheet--cart {
    min-height: 100vh;
    border-radius: 0;
  }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  margin: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.addon-pill input {
  accent-color: var(--turquoise);
}

.addon-pill.is-selected {
  border-color: var(--turquoise);
  background: var(--turquoise-dim);
}

.field-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.field-input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.segmented {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.segmented__btn {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  cursor: pointer;
  font-weight: 600;
}

.segmented__btn.is-active {
  border-color: var(--turquoise);
  background: var(--turquoise-dim);
  color: var(--turquoise);
}

.split-detail {
  margin-bottom: 0.75rem;
}

.split-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.split-person-input {
  width: 80px;
  margin: 0;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cart-actions .btn {
  flex: 1;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.qty-stepper__value {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
}

.table-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

@media (min-width: 480px) {
  .table-select-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.table-select-btn {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  cursor: pointer;
  font-weight: 700;
}

.table-select-btn.is-active,
.table-select-btn.is-selected {
  border-color: var(--turquoise);
  background: var(--turquoise-dim);
  color: var(--turquoise);
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-actions .btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 150px;
}
