/* Mirapages — shop: nav link, /shop/ grid and cart bar, checkout sheet parts, home Shop section,
   dashboard orders. Tokens in docs/design-tokens.md; the sheet itself is booking.css. */

/* Nav: "Shop", an icon pill like the account link */
.nav__shop { display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9375rem; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav__shop:hover, .nav__shop[aria-current="page"] { color: var(--fg); background: rgba(29, 26, 20, .06); }
.nav__shop-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .nav__shop { justify-content: center; padding: 0; width: 44px; }
  .nav__shop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 400px) {
  .nav { gap: 2px; }
  .nav__lang { padding: 0 8px; }
  .nav__shop, .nav__account { width: 40px; min-width: 40px; }
}
@media (max-width: 350px) { .nav__cta { padding: .6em .8em; font-size: .875rem; } }

/* /shop/ */
.shop { width: 100%; max-width: var(--max); min-height: 100svh; margin: 0 auto; padding: 120px var(--gutter) 80px; }
body.has-cartbar .shop { padding-bottom: 140px; }
.shop__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.shop__title { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; color: var(--accent-text); }
:lang(zh) .shop__title { font-size: clamp(2rem, 5vw, 3rem); }
.shop__lede { max-width: 46ch; color: var(--muted); text-wrap: pretty; }
.shop__grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product { display: grid; gap: 16px; align-content: start; min-width: 0; }
/* A soft arch: the photos are square, so a full semicircle would clip wide jars at the shoulders. */
.product__frame { aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 18px 18px / 26% 26% 18px 18px; background: var(--sand-2); }
.product__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product__img.is-empty { display: block; }
.product:hover .product__img { transform: scale(1.03); }
.product.is-sold .product__img { filter: saturate(.55); opacity: .8; }
.product--ghost .product__frame { animation: pulse 1.2s ease-in-out infinite alternate; }
.product__body { display: grid; gap: 6px; }
.product__brand { font-size: .8125rem; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; }
.product__name { font: italic 600 clamp(1.5rem, 2.4vw, 1.875rem)/1.1 var(--serif); overflow-wrap: anywhere; }
:lang(zh) .product__name { font: 700 1.25rem/1.35 var(--sans); }
.product__desc { color: var(--muted); font-size: .9375rem; text-wrap: pretty; }
.product__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 8px; }
.product__price { font: italic 600 1.75rem/1 var(--serif); color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.product__add { min-width: 9em; }
.product__sold { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(29, 26, 20, .08); color: var(--muted); font-weight: 600; font-size: .875rem; }

/* qty stepper (grid and checkout lines) */
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--copper); }
.qty__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(196, 131, 90, .16); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.qty__btn:hover { background: rgba(196, 131, 90, .32); }
.qty__btn:active { transform: scale(.92); }
.qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__n { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm .qty__btn { width: 36px; height: 36px; }

/* Opening soon / could not load */
.shop__empty { display: grid; justify-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 56px 24px 32px; text-align: center; background: var(--card); border: 1px solid var(--hair); border-radius: 280px 280px 28px 28px / 64px 64px 28px 28px; }
.shop__empty-mark { width: 64px; height: 76px; border-radius: 32px 32px 8px 8px; background: var(--sand); border: 1.5px solid var(--line); }
.shop__empty-title { font: italic 600 clamp(1.625rem, 4vw, 2rem)/1.15 var(--serif); color: var(--accent-text); }
:lang(zh) .shop__empty-title { font: 700 1.375rem/1.3 var(--sans); }
.shop__empty-text { color: var(--muted); text-wrap: balance; }
.shop__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.shop__empty .btn--ghost { color: var(--ink); border-color: rgba(29, 26, 20, .2); }
.shop__empty .form-error { margin-top: 0; }

/* Sticky cart bar */
.cartbar { position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 640px); animation: barIn .5s var(--ease); }
.cartbar[hidden] { display: none; }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 24px); } }
.cartbar__inner { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--olive); color: var(--bone); box-shadow: 0 18px 44px rgba(29, 26, 20, .3); }
.cartbar__sum { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cartbar__count { font-size: .875rem; opacity: .8; overflow-wrap: anywhere; }
.cartbar__total { font: italic 600 1.375rem/1 var(--serif); color: var(--copper); font-variant-numeric: tabular-nums; }
.cartbar__go { flex: none; }
@media (max-width: 400px) { .cartbar__inner { padding-left: 16px; } .cartbar__go { padding-inline: 1.1em; } }

/* Checkout: lines, total, pickup choice */
.colines { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(29, 26, 20, .1); }
.coline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(29, 26, 20, .1); }
.coline__thumb { width: 56px; height: 56px; overflow: hidden; border-radius: 28px 28px 10px 10px; background: var(--sand-2); }
.coline__img { width: 100%; height: 100%; object-fit: cover; }
.coline__main { min-width: 0; display: grid; gap: 2px; }
.coline__name { font-weight: 700; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.coline__price { font-size: .875rem; color: rgba(29, 26, 20, .65); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .coline { grid-template-columns: 44px minmax(0, 1fr); } .coline__thumb { width: 44px; height: 44px; } .coline .qty { grid-column: 2; justify-self: start; } }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.co-total b { font: italic 600 1.75rem/1 var(--serif); color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.co-pickup { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.co-pickup legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 18px; border: 1.5px solid rgba(29, 26, 20, .12); background: #fff8ef; cursor: pointer; transition: border-color .25s, background-color .25s; }
.choice:hover { border-color: var(--copper); }
.choice input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.choice__dot { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid rgba(29, 26, 20, .3); background: #fff; transition: border-color .2s, box-shadow .2s; }
.choice input:checked + .choice__dot { border-color: var(--copper-deep); box-shadow: inset 0 0 0 5px var(--copper); }
.choice input:focus-visible + .choice__dot { outline: 2px solid var(--copper); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--copper); background: rgba(196, 131, 90, .12); }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__text b { font-weight: 600; }
.choice__text span { font-size: .8125rem; color: rgba(29, 26, 20, .62); text-wrap: pretty; overflow-wrap: anywhere; }
.choice.is-off { cursor: default; background: transparent; border-style: dashed; }
.choice.is-off:hover { border-color: rgba(29, 26, 20, .12); }
.choice.is-off b { color: rgba(29, 26, 20, .55); }
.choice__sub { display: grid; gap: 6px; margin-left: 20px; padding-left: 14px; border-left: 2px solid rgba(196, 131, 90, .35); }
.choice--sm { padding: 10px 14px; border-radius: 14px; }
.co-pickup.has-error .choice__sub { border-left-color: #b4412f; }
.co-empty { display: grid; justify-items: center; gap: 16px; padding: 40px 0; text-align: center; font-weight: 600; }
.sheet .account-form__notice { margin: 0; }

/* Home page: a short Shop section */
.shop-teaser { display: grid; background: var(--sand); }
.shop-teaser[hidden] { display: none; }
.shop-teaser__grid { display: grid; gap: 24px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .shop-teaser__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 899px) { .shop-teaser__item:nth-child(3) { display: none; } }
.shop-teaser__item { display: grid; gap: 10px; align-content: start; min-width: 0; text-decoration: none; color: var(--fg); }
.shop-teaser__frame { aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 14px 14px / 26% 26% 14px 14px; background: var(--sand-2); }
.shop-teaser__img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.shop-teaser__item:hover .shop-teaser__img { transform: scale(1.04); }
.shop-teaser__name { display: grid; gap: 2px; font: italic 600 clamp(1.125rem, 2vw, 1.5rem)/1.15 var(--serif); overflow-wrap: anywhere; }
:lang(zh) .shop-teaser__name { font: 700 1.0625rem/1.35 var(--sans); }
.shop-teaser__brand { font: 600 .75rem/1.2 var(--sans); color: var(--accent-text); letter-spacing: .04em; }
.shop-teaser__price { font-weight: 700; color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.shop-teaser__cta { justify-self: center; margin-top: clamp(32px, 5vw, 48px); }

/* Dashboard: your orders */
.aorders__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.aorder { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.aorder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.aorder__ref { font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.aorder__items { font-weight: 600; overflow-wrap: anywhere; }
.aorder__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--muted); }
.aorder__meta b { color: var(--copper-deep); font-variant-numeric: tabular-nums; }
.aorder__pay { margin-top: 10px; }
@media (min-width: 900px) { .aorder__pay { max-width: 560px; } }
.aopill--unpaid, .aopill--reported { background: rgba(196, 131, 90, .18); color: var(--copper-deep); }
.aopill--paid, .aopill--ready { background: rgba(7, 193, 96, .14); color: #067a3d; }
.aopill--collected { background: var(--olive); color: var(--bone); }
.aorder--cancelled .aorder__items, .aorder--collected .aorder__items { color: var(--muted); }

/* An order's items, one per line (pay summary, done screen, dashboard) */
.order-items { display: grid; gap: 2px; }
.done__when .order-items { justify-items: center; }
.done__total { display: block; margin-top: 6px; font: italic 600 1.5rem/1 var(--serif); color: var(--copper-deep); font-variant-numeric: tabular-nums; }

/* Home page, wide nav: the section links, Shop and the account name share 1000px. A long first name
   would squeeze the logo and "Book a visit", so the name ellipsises sooner and the links sit closer. */
@media (min-width: 1081px) {
  .nav__links a { padding-inline: 12px; }
  .nav__links ~ .nav__account span { max-width: 6em; }
}

/* Prices and totals use the sans face: the display serif's hairline "4" reads as "1" at small sizes. */
.product__price, .cartbar__total, .done__total, .co-total b {
  font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
