/* ============================================================
   GRILL & GREEN — REUSABLE COMPONENTS
   Buttons · Cards · Chips · Badges · Toast · Trust strip
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  transition: background-color var(--t-base), color var(--t-base),
              border-color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}

/* Primary: Midnight Botanical → Ember on hover */
.btn-primary {
  background-color: var(--ink-2);
  color: #fff;
  border: 1.5px solid var(--ink-2);
}

.btn-primary:hover {
  background-color: var(--ember);
  border-color: var(--ember);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
  }
}

/* Secondary: outlined ink-2 → ember on hover */
.btn-secondary {
  background-color: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--ink-2);
}

.btn-secondary:hover {
  background-color: var(--field);
  color: var(--ember);
  border-color: var(--ember);
}

/* Ghost: white (on dark sections) → ember hover */
.btn-ghost {
  background-color: #fff;
  color: var(--ink-2);
  border: 1.5px solid #fff;
}

.btn-ghost:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* Small variant */
.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
  min-height: 36px;
}

/* ============================================================
   MENU ITEM CARD
   ============================================================ */

.menu-card {
  background: var(--linen);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-rest);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-card {
    transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  }
}

.menu-card:hover {
  box-shadow: var(--sh-hover);
  transform: translateY(-2px);
  border-color: var(--grove);
}

.menu-card.unavailable {
  cursor: not-allowed;
}

.menu-card.unavailable:hover {
  box-shadow: var(--sh-rest);
  transform: none;
  border-color: var(--stone);
}

/* Image area */
.menu-card__img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--field-dk);
  border-radius: var(--r-card) var(--r-card) 0 0;
}

.menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-card__img {
    transition: transform 0.35s ease;
  }

  .menu-card:hover:not(.unavailable) .menu-card__img {
    transform: scale(1.04);
  }
}

/* Placeholder (no image) */
.menu-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

/* Unavailable overlay */
.menu-card.unavailable .menu-card__img,
.menu-card.unavailable .menu-card__placeholder {
  filter: grayscale(55%);
}

/* Card body */
.menu-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.menu-card__name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.menu-card__name {
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.menu-card__price {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-card__desc {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--dust);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sizing callout (smoothies, coffee, acai) */
.menu-card__sizes {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--dust);
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid var(--stone);
  line-height: 1.5;
}

.menu-card__sizes strong {
  color: var(--ember);
  font-weight: 600;
}

/* Tags row */
.menu-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

/* ============================================================
   BADGE — on image area (top-left or top-right)
   ============================================================ */

.badge {
  position: absolute;
  font-family: var(--ff-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  line-height: 1.4;
  z-index: var(--z-above);
}

.badge--special {
  top: 8px;
  left: 8px;
  background: var(--ember);
  color: #fff;
}

.badge--new {
  top: 8px;
  right: 8px;
  background: var(--ink-2);
  color: #fff;
}

.badge--unavailable {
  top: 8px;
  left: 8px;
  background: var(--stone);
  color: #444;
}

/* ============================================================
   DIETARY CHIP
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  min-height: 20px;
  white-space: nowrap;
}

.chip--dietary {
  background: var(--grove-lt);
  color: var(--ink-3);
}

.chip--overflow {
  background: var(--field-dk);
  color: var(--dust);
  border: 1px solid var(--stone);
}

/* ============================================================
   REWARDS TOAST
   ============================================================ */

.rewards-toast {
  width: 100%;
  background: var(--ember-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 36px;
  padding: 6px 48px;
  z-index: var(--z-toast);
}

.rewards-toast__text {
  font-family: var(--ff-body);
  font-size: 12px;
  color: #5A2510;
  text-align: center;
  line-height: 1.4;
}

.rewards-toast__text a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rewards-toast__dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  color: #7A2810;
  cursor: pointer;
  transition: background var(--t-fast);
}

.rewards-toast__dismiss:hover {
  background: rgba(201, 77, 32, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .rewards-toast {
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  .rewards-toast.dismissing {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }
}

/* ============================================================
   TRUST STRIP (Wellness signals)
   ============================================================ */

.trust-strip {
  padding: 36px 0;
  background: var(--linen);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.trust-strip__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item__icon {
  width: 24px;
  height: 24px;
  color: var(--grove);
  flex-shrink: 0;
}

.trust-item__label {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ============================================================
   WAVE DIVIDER
   ============================================================ */

.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   DARK CARD (Drinks band)
   ============================================================ */

.dark-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
  padding: 20px 18px;
}

.dark-card__name {
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dark-card__price {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ember);
  font-weight: 500;
  margin-bottom: 10px;
}

.dark-card__desc {
  font-family: var(--ff-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   STAFF CARD
   ============================================================ */

.staff-card {
  background: var(--linen);
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 28px 24px;
  box-shadow: var(--sh-rest);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .staff-card {
    transition: transform var(--t-base), box-shadow var(--t-base);
  }

  .staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-hover);
  }
}

.staff-card__quote {
  font-family: var(--ff-body);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
  border-left: 3px solid var(--ember);
  padding-left: 16px;
  flex: 1;
}

.staff-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grove);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 18px;
  font-style: italic;
  color: #fff;
  flex-shrink: 0;
}

.staff-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-card__name {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.staff-card__role {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--dust);
}

.staff-card__fave {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--ember);
  font-weight: 500;
}

/* ============================================================
   GROVE BUTTON (rewards CTA)
   ============================================================ */

.btn-grove {
  background: var(--grove);
  color: #fff;
  border: 1.5px solid var(--grove);
  font-family: var(--ff-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-grove {
    transition: background-color var(--t-base), border-color var(--t-base);
  }
}

.btn-grove:hover {
  background: var(--ink-3);
  border-color: var(--ink-3);
}

/* ============================================================
   REWARDS BAR (top strip)
   ============================================================ */

.rewards-bar {
  background: var(--field);
  padding: 8px clamp(16px, 4vw, 60px);
  border-bottom: 1px solid var(--stone);
  z-index: var(--z-toast);
}

.rewards-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.rewards-bar__leaf {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--grove);
}

.rewards-bar__text {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
}

.rewards-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(46, 66, 38, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ember);
  font-family: var(--ff-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.rewards-bar__cta:hover {
  background: #fff;
  border-color: rgba(201, 77, 32, 0.32);
  color: var(--ink-2);
}

.rewards-bar__cta:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .rewards-bar__text {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .rewards-bar__inner {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .rewards-bar__cta {
    min-height: 28px;
    padding-inline: 12px;
  }
}

/* ============================================================
   ORDER BUTTONS
   ============================================================ */

.platform-buttons-frame {
  background: var(--linen);
  border: 1px solid var(--stone);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: var(--sh-rest);
}

.hero-order-label {
  display: block;
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 10px;
}

.platform-buttons-frame .hero__order-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.platform-buttons-frame .order-btn--hero {
  min-height: 64px;
  padding: 10px;
  gap: 8px;
}

.platform-buttons-frame .order-btn--hero .order-btn__icon-wrap {
  width: 34px;
  height: 34px;
}

.platform-buttons-frame .order-btn--hero .order-btn__icon {
  width: 18px;
  height: 18px;
}

.platform-buttons-frame .order-btn--hero .order-btn__title {
  font-size: 13px;
}

.order-platforms,
.order-cta__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px;
  font-family: var(--ff-ui);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .order-btn {
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
  }
}

.order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  filter: brightness(1.05);
}

.order-btn:focus-visible {
  outline: 2px solid var(--grove);
  outline-offset: 2px;
}

.order-btn--toast {
  background: var(--order-toast-bg);
  border: 0.5px solid rgba(255, 255, 255, 0.09);
}

.order-btn--grubhub  { background: var(--order-grubhub); }
.order-btn--doordash { background: var(--order-doordash); }

.order-btn__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.order-btn__icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.order-btn__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.order-btn__label {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
}

.order-btn__title {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.order-btn--lg {
  min-height: 64px;
  padding: 13px;
  border-radius: 8px;
}

.order-btn--lg .order-btn__icon-wrap {
  width: 36px;
  height: 36px;
}

.order-btn--lg .order-btn__icon {
  width: 20px;
  height: 20px;
}

.order-btn--lg .order-btn__label {
  font-size: 10px;
}

.order-btn--lg .order-btn__title {
  font-size: 14px;
}

.order-btn--hero {
  min-height: 72px;
  padding: 13px;
  border-radius: 8px;
}

.order-btn--hero .order-btn__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.order-btn--hero .order-btn__icon {
  width: 22px;
  height: 22px;
}

.order-btn--hero .order-btn__label {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.order-btn--hero .order-btn__title {
  font-size: 14px;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .order-platforms,
  .order-cta__buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .platform-buttons-frame .hero__order-platforms {
    grid-template-columns: 1fr;
  }

  .platform-buttons-frame .order-btn--hero {
    min-height: 64px;
    padding: 13px;
  }

  .order-btn--hero {
    min-height: 64px;
  }
}

/* ============================================================
   ORDER BUTTON WORDMARK - Option B redesign
   Replaces icon-wrap + copy structure with a single SVG logo.
   Logo sizing uses max-height + max-width to maintain aspect
   ratio across all viewport widths.

   Aspect ratios (for reference):
     Toast      3.785:1  (viewBox 17.99 x 4.753)
     DoorDash   8.556:1  (natural 154 x 18 - very wide)
     Grubhub    4.766:1  (viewBox 600 x 125.9)

   At max-height: 20px:
     Toast    -> ~75.7px wide  (stays within any button >= 90px)
     DoorDash -> 154px wide -> constrained by max-width on narrow viewports
     Grubhub  -> ~95.3px wide (stays within any button >= 110px)
   ============================================================ */

.order-btn__wordmark {
  display: block;
  height: auto;
  width: auto;
  max-height: 20px;
  max-width: calc(100% - 20px);
  flex-shrink: 0;
  pointer-events: none;
}

/* Larger variants (--lg and --hero size modifiers) */
.order-btn--lg .order-btn__wordmark,
.order-btn--hero .order-btn__wordmark {
  max-height: 22px;
}

/* Hero platform-buttons-frame: remove gap (no icon beside text now) */
.platform-buttons-frame .order-btn--hero {
  padding: 12px 14px;
  gap: 0;
}

/* DARK SECTION EDGE CASE: Toast (#18140c) on drinks-band (#0e1209)
   These two darks have near-zero contrast. Add a hairline border
   to define the Toast button edge against the dark section.
   DoorDash and Grubhub are unaffected (their brand reds/oranges
   contrast strongly against the deep forest background). */
.drinks-band__actions .order-btn--toast,
.drinks-band__inner .order-btn--toast {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Order CTA band */
.order-cta {
  position: relative;
  overflow: hidden;
  background: var(--ember-lt);
  padding: var(--sp-10) 0;
  text-align: center;
}

.order-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.order-cta__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.4;
}

.order-cta--platform .order-cta__bg::before {
  background-image: url('../assets/images/restaurant/readytoorder3.jpg');
}

.order-cta--menu {
  padding: var(--sp-9) 0;
  min-height: clamp(300px, 34vw, 380px);
  display: flex;
  align-items: center;
}

.order-cta--menu .order-cta__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
}

.order-cta--menu .section-heading {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
  max-width: 100%;
}

.order-cta--menu .order-cta__buttons {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.order-cta--menu .order-cta__bg::before {
  background-image: url('../assets/images/restaurant/readytoorder2.jpg');
}

.order-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(242, 224, 214, 0.32),
    rgba(242, 224, 214, 0.48)
  );
}

.order-cta__content {
  position: relative;
  z-index: 1;
}

.order-cta__content .section-heading,
.order-cta__content .section-intro,
.order-cta__content .eyebrow {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}

.order-cta--platform .order-cta__content .section-intro {
  color: #4A453C;
  font-weight: 400;
}

.order-cta__buttons {
  max-width: 900px;
  margin: 0 auto;
}

.order-cta__note {
  font-family: var(--ff-body);
  font-style: italic;
  color: #7A4030;
  font-size: 13px;
  margin-top: 18px;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */

.testimonial-card {
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--sh-rest);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-card {
    transition: transform var(--t-base), box-shadow var(--t-base);
  }

  .testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-hover);
  }
}

.testimonial-card__stars {
  color: var(--ember);
  font-size: 13px;
  letter-spacing: 3px;
}

.testimonial-card__quote {
  font-family: var(--ff-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grove-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.testimonial-card__meta {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--dust);
  margin-top: 2px;
}

/* ---- Google Review Variant ---- */

.testimonial-card--google {
  cursor: default;
}

.testimonial-card__avatar--google {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.testimonial-card__meta--google {
  display: flex;
  align-items: center;
  gap: 5px;
}

.testimonial-card__meta--google svg {
  flex-shrink: 0;
  position: relative;
  top: 0px;
}

.testimonial-card__meta--google span {
  line-height: 1.3;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   ITEM PREVIEW MODAL (home + menu)
   ============================================================ */

.item-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.item-preview-overlay.open {
  display: flex;
}

.item-preview-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
}

.item-preview-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--field);
  border-radius: var(--r-lg);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1;
}

.item-preview-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-preview-content {
  display: flex;
  flex-direction: column;
}

.item-preview-img-wrap {
  width: 100%;
  height: 240px;
  background: var(--linen);
}

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

.item-preview-metadata {
  padding: 24px;
}

.item-preview-badge {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dust);
  display: block;
  margin-bottom: 8px;
}

.item-preview-name {
  font-family: var(--ff-display);
  font-size: 28px;
  margin-bottom: 4px;
  color: var(--ink-2);
}

.item-preview-price {
  font-family: var(--ff-ui);
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.item-preview-desc {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--dust);
  margin-bottom: 16px;
}

.item-preview-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.item-preview-note {
  font-size: 13px;
  color: var(--ember);
  font-style: italic;
  margin-bottom: 16px;
}

.item-preview-customizations {
  padding: 0 24px 24px;
}

.item-preview-custom-group {
  margin-bottom: 20px;
}

.item-preview-custom-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-ui);
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--ink-2);
}

.item-preview-custom-header span {
  color: var(--dust);
}

.item-preview-custom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-preview-custom-chip {
  background: var(--field-dk);
  border: 1px solid var(--stone);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: var(--ff-ui);
  font-size: 12px;
  color: var(--ink-2);
}

.item-preview-custom-chip .price {
  color: var(--ember);
}

.item-preview-cta-block {
  padding: 24px;
  background: var(--linen);
  border-top: 1px solid var(--stone);
  text-align: center;
}

.item-preview-cta-intro {
  font-family: var(--ff-ui);
  font-size: 14px;
  color: var(--dust);
  margin-bottom: 16px;
}

.item-preview-explore-menu {
  margin: 0 auto 20px;
}

.item-preview-explore-menu[hidden] {
  display: none;
}

.item-preview-cta-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.item-preview-cta-buttons .order-btn {
  min-height: 56px;
  padding: 12px 10px;
  gap: 0;
}

.item-preview-cta-buttons .order-btn__wordmark {
  max-height: 20px;
  max-width: calc(100% - 16px);
}

@media (max-width: 640px) {
  .item-preview-overlay {
    align-items: flex-end;
  }
  .item-preview-backdrop {
    background: rgba(0,0,0,0.35);
  }
  .item-preview-modal {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .item-preview-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--stone);
    border-radius: 2px;
    margin: 12px auto;
  }
}

@media (max-width: 420px) {
  .item-preview-cta-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .item-preview-cta-buttons .order-btn {
    padding: 12px 14px;
  }

  .item-preview-cta-buttons .order-btn__wordmark {
    max-height: 22px;
  }
}
