/* ═══════════════════════════════════════════════════════
   ORDER.CSS  — Merged working base + all edits
   Class names match order-3.php exactly.
   Load AFTER shop-2-2.css
   v6  2026-03-30
═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   CART WRAP
══════════════════════════════════════ */
.cart-wrap { flex: 1; display: flex; flex-direction: column; position: relative; }

/* ── Selection bar ── */
.cart-sel-bar {
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 20px;
    position: sticky;
    top: calc(var(--header-h) + 68px);
    z-index: 90;
}
.cart-sel-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 0;
}
.cart-sel-item {
    display: flex; align-items: center; gap: 7px;
    font: 700 13px/1 var(--font);
    color: var(--c-text);
    background: transparent; border: none; cursor: pointer;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    transition: background var(--tr), color var(--tr);
}
.cart-sel-item:hover { background: rgba(232,101,26,0.08); color: var(--c-primary); }
.cart-sel-item svg:first-child { color: var(--c-primary); flex-shrink: 0; }
.cart-sel-chevron { color: var(--c-text-muted); flex-shrink: 0; }
.cart-sel-divider { width: 1px; height: 20px; background: var(--c-border); margin: 0 4px; }

/* ── Alert ── */
.cart-alert {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 16px;
    background: rgba(220,53,69,0.08);
    border: 1px solid rgba(220,53,69,0.25);
    border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600; color: #dc3545;
    margin-bottom: 20px;
    animation: alertIn .25s ease;
}
@keyframes alertIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════
   SETUP — STORE + TYPE PHASES
   EDIT: Smaller cards so both phases fit
         Vertical connector line ①→②
         2-per-row on mobile
══════════════════════════════════════ */
.cart-setup { padding: 32px 20px 48px; }
.cart-setup-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 0;               /* gap now handled by connector spacing */
    position: relative;
}

/* Phase wrapper — holds number + content */
.cart-phase {
    position: relative;
    padding-left: 35px;   /* room for number bubble */
    padding-bottom: 16px; /* gap before next phase */
}

/* ── Vertical connector line between ① and ② ── */
.cart-phase:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;           /* center of 28px bubble */
    top: 28px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c-primary) 0%, var(--c-border) 100%);
    border-radius: 2px;
    z-index: 0;
}

/* Phase label row — number + title */
.cart-phase-label {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    font: 800 17px/1 var(--font); color: var(--c-text);
    position: absolute;
    left: 0; top: 0;
}
.cart-phase-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    font-size: 13px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 1;
    box-shadow: 0 3px 10px rgba(232,101,26,.35);
}

.cart-phase--locked { opacity: .4; pointer-events: none; transition: opacity .4s; }
.cart-phase--locked.unlocked { opacity: 1; pointer-events: all; }
/* Fully unavailable store — grayed out, no pointer */
.store-card--unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.store-card--unavailable .store-card-select-hint {
    display: none;
}
/* ── Store cards grid ──
   3 cols desktop → 2 cols mobile
══════════════════════════════════════ */
.cart-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 40px;
}

.store-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 3/2;
    min-height: unset;    /* removed fixed min/max — grid handles sizing */
    max-height: unset;
    transition: transform .25s cubic-bezier(.34,1.3,.64,1), box-shadow .25s;
    border: 2px solid transparent;
    isolation: isolate;
    display: flex;        /* needed for vertical stacking on mobile */
    flex-direction: column;
}
.store-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0,0,0,0.28), 0 0 0 2px var(--c-primary);
}
.store-card.selected {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.30);
}

.store-card--unavailable {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

.store-card--unavailable .store-card-select-hint {
    display: none;
}

.type-card--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
/* Background image fills full card */
.store-card-img {
    position: absolute; inset: 0;
    background-image: var(--store-img);
    background-size: cover;
    background-position: center;
}

/* Dark gradient overlay, text at bottom */
.store-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 25%,
        rgba(15,10,5,0.65) 55%,
        rgba(15,10,5,0.92) 100%
    );
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 0 14px 12px;
    gap: 4px;
}

.store-card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px;
    margin-bottom: 2px;
}
.store-card-name {
    font: 800 13px/1.2 var(--font);
    color: var(--c-primary);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.store-card-badge {
    padding: 2px 8px; border-radius: 20px;
    font-size: 9px; font-weight: 800;
    letter-spacing: .05em; white-space: nowrap; flex-shrink: 0;
}
.store-card-badge--open   { background: rgba(74,124,89,0.90);  color: #fff; }
.store-card-badge--busy   { background: rgba(255,165,0,0.90);  color: #fff; }
.store-card-badge--closed { background: rgba(220,53,69,0.85);  color: #fff; }

.store-card-addr {
    display: flex; align-items: flex-start; gap: 4px;
    font-size: 10px; color: rgba(255,255,255,0.75); line-height: 1.4;
}
.store-card-addr svg { flex-shrink: 0; margin-top: 1px; color: var(--c-primary); }

.store-card-hours { display: flex; flex-direction: column; gap: 2px; }
.store-hour-row {
    display: flex; align-items: center; gap: 4px;
    font-size: 9.5px; color: rgba(255,255,255,0.65);
}
.store-hour-row svg { flex-shrink: 0; color: rgba(232,101,26,0.8); }

.store-card-select-hint {
    font-size: 9.5px; font-weight: 700;
    color: var(--c-primary); letter-spacing: .08em;
    text-transform: uppercase; margin-top: 3px;
    opacity: 0; transition: opacity .2s;
}
.store-card:hover .store-card-select-hint { opacity: 1; }

/* Selected check — top-left circle */
.store-card-check {
    position: absolute; top: 10px; left: 10px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0);
    transition: opacity .2s, transform .25s cubic-bezier(.34,1.6,.64,1);
    z-index: 5;
}
.store-card.selected .store-card-check { opacity: 1; transform: scale(1); }
/* ── Order type cards ── */
.cart-type-grid { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 40px; }

.type-card { cursor: pointer; flex: 1; min-width: 130px; }
.type-card-inner {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 14px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-xl);
    background: var(--c-bg-card);
    text-align: center;
    transition: border-color var(--tr), background var(--tr), box-shadow var(--tr), transform .2s;
    position: relative; overflow: hidden;
}
.type-card-inner:hover {
    border-color: var(--c-primary);
    background: rgba(232,101,26,0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232,101,26,0.18);
}
.type-card.selected .type-card-inner {
    border-color: var(--c-primary);
    background: rgba(232,101,26,0.06);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.18);
}
.type-card-icon { color: var(--c-primary); }
.type-card-name { font: 800 14px/1 var(--font); color: var(--c-text); }
.type-card-sub  { font-size: 11px; color: var(--c-text-muted); }
.type-card-check {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0);
    transition: opacity .2s, transform .25s cubic-bezier(.34,1.6,.64,1);
}
.type-card.selected .type-card-check { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════
   MENU LAYOUT — left + right
   EDIT: categories span full left col width
         right col = sticky cart only
══════════════════════════════════════ */
/* ── LEFT: menu ── */
.menu-left {
    overflow-y: auto;
    display: flex; flex-direction: column;
    padding: 0 20px;
    overflow-x: hidden;
}
.cart-menu-wrap {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: calc(100dvh - var(--header-h) - 68px);
    border-top: 1px solid var(--c-border);
    align-items: start;               
}

/* ── Category tabs: icon on top, label below ── */
.menu-cats-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 20px;
}
.menu-cats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 2px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: static;
    background: none;
    border-bottom: none;
}
.menu-cats::-webkit-scrollbar { display: none; }

.menu-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 8px;
    min-width: 68px;
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    color: var(--c-text);
    font: 500 0.78rem/1.2 var(--font);
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
    white-space: nowrap;
    border-radius: 0;
    flex-shrink: 0;
}
.menu-cat svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    opacity: 0.6;
    transition: opacity 0.18s;
}
.menu-cat:hover {
    color: var(--c-primary);
}
.menu-cat:hover svg {
    opacity: 0.85;
}
.menu-cat.active {
    color: var(--c-primary);
    border-bottom: 3px solid var(--c-primary);
    font-weight: 700;
    background: rgba(232,101,26,0.07);
    border-radius: 6px 6px 0 0;
}
.menu-cat.active svg {
    opacity: 1;
}
/* ── Menu search button ── */
.menu-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.menu-search-btn:hover,
.menu-search-btn.active {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(232,101,26,0.07);
}

/* ── Expanding search bar ── */
.menu-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.32s ease, opacity 0.22s ease;
}
.menu-search-bar.open {
    max-width: 260px;
    opacity: 1;
}
.menu-search-bar input {
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-full);
    padding: 7px 14px;
    font: 500 0.85rem/1 var(--font);
    background: var(--c-surface);
    color: var(--c-text);
    outline: none;
    width: 220px;
    transition: border-color 0.18s;
}
.menu-search-bar input:focus {
    border-color: var(--c-primary);
}

@media (max-width: 900px) {
    .menu-cats-wrap { padding: 10px 0 14px; }
    .menu-search-bar.open { max-width: 180px; }
    .menu-search-bar input { width: 160px; font-size: 0.80rem; }
}
@media (max-width: 480px) {
    .menu-search-bar.open { max-width: 140px; }
    .menu-search-bar input { width: 120px; font-size: 0.76rem; }
}
@media (max-width: 900px) {
    .menu-cats  { padding: 10px 0 14px; gap: 2px; }
    .menu-cat   { padding: 8px 12px 6px; min-width: 58px; font-size: 0.74rem; }
    .menu-cat svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
    .menu-cat   { padding: 7px 10px 6px; min-width: 52px; font-size: 0.70rem; }
    .menu-cat svg { width: 18px; height: 18px; }
}
/*new product design [TODO]*/
.toplist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px; padding-top: 20px;
    position: relative; z-index: 1;
    align-items: stretch;
}

/* ── Product Card ── */
.product-card {
    background: rgba(255,255,255,0.68);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.88);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.80);
    border-radius: 22px;
    display: flex; flex-direction: column;
    position: relative; overflow: visible;
    cursor: pointer; isolation: isolate;
    height: 100%; transition: box-shadow .35s ease;
}
[data-theme="dark"] .product-card,
.dark-mode .product-card {
    background: rgba(30,30,32,0.78);
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 6px 24px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
}
.product-card:hover {
    box-shadow: 0 24px 56px rgba(255,95,31,0.16), 0 6px 16px rgba(0,0,0,0.10), 0 0 0 1.5px rgba(255,95,31,0.25), inset 0 1px 0 rgba(255,255,255,0.80);
}
[data-theme="dark"] .product-card:hover,
.dark-mode .product-card:hover {
    box-shadow: 0 24px 56px rgba(255,95,31,0.26), 0 6px 16px rgba(0,0,0,0.50), 0 0 0 1.5px rgba(255,95,31,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
}


/*.pc-img-glow {*/
/*    position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);*/
/*    width: 130px; height: 70px; border-radius: 50%;*/
/*    background: radial-gradient(ellipse, rgba(255,95,31,0.40) 0%, rgba(255,95,31,0.08) 60%, transparent 75%);*/
/*    filter: blur(18px); z-index: 0;*/
/*    transition: transform .5s ease, opacity .5s ease; pointer-events: none;*/
/*}*/

/*.pc-dish-img {*/
/*    position: relative; z-index: 3;*/
/*    width: 155px; height: 155px;*/
/*    object-fit: contain; object-position: center;*/
/*    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.40));*/
/*}*/

.pc-img-wrap {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    height: 260px;
    display: block;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    z-index: 1;
    pointer-events: none;
}

.pc-img-glow {
    display: none;
}

.pc-dish-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: none !important;
    border-radius: 0;
}

.pc-body {
    margin-top: 0;
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}
.product-card:hover .pc-dish-img {
    transform: none !important;
}
.pc-body      { margin-top: 48px; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pc-top-row   { display: flex; align-items: flex-start; }
.pc-name      { font-size: 1.02rem; color: var(--c-text); line-height: 1.25; width: 100%; }
.pc-heart     { display: none !important; }
.pc-ingredients { font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.5; margin: 0; }
.pc-tags      { display: flex; flex-wrap: wrap; gap: 5px; }

.product-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 700; letter-spacing: .03em;
    padding: 3px 9px; border-radius: 20px; white-space: nowrap;
    background: rgba(255,95,31,0.08); color: var(--c-primary);
    border: 1px solid rgba(255,95,31,0.20);
    transition: transform .18s ease, background .18s ease; line-height: 1;
}
.product-tag:hover { transform: scale(1.07); background: rgba(255,95,31,0.15); }
[data-theme="dark"] .product-tag,
.dark-mode .product-tag { background: rgba(255,95,31,0.12); border-color: rgba(255,95,31,0.28); color: #ff8c5f; }

.tag-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0; }
.tag-icon svg { color: inherit; stroke: currentColor; fill: currentColor; display: block; }
.tag-icon svg[fill="none"] { fill: none; }

.pc-meta-row { display: flex; align-items: center; gap: 10px; }
.pc-rating   { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--c-primary); }
.pc-kcal     { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--c-text-muted); }
.pc-kcal svg { color: var(--c-primary); opacity: .75; }

.pc-footer   { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.pc-price    { font-size: 1.22rem; font-weight: 800; color: var(--c-primary); white-space: nowrap; }

.btn-add-cart {
    display: flex; align-items: center; gap: 5px;
    background: var(--c-primary); color: #fff;
    border: none; padding: 9px 14px; border-radius: 40px;
    font: 600 12px/1 var(--font); cursor: pointer;
    transition: background .22s, transform .18s, box-shadow .22s;
    white-space: nowrap; position: relative; overflow: hidden; flex-shrink: 0;
}
.btn-add-cart::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.18); transform: translateX(-110%);
    transition: transform .28s ease; border-radius: inherit;
}
.btn-add-cart:hover::after  { transform: translateX(0); }
.btn-add-cart:hover { background: var(--c-primary-dark); transform: scale(1.05); box-shadow: 0 5px 16px rgba(255,95,31,0.38); }

.cart-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--c-text-muted);
    font: 600 12px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--tr), color var(--tr), background var(--tr);
    white-space: nowrap;
}

.cart-edit-btn svg {
    flex-shrink: 0;
    color: var(--c-primary);
    transition: transform 0.22s ease;
}

.cart-edit-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(232, 101, 26, 0.05);
}

.cart-edit-btn:hover svg {
    transform: rotate(-10deg) scale(1.12);
}

.cart-edit-btn:active {
    transform: scale(0.98);
}
/* ── Category chip — sits above item name ── */
.pc-top-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.pc-cat-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  background: rgba(var(--c-primary-rgb, 232,101,26), .10);
  color: var(--c-primary);
  border: 1px solid rgba(var(--c-primary-rgb, 232,101,26), .18);
  line-height: 1.4;
}

/* ── Price block: original (dark, struck) + final (primary) ── */
/* No discount → primary color */
.pc-price {
  color: var(--c-primary);
}

/* With discount → white (stands out against card) */
.pc-price--discounted {
  color: var(--c-primary);
}

/* Original struck-through price — only shows when discounted */
.pc-price-original {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.pc-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  line-height: 1.1;
}

/* Keep footer aligned correctly with the price block */
.pc-footer {
  display: flex;
  align-items: flex-end;      /* align button bottom with price bottom */
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
/* Image wrap must be relative (already is, just confirm) */
.pc-img-wrap {
  position: relative;
}

/* Category chip — top right of image */
.pc-cat-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  /*background: rgba(0, 0, 0, 0.52);*/
  background: var(--c-primary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.4;
  pointer-events: none;
}
/* Two addon groups side by side */
.detail-addon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}

/* Each group inside a row fills its cell */
.detail-addon-row .detail-addon-group {
  min-width: 0; /* prevent overflow */
}

/* On narrow panels / mobile, stack back to single column */
@media (max-width: 480px) {
  .detail-addon-row {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════
   RESPONSIVE — TOPLIST
═══════════════════════════════════════ */
@media (max-width: 1370px) {
    .toplist-grid { grid-template-columns: repeat(3, 1fr); padding-top: 10px; gap: 18px; }
    .pc-dish-img  { width: 130px; height: 130px; }
    .pc-img-wrap  { top: -65px; height: 240px; }
    .pc-body      { margin-top: 82px; }
}
@media (max-width: 1120px) {
    .toplist-grid { grid-template-columns: repeat(2, 1fr); padding-top: 10px; gap: 18px; }
}
@media (max-width: 900px) {
    .toplist-grid { grid-template-columns: repeat(2, 1fr); padding-top: 10px; gap: 18px; }
    .pc-dish-img  { width: 130px; height: 130px; }
    .pc-img-wrap  { top: -65px; height: 245px; }
    .pc-body      { margin-top: 88px; }
}
@media (max-width: 540px) {
    .toplist-grid   { grid-template-columns: repeat(2, 1fr); padding-top: 5px; gap: 12px; }
    .pc-dish-img    { width: 105px; height: 105px; }
    .pc-img-wrap    { top: -52px; height: 220px; }
    .pc-body        { margin-top: 74px; padding: 0 10px 14px; }
    .pc-name        { font-size: 0.87rem; }
    .pc-ingredients { font-size: 0.73rem; }
    .pc-price       { font-size: 1.02rem; }
    .pc-rating,
    .pc-kcal        { font-size: 10px; }
    .btn-add-cart   { padding: 7px 10px; font-size: 11px; }
    .product-tag    { font-size: 9px; padding: 2px 7px; }
}
@media (max-width: 360px) {
    .toplist-grid   { grid-template-columns: repeat(2, 1fr); padding-top: 5px; gap: 9px; }
    .pc-dish-img    { width: 88px; height: 88px; }
    .pc-img-wrap    { top: -44px; height: 200px; }
    .pc-body        { margin-top: 62px; padding: 0 8px 12px; }
    .pc-name        { font-size: 0.78rem; }
    .pc-ingredients { font-size: 0.68rem; }
    .pc-price       { font-size: 0.95rem; }
    .btn-add-cart   { padding: 6px 8px; font-size: 10px; gap: 3px; }
    .btn-add-cart svg { width: 10px; height: 10px; }
    .product-tag    { font-size: 9px; padding: 2px 6px; }
    .pc-meta-row    { gap: 6px; }
}
@media (max-width: 280px) {
    .toplist-grid { grid-template-columns: 1fr; padding-top: 10px; gap: 14px; }
    .pc-dish-img  { width: 120px; height: 120px; }
    .pc-img-wrap  { top: -60px; height: 235px; }
    .pc-body      { margin-top: 82px; }
}
/* ══════════════════════════════════════
   PRODUCT CARD IMAGE — COVER STYLE FIX
   Remove old floating-dish breakpoint
   overrides that conflict with block img
══════════════════════════════════════ */

/* Reset the image wrap to cover mode at ALL breakpoints */
.pc-img-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: 260px;
    display: block;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    z-index: 1;
    pointer-events: none;
    flex-shrink: 0;
}

/* Dish image fills the wrap — cover mode */
.pc-dish-img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: none !important;
    border-radius: 0;
}

/* Glow is not needed in cover mode */
.pc-img-glow { display: none !important; }

/* Body sits directly below the image, no top margin needed */
.pc-body {
    margin-top: 0 !important;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ── Responsive image heights ── */
@media (max-width: 900px) {
    .pc-img-wrap { height: 240px; }
}

@media (max-width: 680px) {
    .pc-img-wrap { height: 220px; }
}

@media (max-width: 540px) {
    .pc-img-wrap { height: 210px; border-radius: 16px 16px 0 0; }
    .product-card { border-radius: 16px; }
}

@media (max-width: 420px) {
    .pc-img-wrap { height: 200px; border-radius: 14px 14px 0 0; }
    .product-card { border-radius: 14px; }
    .pc-body { padding: 9px 10px 12px; gap: 6px; }
}

@media (max-width: 360px) {
    .pc-img-wrap { height: 190px; border-radius: 12px 12px 0 0; }
    .product-card { border-radius: 12px; }
    .pc-body { padding: 8px 8px 10px; gap: 5px; }
}

@media (max-width: 280px) {
    .pc-img-wrap { height: 210px; }
}
/* ══════════════════════════════════════
   RIGHT PANEL — .cp-cart (ORIGINAL class)
   EDIT: Remove order-type tabs from top
         Add store + type info pills at top
         Checkout fixed at bottom always
         Show detail panel on food click,
         cart returns after add-to-cart
══════════════════════════════════════ */
.cp-cart {
    border-left: none;
    margin: 16px 16px 16px 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl, 18px);
    background: var(--c-bg-card);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.07),
        0 1px 4px  rgba(0, 0, 0, 0.04);
    height: calc(100dvh - var(--header-h) - 68px - 32px);
    position: sticky;
    top: calc(var(--header-h) + 68px + 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* EDIT: Store + type info header at very top of right panel */
.cp-cart-context {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--c-bg-card);
}
.cp-checkout-context {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 40px 12px 12px 0px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--c-bg-card);
}
.cp-payment-context {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--c-bg-card);
}
.cp-ctx-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    font: 600 11px/1 var(--font);
    color: var(--c-text-muted);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.cp-ctx-pill svg  { color: var(--c-primary); flex-shrink: 0; }
.cp-ctx-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-ctx-pill:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(232,101,26,.05);
}

/* EDIT: REMOVE the old order-type tabs (keep class to avoid JS errors but hide) */
.cp-order-types { display: none !important; }

/* ── CART sub-panel (default view) ── */
.cp-cart-panel {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden;
}
.cp-cart-panel.hidden { display: none; }

.cart-panel-head {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-border);
    font: 800 13px/1 var(--font); color: var(--c-text);
    flex-shrink: 0;
}
.cart-panel-head svg { color: var(--c-primary); }
.cart-count-badge {
    margin-left: auto;
    min-width: 22px; height: 22px; border-radius: 11px;
    background: var(--c-primary); color: #fff;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

/* Address block */
.cp-address-block {
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0; display: flex; flex-direction: column; gap: 6px;
    overflow: hidden;
    max-height: 200px;
    transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
}
.cp-address-block.hidden {
    max-height: 0 !important; padding-top: 0; padding-bottom: 0;
    opacity: 0; border-bottom: none;
}
.cp-address-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .10em; text-transform: uppercase; color: var(--c-text-muted);
}
.cp-address-label svg { color: var(--c-primary); }
.cp-address-saved { display: flex; flex-direction: column; gap: 5px; }
.cp-address-item {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 11px; border-radius: var(--radius-md);
    border: 1px solid var(--c-border); cursor: pointer;
    transition: border-color var(--tr), background var(--tr);
}
.cp-address-item:hover  { border-color: var(--c-primary); background: rgba(232,101,26,0.04); }
.cp-address-item.active { border-color: var(--c-primary); background: rgba(232,101,26,0.06); }
.cp-addr-icon  { font-size: 16px; flex-shrink: 0; }
.cp-addr-name  { font-size: 11px; font-weight: 700; color: var(--c-text); }
.cp-addr-text  { font-size: 10px; color: var(--c-text-muted); line-height: 1.4; margin-top: 2px; }
.cp-addr-check { margin-left: auto; color: var(--c-primary); flex-shrink: 0; opacity: 0; transition: opacity var(--tr); }
.cp-address-item.active .cp-addr-check { opacity: 1; }
.cp-add-address-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 10px; border-radius: var(--radius-md);
    border: 1px dashed var(--c-border); background: transparent;
    color: var(--c-text-muted); font: 600 11px/1 var(--font); cursor: pointer;
    transition: border-color var(--tr), color var(--tr);
}
.cp-add-address-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Cart items scroll — FLEX:1 so footer stays at bottom */
.cp-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 7px 0;
    padding: var(--space-3, 10px) 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 8px;
}
.cp-cart-item-info { flex: 1; min-width: 0; }
.cp-cart-item-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cart-item-addon { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.cp-cart-item-note  { font-size: 11px; color: var(--c-text-muted); font-style: italic; margin-top: 2px; }
.cp-cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cp-cart-item-price { font-size: 13px; font-weight: 600; color: var(--c-orange, #e8621a); min-width: 52px; text-align: right; }
.cp-cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--c-text-muted); padding: 4px;
    border-radius: 4px; transition: color 0.15s;
}
.cp-cart-item-remove:hover { color: #e8621a; }
.cp-cart-items {
    flex: 1; overflow-y: auto;
    padding: 10px 14px;
    display: flex; flex-direction: column; gap: 8px;
    scrollbar-width: thin; scrollbar-color: var(--c-border) transparent;
}
.cp-cart-items::-webkit-scrollbar       { width: 4px; }
.cp-cart-items::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

/* Empty state */
.cp-cart-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; padding: 32px 16px;
    text-align: center; color: var(--c-text-muted);
}
.cp-cart-empty svg { opacity: .28; }
.cp-cart-empty p   { font-size: 13px; font-weight: 600; margin: 0; }
.cp-empty-hint     { font-size: 11px; opacity: .7; }

/* Cart item row */
.cp-cart-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 11px;
    background: var(--c-glass-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--tr);
    animation: cpItemIn .22s ease forwards;
}
@keyframes cpItemIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}
.cp-cart-item:hover { box-shadow: var(--shadow-sm); }
.cp-item-img {
    width: 40px; height: 40px; object-fit: cover;
    border-radius: 8px; background: var(--c-bg); padding: 3px; flex-shrink: 0;
}
.cp-item-info  { flex: 1; min-width: 0; }
.cp-item-name  { font-size: 12px; font-weight: 700; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-item-addons{ font-size: 10px; color: var(--c-text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-item-price { font-size: 12px; font-weight: 800; color: var(--c-primary); white-space: nowrap; flex-shrink: 0; }
.cp-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cp-item-btn {
    width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--c-border); background: transparent;
    color: var(--c-text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
    flex-shrink: 0; padding: 0;
}
.cp-item-btn:hover        { background: rgba(232,101,26,0.10); color: var(--c-primary); border-color: var(--c-primary); }
.cp-item-btn--delete:hover { background: rgba(220,53,69,0.10); color: #dc3545; border-color: #dc3545; }
.cp-item-qty { font: 800 11px/1 var(--font); color: var(--c-text); min-width: 18px; text-align: center; }
.cp-ctx-pill--editable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 150ms ease, opacity 150ms ease;
}
.trk-receipt-item-qty {
    font: 800 11.5px/1 var(--font);
    color: var(--c-primary);
    background: rgba(232,101,26,.10);
    border: 1px solid rgba(232,101,26,.18);
    padding: 5px 8px;
    border-radius: var(--radius-full);
    text-align: center;
    white-space: nowrap;
    align-self: center;
}
.cp-ctx-pill--editable:hover,
.cp-ctx-pill--editable:active {
    opacity: 0.75;
}

.cp-ctx-pill--readonly {
    pointer-events: none; 
}

#mobPillStore,
#mobPillType {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
}

#mobPillStore:active,
#mobPillType:active {
    opacity: 0.6;
}
#mobPillStore,
#mobPillType {
    cursor: pointer;
}
/*-----------------------------*/
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.cart-item-row:last-child { border-bottom: none; }

.cart-item-img {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-glass-bg);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font: 600 0.88rem/1.3 var(--font);
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-addons {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    margin-top: 2px;
}
.cart-item-price {
    font: 700 0.90rem/1 var(--font);
    color: var(--c-primary);
    flex-shrink: 0;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.cart-item-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: var(--c-glass-bg);
    color: var(--c-text);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.cart-item-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.cart-item-btn--delete {
    border-color: transparent;
    background: rgba(220,53,69,0.08);
    color: #dc3545;
}
.cart-item-btn--delete:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.cart-item-qty {
    font: 600 0.88rem/1 var(--font);
    min-width: 20px;
    text-align: center;
    color: var(--c-text);
}

/* ── Totals block (shared) ── */
.cp-totals {
    padding: 40px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cp-totals-row {
    display: flex;
    justify-content: space-between;
    font: 500 0.85rem/1 var(--font);
    color: var(--c-text-muted);
}
.cp-totals-total {
    font: 700 1.02rem/1 var(--font);
    color: var(--c-text);
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
    margin-top: 4px;
}
.cp-totals-total span:last-child { color: var(--c-primary); }
.cart-box-alert{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 12px 12px;
    padding:12px 14px;
    border-radius:14px;
    font-size:13px;
    font-weight:600;
    line-height:1.4;
    color:#7a1c1c;
    background:linear-gradient(180deg,#fff1f1 0%,#ffe3e3 100%);
    border:1px solid rgba(198,40,40,.18);
    box-shadow:0 10px 24px rgba(198,40,40,.10);
    animation:cartAlertIn .22s ease;
}

.cart-box-alert svg{
    flex:0 0 auto;
    color:#c62828;
}

.cart-box-alert.hidden{
    display:none;
}

@keyframes cartAlertIn{
    from{opacity:0; transform:translateY(-8px);}
    to{opacity:1; transform:translateY(0);}
}
/* ── Checkout button (shared) — same style as .sheet-add-btn ── */
.cp-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font: 700 0.95rem/1 var(--font);
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}
.cp-checkout-btn:hover  { opacity: 0.9; transform: translateY(-1px); }
.cp-checkout-btn:active { transform: scale(0.98); }
.cp-checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ── Cart empty state ── */
.cp-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--c-text-muted);
    text-align: center;
}
.cp-cart-empty svg { opacity: 0.35; }
.cp-cart-empty p {
    font: 500 0.88rem/1.5 var(--font);
    margin: 0;
}
/* ── Cart item rows (shared desktop + mobile modal) ── */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.cart-item-row:last-child { border-bottom: none; }

.cart-item-img {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-surface);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font: 600 0.85rem/1.3 var(--font);
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-addons {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    margin-top: 2px;
}
.cart-item-price {
    font: 700 0.88rem/1 var(--font);
    color: var(--c-primary);
    flex-shrink: 0;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.cart-item-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.cart-item-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.cart-item-btn--delete {
    border-color: transparent;
    background: rgba(220,53,69,0.08);
    color: #dc3545;
}
.cart-item-btn--delete:hover {
    background: #dc3545;
    color: #fff;
}
.cart-item-qty {
    font: 600 0.85rem/1 var(--font);
    min-width: 18px;
    text-align: center;
    color: var(--c-text);
}

/* ── Totals block (shared) ── */
.cp-totals {
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cp-totals-row {
    display: flex;
    justify-content: space-between;
    font: 500 0.85rem/1 var(--font);
    color: var(--c-text-muted);
}
.cp-totals-total {
    font: 700 1rem/1 var(--font);
    color: var(--c-text);
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
    margin-top: 4px;
}
.cp-totals-total span:last-child {
    color: var(--c-primary);
}

/* EDIT: Cart footer — FIXED at bottom, never scrolls away */
.cp-cart-footer {
    flex-shrink: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--c-bg-card);
}
.cp-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 500 12px/1 var(--font);
    color: var(--c-text-muted);
}
.cp-cart-line--discount {
    color: var(--c-green);
    font-weight: 700;
}
.cp-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 700 15px/1 var(--font);
    color: var(--c-text);
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
    margin-top: 2px;
}
.cp-cart-total strong {
    color: var(--c-primary);
    font-size: 18px;
}
.cp-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font: 700 14px/1 var(--font);
    cursor: pointer;
    margin-top: 4px;
    width: 100%;
    transition: background var(--tr), transform .18s, box-shadow var(--tr);
    position: relative; overflow: hidden;
}
.cp-checkout-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.14);
    transform: translateX(-110%);
    transition: transform .28s ease;
}
.cp-checkout-btn:hover::after  { transform: translateX(0); }
.cp-checkout-btn:hover  { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,101,26,0.36); }
/* ══════════════════════════════════════
   DETAIL PANEL — replaces cart in right col
   EDIT: slides in over cart-panel,
         add-bar fixed at bottom
══════════════════════════════════════ */
.detail-panel {
    display: none;          /* hidden by default */
    flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden;
    animation: detailIn .26s cubic-bezier(.34,1.2,.64,1);
}
.detail-panel.active { display: flex; }

@keyframes detailIn {
    from { opacity:0; transform:translateX(18px); }
    to   { opacity:1; transform:translateX(0); }
}

.detail-close {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-bg-card); color: var(--c-text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    transition: background var(--tr), color var(--tr);
}
.detail-close:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.detail-scroll {
    flex: 1; overflow-y: auto; padding-bottom: 8px;
    scrollbar-width: thin; scrollbar-color: var(--c-border) transparent;
}
.detail-scroll::-webkit-scrollbar       { width: 4px; }
.detail-scroll::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

.detail-img {
    width: 100%; height: 180px;
    object-fit: contain;
    background: var(--c-glass-bg);
    padding: 16px;
    box-sizing: border-box;
}
.detail-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.detail-cat  { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); }
.detail-name { font: 800 17px/1.2 var(--font); color: var(--c-text); }
.detail-price-row { display: flex; align-items: center; gap: 12px; }
.detail-price { font: 800 19px/1 var(--font); color: var(--c-primary); }
.detail-meta  { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-text-muted); }
.detail-meta svg { color: var(--c-primary); }
.detail-desc  { font-size: 13px; color: var(--c-text-muted); line-height: 1.6; }
.detail-ing-label { font-size: 11px; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.detail-ing   { font-size: 12px; color: var(--c-text-muted); line-height: 1.6; }

/* Addon groups */
.detail-addons { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.detail-addon-group {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.detail-addon-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 13px;
    background: rgba(232,101,26,0.04);
    border: none; cursor: pointer;
    font: 700 12px/1 var(--font); color: var(--c-text);
    transition: background var(--tr);
}
.detail-addon-head:hover { background: rgba(232,101,26,0.09); }
.addon-chevron { transition: transform .22s; color: var(--c-text-muted); flex-shrink: 0; }
.detail-addon-head[data-open="false"]

.detail-addon-body {
    display: flex; flex-direction: column; gap: 0;
    overflow: hidden; max-height: 400px;
    transition: max-height .28s ease;
}
.detail-addon-body.closed { max-height: 0; }
/*addons*/
.addon-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    cursor: pointer;
    border-top: 1px solid var(--c-border-light);
    transition: background var(--tr);
}

.addon-item:first-child {
    border-top: none;
}

.addon-item:hover {
    background: rgba(232,101,26,0.04);
}

.addon-check-input,
.addon-radio-input,
.addon-item input[type="checkbox"],
.addon-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

.addon-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--c-border);
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--tr), background var(--tr);
}

.addon-check-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--c-border);
    background: var(--c-bg-card);
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}

.addon-item:has(.addon-radio-input:checked) .addon-radio-dot,
.addon-item:has(input[type="radio"]:checked) .addon-radio-dot {
    border-color: var(--c-primary);
    background: var(--c-primary);
}

.addon-item:has(.addon-radio-input:checked) .addon-radio-dot::after,
.addon-item:has(input[type="radio"]:checked) .addon-radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

.addon-item:has(.addon-check-input:checked) .addon-check-box,
.addon-item:has(input[type="checkbox"]:checked) .addon-check-box {
    border-color: var(--c-primary);
    background: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.15);
}

.addon-item:has(.addon-check-input:checked) .addon-check-box::after,
.addon-item:has(input[type="checkbox"]:checked) .addon-check-box::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 11px;
    height: 7px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translateY(-2px);
}

.addon-item:hover .addon-check-box {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.10);
}

.addon-item-name {
    flex: 1;
    font-size: 13px;
    color: var(--c-text);
    line-height: 1.35;
}

.addon-item-name small {
    display: inline-block;
    margin-left: 4px;
    color: var(--c-text-muted);
    font-size: 11px;
}

.addon-item-price {
    font: 700 12px/1 var(--font);
    color: var(--c-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.addon-item-price--free {
    color: var(--c-green);
}
.detail-note-wrap  { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.detail-note-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.detail-note-input {
    padding: 9px 12px; border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-bg); color: var(--c-text);
    font: 13px/1.5 var(--font); resize: none;
    transition: border-color var(--tr), box-shadow var(--tr);
    width: 100%; box-sizing: border-box;
}
.detail-note-input:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(232,101,26,0.10);
}

/* EDIT: Add bar — always fixed at bottom of detail panel */
.detail-add-bar {
    flex-shrink: 0;
    background: var(--c-bg-card);
    border-top: 1px solid var(--c-border);
    padding: 11px 14px;
    display: flex; align-items: center; gap: 10px;
    z-index: 5;
}
.detail-add-btn { flex: 1; justify-content: center; white-space: nowrap; }

.detail-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--c-border); border-radius: var(--radius-full);
    overflow: hidden; flex-shrink: 0;
}
.qty-btn {
    width: 30px; height: 30px;
    background: transparent; border: none; cursor: pointer;
    font-size: 16px; font-weight: 700; color: var(--c-text);
    transition: background var(--tr), color var(--tr);
}
.qty-btn:hover { background: rgba(232,101,26,0.10); color: var(--c-primary); }
.qty-val {
    min-width: 26px; text-align: center;
    font: 800 13px/1 var(--font); color: var(--c-text);
    padding: 0 2px;
}

/* cp-add-to-cart-btn (used inside detail-add-bar) */
.cp-add-to-cart-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 18px;
    background: var(--c-primary); color: #fff;
    border: none; border-radius: var(--radius-full);
    font: 700 13px/1 var(--font); cursor: pointer;
    flex: 1;
    transition: background var(--tr), transform .18s, box-shadow var(--tr);
    position: relative; overflow: hidden;
}
.cp-add-to-cart-btn::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.16);
    transform: translateX(-110%); transition: transform .28s ease;
}
.cp-add-to-cart-btn:hover::after { transform: translateX(0); }
.cp-add-to-cart-btn:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,101,26,0.36); }
.cp-btn-price {
    background: rgba(255,255,255,0.20);
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 800; margin-left: 4px;
}
/* ══════════════════════════════════════════
   CART ITEM — DISCOUNT + ADDONS FIX
══════════════════════════════════════════ */

/* 1. Price + discount stack vertically on the right */
.cp-cart-item {
  align-items: flex-start; /* allow right column to grow in height */
}

.cp-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
}

/* 2. Discount sits below the price, same font/size */
.co-sum-item-discount {
  display: flex;
  flex-direction: column;    /* stack label above value */
  align-items: flex-end;
  gap: 1px;
  /* Remove any absolute/inline positioning from the parent layout */
  position: static !important;
  width: auto !important;
}

.co-sum-item-discount-label {
  font-size: 0.72em;          /* slightly smaller than price */
  color: var(--c-green, #aaa);
  white-space: nowrap;
  line-height: 1.1;
}

.co-sum-item-discount-value {
  /* Inherit exact same font/size as .cp-item-price */
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: var(--c-green, #e05a2b);
  white-space: nowrap;
  line-height: inherit;
}

/* 3. Addons — never truncate, wrap freely */
.cp-item-addons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.cp-item-addons span {
  display: inline;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
/* ══════════════════════════════════════
   MOBILE BOTTOM SHEET
══════════════════════════════════════ */
.mobile-detail-overlay {
    position: fixed; inset: 0;
    bottom: var(--mobile-nav-height, 0px);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 500;
    animation: fadeIn .2s ease;
}
.mobile-detail-sheet {
    position: fixed;
    bottom: var(--mobile-nav-height, 0px);
    left: 0; right: 0;
    background: var(--c-bg-card);
    border-radius: 24px 24px 0 0;
    z-index: 510;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    max-height: calc(88dvh - var(--mobile-nav-height, 0px));
    animation: sheetUp .32s cubic-bezier(.34,1.2,.64,1);
    box-shadow: 0 -8px 48px rgba(0,0,0,0.28);
    overflow: hidden;
}
.sheet-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.sheet-scroll::-webkit-scrollbar { display: none; }
.sheet-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
    mask-image: linear-gradient(to bottom,
        black 55%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to bottom,
        black 55%,
        transparent 100%
    );
}
.sheet-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    z-index: 2;
    flex-shrink: 0;
    margin: 0;
}
.sheet-body {
    padding: 0 18px 14px;
    margin-top: -32px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sheet-add-bar {
    flex-shrink: 0;
    background: var(--c-bg-card);
    border-top: 1px solid var(--c-border);
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    /* Subtle top blur so content scrolls under it */
    box-shadow: 0 -8px 20px color-mix(in srgb, var(--c-bg-card) 80%, transparent);
}

@keyframes sheetUp   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetDown { from { transform: translateY(0); }   to { transform: translateY(110%); } }
@keyframes fadeIn    { from { opacity: 0; }                 to { opacity: 1; } }
.mobile-detail-sheet.closing { animation: sheetDown .28s ease forwards; }
.sheet-cat    { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); }
.sheet-name   { font: 800 20px/1.2 var(--font); color: var(--c-text); }
.sheet-price-row { display: flex; align-items: center; gap: 12px; }
.sheet-price  { font: 800 22px/1 var(--font); color: var(--c-primary); }
.sheet-meta   { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-text-muted); }
.sheet-meta svg { color: var(--c-primary); }
.sheet-desc   { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }
.sheet-ing-label { font-size: 11px; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.sheet-ing    { font-size: 13px; color: var(--c-text-muted); line-height: 1.6; }
.sheet-add-btn { flex: 1; justify-content: center; white-space: nowrap; }

/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.hidden { display: none !important; }
#cartMenuWrap,
.menu-left,
.cart-menu-wrap {
    overflow-x: clip;  
}

/* ══════════════════════════════════════
   Lunch Section
══════════════════════════════════════ */
.lunch-section {
    margin-bottom: var(--space-6, 24px);
}

.lunch-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-primary-highlight, #cedcd8);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 16px;
}

.lunch-section__icon  { font-size: 1.5rem; }
.lunch-section__title { font-size: var(--text-lg, 1.2rem); font-weight: 700; margin: 0; }
.lunch-section__subtitle { font-size: var(--text-sm, 0.875rem); color: var(--color-text-muted); margin: 2px 0 0; }

.lunch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* Sold out state */
.lunch-card--soldout { opacity: 0.55; pointer-events: none; }
.lunch-card--soldout .pc-dish-img { filter: grayscale(80%); }
.lunch-card__soldout-badge {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45);
    color: #fff; font-weight: 700; font-size: 0.8rem;
    border-radius: inherit;
}

/* Price override badge on image */
.lunch-card__override-badge {
    position: absolute; top: 6px; right: 6px;
    background: var(--color-warning, #964219);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 2px 7px; border-radius: 999px;
}

/* Override price display */
.lunch-price--original { text-decoration: line-through; color: var(--color-text-muted); margin-right: 4px; font-size: 0.8em; }
.lunch-price--override { color: var(--color-warning, #964219); font-weight: 700; }

/* Lunch type badge */
.lunch-type-badge { font-size: 0.65rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.lunch-type--meat   { background: #fde8d8; color: #7a3010; }
.lunch-type--veg    { background: #d4f0d0; color: #1a5c1a; }
.lunch-type--fish   { background: #d0eaf5; color: #0a4a6e; }
.lunch-type--lentil { background: #f5f0d0; color: #5c4a0a; }

/* Divider between lunch and full menu */
.lunch-section__divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 16px; color: var(--color-text-muted);
    font-size: var(--text-sm, 0.875rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.lunch-section__divider::before,
.lunch-section__divider::after { content: ''; flex: 1; height: 1px; background: var(--color-divider); }
.lunch-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #5d4037;
    font-weight: 500;
}
.lunch-banner.hidden { display: none; }
.lunch-banner__icon { font-size: 1.2rem; }
.bento-promo-bar {
  grid-column: 1 / 13;
  grid-row: 3;
  background: var(--c-primary);
  border-radius: var(--radius-lg);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
}
.bento-promo-bar::after {
  content: 'HOT DEAL';
  position: absolute;
  right: 100px;
  
  font-size: 100px;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
}
.bento-promo-text {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}
.bento-promo-badge {
  background: var(--c-accent);
  color: var(--c-secondary);
  
  font-size: 22px;
  font-weight: 900;
  padding: 6px 20px;
  border-radius: var(--radius-md);
  rotate: -1.5deg;
  flex-shrink: 0;
}
/* ══════════════════════════════════════
   CART LOCKED BANNER — .clb  (v2)
══════════════════════════════════════ */
.clb {
    margin: 25px 14px 14px;
    border: 1.5px solid rgba(232, 101, 26, 0.35);
    border-radius: var(--radius-xl);
    background: rgba(232, 101, 26, 0.06);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.clb[data-open="true"] {
    border-color: rgba(232, 101, 26, 0.55);
}

/* pulse glow once on auto-open */
@keyframes clbPulse {
    0%   { box-shadow: 0 0 0 0 rgba(232, 101, 26, 0.0); }
    30%  { box-shadow: 0 0 0 5px rgba(232, 101, 26, 0.22); }
    70%  { box-shadow: 0 0 0 8px rgba(232, 101, 26, 0.10); }
    100% { box-shadow: 0 0 0 0 rgba(232, 101, 26, 0.0); }
}
.clb.clb--announce {
    animation: clbPulse 0.85s ease forwards;
}

/* ── Toggle row (always visible) ── */
.clb-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 11px 13px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.clb-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.clb-toggle-left > svg {
    flex-shrink: 0;
    color: var(--c-primary);
}

.clb-toggle-left strong {
    font: 700 14px/1 var(--font);
    color: var(--c-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.clb-meta {
    font: 500 12px/1 var(--font);
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Chevron ── */
.clb-chevron {
    flex-shrink: 0;
    color: var(--c-text-muted);
    transition: transform 0.26s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.clb[data-open="true"] .clb-chevron {
    transform: rotate(180deg);
}

/* ── Collapsible body — max-height based ── */
.clb-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0px solid var(--c-border);
}

.clb[data-open="true"] .clb-body {
    max-height: 200px;
    border-top-width: 1px;
}

.clb-body-inner {
    padding: 10px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clb-sub {
    font: 500 13px/1.6 var(--font);
    color: var(--c-text-muted);
    margin: 0;
}

/* ── Track button ── */
.clb-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font: 700 12px/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    align-self: flex-start;
    transition: background var(--tr), transform 0.18s;
    position: relative;
    overflow: hidden;
}

.clb-track-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-110%);
    transition: transform 0.28s ease;
}

.clb-track-btn:hover::after { transform: translateX(0); }
.clb-track-btn:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.clb-track-btn:active { transform: scale(0.97); }
.clb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clb-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--c-primary);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--c-text-muted);
    font: 700 12px/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--tr), color var(--tr), background var(--tr), transform .18s;
}

.clb-support-btn svg {
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
    color: var(--c-primary);
}

.clb-support-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(232,101,26,0.06);
    transform: translateY(-1px);
}

.clb-support-btn:active {
    transform: scale(0.97);
}
/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 1140px) {
    .cart-stores-grid { gap: 16px; }
    .pc-dish-img { width: 130px; height: 130px; }
    .pc-img-wrap { top: -65px; height: 240px; }
    .pc-body     { margin-top: 82px; }
}
@media (max-width: 1100px) {
    .cart-stores-grid { grid-template-columns: repeat(3, 1fr); }
    .menu-grid { gap: 24px; padding-top: 24px; }
    .menu-product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .cart-menu-wrap   { grid-template-columns: 1fr 340px; }
}

@media (max-width: 900px) {
    .store-card-hours       { display: none; }
    .store-card-select-hint { display: none; }
    .store-card-overlay {
        background: linear-gradient(to bottom, transparent 0%, transparent 0%, rgb(15 10 5 / 83%) 70%, rgba(15, 10, 5, 0.92) 100%);
        padding: 0 8px 8px; gap: 2px;
    }
    .store-card-name { font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,0.85); }
    .store-card-addr { display: none; }
    .cart-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cart-type-grid   { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .type-card-icon svg { width: 24px; height: 24px; }
    .type-card-name     { font-size: 0.80rem; }
    .type-card-sub      { font-size: 0.70rem; }
    .cart-menu-wrap     { grid-template-columns: 1fr; }
    .cp-cart {
        position: fixed; bottom: 0; left: 0; right: 0;
        height: auto; max-height: 50dvh;
        border-top: 1px solid var(--c-border);
        border-left: none; z-index: 200;
    }
    .menu-grid {
        gap: 20px;
        padding: 16px 20px 120px;
        overflow: visible;
    }
    .menu-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
    .menu-left { padding: 0; }
    .pc-dish-img { width: 110px; height: 110px; }
    .pc-img-wrap { top: -54px; height: 222px; }
    .pc-body { margin-top: 76px; padding: 0 10px 14px; }

    /* FAB + mobile cart modal */
    .mob-cart-fab {
        position: fixed; 
        bottom: calc(var(--mobile-nav-height, 0px) + 16px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 300; display: flex; align-items: center; gap: 10px;
        padding: 13px 20px; background: var(--c-primary); color: #fff;
        border: none; border-radius: var(--radius-full);
        font: 700 0.92rem/1 var(--font);
        box-shadow: 0 8px 28px rgba(232,101,26,0.45);
        cursor: pointer; white-space: nowrap;
        transition: opacity 0.22s, transform 0.22s; opacity: 1;
    }
    .mob-cart-fab.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
    .mob-cart-fab:active { transform: translateX(-50%) scale(0.96); }
    .mob-cart-fab-badge {
        background: #fff; color: var(--c-primary);
        font: 800 0.75rem/1 var(--font); border-radius: 50%;
        width: 20px; height: 20px;
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .mob-cart-fab-total { font: 600 0.88rem/1 var(--font); opacity: 0.9; }
    .mob-cart-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.55);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        z-index: 500; animation: fadeIn .2s ease;
    }
    .mob-cart-overlay.hidden { display: none; }
    .mob-cart-modal {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--c-bg-card); border-radius: 24px 24px 0 0;
        z-index: 510; display: flex; flex-direction: column;
        max-height: 92dvh; box-shadow: 0 -8px 48px rgba(0,0,0,0.28);
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(.34,1.2,.64,1);
    }
    .mob-cart-modal.hidden  { display: flex; transform: translateY(100%); pointer-events: none; }
    .mob-cart-modal.open    { transform: translateY(0); pointer-events: all; }
    .mob-cart-modal.closing { animation: sheetDown .28s ease forwards; }
    .mob-cart-drag-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--c-border); margin: 12px auto 0; flex-shrink: 0; }
    .mob-cart-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--c-border); flex-shrink: 0; }
    .mob-cart-modal-title  { font: 700 1rem/1 var(--font); color: var(--c-text); }
    .sheet-cart-header     { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 0; flex-shrink: 0; }
    .mob-cart-modal-close  { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--c-border); background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-text-muted); flex-shrink: 0; }
    .mob-cart-modal-body   { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 18px 8px; }
    .mob-cart-ctx          { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
    .mob-cart-ctx-pill     { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--radius-full); border: 1px solid var(--c-border); font: 600 0.78rem/1 var(--font); color: var(--c-text-muted); background: var(--c-glass-bg); }
    .mob-cart-modal-footer { flex-shrink: 0; background: var(--c-bg-card); border-top: 1px solid var(--c-border); padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); }
    .mob-cart-modal-footer .cp-checkout-btn { width: 100%; }
    .cp-cart { display: none !important; }
}

@media (max-width: 680px) {
    .cart-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cart-setup       { padding: 20px 14px 36px; }
    .wiz-step-label   { display: none; }
    .wiz-connector    { max-width: 40px; }
    .store-card       { min-height: unset; max-height: unset; }
    .cart-type-grid   { margin-bottom: var(--mobile-nav-height); gap: 10px; }
    .type-card        { min-width: 110px; }
    .type-card-inner  { padding: 14px 10px; }
    
    .menu-grid {
        gap: 16px;
        padding: 12px 14px 120px;
    }
    .menu-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .pc-dish-img { width: 96px; height: 96px; }
    .pc-img-wrap { top: -48px; height: 212px; }
    .pc-body { margin-top: 68px; padding: 0 9px 12px; }
    .pc-name { font-size: 0.82rem; }
    .pc-ingredients { font-size: 0.70rem; }
    .pc-price { font-size: 0.95rem; }
    .btn-add-cart { padding: 6px 9px; font-size: 10.5px; }
    .pc-rating, .pc-kcal { font-size: 10px; }
    .product-tag    { font-size: 9px; padding: 2px 7px; }
}

@media (max-width: 540px) {
    .cart-stores-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .store-card-name    { font-size: 0.87rem; }
    .store-card-addr    { font-size: 0.73rem; }
    .store-card-hours   { font-size: 10px; }
    .store-card-badge   { font-size: 10px; padding: 2px 7px; }
    .cart-type-grid     { gap: 8px; }
    .type-card-inner    { padding: 12px 6px; }
    .type-card-icon svg { width: 22px; height: 22px; }
    .type-card-name     { font-size: 0.75rem; }
    .type-card-sub      { display: none; }
    .cart-phase-label   { font-size: 0.85rem; margin-bottom: 10px; }
    .cart-phase-num     { width: 22px; height: 22px; font-size: 0.75rem; }
}

@media (max-width: 460px) {
    .menu-grid {
        gap: 10px;
        padding: 10px 12px 120px;
    }
    .menu-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .pc-dish-img { width: 88px; height: 88px; }
    .pc-img-wrap { top: -44px; height: 204px; }
    .pc-body { margin-top: 64px; padding: 0 8px 11px; }
    .pc-name { font-size: 0.78rem; }
    .pc-ingredients { font-size: 0.68rem; }
    .pc-price { font-size: 0.92rem; }
    .btn-add-cart { padding: 6px 8px; font-size: 10px; }
    .product-tag    { font-size: 9px; padding: 2px 7px; }
}

/* ── 420px: problem zone — tighter padding, smaller image ── */
@media (max-width: 420px) {
    .menu-grid {
        gap: 8px;
        padding: 8px 10px 120px;
    }
    .menu-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .pc-dish-img { width: 82px; height: 82px; }
    .pc-img-wrap { top: -40px; height: 198px; }
    .pc-body { margin-top: 60px; padding: 0 7px 10px; }
    .pc-name { font-size: 0.75rem; }
    .pc-ingredients { font-size: 0.66rem; }
    .pc-price { font-size: 0.88rem; }
    .btn-add-cart { padding: 5px 8px; font-size: 9.5px; gap: 3px; }
    .product-tag    { font-size: 9px; padding: 2px 6px; }
    .pc-meta-row    { gap: 6px; }
}

/* ── 400px: single column ── */
@media (max-width: 380px) {
    .cart-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .store-card-name  { font-size: 0.78rem; }
    .store-card-addr  { font-size: 0.68rem; }
    .store-card-badge { font-size: 9px; padding: 2px 6px; }
    .store-hour-row   { font-size: 8.5px; }
    .type-card-name   { font-size: 0.70rem; }
    .menu-grid {
        gap: 8px;
        padding: 8px 8px 120px;
    }
    .menu-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .pc-dish-img { width: 78px; height: 78px; }
    .pc-img-wrap { top: -38px; height: 192px; }
    .pc-body { margin-top: 58px; padding: 0 6px 10px; }
    .pc-name { font-size: 0.72rem; }
    .pc-ingredients { font-size: 0.64rem; }
    .pc-price { font-size: 0.86rem; }
    .btn-add-cart { padding: 5px 7px; font-size: 9px; }
    .product-tag    { font-size: 10px; padding: 3px 9px; }
    .pc-meta-row    { gap: 10px; }
}

@media (max-width: 360px) {
    .cart-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .store-card-name  { font-size: 0.78rem; }
    .store-card-addr  { font-size: 0.68rem; }
    .store-card-badge { font-size: 9px; padding: 2px 6px; }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 80px 0;
        padding: 45px 16px 180px;
    }
}

@media (max-width: 280px) {
    .cart-stores-grid { grid-template-columns: 1fr; gap: 14px; }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 80px 0;
        padding: 40px 12px 180px;
    }
    .pc-dish-img { width: 110px; height: 110px; }
    .pc-img-wrap { top: -55px; height: 225px; }
    .pc-body     { margin-top: 78px; }
}
