/* Menu page – cart sidebar, product grid, modals (matches index theme) */
.menu-page {
  --dark-bg: #212121;
  --light-grey: #f2f2f2;
  --border-grey: #e0e0e0;
  --text-dark: #212121;
  --text-muted: #6b7280;
  --radius: 12px;
  --header-height: 90px;
  --content-max: 1240px;
  --icon-stroke: 1.8;
}

.menu-page svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}

.menu-page .menu-controls {
  margin-top: 0;
}

/* --- Menu hero --- */
.menu-page .menu-hero {
  position: relative;
  min-height: 410px;
  margin-top: var(--header-height);
  padding: 80px 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #181818 url("../images/Food Images/background-burgers-home-top.jpg") center 48% / cover no-repeat;
}

.menu-page .menu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 16, 16, .94) 0%, rgba(16, 16, 16, .78) 48%, rgba(16, 16, 16, .28) 100%);
}

.menu-page .menu-hero-content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  color: var(--white);
}

.menu-page .menu-eyebrow,
.menu-page .menu-controls-kicker {
  display: block;
  color: var(--primary);
  font-family: "Dancing Script", cursive;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.menu-page .menu-hero h1 {
  max-width: 660px;
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(4.4rem, 6vw, 7rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.menu-page .menu-hero h1 span { color: var(--primary); }

.menu-page .menu-hero-content > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1.65rem;
  line-height: 1.65;
}

.menu-page .menu-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.menu-page .menu-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  font-size: 1.25rem;
  font-weight: 600;
}

.menu-page .menu-hero-points i { color: var(--primary); }

.menu-page nav #cart-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-left: 0.6rem;
  padding: 0 0.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Sidebars & Overlay --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.menu-page .cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-grey);
  background: var(--primary);
  color: white;
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.cart-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-body.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.browse-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  margin-bottom: 12px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--light-grey);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-info strong {
  font-size: 0.95rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: bold;
}

.cart-item-note {
  font-size: 0.72rem;
  color: var(--primary);
  font-style: italic;
  margin-top: 2px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 4px 8px;
}

.qty-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn.qty-remove {
  color: #e53935;
}

.qty-count {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.add-more-items-btn {
  width: 100%;
  background: transparent;
  border: 1.5px dashed var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

.upsell-section {
  margin-bottom: 10px;
}

.upsell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.upsell-title {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
}

.upsell-title svg.icon {
  color: var(--primary);
}

.upsell-nav {
  display: flex;
  gap: 6px;
}

.upsell-nav-btn {
  background: #ffe8da;
  color: var(--primary);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upsell-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.upsell-track::-webkit-scrollbar {
  display: none;
}

.upsell-card {
  flex-shrink: 0;
  width: 100px;
}

.upsell-img-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light-grey);
}

.upsell-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upsell-add-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--primary);
  color: white;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.upsell-price {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 6px;
}

.upsell-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.menu-page .sidebar .cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-grey);
  background: var(--white);
}

.cart-summary {
  background: var(--light-grey);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 5px 0;
  color: var(--text-dark);
}

.summary-row span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-row svg.icon {
  color: var(--primary);
}

.grand-total-row {
  border-top: 1px solid var(--border-grey);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.grand-total-row span:first-child {
  color: var(--text-dark);
}

.menu-page .checkout-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn svg.icon {
  stroke: white;
}

.ready-time-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.ready-time-highlight {
  color: var(--primary);
  font-weight: 700;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: var(--primary);
  color: white;
  padding: 13px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-check {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Nav & Search --- */
.menu-controls {
  position: relative;
  z-index: 10;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  padding: 30px 32px 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 45px rgba(24, 24, 24, .1);
  transform: translateY(-34px);
}

.menu-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.menu-controls-heading h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.15;
}

.menu-controls-heading p {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 1.35rem;
}

.menu-controls-kicker { font-size: 2rem !important; }

.category-nav {
  position: sticky;
  top: var(--header-height);
  background: var(--white);
  z-index: 90;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-nav {
  position: relative;
}

.category-nav ul {
  list-style: none;
  display: flex;
  overflow-x: auto;
  padding: 12px 44px;
  gap: 8px;
  border-bottom: 1px solid var(--border-grey);
  font-size: 0.78rem;
  font-weight: 700;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

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

.category-nav li {
  flex-shrink: 0;
}

.cat-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 36px;
  border: none;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  color: var(--text-dark);
  background: transparent;
}

.cat-nav-arrow svg {
  width: 18px;
  height: 18px;
}

.cat-nav-arrow-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 8px;
  background: linear-gradient(to right, var(--white) 55%, rgba(255, 255, 255, 0));
}

.cat-nav-arrow-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 8px;
  background: linear-gradient(to left, var(--white) 55%, rgba(255, 255, 255, 0));
}

.cat-nav-arrow.hidden {
  display: none;
}

.category-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-dark);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 1.2rem;
  font-weight: 700;
}

.category-nav a:hover {
  color: var(--primary);
}

.category-nav a.active-category {
  background: #ffe8da;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.search-container {
  padding: 22px 0 0;
  display: flex;
  justify-content: center;
}

.search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 5px 5px 5px 18px;
  width: 100%;
  max-width: 500px;
  gap: 10px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(243, 95, 42, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-box:focus-within {
  box-shadow: 0 4px 20px rgba(243, 95, 42, 0.22);
  border-color: var(--primary);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.35rem;
  padding: 8px 4px;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
}

.search-box input::placeholder {
  color: #aaa;
  font-weight: 500;
}

.search-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(243, 95, 42, 0.3);
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* --- Menu Grid Layout --- */
.menu-page main.menu-content {
  padding: 0 32px 56px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.menu-category h2 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 800;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.category-header-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-header h2 {
  margin-bottom: 0;
  font-size: 2.4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.product-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 16px;
  padding: 16px;
  gap: 16px;
  position: relative;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 95, 42, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .11);
}

.product-info {
  flex: 1 1 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h4 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-info p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.price {
  font-weight: 800;
  font-size: 1.6rem;
  margin-top: 10px;
}

.price-discount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-old {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-new {
  color: var(--primary);
}

.badge-discount {
  background: var(--primary);
  color: white;
}

.product-image-container {
  position: relative;
  flex: 0 0 clamp(96px, 38%, 150px);
  width: clamp(96px, 38%, 150px);
  aspect-ratio: 4 / 3;
  align-self: flex-start;
}

.product-img {
  width: 100%;
  height: 100%;
  background: var(--light-grey);
  border-radius: 12px;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
}

.badge-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: #ffeb3b;
  color: #333;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.product-action {
  position: absolute;
  bottom: -10px;
  right: -10px;
}

.product-action .add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}

.product-action .qty-stepper {
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.add-btn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--dark-bg);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* --- Product Detail Modal --- */
.product-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-detail-overlay.active {
  display: flex;
}

.product-detail-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pd-image-side {
  position: relative;
  flex: 0 0 42%;
  background: var(--dark-bg);
  min-height: 320px;
}

.pd-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.pd-name-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 40px 20px 16px;
}

.pd-name-banner h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
}

.pd-content-side {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

.pd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.pd-price {
  font-size: 1.7rem;
  font-weight: 800;
}

.pd-price-old {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.pd-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pd-icon-btn {
  background: var(--primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-grey);
  margin-bottom: 20px;
}

.pd-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-grey);
  margin-top: auto;
}

.pd-qty-stepper {
  flex-shrink: 0;
  padding: 8px 12px;
  gap: 12px;
}

.pd-qty-stepper .qty-count {
  font-size: 1rem;
  min-width: 20px;
}

.pd-add-btn {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pd-add-divider {
  opacity: 0.6;
  font-weight: 400;
}

.pd-variant-picker {
  margin-bottom: 20px;
}

.pd-variant-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.pd-variant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--border-grey);
  border-radius: 10px;
  padding: 10px 14px;
}

.pd-variant-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-variant-row-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.pd-variant-row-price {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pd-variant-row-action {
  flex-shrink: 0;
}

.pd-variant-row-action .add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Checkout Details Modal --- */
.checkout-details-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-details-overlay.active {
  display: flex;
}

.checkout-details-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.checkout-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-grey);
  flex-shrink: 0;
}

.checkout-details-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.checkout-details-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.cd-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-top: 16px;
}

.checkout-details-body > .cd-label:first-child {
  margin-top: 0;
}

.cd-input {
  width: 100%;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.cd-input:focus {
  border-color: var(--primary);
}

.cd-textarea {
  min-height: 80px;
  resize: vertical;
  margin-bottom: 10px;
}

.order-type-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.order-type-btn {
  padding: 11px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border-grey);
  background: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.15s ease;
}

.order-type-btn:hover {
  border-color: var(--primary);
}

.order-type-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.cd-location-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-grey);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-dark);
  width: 100%;
  justify-content: center;
}

.cd-location-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cd-location-status {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cd-location-status.ok {
  color: var(--primary);
  font-weight: 600;
}

.cd-location-status.err {
  color: #d81f26;
  font-weight: 600;
}

.cd-error {
  margin-top: 14px;
  background: #fdecec;
  color: #a8151a;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.checkout-details-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-grey);
  flex-shrink: 0;
}

.checkout-details-footer .checkout-btn {
  width: 100%;
}

@media (max-width: 768px) {
  .checkout-details-overlay,
  .product-detail-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .checkout-details-modal,
  .product-detail-modal {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .product-detail-modal {
    flex-direction: column;
  }

  .pd-image-side {
    flex: 0 0 220px;
    min-height: 220px;
  }

  .pd-content-side {
    padding: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .menu-page .menu-hero { min-height: 360px; padding: 64px 0; }
  .menu-controls { margin-left: 18px; margin-right: 18px; padding: 24px 20px 18px; }
  .menu-controls-heading { align-items: flex-start; flex-direction: column; gap: 6px; }

  .menu-page main.menu-content {
    padding: 24px 20px;
  }

  .search-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .category-nav ul {
    padding: 10px 36px;
  }
}

@media (max-width: 420px) {
  .menu-page .menu-hero { min-height: 330px; padding: 54px 0; }
  .menu-page .menu-hero-overlay { background: rgba(16,16,16,.82); }
  .menu-page .menu-hero h1 { font-size: 4.2rem; }
  .menu-page .menu-hero-content > p { font-size: 1.4rem; }
  .menu-page .menu-hero-points span { font-size: 1.1rem; padding: 7px 10px; }
  .menu-controls { margin-left: 10px; margin-right: 10px; border-radius: 14px; }
  .menu-controls-heading h2 { font-size: 2.3rem; }

  .menu-page main.menu-content {
    padding: 18px 14px;
  }

  .search-container {
    padding: 12px 14px;
  }

  .category-nav ul {
    padding: 10px 30px;
    gap: 6px;
  }

  .cat-nav-arrow {
    width: 28px;
  }

  .product-card {
    padding: 12px;
    gap: 10px;
  }

  .product-image-container {
    flex-basis: 34%;
  }
}

/*
 * Menu-only layout guardrails.
 * The home stylesheet contains broad nav/section/product selectors; these
 * scoped rules keep those styles from collapsing the menu page.
 */
.menu-page .menu-hero {
  min-height: 300px;
  padding: 54px 0 70px;
}

.menu-page .menu-controls {
  width: min(calc(100% - 40px), var(--content-max));
  min-height: 0;
  padding: 24px 28px 26px;
  transform: translateY(-40px);
}

.menu-page .menu-controls-heading {
  margin-bottom: 16px;
}

.menu-page .search-container {
  width: 100%;
  padding: 0 0 18px;
}

.menu-page .search-box {
  width: 100%;
  max-width: none;
  min-height: 52px;
  border: 1.5px solid #dedede;
  border-radius: 12px;
  padding: 5px 6px 5px 16px;
  box-shadow: none;
}

.menu-page .search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(243, 95, 42, .1);
}

.menu-page .search-box input {
  display: block;
  min-width: 0;
  height: 40px;
  font-size: 1.5rem;
}

.menu-page .search-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.menu-page nav.category-nav {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  padding: 0;
  display: block;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.menu-page .category-nav ul {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  border: 0;
}

.menu-page .category-nav ul li {
  width: auto;
  margin: 0;
  display: block;
}

.menu-page .category-nav ul li a {
  width: auto;
  padding: 8px 14px;
  display: inline-flex;
  color: var(--dark) !important;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
}

.menu-page .category-nav ul li a::after { display: none; }

.menu-page .category-nav ul li a:hover,
.menu-page .category-nav ul li a.active-category {
  color: var(--white) !important;
  background: var(--primary);
  border-color: var(--primary);
}

.menu-page .cat-nav-arrow { display: none; }

.menu-page main.menu-content {
  width: 100%;
  max-width: var(--content-max);
  padding: 0 20px 64px;
}

.menu-page section.menu-category {
  width: 100%;
  padding: 20px 0 34px;
  margin: 0;
}

.menu-page .category-header {
  margin-bottom: 18px;
}

.menu-page .product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.menu-page .product-card {
  width: 100%;
  min-width: 0;
  min-height: 325px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e7e7e7;
  border-radius: 16px;
}

.menu-page .product-image-container {
  order: -1;
  flex: none;
  width: 100%;
  height: 190px;
  aspect-ratio: auto;
}

.menu-page .product-img {
  border-radius: 0;
  object-fit: cover;
}

.menu-page .product-info {
  width: 100%;
  padding: 16px 18px 18px;
  min-height: 132px;
}

.menu-page .product-info h4 {
  color: var(--dark);
  font-size: 1.7rem;
  line-height: 1.25;
}

.menu-page .product-info p {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 400;
}

.menu-page .product-action {
  right: 14px;
  bottom: -17px;
}

.menu-page .product-action .add-btn {
  width: 38px;
  height: 38px;
}

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

@media (max-width: 600px) {
  .menu-page .menu-hero { min-height: 250px; padding: 42px 0 60px; }
  .menu-page .menu-hero h1 { font-size: 4rem; }
  .menu-page .menu-controls { width: calc(100% - 20px); padding: 20px 16px; }
  .menu-page .menu-controls-heading h2 { font-size: 2.4rem; }
  .menu-page .product-grid { grid-template-columns: 1fr; }
  .menu-page .product-card { min-height: 0; }
  .menu-page .product-image-container { height: 210px; }
}
