/* Prime Pizza & Mart brand overrides — do not edit app.css */
.site-logo{display:inline-flex;align-items:center}.site-logo img{border-radius:50%;display:block;box-shadow:0 0 0 2px rgba(255,255,255,.6)}
.price-unit{color:#777;font-size:12.5px;margin-left:6px;font-weight:600}
.price-por{font-size:14px}
.por-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;padding:12px 14px;margin:12px 0;font-size:14.5px}
.por-note a{color:#c2410c;font-weight:800}
.footer-col small{opacity:.75;font-weight:400}

.wish-btn{font-size:20px;color:#c9c9c9}
.wish-btn.active{color:var(--red)}
.wish-btn.active .fa-heart{font-weight:900}
.social-row a{font-size:17px}

/* ---------- Mobile: floating buttons vs sticky bar / checkout CTA ---------- */
.edge-float{z-index:350}
body.has-sticky .edge-float{bottom:92px}
@media(max-width:640px){
  .edge-float{right:10px;bottom:84px}
  .edge-btn{width:46px;height:46px}
  body.has-sticky .edge-float{bottom:100px}
  .hero-arrow{width:40px;height:40px;font-size:20px;border-radius:10px}
  .check-wrap{padding-bottom:8px}
}

/* ---------- Mobile hardening (verified pass) ---------- */
/* Prevent iOS auto-zoom on form focus */
input,select,textarea{font-size:16px}
/* Bigger, thumb-friendly stepper buttons */
.qty-step button{width:30px;height:30px;font-size:19px}
@media(max-width:640px){
  /* Product cards: tighter on small phones */
  .pcard{padding:10px;gap:10px}
  .pcard-media{width:96px;height:96px;flex-basis:96px}
  .pcard-name{font-size:16px}
  .pcard-desc{font-size:13px;min-height:36px}
  .btn-add{padding:9px 16px;font-size:14px}
  /* Mobile header redesign: ONLY logo (left) + person icon (right). No wrapping, no overlap. */
  .site-header .header-in{gap:8px;padding:8px 12px;justify-content:space-between}
  .site-logo{flex:0 0 auto}
  .site-logo img{width:44px;height:44px}
  .site-header .loc-btn{display:none}
  .site-header .header-right{display:none}
  .person-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 auto;
    border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:20px}
  .person-btn:hover{background:rgba(255,255,255,.28)}
  /* Floating cart takes over on mobile (header cart is hidden) */
  .edge-cart{display:flex;position:relative}
  /* Checkout: full-width CTA breathing room */
  .btn-place{font-size:16.5px}
  .panel{padding:18px 14px}
  /* Footer columns already 1-col; tighten */
  .footer-grid{gap:20px;padding:28px 0 14px}
  /* Modals fit small screens */
  .modal{padding:22px 18px}
}
@media(max-width:380px){
  .pcard-media{width:84px;height:84px;flex-basis:84px}
  .btn-add{padding:8px 12px;font-size:13px}
}

/* ---------- Product page: true mobile layout (360-400px) ---------- */
/* Root cause of the reported breakage: .sticky-in is a single-row flex with
   fixed-size children (qty stepper ~150px + total ~130px + CTA ~190px + gaps
   + padding) that far exceeds a 360px viewport, causing overlap/overflow.
   Fix: let the bar wrap into two rows on small phones. */
@media(max-width:480px){
  .sticky-in{flex-wrap:wrap;gap:8px 10px;padding:10px 12px}
  .qty-big{gap:8px;padding:5px 12px}
  .qty-big button{width:30px;height:30px;font-size:18px}
  .sticky-total{flex:1;text-align:right;min-width:0}
  .sticky-total .st-label{font-size:11px}
  .sticky-total .st-price{font-size:19px}
  .sticky-bar .btn-add{margin-left:0;flex:1 1 100%;padding:13px 16px;font-size:15.5px}
  /* Room for the taller two-row bar */
  .prod-layout{padding-bottom:150px}
  body.has-sticky .edge-float{bottom:140px}
  /* Content stacking polish */
  .prod-info h1{font-size:24px}
  .topping-list{grid-template-columns:1fr}
  .vpill{padding:8px 14px;font-size:13.5px}
}

/* ---------- Hero: dedicated mobile banners (<=640px) ---------- */
/* Slot aspect-ratio always matches the served image aspect (1920/720 desktop,
   1200/600 mobile), so banners fill edge-to-edge with baked-in text never cropped. */
@media(max-width:640px){
  /* Mobile hero: short wide banners (1200x600, 2:1) keep the slider compact on phones.
     Higher specificity beats app.css .hero-slide so the 2:1 always wins on mobile. */
  .hero .hero-slide{aspect-ratio:2/1}
  .hero-slide picture{display:block;width:100%;height:100%;line-height:0}
  .hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
}

/* ---------- Quick-view modal ---------- */
.qv-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:600;display:flex;align-items:center;justify-content:center;padding:16px}
.qv-overlay[hidden]{display:none}
.qv-modal{background:#fff;border-radius:18px;width:100%;max-width:880px;max-height:92vh;display:flex;flex-direction:column;position:relative;box-shadow:var(--shadow-lg);animation:pop .18s ease;overflow:hidden}
.qv-close{position:absolute;top:10px;right:14px;font-size:26px;color:var(--muted);line-height:1;z-index:2;background:#fff;border-radius:50%;width:34px;height:34px;box-shadow:var(--shadow)}
.qv-loading{padding:70px 20px;text-align:center;color:var(--muted)}
.qv-content{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
/* The `hidden` attribute loses to the display:flex above — restore it explicitly,
   otherwise empty content (broken img, blank fields) shows during "Loading…". */
.qv-content[hidden],.qv-foot-por[hidden]{display:none}
.qv-grid{display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);gap:0;overflow-y:auto;min-height:0;flex:1}
.qv-media{position:relative;background:#fafafa;display:flex;align-items:center;justify-content:center;padding:26px;min-height:320px}
.qv-media img{width:100%;max-width:380px;aspect-ratio:1/1;object-fit:cover;border-radius:14px}
.qv-badge{position:absolute;top:30px;left:50%;transform:translateX(-50%);background:#1c1c1c;color:#fff;font-weight:800;font-size:15px;padding:7px 22px;border-radius:8px;letter-spacing:.4px;z-index:1;white-space:nowrap}
.qv-badge[hidden]{display:none}
.qv-body{padding:30px 30px 18px}
.qv-name{font-family:var(--head-font);font-size:26px;color:var(--ink);margin-bottom:2px}
.qv-price{color:var(--green);font-weight:800;font-size:17px;margin-bottom:8px}
.qv-desc{font-size:13.5px;color:var(--gray);margin-bottom:16px}
.qv-sec-title{font-weight:800;font-size:14px;margin-bottom:8px;color:var(--ink)}
.qv-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.qv-pill{border:1.5px solid #e3e3e3;border-radius:999px;padding:8px 18px;font-size:13.5px;font-weight:700;color:#555;cursor:pointer;background:#fff}
.qv-pill.active{border-color:var(--orange);color:var(--orange);background:var(--orange-soft)}
.qv-toppings{border:1px solid #eee;border-radius:12px;margin-bottom:14px;overflow:hidden}
.qv-top-head{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-weight:800;font-size:14px;color:var(--ink);background:#fafafa;cursor:pointer}
.qv-top-head i{font-size:12px;color:var(--muted);transition:transform .2s}
.qv-top-head[aria-expanded="false"] i{transform:rotate(180deg)}
.qv-top-list{max-height:264px;overflow-y:auto}
.qv-top-list.collapsed{display:none}
.qv-top-row{display:flex;align-items:center;gap:10px;padding:11px 16px;border-top:1px solid #f1f1f1;cursor:pointer;font-size:13.5px}
.qv-top-row:first-child{border-top:0}
.qv-top-row input{accent-color:var(--orange);width:17px;height:17px;flex:none;cursor:pointer}
.qv-top-name{flex:1;color:#444}
.qv-top-price{color:var(--muted);font-size:13px;white-space:nowrap}
.qv-view{display:inline-block;font-size:13px;color:var(--orange);font-weight:700;margin-bottom:6px}
.qv-foot{display:flex;align-items:center;gap:14px;padding:16px 30px;border-top:1px solid #f0f0f0;background:#fff}
.qv-qty{flex:none}
.qv-qty button{width:30px;height:30px;font-size:19px}
.qv-add{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--orange);color:#fff;font-weight:800;font-size:16px;padding:15px 22px;border-radius:10px;cursor:pointer}
.qv-add:hover{background:var(--orange-dark)}
.qv-add:disabled{opacity:.6;cursor:wait}
.qv-add-price{white-space:nowrap}
.qv-foot-por{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 30px;border-top:1px solid #f0f0f0}
.qv-foot-por[hidden]{display:none}

.qv-handle{display:none}

/* ---------- Quick-view: mobile (<=640px) ---------- */
@media(max-width:640px){
  .qv-overlay{padding:0;align-items:flex-end;opacity:0;transition:opacity .3s ease}
  .qv-overlay.sheet-open{opacity:1}
  .qv-modal{max-width:100%;width:100%;max-height:calc(100svh - 14px);max-height:calc(100vh - 14px);border-radius:20px 20px 0 0;animation:none;transform:translateY(100%);transition:transform .3s cubic-bezier(.32,.72,.35,1)}
  .qv-modal.sheet-open{transform:translateY(0)}
  .qv-handle{display:flex;align-items:center;justify-content:center;height:28px;flex:none;cursor:grab;touch-action:none}
  .qv-handle span{display:block;width:44px;height:5px;border-radius:3px;background:#dcdce1}
  .qv-content{flex:1;min-height:0;overflow:hidden}
  .qv-grid{grid-template-columns:1fr;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;position:relative;z-index:0}
  .qv-media{display:block;min-height:0;flex:none;padding:12px 12px 10px;position:static !important;top:auto !important;z-index:auto !important}
  /* Responsive modal photo: full-width 16:10 — adjusts to screen size, never fixed pixels. */
  .qv-media img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
  .qv-body{padding:16px 20px 12px}
  .qv-name{font-size:22px}
  .qv-foot{position:sticky;bottom:0;padding:12px 14px;gap:8px}
  .qv-add{font-size:14px;padding:13px 12px;min-width:0}
  .qv-add-price{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .qv-add-label{white-space:nowrap;flex:none}
  .qv-foot-por{padding:12px 16px}
  /* No nested scroller in toppings on mobile — outer grid scrolls smoothly */
  .qv-top-list{max-height:none;overflow-y:visible}
}

/* ---------- Quick-view: small phones (<=480px) — stacked add-to-cart, full price always visible ---------- */
@media(max-width:480px){
  .qv-foot{padding:12px;gap:10px}
  .qv-add{flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:9px 10px;text-align:center}
  .qv-add-price{flex:none;max-width:100%;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:visible;text-overflow:clip;opacity:.93}
  .qv-add-label{flex:none;font-size:15.5px;white-space:nowrap}
}

@media(max-width:640px) and (prefers-reduced-motion:reduce){
  .qv-overlay,.qv-modal{transition:none}
}

/* ---------- Shop by category: tighter on phones ---------- */
@media(max-width:640px){
  .cat-strip-in{padding:12px;gap:10px}
  .cat-card{width:78px}
  .cat-pic{width:64px;height:64px}
  .cat-name{font-size:11.5px}
}

/* ---------- Category section banners: keep rounded on phones ---------- */
@media(max-width:640px){
  .cat-banner{margin:0 0 14px;border-radius:14px}
}

/* ---------- Product page photo: bulletproof square box (all viewports) ---------- */
/* padding-top:100% reserves a square box even before the image loads; the img is
   absolutely positioned to fill it. (aspect-ratio on the img collapsed to 0x0 in
   some Chromium builds, so we don't rely on it.) */
.prod-img-main{position:relative;width:100%;padding-top:100%;overflow:hidden;border-radius:16px;box-shadow:var(--shadow)}
.prod-img-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;max-height:none;aspect-ratio:auto}
/* Shimmer placeholder behind the quick-view image while it loads (covered once loaded) */
#qv-img{background:linear-gradient(100deg,#f0ede6 40%,#faf8f4 50%,#f0ede6 60%);background-size:200% 100%;animation:qvShimmer 1.15s linear infinite}
@keyframes qvShimmer{to{background-position:-200% 0}}
/* ISSUE 2: the fixed edge-float buttons (search/cart/WhatsApp, right:10px/width:46px at <=640px)
   must never cover the product photo — reserve their column on the product page. */
@media(max-width:640px){
  body.page-product .prod-img-wrap{padding-right:64px}
  /* Mobile product photo: responsive 4:3 — scales with screen width, never fixed pixels. */
  body.page-product .prod-img-main{padding-top:0;height:auto}
  body.page-product .prod-img-main img{position:static;width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
}
