.order-way {
  /* Title @ 1920: 36px / 46px */
  --order-way-title-size: clamp(1.375rem, 1.875vw, 36px);
  --order-way-title-lh: 1.278; /* 46/36 */
  /* Intro @ 1920: 24px / 36px */
  --order-way-intro-size: clamp(1rem, 1.25vw, 24px);
  --order-way-intro-lh: 1.5; /* 36/24 */
  /* Option card @ 1920: 791 × 428 */
  --order-option-w: clamp(18rem, 41.198vw, 791px);
  --order-option-ratio: 791 / 428;
  /* Icon @ 1920: 53 × 68 */
  --order-option-icon-w: clamp(2.25rem, 2.76vw, 53px);
  --order-option-icon-h: clamp(2.75rem, 3.542vw, 68px);
  /* Icon → title @ 1920: 32px */
  --order-option-icon-mb: clamp(1rem, 1.667vw, 32px);
  /* Title → text @ 1920: 20px */
  --order-option-title-mb: clamp(0.75rem, 1.042vw, 20px);
  /* Option title @ 1920: 36px / 36px */
  --order-option-title-size: clamp(1.25rem, 1.875vw, 36px);
  /* Option text @ 1920: 24px / 36px */
  --order-option-text-size: clamp(1rem, 1.25vw, 24px);
  --order-option-text-lh: 1.5;
  /* Button pad @ 1920: 21 33 16 33 */
  --order-option-btn-pad-y-top: clamp(0.75rem, 1.094vw, 21px);
  --order-option-btn-pad-y-bottom: clamp(0.625rem, 0.833vw, 16px);
  --order-option-btn-pad-x: clamp(1rem, 1.719vw, 33px);
  /* Features @ 1920: 18px / 36px bold */
  --order-way-feature-size: clamp(0.875rem, 0.9375vw, 18px);
  --order-way-feature-lh: 2; /* 36/18 */
  --order-way-cards-gap: clamp(1rem, 1.5vw, 1.5rem);
  background-color: var(--color-cream);
  padding: clamp(3.5rem, 6.5vw, 125px) 0;
}

.order-way .container {
  width: 100%;
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.order-way .container-inner {
  width: 100%;
  max-width: var(--container-inner);
  margin-inline: auto;
}

.order-way__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.order-way__title {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-style: normal;
  font-size: var(--order-way-title-size);
  line-height: var(--order-way-title-lh);
  letter-spacing: 0;
  color: var(--color-dark);
  text-transform: uppercase;
  opacity: 1;
  margin: 0 0 0.75rem;
}

.order-way__rule {
  display: block;
  width: clamp(2.5rem, 2.5vw, 48px);
  height: 3px;
  margin: 0 auto 1rem;
  background-color: var(--color-red);
}

.order-way__intro {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-style: normal;
  font-size: var(--order-way-intro-size);
  line-height: var(--order-way-intro-lh);
  letter-spacing: 0;
  color: var(--color-black);
  opacity: 1;
  margin: 0;
}

.order-way__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--order-option-w)));
  justify-content: center;
  gap: var(--order-way-cards-gap);
  width: 100%;
  max-width: calc(var(--order-option-w) * 2 + var(--order-way-cards-gap));
  margin-inline: auto;
}

.order-option {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: var(--order-option-w);
  aspect-ratio: var(--order-option-ratio);
  height: auto;
  min-height: 0;
  background-color: var(--color-black);
  overflow: hidden;
}

.order-option__media {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.order-option__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.order-option__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  background-color: var(--color-black);
  min-width: 0;
}

.order-option__icon {
  display: block;
  /* Same visual row height so titles line up; width follows each icon’s shape */
  width: auto;
  height: var(--order-option-icon-h);
  max-width: clamp(3.25rem, 4.5vw, 88px);
  margin: 0 auto var(--order-option-icon-mb);
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
}

.order-option__title {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-style: normal;
  font-size: var(--order-option-title-size);
  line-height: 1; /* 36/36 */
  letter-spacing: 0;
  color: var(--color-white);
  text-transform: uppercase;
  opacity: 1;
  margin: 0 0 var(--order-option-title-mb);
}

.order-option__text {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-style: normal;
  font-size: var(--order-option-text-size);
  line-height: var(--order-option-text-lh);
  letter-spacing: 0;
  color: var(--color-white);
  opacity: 1;
  margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
}

.order-option__panel .btn {
  text-align: center;
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-style: normal;
  font-size: clamp(0.875rem, 0.9375vw, 18px);
  line-height: 1.278;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
  min-width: 0;
  padding: var(--order-option-btn-pad-y-top) var(--order-option-btn-pad-x) var(--order-option-btn-pad-y-bottom);
  box-sizing: border-box;
}

.order-way__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  list-style: none;
  margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0;
  padding: 0;
}

.order-way__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Design @1920: ~114px between features (57px pad each side of divider) */
  padding: 0 clamp(1.25rem, 2.97vw, 57px);
  text-align: left;
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-style: normal;
  font-size: var(--order-way-feature-size);
  line-height: var(--order-way-feature-lh);
  letter-spacing: 0;
  color: var(--color-black);
  opacity: 1;
}

.order-way__feature:not(:last-child) {
  border-right: 1px solid var(--color-red);
}

.order-way__feature img {
  display: block;
  width: clamp(1.25rem, 1.35vw, 26px);
  height: clamp(1.25rem, 1.35vw, 26px);
  object-fit: contain;
  flex-shrink: 0;
}

/* ~1440 / mid desktop: keep 2 cards, fill available width */
@media (min-width: 1200px) and (max-width: 1599px) {
  .order-way {
    --order-option-w: min(100%, 42vw);
    --order-way-cards-gap: 1.25rem;
  }

  .order-way__cards {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-option {
    max-width: none;
  }
}

/* Small laptop / ≈1024: keep Pickup + Delivery side by side */
@media (max-width: 1199px) and (min-width: 992px) {
  .order-way {
    --order-way-title-size: 1.625rem;
    --order-way-intro-size: 1.0625rem;
    --order-option-title-size: 1.25rem;
    --order-option-text-size: 0.9375rem;
    --order-option-text-lh: 1.4;
    --order-option-icon-h: 48px;
    --order-option-icon-mb: 1rem;
    --order-option-title-mb: 0.65rem;
    --order-option-btn-pad-y-top: 0.7rem;
    --order-option-btn-pad-y-bottom: 0.55rem;
    --order-option-btn-pad-x: 0.85rem;
    --order-way-cards-gap: 0.75rem;
    --order-way-feature-size: 0.9375rem;
    --order-way-feature-lh: 1.45;
  }

  .order-way__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
    gap: var(--order-way-cards-gap);
  }

  .order-option {
    max-width: none;
    width: 100%;
    aspect-ratio: 791 / 428;
  }

  .order-option__panel {
    padding: 1rem 0.75rem;
  }

  .order-option__panel .btn {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Narrower tablet: stack cards */
@media (max-width: 991px) and (min-width: 768px) {
  .order-way {
    --order-way-title-size: 1.75rem;
    --order-way-intro-size: 1.125rem;
    --order-option-title-size: 1.5rem;
    --order-option-text-size: 1.0625rem;
    --order-option-icon-h: 56px;
    --order-option-icon-mb: 1.25rem;
    --order-option-title-mb: 0.85rem;
    --order-way-feature-size: 1rem;
    --order-way-feature-lh: 1.5;
  }

  .order-way__cards {
    grid-template-columns: minmax(0, 640px);
    max-width: 640px;
  }

  .order-option {
    max-width: none;
    aspect-ratio: 791 / 428;
  }
}

@media (max-width: 767px) {
  .order-way {
    --order-way-title-size: 1.5rem;
    --order-way-intro-size: 1rem;
    --order-option-title-size: 1.375rem;
    --order-option-text-size: 1rem;
    --order-option-icon-w: 40px;
    --order-option-icon-h: 52px;
    --order-option-icon-mb: 1rem;
    --order-way-feature-size: 1rem;
    --order-way-feature-lh: 1.5;
    padding: 2.75rem 0;
  }

  .order-way__cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .order-option {
    grid-template-columns: 1fr;
    max-width: 100%;
    aspect-ratio: auto;
  }

  .order-option__media {
    aspect-ratio: 16 / 10;
  }

  .order-option__panel {
    padding: 2rem 1.5rem;
  }

  .order-way__features {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0;
    padding-inline: 1rem;
  }

  .order-way__feature {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-right: none !important;
  }

  .order-way__feature:not(:last-child) {
    border-bottom: 1px solid var(--color-red);
  }
}

/* iPhone mini / small phones */
@media (max-width: 430px) {
  .order-way__features {
    padding-inline: 1.25rem;
  }

  .order-way__feature {
    padding: 1.15rem 0.5rem;
    gap: 0.65rem;
    font-size: 0.9375rem;
  }
}
