/* PINERPRO — Customer page specifics */
.category-bar { display: flex; gap: .85rem; overflow-x: auto; overflow-y: hidden; padding: .35rem .1rem .75rem; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #52525b transparent; }
.category-bar::-webkit-scrollbar { height: 8px; }
.category-bar::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 999px; }
.category-pill { flex: 0 0 auto; min-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .85rem .9rem; border-radius: 18px; text-decoration: none; color: var(--pp-color-text); background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); box-shadow: none; scroll-snap-align: start; transition: transform var(--pp-transition-fast), border-color var(--pp-transition-fast), background var(--pp-transition-fast); }
.category-pill:hover { transform: translateY(-2px); text-decoration: none; border-color: #52525b; background: var(--pp-color-surface-alt); }
.category-pill:nth-child(n) { background: var(--pp-color-surface); }
.category-icon { display: block; font-size: 1.9rem; line-height: 1; filter: none; }
.category-name { display: block; font-size: .9rem; font-weight: 700; }
.results-page { padding-top: 2rem; }
.results-main h1 { margin: 0 0 .35rem; }
#results-query { margin: 0 0 1.5rem; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 2rem; }
.quick-filters { display: flex; flex-wrap: wrap; gap: .65rem; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 36px; padding: .4rem .85rem; border: 1px solid var(--pp-color-border); border-radius: 999px; background: var(--pp-color-surface); color: var(--pp-color-text-muted); font: inherit; font-size: .84rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background var(--pp-transition-fast), border-color var(--pp-transition-fast), color var(--pp-transition-fast); }
.filter-chip:hover { border-color: rgba(212,175,55,.45); color: var(--pp-color-text); background: var(--pp-color-surface-alt); }
.filter-chip[aria-pressed="true"] { border-color: rgba(212,175,55,.55); background: rgba(212,175,55,.12); color: var(--pp-gold-bright); }
.filter-chip-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: inherit; }
.filter-chip-icon svg { display: block; }
.home-categories { margin: .15rem 0 2.25rem; }
.home-category-strip { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 1.25rem 1.75rem; overflow-x: auto; overflow-y: hidden; padding: .2rem .1rem .5rem; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #52525b transparent; }
.home-category-strip::-webkit-scrollbar { height: 8px; }
.home-category-strip::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 999px; }
.home-category-link { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: .4rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--pp-color-text); text-decoration: none; font-size: .88rem; font-weight: 600; min-width: 84px; text-align: center; }
.home-category-link:hover { color: #fff; text-decoration: none; background: transparent; border: 0; }
.home-category-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1; }
.sort-control { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; color: var(--pp-color-text); font-size: .92rem; font-weight: 600; }
.sort-control span { margin: 0; }
.sort-icon { display: inline-flex; align-items: center; color: var(--pp-color-text-muted); }
.sort-icon svg { display: block; }
.sort-control select { width: auto; min-width: 180px; min-height: 40px; padding: .5rem .9rem; border-radius: 999px; }
/* Results page cards: spacious + promo tags + selection */
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.results-grid .restaurant-card, .results-grid .result-card {
  margin: 0; height: 100%; border-radius: 16px; background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); overflow: hidden; cursor: pointer;
  transition: border-color var(--pp-transition-base), box-shadow var(--pp-transition-base), transform var(--pp-transition-fast);
}
.results-grid .restaurant-card:hover, .results-grid .result-card:hover { border-color: var(--pp-color-border-strong); transform: translateY(-1px); }
.results-grid .restaurant-card.is-selected, .results-grid .result-card.is-selected,
.results-grid .restaurant-card:focus-within, .results-grid .result-card:focus-within {
  border-color: rgba(212,175,55,.75);
  box-shadow: 0 0 0 1px rgba(212,175,55,.45), 0 0 0 4px rgba(212,175,55,.12), 0 12px 34px rgba(212,175,55,.12), 0 0 28px rgba(245,166,35,.10);
  outline: none;
}
.results-grid .restaurant-card a, .results-grid .result-card a { display: flex; flex-direction: column; height: 100%; grid-template-columns: none; color: inherit; outline: none; }
.results-grid .card-media { position: relative; }
.results-grid .restaurant-card img, .results-grid .card-media img { width: 100%; height: 150px; min-height: 150px; aspect-ratio: auto; object-fit: cover; display: block; }
.results-grid .card-media .promo-tag { top: .65rem; left: .65rem; max-width: calc(100% - 1.3rem); font-size: .7rem; }
.results-grid .restaurant-card div:not(.card-media) { padding: 1rem 1.1rem 1.15rem; }
.results-grid .restaurant-card h2 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--pp-color-text); }
.results-grid .restaurant-card p { margin: .2rem 0; font-size: .82rem; line-height: 1.5; color: var(--pp-color-text-muted); }
.results-grid .restaurant-card .status { margin-top: .45rem; font-size: .72rem; font-weight: 500; }
.results-grid .loading-state, .results-grid .error-state, .results-grid .empty-state { grid-column: 1 / -1; }
@media (max-width: 1200px) { .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } .sort-control { width: 100%; justify-content: space-between; } .sort-control select { min-width: 0; flex: 1; } }
.home-row { margin: 2.25rem 0 2.75rem; }
.home-row .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin: 0 0 1rem; }
.home-row .section-head h2 { margin: 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.012em; color: var(--pp-color-text); }
.home-categories .home-category-strip { gap: 1.1rem 1.35rem; }
.home-category-link { min-width: 76px; font-size: .8rem; font-weight: 500; color: var(--pp-color-text-muted); gap: .5rem; transition: color var(--pp-transition-fast); }
.home-category-link:hover { color: var(--pp-gold-bright); }
.home-category-icon { font-size: 1.65rem; }

/* Horizontal rows */
.home-categories .home-category-strip {
  display: flex; gap: 1.1rem; overflow-x: auto; overflow-y: hidden; padding: .2rem .05rem .7rem;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #4a4030 transparent; align-items: stretch;
}
.home-row .promo-scroll::-webkit-scrollbar, .home-categories .home-category-strip::-webkit-scrollbar { height: 6px; }
.home-row .promo-scroll::-webkit-scrollbar-thumb, .home-categories .home-category-strip::-webkit-scrollbar-thumb { background: #4a4030; border-radius: 999px; }
.home-row .promo-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.3rem) / 4); grid-template-rows: 1fr; gap: 1.1rem;
  overflow-x: auto; overflow-y: hidden; padding: .25rem .15rem .85rem; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #4a4030 transparent; align-items: stretch;
}
@media (max-width: 900px) { .home-row .promo-scroll { grid-auto-columns: calc((100% - 2.2rem) / 3); } }
@media (max-width: 640px) { .home-row .promo-scroll { grid-auto-columns: calc((100% - 1.1rem) / 2); } }
@media (max-width: 420px) { .home-row .promo-scroll { grid-auto-columns: 78%; } }

/* Minimal restaurant cards */
.home-row .card.restaurant-item {
  width: 100%; min-width: 0; max-width: none; margin: 0; border-radius: 16px; height: 100%; overflow: hidden;
  background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); cursor: pointer;
  transition: border-color var(--pp-transition-base), box-shadow var(--pp-transition-base), transform var(--pp-transition-fast);
}
.home-row .card.restaurant-item:hover { border-color: var(--pp-color-border-strong); transform: translateY(-1px); }
.home-row .card.restaurant-item.is-selected,
.home-row .card.restaurant-item:focus-within {
  border-color: rgba(212,175,55,.75);
  box-shadow: 0 0 0 1px rgba(212,175,55,.45), 0 0 0 4px rgba(212,175,55,.12), 0 12px 34px rgba(212,175,55,.12), 0 0 28px rgba(245,166,35,.10);
  outline: none;
}
.home-row .card a { display: flex; flex-direction: column; height: 100%; color: inherit; outline: none; }
.home-row .card .card-media { position: relative; background: #0f0f10; }
.home-row .card .card-media img { width: 100%; height: 128px; aspect-ratio: auto; object-fit: cover; display: block; }
.home-row .card .promo-tag, .results-grid .card-media .promo-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2; display: inline-flex; align-items: center; max-width: calc(100% - 1.2rem);
  padding: .3rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); border: 0;
}
.promo-tag--free-delivery, .promo-tag--emerald, .promo-tag--special, .promo-tag--healthy, .promo-tag--open-now { background: #059669; color: #fff; }
.promo-tag--bogo, .promo-tag--discount { background: #FFD400; color: #111; }
.home-row .card h3 { padding: .85rem 1rem 0; margin: 0; font-size: .94rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--pp-color-text); }
.home-row .card .card-meta.minimal { padding: .4rem 1rem 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .77rem; color: var(--pp-color-text-muted); }
.home-row .card .card-meta.minimal .meta-left { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.home-row .card .card-meta.minimal .meta-emoji { font-size: .88rem; line-height: 1; opacity: .95; }
.home-row .card .card-meta.minimal .meta-time { white-space: nowrap; font-weight: 500; }
.home-row .card .card-meta.minimal .meta-price { display: inline-flex; align-items: center; gap: .1rem; white-space: nowrap; color: var(--pp-gold-muted); font-weight: 600; letter-spacing: .05em; font-size: .74rem; }
.home-row .card .operating-status { padding: .45rem 1rem 1rem; margin-top: auto; font-size: .73rem; font-weight: 500; letter-spacing: .01em; }
.home-row .card .operating-status.open { color: #9db08a; }
.home-row .card .operating-status.closed { color: #b8a08e; }
.home-row .card.restaurant-item.placeholder-card {
  pointer-events: none; cursor: default; border: 1px dashed var(--pp-color-border); background: rgba(18,18,20,.45);
  box-shadow: none; transform: none;
}
.home-row .card.restaurant-item.placeholder-card:hover { border-color: var(--pp-color-border); transform: none; box-shadow: none; }
.home-row .card.restaurant-item.placeholder-card .card-media { height: 128px; background: linear-gradient(180deg, rgba(38,37,33,.35), rgba(38,37,33,.15)); }
.placeholder-lines { padding: .85rem 1rem 1rem; display: grid; gap: .5rem; }
.placeholder-line { height: .55rem; border-radius: 999px; background: rgba(169,161,146,.12); }
.placeholder-line-title { width: 72%; height: .65rem; }
.placeholder-line-meta { width: 88%; }
.placeholder-line-status { width: 46%; margin-top: .15rem; }
.home-row .promo-scroll .empty-state, .home-row .promo-scroll .loading-state { flex: 1 0 100%; min-width: 200px; grid-column: 1 / -1; }
.results-layout { display: block; }
.hero-content p { color: var(--pp-color-text-muted); max-width: 60ch; }
main > section { margin-bottom: var(--pp-space-lg); }
#checkout-form section, .payment-page section { background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-md); padding: var(--pp-space-md); margin-bottom: var(--pp-space-md); }
#checkout-form { display: grid; gap: var(--pp-space-md); max-width: var(--pp-container-md); }
#checkout-form h2 { margin-top: 0; font-size: var(--pp-font-size-h3); }
.totals { max-width: 420px; margin-left: auto; background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-md); padding: var(--pp-space-md); }
.payment-status { min-height: 120px; }
#food-form fieldset label { display: flex; gap: var(--pp-space-sm); align-items: center; margin: var(--pp-space-xs) 0; font-weight: var(--pp-font-weight-regular); }
#food-form input[type="radio"], #food-form input[type="checkbox"] { width: 1rem; height: 1rem; }
.dish-list a { color: var(--pp-color-text); }
.promo { padding: var(--pp-space-sm) var(--pp-space-md); border-radius: var(--pp-radius-sm); background: var(--pp-color-surface); border: 1px solid var(--pp-color-border); }
.auth-card h1 { margin-bottom: var(--pp-space-xs); }
.auth-card > p { color: var(--pp-color-text-muted); margin-bottom: var(--pp-space-md); }
.offer-card h2, .order-card h2 { margin-top: 0; font-size: var(--pp-font-size-h4); }
.menu-item h4 { margin: 0; }
.menu-item h4 a { color: var(--pp-color-text); }
.menu-item p { margin: 0.15rem 0; color: var(--pp-color-text-muted); font-size: var(--pp-font-size-sm); }
toast, .toast { position: fixed; bottom: var(--pp-space-md); right: var(--pp-space-md); z-index: var(--pp-z-toast); padding: var(--pp-space-sm) var(--pp-space-md); background: #1f2937; color: #fff; border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-sm); box-shadow: var(--pp-shadow-md); }

.section-head .section-see-all { min-height: 34px; padding: .35rem .8rem; font-size: .82rem; font-weight: 500; white-space: nowrap; }

/* Cart redesign: grouping, qty controls, customization, addons */
.cart-page { max-width: 920px; margin: 0 auto; }
.cart-section { margin: 1.25rem 0 1.5rem; }
.cart-restaurant-group { border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-md); background: var(--pp-color-surface); margin: 0 0 1rem; overflow: hidden; }
.cart-restaurant-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--pp-color-border); background: var(--pp-color-surface-alt); }
.cart-restaurant-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem; margin: 0; border: 0; border-bottom: 1px solid var(--pp-color-border); border-radius: 0; background: transparent; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-main h3 { margin: 0 0 .2rem; font-size: .98rem; }
.cart-item-note-label { font-size: .78rem; color: var(--pp-color-text-muted); margin-top: .5rem; }
.cart-item-note { margin-top: .25rem; min-height: 56px; font-size: .85rem; padding: .55rem .7rem; }
.cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; min-width: 170px; }
.qty-controls { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--pp-color-border); border-radius: 999px; padding: .2rem; background: var(--pp-color-surface-alt); }
.qty-btn { width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--pp-color-text); font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-btn:hover { background: rgba(212,175,55,.12); color: var(--pp-gold-bright); }
.qty-value { min-width: 1.6rem; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-remove-btn { min-height: 34px; padding: .3rem .7rem; font-size: .8rem; }
.item-line-total { margin: 0; font-size: .95rem; }
.cart-customization { border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-md); background: var(--pp-color-surface); padding: 1.1rem; }
.cart-customization h2 { margin-top: 0; }
.utensil-toggle { margin: .75rem 0; font-weight: 500; color: var(--pp-color-text); }
.addons-step { border: 1px solid rgba(212,175,55,.3); border-radius: var(--pp-radius-md); background: rgba(212,175,55,.04); padding: 1.1rem; }
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; margin: .75rem 0 1rem; }
.addon-card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem; border: 1px solid var(--pp-color-border); border-radius: 12px; background: var(--pp-color-surface); }
.addon-card h3 { margin: 0 0 .15rem; font-size: .95rem; }
.addon-card p { margin: 0; }
.addons-actions, .cart-actions { margin-top: 1rem; }
.fee-breakdown { margin: .5rem 0; }
.dropoff-options { display: grid; gap: .5rem; border: 0; padding: 0; margin: .5rem 0 1rem; }
.radio-card { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--pp-color-border); border-radius: 12px; background: var(--pp-color-surface-alt); cursor: pointer; }
.radio-card:has(input:checked) { border-color: rgba(212,175,55,.55); background: rgba(212,175,55,.08); }
.payment-breakdown { border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-md); background: var(--pp-color-surface); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.payment-breakdown h2 { margin-top: 0; font-size: 1.05rem; }
.payment-confirmation { text-align: left; }
.payment-confirmation .actions { margin-top: 1rem; }
#payment-inline-error { margin: .5rem 0; }
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 1fr; }
  .cart-controls { align-items: flex-start; flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* Minimalist redesign: restaurant view, modals, floating order bar, cart */
.site-header.site-header-minimal { display: flex; align-items: center; justify-content: flex-start; padding: .75rem 1rem; background: rgba(10,10,11,.96); }
.site-header.site-header-minimal .brand { display: inline-flex; }
.restaurant-view-page main.restaurant-view { max-width: 920px; margin: 0 auto; padding: 0 1rem 7rem; }
.restaurant-view-page main.restaurant-view:has(.restaurant-cover-full) { max-width: none; padding: 0 0 7rem; }
.restaurant-view-page .restaurant-meta-bar,
.restaurant-view-page .menu-category-nav,
.restaurant-view-page .menu-sections { max-width: 920px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; }
.restaurant-cover { position: relative; border-radius: 20px; overflow: hidden; margin: .25rem 0 1rem; min-height: 220px; background: #151516; }
.restaurant-cover.restaurant-cover-full { width: 100%; margin: 0; border-radius: 0; min-height: clamp(260px, 42vw, 420px); }
.restaurant-cover img { width: 100%; height: clamp(220px, 38vw, 360px); object-fit: cover; display: block; }
.restaurant-cover.restaurant-cover-full img { height: 100%; min-height: clamp(260px, 42vw, 420px); }
.restaurant-cover-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 1rem 1.25rem 1.2rem; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.72) 100%); }
.restaurant-cover-title { margin-top: auto; }
.restaurant-cover-overlay h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.cover-brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; padding: .2rem 0; }
.cover-brand .brand-name { color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cover-brand:hover { text-decoration: none; opacity: .95; }
.restaurant-meta-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0 1rem; border-bottom: 1px solid var(--pp-color-border); }
.restaurant-meta-line { margin: 0; color: var(--pp-color-text-muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.restaurant-meta-line .dot { opacity: .5; }
.restaurant-delivery-indicator { margin: .45rem 0 0; display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--pp-gold-bright); }
.restaurant-delivery-indicator .indicator-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.menu-category-nav { position: sticky; top: 0; z-index: 30; display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 1rem; margin: 0 auto .5rem; background: rgba(11,11,12,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pp-color-border); }
.menu-category-nav a { flex: 0 0 auto; padding: .45rem .85rem; border-radius: 999px; color: var(--pp-color-text-muted); text-decoration: none; border: 1px solid transparent; font-size: .9rem; font-weight: 500; }
.menu-category-nav a.active, .menu-category-nav a:hover { color: var(--pp-gold-bright); border-color: rgba(212,175,55,.4); background: rgba(212,175,55,.08); }
.menu-sections { display: grid; gap: 1.5rem; }
.menu-category-section { scroll-margin-top: 72px; }
.menu-category-section h2 { margin: .2rem 0 .8rem; font-size: 1.15rem; }
.menu-item-card { display: grid; grid-template-columns: 88px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--pp-color-border); }
.menu-item-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: #18181b; }
.menu-item-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
.menu-item-body p { margin: 0; color: var(--pp-color-text-muted); font-size: .88rem; line-height: 1.45; }
.menu-item-body .price { color: var(--pp-color-text); font-weight: 600; margin-top: .35rem; }
.item-add-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(212,175,55,.5); background: rgba(212,175,55,.1); color: var(--pp-gold-bright); font-size: 1.4rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.item-add-btn:hover { background: rgba(212,175,55,.18); }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.62); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.modal-overlay[hidden] { display: none !important; }
.modal-sheet { width: min(720px, 100%); max-height: 88vh; overflow: auto; background: #121214; border: 1px solid var(--pp-color-border); border-radius: 18px 18px 12px 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--pp-color-border); position: sticky; top: 0; background: #121214; z-index: 1; }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-close { border: 0; background: transparent; color: var(--pp-color-text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-body { padding: 1rem 1.1rem 1.2rem; }
.modal-actions { padding: 0 1.1rem 1.1rem; }
body.modal-open { overflow: hidden; }

.customize-item-name { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 600; }
.customize-item-base { margin: 0 0 1rem; color: var(--pp-color-text-muted); }
.fbt-section { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--pp-color-border); }
.fbt-list { display: grid; gap: .5rem; margin-top: .5rem; }
.fbt-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--pp-color-border); border-radius: 10px; background: var(--pp-color-surface-alt); }
.fbt-item span { display: flex; flex-direction: column; }
.fbt-item small { color: var(--pp-color-text-muted); }
.customize-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pp-color-border); position: sticky; bottom: 0; background: #121214; }
.qty-stepper { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--pp-color-border); border-radius: 999px; padding: .2rem; }
.qty-stepper button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--pp-color-text); font-size: 1.1rem; cursor: pointer; }
.qty-stepper span { min-width: 1.4rem; text-align: center; font-weight: 600; }

.view-order-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(720px, calc(100% - 2rem)); z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .85rem .75rem 1rem; border-radius: 14px; background: #1a1a1d; border: 1px solid rgba(212,175,55,.35); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.view-order-bar[hidden] { display: none !important; }
.view-order-info { display: flex; flex-direction: column; gap: .1rem; color: var(--pp-color-text-muted); font-size: .88rem; }
.view-order-info strong { color: var(--pp-color-text); font-size: 1rem; }
body.has-view-order-bar .restaurant-view { padding-bottom: 7rem; }

/* Cart page minimalist, no header, restaurant-grounded */
.cart-page.minimal-cart { max-width: 920px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.cart-page.minimal-cart h1 { margin: 0 0 1rem; font-size: 1.5rem; }
.cart-restaurant-header { align-items: center; gap: .75rem; }
.cart-restaurant-image { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #1f1f23; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; }
.cart-restaurant-image.placeholder { font-size: 1.2rem; }
.cart-restaurant-meta h3 { margin: 0; }
@media (min-width: 700px) { .modal-overlay { align-items: center; } .modal-sheet { border-radius: 18px; } }

/* Polished redesign additions: home header, global cart, 3-col menu, restaurant cart btn */
.home-header { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr) auto; align-items: center; gap: .75rem 1rem; padding: .7rem max(1rem, calc((100% - 1200px) / 2 + 1rem)); }
.home-header-left { min-width: 0; }
.home-user-block { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.home-user-name { font-size: .8rem; color: var(--pp-color-text-muted); }
.home-location { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; color: var(--pp-color-text); padding: 0; cursor: pointer; text-align: left; min-width: 0; }
.home-location-text { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.home-search { position: relative; display: flex; align-items: center; width: 100%; }
.home-search-icon { position: absolute; left: .75rem; color: var(--pp-color-text-muted); display: inline-flex; }
.home-search input { width: 100%; padding-left: 2.2rem; min-height: 42px; border-radius: 999px; }
.home-header-actions { display: inline-flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.global-cart-btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--pp-color-border); background: var(--pp-color-surface); color: var(--pp-color-text); border-radius: 999px; padding: .4rem .7rem .4rem .55rem; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.global-cart-btn.has-items { border-color: rgba(212,175,55,.5); background: rgba(212,175,55,.08); }
.global-cart-btn.cart-bloat { animation: cartBloat .45s ease; }
@keyframes cartBloat { 0%{transform:scale(1)} 35%{transform:scale(1.12)} 70%{transform:scale(.97)} 100%{transform:scale(1)} }
.global-cart-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.global-cart-count { font-size: .72rem; color: var(--pp-color-text-muted); }
.global-cart-price { font-size: .84rem; font-weight: 700; }

.carts-overview-sheet { max-width: 720px; }
.global-cart-group { border: 1px solid var(--pp-color-border); border-radius: 14px; padding: .9rem; margin: 0 0 .85rem; background: var(--pp-color-surface); }
.global-cart-group-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.global-cart-group-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #1f1f23; display: inline-flex; align-items: center; justify-content: center; }
.global-cart-group-img.placeholder { font-size: 1.2rem; }
.global-cart-group-meta h3 { margin: 0; font-size: 1rem; }
.global-cart-group-meta p { margin: .1rem 0 0; color: var(--pp-color-text-muted); font-size: .85rem; }
.global-cart-group-items { margin: .4rem 0 .75rem 1.1rem; padding: 0; color: var(--pp-color-text-muted); font-size: .88rem; }
.global-cart-group-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.restaurant-cover { position: relative; }
.cover-top-row { position: absolute; top: .8rem; left: 1rem; right: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; z-index: 3; }
.restaurant-cover-overlay { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.72) 100%); }
.restaurant-cart-btn { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(212,175,55,.45); background: rgba(18,18,20,.95); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: .7rem 1rem; box-shadow: 0 12px 28px rgba(0,0,0,.4); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.restaurant-cart-btn[hidden] { display: none !important; }
.restaurant-cart-btn.bloat { animation: cartBloat .5s ease; }
.restaurant-cart-btn .cart-btn-meta { font-size: .84rem; white-space: nowrap; }
.restaurant-cart-btn .cart-btn-meta strong { color: var(--pp-gold-bright); }

.menu-category-nav { top: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.menu-item-card { display: flex; flex-direction: column; border: 1px solid var(--pp-color-border); border-radius: 14px; overflow: hidden; background: var(--pp-color-surface); padding: 0; }
.menu-item-media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #171718; }
.menu-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.menu-item-media .item-add-btn { position: absolute; top: .55rem; right: .55rem; width: 38px; height: 38px; border-radius: 999px; border: 2px solid #ffffff; background: #111827; color: #ffffff; font-size: 1.45rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 2px rgba(0,0,0,.25); cursor: pointer; }
.menu-item-card .menu-item-body { padding: .75rem .8rem .85rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.menu-item-card .menu-item-body h3 { margin: 0; font-size: .98rem; }
.menu-item-card .menu-item-body p { margin: 0; font-size: .84rem; color: var(--pp-color-text-muted); line-height: 1.35; }
.menu-item-card .menu-item-body .price { margin-top: .2rem; color: var(--pp-color-text); font-weight: 700; }
.card-qty-controls { margin-top: .45rem; min-height: 30px; }
.inline-qty { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--pp-color-border); border-radius: 999px; padding: .15rem; background: var(--pp-color-surface-alt); }
.inline-qty-btn { width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--pp-color-text); cursor: pointer; font-size: 1rem; }
.inline-qty span { min-width: 1.1rem; text-align: center; font-weight: 600; font-size: .85rem; }

.menu-category-section[data-tone="white"] .menu-grid .menu-item-card { background: #ffffff; color: #1f2937; border-color: #e5e7eb; }
.menu-category-section[data-tone="white"] .menu-item-card .menu-item-body p { color: #6b7280; }
.menu-category-section[data-tone="white"] .menu-item-card .menu-item-body .price { color: #111827; }
.menu-category-section[data-tone="white"] .inline-qty { background: #f3f4f6; border-color: #e5e7eb; }
.menu-category-section[data-tone="white"] .inline-qty-btn { color: #111827; }
.menu-category-section[data-tone="peach"] .menu-grid .menu-item-card { background: #fff4ec; color: #3f2d22; border-color: #f3dccd; }
.menu-category-section[data-tone="peach"] .menu-item-card .menu-item-body p { color: #7a5a46; }
.menu-category-section[data-tone="peach"] .menu-item-card .menu-item-body .price { color: #3f2d22; }
.menu-category-section[data-tone="peach"] .inline-qty { background: #ffe9dc; border-color: #f3dccd; }
.menu-category-section[data-tone="peach"] .inline-qty-btn { color: #3f2d22; }

@media (max-width: 1100px) { .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-header { grid-template-columns: 1fr; } .home-header-actions { justify-content: flex-start; } }
@media (max-width: 640px) { .menu-grid { grid-template-columns: 1fr; } .home-location-text { max-width: 180px; } .restaurant-cart-btn { top: auto; bottom: 1rem; right: 1rem; left: 1rem; justify-content: center; } }

/* Spec overrides: thick dark global header, 11 category circles, 1/3 banner, view order label */
.global-app-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem max(1rem, calc((100% - 1200px) / 2 + 1rem)); min-height: 84px; background: #070708 !important; border-bottom: 1px solid #1f1f23; box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: none; }
.global-header-left { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
.global-header-left .profile-icon-btn { width: 42px; height: 42px; border-radius: 999px; background: #151518; border: 1px solid #2a2a2f; color: #f3f4f6; padding: 0; }
.global-header-left .profile-icon-btn:hover { color: var(--pp-gold-bright); border-color: rgba(212,175,55,.45); }
.global-search { position: relative; width: min(100%, 720px); margin: 0 auto; }
.global-search input { width: 100%; min-height: 46px; border-radius: 999px; padding-left: 2.4rem; background: #121214; border: 1px solid #2e2e34; color: #f3f4f6; }
.global-search input::placeholder { color: #9ca3af; }
.global-header-right { display: flex; align-items: center; justify-content: flex-end; }
.persistent-cart-btn { min-height: 44px; padding: .5rem .85rem; background: #151518; border: 1px solid #2e2e34; color: #f3f4f6; border-radius: 999px; }
.persistent-cart-btn .global-cart-count, .persistent-cart-btn .global-cart-price { color: #f3f4f6; }
.persistent-cart-btn.has-items { background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.5); }

/* 11 larger category circles */
.category-circles { display: flex; flex-wrap: nowrap; gap: 1.1rem; overflow-x: auto; padding: .5rem .2rem .8rem; align-items: flex-start; }
.category-circle { flex: 0 0 auto; width: 108px; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: var(--pp-color-text); }
.category-circle-icon { width: 88px; height: 88px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; line-height: 1; background: radial-gradient(circle at 30% 30%, #2a2a2f, #17171a); border: 1px solid #303038; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: transform .18s ease, border-color .18s ease; }
.category-circle:hover .category-circle-icon { transform: translateY(-2px); border-color: rgba(212,175,55,.45); }
.category-circle-label { font-size: .88rem; font-weight: 600; text-align: center; color: #e5e7eb; line-height: 1.2; }

/* Restaurant banner exactly 1/3 viewport height */
.restaurant-cover.restaurant-cover-full { height: 33.333vh; min-height: 33.333vh; max-height: 33.333vh; }
.restaurant-cover.restaurant-cover-full img { height: 33.333vh; min-height: 33.333vh; max-height: 33.333vh; }

/* View Order cart button label */
.restaurant-cart-btn .view-order-label { font-weight: 700; margin-right: .25rem; color: #fff; }
.restaurant-cart-btn .cart-btn-meta { display: inline-flex; align-items: center; gap: .2rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .global-app-header { grid-template-columns: auto 1fr auto; min-height: 76px; padding: .85rem 1rem; }
  .global-header-left .home-user-block { display: none; }
  .category-circle { width: 94px; }
  .category-circle-icon { width: 76px; height: 76px; font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .global-app-header { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .global-search input { min-height: 42px; }
  .persistent-cart-btn .global-cart-price { display: none; }
}


/* Header/logo polish: Pine far left, profile next */
.global-app-header .global-brand { margin-right: .1rem; }
.global-app-header .global-brand .brand-name { font-size: 1.45rem; color: #fff; }
.global-app-header .profile-icon-btn { flex: 0 0 auto; }
.restaurant-cart-btn { position: fixed; bottom: 1.25rem; right: 1.25rem; }
