/* Larger, complete food photos and clear ordering controls on phones. */
@media (max-width: 660px) {
  #cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #cards .card {
    min-width: 0;
    padding: 10px;
    gap: 10px;
  }

  #cards .card .dish-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #f8f0e5;
  }

  #cards .card .name {
    min-width: 0;
    width: 100%;
  }

  #cards .card h3 {
    margin: 3px 0 0;
    font-size: clamp(1.2rem, 4.9vw, 1.375rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  #cards .card .name > small {
    font-size: .9rem;
    line-height: 1.35;
  }

  #cards .card .controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
    align-items: center;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 7px;
    text-align: right;
  }

  #cards .card .controls > small {
    font-size: .9rem;
    line-height: 1.35;
  }

  #cards .card .price {
    max-width: 100%;
    font-size: 1.1875rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #cards .card .controls .menu-quantity {
    width: 134px;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    justify-self: end;
    flex-basis: auto;
  }

  #cards .menu-quantity button {
    min-height: 44px;
    font-size: 1.125rem;
  }

  #cards .menu-stepper button {
    font-size: 1.25rem;
  }

  #cards .menu-quantity-count {
    font-size: 1.125rem;
  }

  #cards.list {
    grid-template-columns: minmax(0, 1fr);
  }

  #cards.list .card {
    display: grid;
    grid-template-columns: clamp(112px, 38vw, 160px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }

  #cards.list .card .dish-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  #cards.list .card .name {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  #cards.list .card .controls {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: end;
  }
}
