/* Insta Leads Mini Store — public pages. Mobile first. */
:root {
  --ink: #101828; --ink-soft: #475467; --ink-faint: #98A2B3; --line: #E4E7EC; --paper: #F7F8FA; --card: #FFFFFF;
  --brand: #1A56DB; --brand-dark: #0B1739; --brand-light: #EAF1FE; --good: #178754; --good-bg: #E5F6EC;
  --warn: #B5750B; --warn-bg: #FFF4E0; --bad: #D6402C; --bad-bg: #FDEBE8; --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.store-body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.store-noscroll { overflow: hidden; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.82rem; }
[hidden] { display: none !important; }

/* Top bar */
.store-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.store-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.store-brand-logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.store-brand-name { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.store-cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; }
.store-closed { background: var(--warn-bg); color: var(--warn); text-align: center; padding: 10px 16px; font-size: 0.9rem; font-weight: 600; }

.store-main { max-width: 1080px; margin: 0 auto; padding: 16px 16px 40px; }

/* Hero */
.store-hero { margin: 4px 0 18px; }
.store-hero-banner { width: 100%; aspect-ratio: 3 / 1; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--line); }
.store-hero h1 { font-size: 1.45rem; margin: 0; line-height: 1.25; }
.store-hero p { margin: 4px 0 0; color: var(--ink-soft); }

/* Grid */
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 980px) { .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.store-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.store-card-media { position: relative; display: block; text-decoration: none; aspect-ratio: 1 / 1; background: #F0F2F5; }
.store-card-media img { width: 100%; height: 100%; object-fit: cover; }
.store-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: var(--ink-faint); background: #F0F2F5; }
.store-noimg-lg { aspect-ratio: 1 / 1; font-size: 4rem; border-radius: var(--radius); }
.store-tag { position: absolute; top: 8px; left: 8px; background: rgba(16,24,40,0.82); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.store-tag-save { background: var(--good); }
.store-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-card-name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-price { font-size: 0.95rem; }
.store-price s { color: var(--ink-faint); font-size: 0.85em; margin-left: 2px; }
.store-price-lg { font-size: 1.35rem; margin: 6px 0 4px; }
.store-save { color: var(--good); font-weight: 700; font-size: 0.8rem; }
.store-empty { text-align: center; color: var(--ink-soft); padding: 48px 0; }

/* Buttons */
.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 12px 22px; cursor: pointer; text-decoration: none; min-height: 44px; }
.store-btn:hover { background: #1747B8; }
.store-btn:disabled, .store-btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.store-btn-sm { padding: 8px 12px; min-height: 36px; font-size: 0.85rem; margin-top: auto; }
.store-btn-ghost { background: var(--card); color: var(--brand); border: 1.5px solid var(--brand); }
.store-btn-ghost:hover { background: var(--brand-light); }
.store-btn-block { width: 100%; }

/* Product */
.store-back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.store-product { display: grid; gap: 20px; }
@media (min-width: 820px) { .store-product { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; } }
.store-gallery { position: relative; }
.store-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: #F0F2F5; scrollbar-width: none; }
.store-gallery-track::-webkit-scrollbar { display: none; }
.store-gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: start; background: #fff; }
.store-gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.store-gallery-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.store-gallery-dots button.is-active { background: var(--brand); }
.store-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.store-gallery-thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.store-gallery-thumbs button.is-active { border-color: var(--brand); }
.store-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-product-info h1 { font-size: 1.4rem; margin: 0; line-height: 1.3; }
.store-soldout { color: var(--bad); font-weight: 700; margin: 6px 0; }
.store-lowstock { color: var(--warn); font-weight: 600; margin: 4px 0; font-size: 0.9rem; }
.store-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.store-buy .store-btn { flex: 1 1 140px; }
.store-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.store-qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.store-qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.store-qty input::-webkit-outer-spin-button, .store-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.store-qty-sm button { width: 32px; height: 32px; font-size: 1rem; }
.store-qty-sm span { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.store-desc { white-space: normal; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.store-share { margin-top: 16px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Cart drawer */
.store-drawer { position: fixed; inset: 0; z-index: 50; }
.store-drawer-backdrop { position: absolute; inset: 0; background: rgba(16,24,40,0.45); }
.store-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--card); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(16,24,40,0.15); }
.store-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.store-drawer-head h2 { margin: 0; font-size: 1.1rem; }
.store-drawer-head button { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.store-drawer-lines { flex: 1; overflow-y: auto; padding: 8px 16px; }
.store-drawer-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.store-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.store-line img, .store-line-noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #F0F2F5; display: block; }
.store-line-name { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.store-line-body .store-qty { margin-top: 6px; }
.store-line-total { text-align: right; font-weight: 700; font-size: 0.9rem; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.store-line-remove { border: 0; background: none; color: var(--ink-faint); font: inherit; font-size: 0.78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.store-drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px 18px; }
.store-drawer-foot p { margin: 0 0 6px; }
.store-drawer-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 8px; }
.store-drawer-foot .store-btn { margin-top: 8px; }
.store-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--brand-dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; z-index: 60; box-shadow: 0 8px 24px rgba(16,24,40,0.25); }

/* Checkout */
.store-page-title { font-size: 1.4rem; margin: 0 0 14px; }
.store-checkout { display: grid; gap: 16px; }
@media (min-width: 860px) { .store-checkout { grid-template-columns: 1.2fr 1fr; align-items: start; } .store-summary { position: sticky; top: 76px; } }
.store-card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.store-card-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.store-checkout-form label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
.store-checkout-form input[type=text], .store-checkout-form input[type=tel], .store-checkout-form input[type=email], .store-checkout-form textarea, .store-checkout-form select, .store-report input {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.store-checkout-form input:focus, .store-checkout-form textarea:focus, .store-checkout-form select:focus, .store-report input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.store-checkout-form h2:not(:first-child) { margin-top: 18px; }
.store-choice { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.store-choice label { flex: 1 1 140px; display: flex; gap: 8px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; margin: 0; cursor: pointer; font-weight: 600; }
.store-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.store-choice-col { flex-direction: column; }
.store-choice-col label { flex: none; }
.store-choice .muted { font-weight: 400; font-size: 0.82rem; display: block; }
.store-hp { display: none; }
.store-errors { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 14px; margin: 4px 0 12px; font-size: 0.88rem; font-weight: 600; }
.store-errors p { margin: 2px 0; }
.store-fineprint { margin: 10px 0 0; text-align: center; }
.store-sum-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.store-sum-line img, .store-sum-line .store-line-noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.store-line-item { display: flex; align-items: center; gap: 10px; }
.store-line-item img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.store-sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; color: var(--ink-soft); }
.store-sum-total { color: var(--ink); font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* Order page */
.store-order { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; }
.store-banner { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.store-banner strong { font-size: 1.05rem; }
.store-banner .store-btn { align-self: flex-start; margin-top: 8px; }
.store-banner-good { background: var(--good-bg); border-color: #BFE6CE; color: #0F5132; }
.store-banner-warn { background: var(--warn-bg); border-color: #F5DDB0; }
.store-status { font-size: 0.75rem; font-weight: 700; background: var(--brand-light); color: var(--brand); padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.store-lines { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.store-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.store-lines .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.store-lines-total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; }
.store-order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.store-order-meta p { margin: 2px 0 0; }
.store-upi { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.store-upi-qr { line-height: 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.store-upi dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; font-size: 0.9rem; }
.store-upi dt { color: var(--ink-faint); }
.store-upi dd { margin: 0; font-weight: 600; word-break: break-all; }
.store-upi-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store-upi-save { line-height: 1.2; font-size: 0.85rem; padding: 8px 14px; }
.store-upi-help { margin: 0 0 12px; font-size: 0.88rem; }
.store-upi-help summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.store-upi-help ol { margin: 8px 0 0; padding-left: 20px; }
.store-upi-help li { margin-bottom: 6px; }
.store-report > div { display: flex; gap: 8px; flex-wrap: wrap; }
.store-report input { flex: 1 1 180px; margin-top: 0; }
.store-ok { background: var(--good-bg); color: var(--good); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; }
@media (max-width: 520px) { .store-upi-qr { margin: 0 auto; } }

/* Footer */
.store-footer { max-width: 1080px; margin: 0 auto; padding: 18px 16px 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.85rem; }
.store-footer details { margin-bottom: 10px; }
.store-footer summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.store-footer details div { margin-top: 8px; }
.store-footer p { margin: 4px 0; }
.store-powered { color: var(--ink-faint); font-size: 0.78rem; }
.store-powered a { color: inherit; text-decoration: underline; }

/* Returning buyers */
.store-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.store-myorders-link { font-weight: 600; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.store-welcome { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-light); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem; }
.store-linkbtn { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.store-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem !important; margin: 4px 0 10px !important; cursor: pointer; }
.store-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.store-reorder-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.store-myorders { display: grid; gap: 12px; max-width: 680px; }
.store-myorder p { margin: 4px 0; }
.store-myorder .store-btn { margin-top: 6px; }
.store-myorder-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.store-myorder-head a { color: var(--ink); text-decoration: none; }
.store-myorder-items { font-size: 0.9rem; }
.store-myorders-note { max-width: 680px; margin-top: 14px; }
@media (max-width: 420px) { .store-brand-name { max-width: 120px; } .store-cart-btn span:not(.store-cart-count) { display: none; } }
.store-choice label { flex-wrap: wrap; }
.store-choice label .muted { flex-basis: 100%; padding-left: 26px; margin-top: -2px; }
@media (max-width: 420px) { .store-brand-logo + .store-brand-name { display: none; } }

/* Order page: progress, tracking, seller updates */
.store-progress { list-style: none; margin: 0; padding: 18px 12px 14px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.store-progress li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.store-progress li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.store-progress li:first-child::before { display: none; }
.store-progress li.is-done::before { background: var(--good); }
.store-progress-dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.store-progress li.is-done .store-progress-dot { background: var(--good); border-color: var(--good); }
.store-progress li.is-current .store-progress-dot { box-shadow: 0 0 0 4px var(--good-bg); }
.store-progress-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.store-progress li.is-done .store-progress-label { color: var(--ink); }
.store-progress-at { font-size: 0.7rem; color: var(--ink-faint); line-height: 1.2; }
@media (max-width: 420px) { .store-progress { padding: 14px 4px 12px; } .store-progress-label { font-size: 0.72rem; } .store-progress-at { font-size: 0.64rem; } }
.store-ship h2, .store-updates h2 { font-size: 1.05rem; margin: 0 0 10px; }
.store-ship dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.store-ship dt { color: var(--ink-soft); font-size: 0.88rem; }
.store-ship dd { margin: 0; overflow-wrap: anywhere; }
.store-ship code { font-size: 0.95rem; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.store-link-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--brand); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.store-updates ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.store-updates li { border-left: 3px solid var(--brand); padding: 2px 0 2px 12px; }
.store-updates li p { margin: 0 0 2px; }

/* Pre-Book & Pickup */
.store-prebook-banner { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--brand-light); border: 1px solid var(--brand); }
.store-prebook-banner strong { font-size: 1rem; }
.store-prebook-banner span { font-size: 0.88rem; color: var(--ink-soft, #475467); }
.store-prebook-note { margin: 6px 0 10px; font-weight: 600; color: var(--brand); font-size: 0.92rem; }
.store-unit { color: var(--ink-faint); font-size: 0.85em; font-weight: 500; }
.store-prebook-when { margin: 0 0 10px; }
.store-spots { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.store-spot, .store-checkout-form .store-spot { display: flex; margin: 0; font-weight: 400; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.store-spot:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.store-checkout-form .store-spot input { width: auto; flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--brand); }
.store-spot.is-disabled { opacity: 0.55; cursor: not-allowed; }
.store-spot-body { display: flex; flex-direction: column; gap: 2px; }
.store-spot-time { font-weight: 600; color: var(--brand); font-size: 0.9rem; }
.store-pickup-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; }
.store-pickup-card dt { color: var(--ink-faint); }
.store-pickup-card dd { margin: 0; font-weight: 600; }
.store-handover-qr { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.store-handover-qr svg { flex: 0 0 auto; width: 150px; height: 150px; background: #fff; border-radius: 8px; }
.store-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.store-size { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); font-size: 0.92rem; }
.store-size:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.store-size input { accent-color: var(--brand); margin: 0; }
.store-size s { color: var(--ink-faint); font-size: 0.85em; }
.store-size em { display: block; font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }
.store-size.is-disabled { opacity: 0.55; cursor: not-allowed; }
.store-opt-chosen { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-soft, #475467); }
.store-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.store-swatch { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; text-align: center; position: relative; }
.store-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.store-swatch img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; display: block; background: #F0F2F5; }
.store-swatch span { font-size: 0.8rem; line-height: 1.25; }
.store-swatch span strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-swatch:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.store-swatch.is-disabled img { filter: grayscale(1); }
.store-swatch-noimg { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 7px; background: #F0F2F5; color: #667085; font-size: 1.6rem; font-weight: 700; }
.store-combo-pick { font: inherit; color: inherit; cursor: pointer; background: #fff; }
.store-combo-pick.is-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.store-combo-pick:disabled { cursor: not-allowed; opacity: .55; }
.store-combo-pick.is-picked img, .store-combo-pick.is-picked .store-swatch-noimg { opacity: .92; }
.store-combo-badge { position: absolute; top: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--brand); color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; line-height: 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.store-combo-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.store-combo-tier { display: inline-flex; cursor: pointer; }
.store-combo-tier input { position: absolute; opacity: 0; pointer-events: none; }
.store-combo-tier span { padding: 8px 14px; border: 1px solid #D0D5DD; border-radius: 999px; font-size: .9rem; background: #fff; }
.store-combo-tier input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.store-combo-tier input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.store-combo-picked { font-size: .85rem; color: #475467; margin: 8px 0 0; }
.store-combo-picked button { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 0 4px; }
.store-combo-singles { margin: 14px 0; padding-top: 10px; border-top: 1px solid #EAECF0; }
.store-combo-singles summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.store-line-picks { font-size: .78rem; color: #667085; margin-top: 2px; }
.store-weekly h2 { display: flex; align-items: center; gap: 8px; }
.store-weekly-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Pre-Book: day & slot picker */
.store-when { margin: 0 0 14px; scroll-margin-top: 72px; }
.store-when h2 { font-size: 1rem; margin: 0 0 8px; }
.store-when-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.store-when-day { flex: 0 0 auto; min-width: 104px; max-width: 150px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); scroll-snap-align: start; }
.store-when-day.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.store-when-day.is-closed { opacity: 0.6; }
.store-when-date { display: flex; align-items: baseline; gap: 4px; font-size: 0.8rem; color: var(--ink-soft, #475467); }
.store-when-date strong { font-size: 1.15rem; color: var(--ink, #101828); }
.store-when-slot { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.85rem; line-height: 1.25; }
.store-when-slot small { font-weight: 400; font-size: 0.72rem; color: var(--ink-soft, #475467); }
.store-when-slot.is-active { background: var(--brand); color: #fff; }
.store-when-slot.is-active small { color: rgba(255, 255, 255, 0.85); }
.store-when-slot.is-off { border-color: var(--line); color: var(--ink-soft, #475467); background: transparent; font-weight: 500; cursor: default; }
.store-when-status { font-weight: 600; font-size: 0.85rem; color: var(--ink-soft, #475467); }
.store-when-note { font-size: 0.72rem; color: var(--ink-soft, #475467); line-height: 1.3; }

/* Pre-Book: doorstep delivery to a community */
.store-doorstep { margin: 0 0 14px; }
.store-doorstep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store-request { margin: 4px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.store-request summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.88rem; }
.store-request[open] summary { margin-bottom: 8px; }
.store-err { color: #B42318; }

/* Categories, veg mark, serves */
.store-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; -webkit-overflow-scrolling: touch; }
.store-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.store-chip.is-active, .store-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.store-food { display: inline-block; width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; position: relative; vertical-align: -1px; flex: 0 0 auto; }
.store-food::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.store-food-veg { color: #178754; border-color: #178754; }
.store-food-nonveg { color: #B42318; border-color: #B42318; }
.store-food-egg { color: #C25A0F; border-color: #C25A0F; }
.store-serves { display: block; font-size: 0.78rem; color: var(--ink-soft); margin: -2px 0 2px; }
.store-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 10px; font-size: 0.88rem; color: var(--ink-soft); }
.store-tags > span { display: inline-flex; align-items: center; gap: 6px; }
.store-card.is-filtered-out { display: none; }
.store-sum-save { color: var(--good); font-weight: 600; }
.store-offer { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 0.92rem; }
.store-cancel summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.store-cancel[open] summary { margin-bottom: 10px; }

/* "Install the store as an app" prompt (store.js) */
.store-app-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18); transform: translateY(140%); transition: transform .3s ease; }
.store-app-banner.is-shown { transform: none; }
.store-app-banner[hidden] { display: none; }
.store-app-banner img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line); }
.store-app-text { flex: 1; min-width: 0; font-size: 0.85rem; line-height: 1.35; color: var(--ink-soft); }
.store-app-text > strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 2px; }
.store-app-text svg { vertical-align: -2px; color: var(--brand); }
.store-app-close { flex: 0 0 auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-faint); padding: 4px 6px; cursor: pointer; }
.store-footer .store-linkbtn { font-size: 0.9rem; }
/* Inside the installed app there is no browser bar: leave room for the phone's home indicator. */
.is-store-app .store-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
/* Room below the page so the banner never covers the last buttons. */
body.has-app-banner { padding-bottom: 120px; }
/* ---------- Categories: photo tiles, types, sections, "You may also like" ---------- */
.store-cats { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; margin: 4px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.store-cats::-webkit-scrollbar { display: none; }
.store-cat { flex: 0 0 auto; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.store-cat-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: #F0F2F5; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); transition: box-shadow .15s; }
.store-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.store-cat-all { font-size: 1.3rem; color: var(--brand, #1E5EFF); }
.store-cat-name { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-cat.is-active .store-cat-img { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand, #1E5EFF); }
.store-cat.is-active .store-cat-name { color: var(--brand, #1E5EFF); }
.store-cat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.store-cat-head h2 { margin: 0; font-size: 1.2rem; }
.store-cat-sub { font-weight: 500; color: var(--ink-soft); }
.store-types { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.store-types::-webkit-scrollbar { display: none; }
.store-types .store-chip { flex: 0 0 auto; text-decoration: none; }
.store-types .store-chip small { opacity: .65; margin-left: 2px; }
.store-section { margin: 18px 0 8px; }
.store-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.store-section-head h2 { margin: 0; font-size: 1.05rem; }
.store-section-head a { font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.store-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.store-row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .store-row { grid-auto-columns: minmax(180px, 23%); gap: 16px; } }
.store-row-more { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; min-height: 120px; }
.store-related { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.store-tags a { color: inherit; }
.store-cats { scroll-margin-top: 80px; }
/* ---------- Search, Frequently bought together, cart suggestions ---------- */
.store-search { display: flex; gap: 8px; margin: 10px 0 6px; }
.store-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--card); }
.store-search input:focus { outline: none; border-color: var(--brand); }
.store-fbt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 16px; margin: 24px 0 8px; }
.store-fbt h2 { margin: 0 0 10px; font-size: 1.05rem; }
.store-fbt-pics { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-fbt-pic { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #F0F2F5; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 1.4rem; }
.store-fbt-pic img { width: 100%; height: 100%; object-fit: cover; }
.store-fbt-plus { font-size: 1.3rem; color: var(--ink-soft); font-weight: 600; }
.store-fbt-list { list-style: none; padding: 0; margin: 10px 0; font-size: 0.9rem; }
.store-fbt-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.store-fbt-list li span { white-space: nowrap; font-weight: 600; }
.store-fbt-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.store-suggest { border-top: 1px solid var(--line); padding: 12px 16px; }
.store-suggest h3 { margin: 0 0 8px; font-size: 0.95rem; }
.store-suggest-list { display: flex; flex-direction: column; gap: 8px; }
.store-suggest-item { display: flex; align-items: center; gap: 10px; }
.store-suggest-item img, .store-suggest-item .store-line-noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.store-suggest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.85rem; }
.store-suggest-body a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-suggest { max-height: 38vh; overflow-y: auto; }
.store-fbt-name { min-width: 0; }
