/* Home shop — builds on styles.css, team.css and account.css */
.shop-main { padding-bottom: 120px; }
.home-chip { background: var(--berry); }
.shop-tabs { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.shop-tabs .count.zero { display: none; }

.shop-hero { margin: 4px 2px 16px; }
.shop-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 12px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pr { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; font-size: .78rem; line-height: 1.3; }
.pr b { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--green); }
.pr small { display: block; color: var(--muted); margin-top: 2px; font-size: .72rem; }
.pr.off { opacity: .55; }

.pack-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pack-grid { grid-template-columns: repeat(3, 1fr); } }
.pack { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 112px 1fr; animation: rise .45s var(--ease) both; }
@media (min-width: 640px) { .pack { grid-template-columns: 1fr; } .pack-img { aspect-ratio: 4 / 3; } }
.pack-img { background: var(--tint); min-height: 100%; }
.pack-img img { width: 100%; height: 100%; object-fit: cover; }
.pack-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pack-body h3 { font-family: var(--display); font-size: 1.05rem; margin: 0; }
.pack-size { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pack-desc { font-size: .82rem; color: var(--muted); margin: 0; }
.pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.pack-price { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.pack-price.soon { font: 600 .82rem Inter, sans-serif; color: var(--muted); }
.add-btn { border: 0; background: var(--green); color: #fff; font: 600 .9rem Inter, sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.add-btn:active { transform: scale(.96); }
.pack .stepper output { min-width: 34px; }

.cart-bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green-900); color: #fff; border-radius: 20px; padding: 10px 10px 10px 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); max-width: 720px; margin: 0 auto; animation: rise .35s var(--ease) both; }
.cart-bar[hidden] { display: none; }
.cart-bar strong { display: block; font-size: .95rem; }
.cart-bar span { font-size: .82rem; color: #bfe0c3; }
.cart-bar .btn { min-height: 46px; padding: 10px 18px; }

/* sheets (checkout, success, demo pay) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(10, 30, 20, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
.sheet[hidden] { display: none; }
.sheet-inner { background: var(--cream); width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 18px 16px max(24px, env(safe-area-inset-bottom)); animation: slideup .35s var(--ease) both; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-inner { border-radius: 26px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideup { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; }
.co-step { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px 14px; margin-top: 12px; }
.co-step.locked { opacity: .5; pointer-events: none; }
.co-step .step-label { margin-top: 12px; }
.co-btn { margin-top: 10px; }
.btn-text.inline { padding: 0; }
.done-line { margin: 4px 0 0; font-weight: 600; color: var(--green); }
.dtype { display: grid; gap: 8px; }
.dt-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fffdfa; cursor: pointer; font: inherit; color: var(--ink); }
.dt-card strong { display: block; }
.dt-card span { font-size: .8rem; color: var(--muted); }
.dt-card b { font-family: var(--display); font-size: 1.05rem; color: var(--green); white-space: nowrap; }
.dt-card[aria-checked="true"] { border-color: var(--green); background: #e5f1e4; box-shadow: inset 0 0 0 1px var(--green); }
.dt-card[disabled] { opacity: .5; cursor: not-allowed; }
#std-slots { margin-top: 10px; }
#co-windows { margin-top: 8px; }
.sum-lines { list-style: none; padding: 0; margin: 4px 0 8px; font-size: .92rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.sum-lines li.free b { color: var(--leaf); }
.sum-lines li.credit b { color: var(--leaf); }
.sum-lines li.total { border-top: 1.5px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.credit-toggle { background: #e5f1e4; border-radius: 12px; padding: 10px 12px; color: var(--green) !important; font-weight: 600 !important; }
.pay-btn { font-size: 1.05rem; min-height: 56px; }

.success-sheet { text-align: center; }
.success-sheet h2 { margin: 6px 0; }
.demo-pay { text-align: center; }
.demo-pay h2 { font-size: 2rem; }
.pay-methods { display: grid; gap: 8px; margin: 4px 0 12px; }
.login-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; padding: 4px; background: #f3ece4; border-radius: 14px; }
.login-mode button { border: 0; background: none; padding: 9px 8px; border-radius: 10px; font: 600 .85rem Inter, sans-serif; color: var(--muted); cursor: pointer; }
.login-mode button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
#forgot-line { margin: 8px 0 0; }
.upi-sheet { text-align: center; }
.upi-sheet h2 { font-size: 2rem; margin: 2px 0 6px; }
.upi-to { margin: 0 0 4px; line-height: 1.5; }
.upi-to span { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0 4px; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.upi-qr-wrap { margin: 14px auto 4px; }
.upi-qr { width: 200px; height: 200px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 6px; border: 1.5px solid var(--line); }
.upi-qr svg { width: 100%; height: 100%; display: block; }
.upi-qr:empty { display: none; }
.upi-steps { text-align: left; margin: 12px 0; padding-left: 20px; line-height: 1.5; }
.upi-sheet .field { text-align: left; }
.utr-row { display: flex; gap: 8px; }
.utr-row input { flex: 1; min-width: 0; }
.utr-paste { flex: none; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.utr-hint { margin: 6px 0 0; }
.utr-hint.found { color: var(--green); font-weight: 600; }
#upi-utr { font-size: 1.15rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* order tracking */
.track { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative; text-align: center; }
.track li { font-size: .7rem; color: var(--muted); font-weight: 600; position: relative; padding-top: 24px; }
.track li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #e6ddd3; z-index: 1; }
.track li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: #e6ddd3; }
.track li:first-child::after { display: none; }
.track li.done { color: var(--green); }
.track li.done::before, .track li.done::after { background: var(--leaf); }
.track li.now::before { background: var(--berry); box-shadow: 0 0 0 4px rgba(215, 25, 47, .18); animation: pulse2 1.6s ease-in-out infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 7px rgba(215, 25, 47, .08); } }

.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 12px; animation: rise .4s var(--ease) both; }
.order-card .up-top strong { font-family: var(--display); font-size: 1.05rem; }
.deliv-info { background: #fbf7f2; border-radius: 14px; padding: 10px 12px; font-size: .88rem; margin: 8px 0; display: grid; gap: 3px; }
.deliv-info b { color: var(--green); }
.driver { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e5f1e4; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.driver .who { display: flex; align-items: center; gap: 10px; }
.driver .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.driver small { display: block; color: var(--muted); font-size: .75rem; }
.stars { display: flex; gap: 4px; margin: 6px 0; }
.stars button { border: 0; background: none; font-size: 1.7rem; line-height: 1; color: #e2d7cc; cursor: pointer; padding: 2px; }
.stars button.on { color: var(--gold); }
.past-card { padding: 12px 14px; }
.past-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.section-title { font-family: var(--display); font-size: 1.15rem; color: var(--green); margin: 18px 4px 10px; }

/* live tracking page */
.track-main { padding-bottom: 60px; }
.track-title { font-size: clamp(1.8rem, 8vw, 2.4rem); margin-bottom: 6px; }
.eta-card { background: var(--green-900); color: #e9f1ea; border-radius: 20px; padding: 14px 16px; margin: 6px 0 12px; display: grid; gap: 2px; }
.eta-card strong { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.eta-card span { font-size: .86rem; color: #bfe0c3; }
#map-box { margin-bottom: 6px; }
.track-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* refer */
.refer-hero { background: var(--green-900); color: #e9f1ea; border-radius: 24px; padding: 20px; text-align: center; }
.refer-hero h2 { color: #fff; font-size: 1.5rem; }
.refer-hero h2 em { color: var(--gold); }
.code-box { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: .18em; background: rgba(255, 255, 255, .1); border: 1.5px dashed rgba(255, 255, 255, .35); border-radius: 16px; padding: 8px 18px; margin: 10px 0; color: #fff; }
.share-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.share-row .btn { min-height: 46px; padding: 8px; font-size: .88rem; }
.how { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; counter-reset: h; }
.how li { counter-increment: h; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.how li::before { content: counter(h); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: .82rem; }

/* help */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.help-req { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; font-size: .9rem; }
.help-req .reply { background: #e5f1e4; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
