/* Burger & More — Dedicated Meal Details Page Stylesheet
   Modern 2-column food layout: High-res imagery & Nutrition specs (Right/Top),
   Customization & Modifiers (Left/Bottom), Sticky Action Bar & Sliding Cart Drawer. */

/* ---- Breadcrumbs ---- */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-muted, #64748b);
  font-size: 0.88rem;
  margin-block: 16px 20px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--color-primary, #d9381e);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.16s ease;
}
.crumbs a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ---- Main 2-Column Food Layout ---- */
.meal-page-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

/* In RTL: Right Column (Desktop) = Media Col (Column 1), Left Column (Desktop) = Details Col (Column 2) */
[dir="rtl"] .meal-page-layout {
  grid-template-columns: 1.15fr 1.25fr;
}
[dir="ltr"] .meal-page-layout {
  grid-template-columns: 1.25fr 1.15fr;
}

/* Mobile: Stack Top (Media) to Bottom (Customizer) */
@media (max-width: 940px) {
  .meal-page-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   Right Column (Desktop) / Top (Mobile): Large Food Imagery & Nutrition Specs
   ========================================================================== */
.meal-media-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meal-media-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Main Food Image Container */
.meal-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  border-radius: 22px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.meal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.meal-img-wrap:hover img {
  transform: scale(1.05);
}

.meal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.meal-img-badges {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.meal-badge-off {
  background: linear-gradient(135deg, #d9381e, #ef4444);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(217, 56, 30, 0.35);
}

/* Secondary Thumbnails Row */
.meal-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.meal-thumb-btn {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.meal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meal-thumb-btn.active {
  border-color: var(--color-primary, #d9381e);
  box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.2);
  transform: translateY(-2px);
}

/* ---- Nutrition & Prep Specs Card ---- */
.nutrition-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.nutrition-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
}

.nutrition-title-icon {
  font-size: 1.25rem;
}

.nutrition-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .nutrition-tags-grid {
    grid-template-columns: 1fr;
  }
}

.nutr-tag-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
}
.nutr-tag-pill:hover {
  transform: translateY(-1px);
}

.nutr-tag-pill .tag-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.nutr-tag-pill .tag-info {
  display: flex;
  flex-direction: column;
}

.nutr-tag-pill .tag-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.nutr-tag-pill strong {
  font-size: 0.94rem;
  color: #1e293b;
  font-weight: 800;
}

/* Specific Nutrition Accents */
.nutr-prep {
  background: #fefce8;
  border-color: #fef08a;
}
.nutr-prep strong {
  color: #854d0e;
}

.nutr-cal {
  background: #fff1f2;
  border-color: #fecdd3;
}
.nutr-cal strong {
  color: #be123c;
}

.nutr-spicy {
  background: #fff7ed;
  border-color: #fed7aa;
}
.nutr-spicy strong {
  color: #c2410c;
}

.nutr-veg {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.nutr-veg strong {
  color: #15803d;
}

/* Allergens Notice */
.allergens-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.5;
}

.allergens-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.allergens-body strong {
  font-weight: 800;
  margin-inline-end: 4px;
}

/* Food Guarantee Badges */
.food-guarantee-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .food-guarantee-box {
    grid-template-columns: 1fr;
  }
}

.fg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.fg-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fg-text {
  display: flex;
  flex-direction: column;
}

.fg-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
}

.fg-text span {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   Left Column (Desktop) / Bottom (Mobile): Meal Customizer & Modifiers
   ========================================================================== */
.meal-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Meal Header Overview Card */
.meal-info-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.meal-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.meal-cat-pill {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary, #d9381e);
  background: #fff1f0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 56, 30, 0.15);
}

.meal-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.stars-gold {
  color: #f59e0b;
  letter-spacing: 1px;
}

.meal-title-heading {
  font-size: 1.95rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.meal-subtitle-heading {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 16px;
}

.meal-price-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 16px;
}

.meal-price-badge-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.meal-price-caption {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.meal-main-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary, #d9381e);
  letter-spacing: -0.5px;
}

.meal-strike-price {
  font-size: 1.15rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.meal-savings-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 999px;
}

.meal-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.3);
}

.meal-desc-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

/* ==========================================================================
   Dynamic Modifier Groups (Sizes, Buns, Toppings, Sauces)
   ========================================================================== */
.modifiers-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modifiers-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
}

.meal-mod-group {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.meal-mod-group.has-error {
  border-color: #ef4444;
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.meal-group-error {
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 8px;
}

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

.meal-mod-title-wrap {
  display: flex;
  flex-direction: column;
}

.meal-mod-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.meal-mod-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.meal-badge-req {
  font-size: 0.74rem;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.meal-badge-opt {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Options Grid */
.meal-mod-grid {
  display: grid;
  gap: 9px;
}

.single-select-grid {
  grid-template-columns: 1fr;
}

.multi-select-grid {
  grid-template-columns: 1fr;
}

/* Option Card (Radio or Checkbox) */
.meal-opt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.meal-opt-card:hover {
  border-color: #cbd5e1;
  background: #fdfdfd;
  transform: translateY(-1px);
}

.meal-opt-input {
  display: none;
}

.meal-opt-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Option Marker */
.meal-opt-marker {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.18s ease;
}

.opt-radio-card .meal-opt-marker {
  border-radius: 50%;
}

.opt-check-card .meal-opt-marker {
  border-radius: 6px;
}

/* Active Marker State */
.meal-opt-input:checked + .meal-opt-content .meal-opt-marker {
  border-color: var(--color-primary, #d9381e);
  background: var(--color-primary, #d9381e);
}

.opt-radio-card .meal-opt-input:checked + .meal-opt-content .meal-opt-marker::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.opt-check-card .meal-opt-input:checked + .meal-opt-content .meal-opt-marker::after {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

/* Active Card State */
.meal-opt-card:has(.meal-opt-input:checked) {
  border-color: var(--color-primary, #d9381e);
  background: #fff8f7;
  box-shadow: 0 2px 10px rgba(217, 56, 30, 0.08);
}

.meal-opt-details {
  display: flex;
  flex-direction: column;
}

.meal-opt-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e293b;
}

.meal-opt-cal {
  font-size: 0.76rem;
  color: #64748b;
}

.meal-opt-price-pill {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary, #d9381e);
}

.meal-free-pill {
  color: #059669;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   Kitchen Special Instructions
   ========================================================================== */
.kitchen-instructions-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

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

.ki-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ki-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.ki-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.ki-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 4px 0 0 0;
}

.kitchen-notes-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  outline: none;
  background: #ffffff;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.kitchen-notes-input:focus {
  border-color: var(--color-primary, #d9381e);
  box-shadow: 0 0 0 4px rgba(217, 56, 30, 0.12);
}

/* ==========================================================================
   Sticky Action Bar (Stepper + Dynamic Total Button)
   Docked neatly at bottom of details container with z-index: 40 (below drawer/modals)
   ========================================================================== */
.meal-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  padding: 12px 18px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .meal-sticky-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    border-radius: 20px 20px 0 0;
    margin-inline: -16px;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  }
}

.msb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.msb-qty-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msb-qty-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 480px) {
  .msb-qty-label {
    display: none;
  }
}

.msb-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.msb-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}

.msb-qty-btn:hover {
  background: #f8fafc;
  color: var(--color-primary, #d9381e);
  transform: scale(1.05);
}

.msb-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.msb-submit-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d9381e, #ef4444);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 20px rgba(217, 56, 30, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.msb-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 56, 30, 0.45);
}

.msb-submit-btn:active {
  transform: translateY(0);
}

.msb-btn-divider {
  opacity: 0.6;
}

.msb-btn-price {
  font-weight: 900;
  letter-spacing: 0.3px;
}

.btn-added-celebrate {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
  transform: scale(1.02);
}

/* ==========================================================================
   Drawer Styling & "Back to Menu" Secondary Action
   ========================================================================== */
.drawer-back-menu-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary, #d9381e);
  background: transparent;
  border: 1.5px solid rgba(217, 56, 30, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-back-menu-btn:hover {
  background: #fff5f4;
  border-color: var(--color-primary, #d9381e);
}

.drawer-checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
}

/* Modifier Pills in Cart Items */
.c-mods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.c-mod-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.c-item-notes {
  display: block;
  font-size: 0.76rem;
  color: #854d0e;
  background: #fefce8;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid #fef08a;
}

/* ==========================================================================
   Customer Reviews & Related Items
   ========================================================================== */
.reviews-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

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

.reviews-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-header-title h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.reviews-total-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
}

.reviews-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 820px) {
  .reviews-overview-grid {
    grid-template-columns: 1fr;
  }
}

.review-stats-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.overall-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  padding-inline-end: 20px;
  border-inline-end: 1px solid var(--color-border, #e2e8f0);
}

.big-rating {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary, #d9381e);
  margin-bottom: 6px;
}

.small-text {
  font-size: 0.82rem;
  margin-top: 6px;
  color: #64748b;
}

.star-distribution {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.star-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--color-text, #1e293b);
}

.star-dist-label {
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: #d9381e;
}

.dist-bar-bg {
  flex: 1;
  height: 9px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.star-dist-count {
  min-width: 28px;
  text-align: end;
  color: #64748b;
  font-size: 0.82rem;
}

.review-form-card {
  padding: 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.review-form-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 800;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-form .form-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 6px;
}

.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-picker-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-picker-btn.active,
.star-picker-btn.hover {
  color: #f59e0b;
}

.star-picker-btn:hover {
  transform: scale(1.15);
}

.rating-feedback-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #d9381e;
  margin-inline-start: 10px;
}

.form-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: #d9381e;
  box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.12);
}

.review-form-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.review-form-msg.error {
  background: #fee2e2;
  color: #dc2626;
}

.review-form-msg.success {
  background: #d1fae5;
  color: #065f46;
}

.reviews-list-container {
  margin-top: 24px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 18px;
}

.review-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fee2e2;
  color: #d9381e;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
}

.reviewer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviewer-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 6px;
}

.verified-buyer-badge svg {
  width: 12px;
  height: 12px;
}

.review-date {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.review-comment-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

.reviews-empty {
  text-align: center;
  padding: 36px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.empty-stars {
  color: #f59e0b;
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.reviews-empty p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* Related Meals Section */
.related-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.related-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.rel-card {
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.rel-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
}

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

.rel-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rel-info h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.rel-info strong {
  color: var(--color-primary, #d9381e);
  font-size: 1.05rem;
  font-weight: 900;
}

/* ==========================================================================
   Eliminate Dual Floating Bars: Suppress floating cart pill bar on product page
   ========================================================================== */
#floatingOrderBar,
#floatingCartBar,
.floating-order-bar {
  display: none !important;
}

/* Ensure cart drawer and overlay are strictly above sticky bar (z-index: 900+) */
.drawer-overlay {
  z-index: 900 !important;
}

#cartDrawer,
#drawer,
.drawer {
  z-index: 910 !important;
}

/* Cart Item Image in Drawer */
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #f1f5f9;
  flex-shrink: 0;
}

