/* around.pk delivery-app layer, on top of app.css (the design system tokens and base
   components) and extra.css. Our own design: one green accent, photos and white space,
   calm meta rows, physical sheets. No other app's name, logo, artwork or text. */

/* --- shell: delivery or pick up, and the area --- */
.modebar { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.modeswitch { display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; gap: 3px; padding: 3px; border-radius: var(--r-pill); background: var(--soft); }
.modeswitch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: .8125rem; font-weight: 700; }
.modeswitch button .ic { width: 17px; height: 17px; }
.modeswitch button[aria-pressed=true] { background: var(--bg); color: var(--brand-ink); box-shadow: var(--lift); }
.modearea { display: inline-flex; align-items: center; gap: 4px; min-width: 0; min-height: 38px; color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.modearea span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.modearea .ic { width: 17px; height: 17px; color: var(--brand); }
.mode-pickup .m-del, .mode-delivery .m-pick { display: none !important; }
body.has-basket { padding-bottom: calc(var(--tab) + 104px + env(safe-area-inset-bottom)); }

/* --- category drawings --- */
.ic-cat { stroke-width: 1.5; }
.cpill .ph { color: var(--brand-ink); background: var(--brand-soft); }
.tile-ic { color: var(--brand-ink); --t1: #eef6f1; --t2: #ddeee4; }
.tile-ic > .ic { width: 40%; height: 40%; stroke-width: 1.4; }
.vhead { display: flex; align-items: center; gap: 14px; }
.vhead-ic { display: grid; flex: none; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-ink); }
.vhead-ic .ic { width: 32px; height: 32px; }
.dircats a .ic-cat { color: var(--brand); }

/* --- shop cards: photo, open or closed, fee and the shop's own time, real stars only --- */
.sc { position: relative; min-width: 0; }
.sc > .scard { height: 100%; }
.scard .vtitle .rating { margin-top: 1px; }
.scard-meta .ic { width: 15px; height: 15px; margin-right: 2px; vertical-align: -3px; color: var(--muted); }
.heart { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: var(--ink-2); box-shadow: var(--lift); transition: transform var(--fast) var(--ease), color var(--fast); }
.heart .ic { width: 20px; height: 20px; stroke-width: 2; }
.heart:active { transform: scale(.88); }
.heart[aria-pressed=true] { color: #d6334b; }
.heart[aria-pressed=true] .ic, .follow[aria-pressed=true] .ic { fill: currentColor; }
.heart-sm { top: 6px; right: 6px; width: 32px; height: 32px; }
.heart-sm .ic { width: 16px; height: 16px; }
.heart:not([data-ready]) { visibility: hidden; }
.pcard .ic:last-child { color: var(--muted); }

/* --- filters and sorting --- */
.filters { padding-block: 2px 4px; }
.filters .chip { min-height: 36px; padding: 6px 14px; font-size: .8125rem; }
.chip-sep { flex: none; width: 1px; margin-inline: 2px; background: var(--line-strong); }
.chip-sort[aria-current=true] { background: var(--brand-soft); color: var(--brand-ink); }
.chip-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* --- deals --- */
.dealrail { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 330px); align-items: start; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.dealrail > * { scroll-snap-align: start; }
.dealcard { display: flex; gap: 12px; min-width: 0; padding: 14px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--ink); }
.dealcard .grow > strong { font-size: 1rem; font-weight: 800; letter-spacing: -.015em; }
.dealcard .grow > span { line-height: 1.4; }
.deal-ic { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; }
.deal-ic .ic { width: 20px; height: 20px; }
.deal-free_delivery { background: #eef3fb; }
.deal-free_delivery .deal-ic { background: #2c5f9e; }
.code-chip, .vcode { display: inline-block; padding: 2px 8px; border: 1.5px dashed var(--brand); border-radius: 8px; background: var(--bg); color: var(--brand-ink); font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.vcode { padding: 6px 12px; font-size: 1rem; }
.vouchercard { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--brand); border-radius: var(--r-lg); background: #f6fbf8; }
.vouchercard .grow { flex-basis: 60%; }
.voucherline { display: grid; gap: 6px; }
.voucherline .vcode { display: flex; align-items: center; gap: 8px; border-style: dashed; font-size: .8125rem; font-weight: 600; letter-spacing: 0; }

/* --- store page --- */
.announce { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; }
.announce .ic { color: var(--sun); }
.store-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.store-actions form { margin: 0; }
.follow .ic { width: 16px; height: 16px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; }
.slide figcaption { position: absolute; left: 16px; bottom: 56px; max-width: 80%; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(10 18 14 / .66); color: #fff; font-size: .8125rem; font-weight: 700; }
.storeinfo > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
.storeinfo > summary::-webkit-details-marker { display: none; }
.storeinfo > summary::after { content: '+'; color: var(--muted); font-size: 1.25rem; }
.storeinfo[open] > summary::after { content: '–'; }
.about { color: var(--ink-2); }
.menubar { margin-top: 18px; }
.mtab { display: inline-flex; align-items: center; }
.searchbar-shop { margin-top: 12px; }
.empty-mini { display: grid; justify-items: center; gap: 8px; padding: 18px 0; text-align: center; color: var(--muted); }
.empty-mini .ic { width: 30px; height: 30px; }

/* --- item cards --- */
.item { position: relative; }
.item-text { color: inherit; }
a.item-text:hover strong { color: var(--brand-ink); }
.item.is-out .item-ph { opacity: .55; filter: grayscale(.6); }
.item-ph > .ic { width: 36px; height: 36px; color: var(--brand-ink); opacity: .7; }
.prices small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.vchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.vchip { padding: 3px 9px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-size: .6875rem; font-weight: 700; }
.vchip-more { box-shadow: none; background: var(--soft); }
.tag-attr { background: #f1eefb; color: #4b3a86; }
a.plus { color: var(--brand); }

/* --- item sheet and page --- */
dialog.sheet-dialog { max-width: 560px; padding-top: 6px; }
.sheet-item > * + * { margin-top: 14px; }
.sheet-media { height: 220px; border-radius: var(--r-lg); background: #fff; }
.sheet-item .detail-body { margin: 0; padding: 0; animation: none; }
.sheet-item h1 { font-size: 1.5rem; }
.detail-price small { color: var(--muted); font-size: .875rem; font-weight: 600; }
.itemform > * + * { margin-top: 16px; }
.optgroup { padding: 0; border: 0; }
.optgroup legend { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 4px; font-size: 1rem; font-weight: 800; }
.optgroup legend small { padding: 3px 9px; border-radius: var(--r-pill); background: var(--soft); color: var(--muted); font-size: .6875rem; font-weight: 700; }
.optgroup legend small.req { background: var(--warn-bg); color: var(--warn-ink); }
.optline { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-block: 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.optline.is-off { color: var(--muted); cursor: default; }
.optline small { color: var(--muted); font-size: .75rem; }
.boxmeter { display: grid; gap: 6px; margin-block: 6px 4px; font-size: .875rem; font-weight: 700; }
.boxmeter i { display: block; height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--soft-2); }
.boxmeter b { display: block; width: 0; height: 100%; background: var(--brand); transition: width var(--med) var(--ease); }
.boxmeter.is-over b { background: var(--bad-ink); }
.boxline { cursor: default; }
.stepper-soft { background: var(--soft); color: var(--ink); box-shadow: none; animation: none; }
.stepper-soft button { width: 38px; height: 38px; color: var(--brand-ink); }
.stepper-soft input, .stepper-soft output { width: 34px; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; font-weight: 800; text-align: center; }
.grow-btn { flex: 1; justify-content: space-between; }
.buy { position: sticky; bottom: 0; z-index: 3; padding-block: 10px; background: var(--bg); }

/* --- first-visit chooser and choice cards --- */
.chooser { max-width: 460px; }
.choicecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ccard { position: relative; display: block; cursor: pointer; }
.ccard input { position: absolute; opacity: 0; }
.ccard > span { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); transition: border-color var(--fast), box-shadow var(--fast); }
.ccard > span .ic { color: var(--brand); }
.ccard strong { font-size: 1rem; }
.ccard small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.ccard input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #f6fbf8; }
.ccard input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* --- basket and checkout --- */
.cartshop .block-head h2 { font-size: 1.25rem; }
.cartline { align-items: flex-start; }
.cartline .grow .price { margin-top: 4px; }
.cartline .stepper { align-self: center; }
.promo-box { display: grid; gap: 8px; padding-block: 12px; }
.codeapplied, .vouchertap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); }
.vouchertap { border: 1.5px dashed var(--brand); background: #f6fbf8; color: var(--ink); }
.codeform > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.codeform > summary::-webkit-details-marker { display: none; }
.codeform .ic { width: 16px; height: 16px; }
.codeform form { margin-top: 8px; }
.codeform input { text-transform: uppercase; letter-spacing: .06em; }
.sums { display: grid; gap: 8px; padding-top: 10px; }
.sums .kv.total { margin-top: 4px; }
.kv-save > span, .kv-save > strong { color: var(--brand-ink); font-weight: 700; }
.block-sm { display: block; color: var(--muted); font-size: .75rem; }
.checkoutbar .btn { justify-content: space-between; }
.cosec > * + * { margin-top: 16px; }
.paylist { display: grid; gap: 8px; }
.payline-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); cursor: pointer; }
.payline-opt:has(input:checked) { border-color: var(--brand); background: #f6fbf8; }
@media (max-width: 899px) { .dock.dock-always { position: sticky; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); inset-inline: auto; margin-inline: calc(-1 * var(--gutter)); } }

/* --- tracking --- */
.status-big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.steps-track { display: grid; gap: 0; padding: 4px 0 0; list-style: none; }
.steps-track li { position: relative; display: flex; gap: 14px; min-height: 52px; color: var(--muted); }
.steps-track li > span:last-child { display: flex; flex-direction: column; padding-top: 2px; }
.steps-track small { font-size: .75rem; }
.steps-track .dot { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: #fff; }
.steps-track .dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.steps-track li:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 12px; width: 2px; height: calc(100% - 26px); background: var(--line-strong); }
.steps-track li.done { color: var(--ink); }
.steps-track li.done .dot { border-color: var(--brand); background: var(--brand); }
.steps-track li.done::after { background: var(--brand) !important; }
.steps-track li.now { color: var(--ink); }
.steps-track li.now strong { font-weight: 800; }
.steps-track li.now .dot { border: 7px solid var(--brand); animation: pulse 1.8s ease-out infinite; }
.steps-track.is-bad li.now .dot, .steps-track.is-bad li:nth-child(2):not(.done) .dot { border-color: var(--bad-ink); animation: none; }

/* --- orders history --- */
.ordercard { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.ordercard-main { display: flex; flex: 1 1 260px; align-items: center; gap: 14px; min-width: 0; }
.ordercard-main > .ic { color: var(--muted); }
.ordercard form { margin: 0; }
.ordercard .thumb { background: var(--brand-soft); color: var(--brand-ink); }

/* --- account, install, empty states --- */
.menu .line { color: inherit; }
.menu .line > .ic:first-child { color: var(--brand); }
.menu .line > .ic:last-child { color: var(--muted); }
.empty.state { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; }
.empty.state > * + * { margin-top: 0; }
.empty.state .actions { justify-content: center; }
.empty.state .actions > * { flex: 0 1 auto; }
.empty-ic .ic-cat { color: var(--brand-ink); }
.app-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: var(--bg); box-shadow: var(--float); }
.app-icon .logo-mark { width: 58px; height: 58px; }
.app-icon-sm { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.app-icon-sm .logo-mark { width: 34px; height: 34px; }
.howto { display: grid; gap: 12px; padding: 0; list-style: none; }
.howto li { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.howto .ic { color: var(--brand); }
.installcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--soft); }
.recent .chips .chip { background: var(--soft); }

/* --- search suggestions --- */
.suggest-wrap { position: relative; }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 45; overflow: hidden; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--float), 0 0 0 1px var(--line); }
.suggest a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 16px; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected=true] { background: var(--soft); }
.suggest small { margin-left: auto; color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.suggest .ic { width: 18px; height: 18px; color: var(--muted); }

/* --- shop panel --- */
.optadmin { padding: 12px 0; border-top: 1px solid var(--line); }
.boxpick { max-height: 360px; overflow-y: auto; }
.boxpick .mini input { width: 72px; }

@media (min-width: 900px) {
  .modebar { padding-bottom: 12px; }
  .heart { top: 12px; right: 12px; }
  .dealrail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slides { border-radius: 28px; overflow: hidden; }
  .slide figcaption { bottom: 120px; }
  .store-actions { margin-top: 16px; }
  body.has-basket { padding-bottom: 72px; }
  .dock.dock-always.checkoutbar { position: sticky; bottom: 16px; }
  .sheet-media { height: 280px; }
}

.deals-row { margin-top: 20px; }
.storeinfo-wrap { margin-top: 40px; }
.storeinfo-wrap > * + * { margin-top: 14px; }
.ocard .ph:not(:has(img)) { aspect-ratio: 16 / 6; }
.item-main { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.item-main > .item-text { display: flex; flex-direction: column; gap: 5px; }
.cartline .tag { white-space: normal; text-align: left; }
.promo-box .note .ic { width: 18px; height: 18px; flex: none; }

/* --- shop modules (phase 2): compact form grids, boards and statements --- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px 12px; align-items: end; }
.fgrid > .field input, .fgrid > .field select { width: 100%; }
.pline { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.note > .grow { display: block; }
.ledger-bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ledger-bal strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.void { color: var(--muted); text-decoration: line-through; }
.stepline { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.stepline li { padding: 4px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--muted); font-size: .75rem; font-weight: 700; }
.stepline li.done { background: var(--brand-soft); color: var(--brand-ink); }
.stepline li.now { background: var(--brand); color: #fff; }
.kboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kticket { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-lg); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.kticket.k-new { box-shadow: inset 0 0 0 2px var(--brand); }
.kticket.k-late { box-shadow: inset 0 0 0 2px #c2410c; }
.kticket h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 1.05rem; }
.kticket ul { margin: 0; padding-left: 18px; }
.kticket li { margin: 2px 0; font-weight: 700; }
.kticket li small { display: block; color: var(--ink-2); font-weight: 500; }
.qrsheet { display: grid; place-items: center; gap: 10px; padding: 24px; text-align: center; }
.qrsheet svg { width: min(280px, 80vw); height: auto; }
.catbanner { margin: 4px 0 12px; overflow: hidden; border-radius: var(--r-lg); }
.catbanner img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.catbanner figcaption { padding: 8px 4px 0; color: var(--ink-2); font-size: .8125rem; }
.postcard { display: grid; gap: 8px; }
.postcard img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r); }
@media print { .tabbar, .topbar, header.top, nav.chips, .no-print, .site-foot { display: none !important; } .qrsheet svg { width: 70mm; } }
.linkbox { overflow-wrap: anywhere; padding: 10px 12px; border-radius: var(--r); background: var(--soft); font-family: ui-monospace, monospace; font-size: .8rem; }
.ledger-bal h1 { margin: 0; }
.kticket .actions { display: flex; flex-wrap: wrap; gap: 8px; } .kticket .actions form { margin: 0; }
