/* Compact customer menu cards on phones. Desktop and admin views are unchanged. */
@media (max-width: 620px) {
  .customer-menu-page .product-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .customer-menu-page .category-tabs {
    position: sticky;
    top: 70px;
    z-index: 35;
    margin: 0 -16px 10px;
    padding: 10px 16px 11px;
    border-bottom: 1px solid rgba(23, 18, 14, .13);
    background: var(--restaurant-bg, #f7f2e8);
    box-shadow: 0 5px 12px rgba(23, 18, 14, .06);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .customer-menu-page .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .customer-menu-page .category-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 10px;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
  }

  .customer-menu-page .product-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 112px;
    border-width: 1px;
    border-color: rgba(23, 18, 14, .13);
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(23, 18, 14, .07);
    overflow: hidden;
    transform: none;
  }

  .customer-menu-page .product-card:hover {
    transform: none;
    box-shadow: 0 3px 12px rgba(23, 18, 14, .07);
  }

  .customer-menu-page .product-photo {
    grid-row: 1;
    width: 104px;
    height: 100%;
    min-height: 112px;
    border-radius: 0;
  }

  .customer-menu-page .product-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .customer-menu-page .product-photo > span {
    font-size: 34px;
  }

  .customer-menu-page .product-photo i,
  .customer-menu-page .menu-discount-badge {
    top: 7px;
    left: 7px;
    max-width: 90px;
    padding: 4px 6px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    font-size: 7px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-menu-page .product-content {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: start;
    padding: 9px 10px 8px;
  }

  .customer-menu-page .product-content > small {
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: .08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-menu-page .product-content h3 {
    margin: 3px 0 2px;
    font-size: 15px;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-menu-page .product-content > p {
    display: -webkit-box;
    height: 26px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 9px;
    line-height: 1.35;
  }

  .customer-menu-page .product-content footer {
    min-width: 0;
    gap: 6px;
    margin-top: 5px;
  }

  .customer-menu-page .product-content footer > b {
    min-width: 0;
    font-size: 10px;
    line-height: 1.15;
  }

  .customer-menu-page .menu-price-wrap {
    gap: 3px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
  }

  .customer-menu-page .menu-price-wrap del {
    font-size: 8px;
  }

  .customer-menu-page .menu-price-wrap strong {
    font-size: 10px;
  }

  .customer-menu-page .product-content footer button {
    flex: 0 0 auto;
    padding: 7px 7px 7px 9px;
    border: 0;
    border-radius: 10px;
    font-size: 8px;
    line-height: 1;
  }

  .customer-menu-page .product-content footer button span {
    width: 17px;
    height: 17px;
    margin-left: 3px;
    border-radius: 5px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .customer-menu-page .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 106px;
  }

  .customer-menu-page .product-photo {
    width: 92px;
    min-height: 106px;
  }

  .customer-menu-page .product-content {
    padding-inline: 8px;
  }

  .customer-menu-page .product-content h3 {
    font-size: 14px;
  }
}
