/* Mobile cart UX: keep the menu visible and let long orders scroll inside the drawer. */
.empty-menu {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #fff6d7;
  border: 1px dashed #d8bd69;
  border-radius: 16px;
}

/* Product cards: make the choice easier to scan before the customer opens the add-on dialog. */
.product-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.menu-layout,
.product-grid,
.product-card-top,
.product-card-media,
.product-card-body {
  min-width: 0;
}

.product-card-media {
  position: relative;
  aspect-ratio: 1.85;
  overflow: hidden;
  background: #ffe67e;
  border-bottom: 1px solid var(--line);
}

.product-card-media img {
  display: block;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-card-media--fallback img {
  object-position: 50% 22%;
  transform: scale(1.18);
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card:hover .product-card-media--fallback img {
  transform: scale(1.23);
}

.product-image-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1b1a14c7;
  color: #fff;
  font-size: .7rem;
  font-weight: 850;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 19px 19px;
}

.product-card-copy {
  min-width: 0;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.product-label {
  border-radius: 999px;
  padding: 3px 7px;
  color: #fff;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1.25;
}

.product-label--popular { background: var(--red); }
.product-label--recommended { background: var(--green); }
.product-label--spicy { background: #a55b24; }
.product-label--seasonal { background: #6f6a29; }
.product-label--detail { background: #857655; }

.cart-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  margin-top: 9px;
  color: #d8d3c1;
  font-size: .78rem;
}

.cart-scroll-hint {
  color: var(--yellow);
  font-weight: 800;
  text-align: right;
}

.cart-scroll-hint::before {
  content: "↕";
  display: inline-block;
  margin-right: 4px;
}

.checkout-button:disabled,
.checkout-button[aria-disabled="true"] {
  background: #777365;
  box-shadow: none;
  color: #d8d3c1;
  cursor: not-allowed;
  opacity: .8;
  transform: none;
}

.radio-line.is-disabled {
  color: #9a927e;
  cursor: not-allowed;
  opacity: .7;
}

.radio-line.is-disabled input {
  cursor: not-allowed;
}

.delivery-minimum-hint {
  display: block;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #fff6d7;
  color: #9a4c2f;
  font-size: .76rem;
  line-height: 1.45;
}

.delivery-minimum-hint strong { font-weight: 950; }

.delivery-minimum-hint.is-ready {
  background: var(--green-soft);
  color: var(--green);
}

.privacy-note {
  margin: -10px 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: #426744;
  font-size: .8rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .cart-card {
    max-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cart-card-top {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 6px;
    background: var(--ink);
  }

  .cart-lines {
    min-height: 64px;
    max-height: clamp(170px, 38vh, 300px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .cart-total,
  .checkout-button,
  .cart-note {
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .cart-card {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: min(68vh, 560px);
    border-radius: 20px;
    padding: 18px;
  }

  .cart-lines {
    max-height: 34vh;
  }

  .cart-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .line-actions {
    justify-content: flex-end;
  }
}
