/* AstroDivy — shop (19 Oct 2026). Same glass recipe as glass.css: long lists get the frosted look without live blur,
   windows (cart drawer, checkout, payment) get real blur on wide screens. */
.shop-page { padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); padding-bottom: 72px; }
.shop-page .section-lead { margin-bottom: 18px; }

/* header: cart chip (sits next to the wallet chip) */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; min-height: 36px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--g-edge); background: var(--g-fill), var(--g-solid); color: #EEF0FF; cursor: pointer; font: 700 13.5px var(--text); }
.nav-cart[hidden] { display: none; }
.nav-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-cart span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: linear-gradient(180deg, #F0CB64, #E0B444); color: #1E1030; font: 700 11.5px/18px var(--text); }
.top .nav-cart { margin-left: 8px; }
.nav-cart + .nav-sign { margin-left: 8px; }

/* sample note, type switch, filters */
.sp-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: rgba(242, 199, 92, .1); border: 1px solid rgba(242, 199, 92, .35); color: #FBE3A1; font-size: 14.5px; }
.sp-types { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--g-edge); background: var(--g-fill), var(--g-solid); }
.sp-types button { border: 0; background: none; color: var(--mist); font: 600 15px var(--text); padding: 9px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.sp-types button[aria-pressed="true"] { background: rgba(255, 255, 255, .9); color: #10122C; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sp-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sp-filters .pf-sel select { width: 100%; }

/* grid + cards */
.sp-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.sp-card { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--g-fill), var(--g-solid); border: 1px solid var(--g-edge);
  box-shadow: var(--g-hi), 0 14px 34px -22px rgba(0, 0, 0, .8); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sp-card:hover { border-color: var(--g-edge-hi); box-shadow: var(--g-hi), 0 22px 46px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(168, 228, 255, .12); transform: translateY(-2px); }
.sp-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; background: radial-gradient(60% 60% at 50% 45%, rgba(168, 140, 255, .22), transparent 70%), rgba(5, 6, 18, .35); }
.sp-art { width: 74%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.sp-art.big { width: 82%; }
.sp-art.mini { width: 52px; height: 52px; flex: none; border-radius: 12px; background: rgba(5, 6, 18, .45); padding: 4px; filter: none; }
.sp-sample { position: absolute; top: 10px; left: 10px; font: 600 11px var(--text); padding: 3px 9px; border-radius: 999px; color: #DDE2FF; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sp-body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; }
.sp-type { color: #F4D27A; font: 600 12.5px var(--text); text-transform: uppercase; letter-spacing: .06em; }
:lang(hi) .sp-type { text-transform: none; letter-spacing: 0; }
.sp-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.sp-body h3 a { color: #fff; text-decoration: none; }
.sp-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-planet { margin: 0; color: var(--mist); font-size: 13.5px; }
.sp-planet b { color: #E6E9FF; font-weight: 600; }
.sp-price { margin: 6px 0 8px; } .sp-price b { font: 700 22px var(--display); color: #fff; font-variant-numeric: tabular-nums; } .sp-price small { color: var(--mist); font-size: 13px; }
.sp-add { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15.5px; }
.sp-add.ok { border-color: rgba(43, 212, 107, .6); color: #BFF5D3; }
.sp-none { display: grid; justify-items: center; gap: 12px; padding: 34px 20px; border-radius: 20px; background: var(--g-fill), var(--g-solid); border: 1px solid var(--g-edge); text-align: center; margin-top: 14px; }
.sp-none p { margin: 0; color: var(--mist); }
.sp-fine { color: var(--mist-2, #8E98C2); font-size: 13.5px; margin: 14px 0 0; max-width: 80ch; }

/* product page */
.sp-back { display: inline-block; margin-bottom: 14px; color: var(--mist); text-decoration: none; font-size: 15px; }
.sp-back:hover { color: #fff; }
.sp-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 44px); align-items: start; }
.sp-hero { position: sticky; top: 90px; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26px; border: 1px solid var(--g-edge);
  background: radial-gradient(60% 60% at 50% 45%, rgba(168, 140, 255, .26), transparent 70%), var(--g-fill), var(--g-tint); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: var(--g-hi), var(--g-drop); }
.sp-hero .sp-sample { top: 14px; left: 14px; }
.sp-info h2 { margin: 4px 0 8px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.sp-info h3 { margin: 22px 0 6px; font-size: 17px; }
.sp-info > p { color: #DDE2FA; margin: 0; }
.sp-big-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px !important; }
.sp-big-price b { font: 700 36px var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sp-big-price small { color: var(--mist); font-size: 13.5px; }
.sp-lbl { margin: 16px 0 8px !important; color: var(--mist) !important; font-size: 14px; }
.sp-vars { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-vars button { display: grid; gap: 2px; justify-items: start; padding: 10px 14px; min-height: 48px; border-radius: 14px; cursor: pointer; color: #fff; text-align: left;
  background: var(--g-fill), var(--g-solid); border: 1px solid var(--g-edge); box-shadow: var(--g-hi); font: 600 15px var(--text); }
.sp-vars button small { color: var(--mist); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.sp-vars button[aria-checked="true"] { border-color: rgba(242, 199, 92, .8); box-shadow: var(--g-hi), 0 0 0 2px rgba(242, 199, 92, .35); background: linear-gradient(180deg, rgba(251, 227, 161, .16), rgba(255, 255, 255, .03)), var(--g-solid); }
.sp-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--g-edge); background: var(--g-fill), var(--g-solid); }
.sp-qty button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: #fff; font: 600 20px var(--text); cursor: pointer; }
.sp-qty button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.sp-qty button:disabled { opacity: .35; cursor: default; }
.sp-qty output { min-width: 28px; text-align: center; font: 700 16px var(--text); font-variant-numeric: tabular-nums; }
.sp-qty.sm { margin-top: 6px; } .sp-qty.sm button { width: 32px; height: 32px; font-size: 17px; }
.sp-qty.sm .btn-text { width: auto; padding: 0 10px; font-size: 13.5px; color: var(--mist); border-radius: 999px; }
.sp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sp-acts > * { min-height: 52px; font-size: 16.5px; }

/* cart drawer */
.sp-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(8, 3, 18, 0); transition: background .22s; }
.sp-drawer.on { background: rgba(8, 3, 18, .55); }
.sp-drawer[hidden] { display: none; }
.sp-dpanel { position: relative; width: min(440px, 100%); height: 100%; overflow-y: auto; padding: 0 20px 28px; transform: translateX(100%); transition: transform .22s ease-out;
  background: var(--g-fill), var(--g-tint); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); border-left: 1px solid var(--g-edge-hi);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .8), inset 1px 0 0 rgba(255, 255, 255, .06); }
.sp-drawer.on .sp-dpanel { transform: none; }
.sp-dpanel .mac-bar { margin: 0 -20px 6px; }
.sp-dpanel h2 { margin: 10px 0 14px; font-size: 26px; }
.sp-dlines, .sp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-dlines li, .sp-lines li { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: var(--g-fill), var(--g-solid); border: 1px solid var(--g-edge); }
.sp-dlines li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sp-dlines a { color: #fff; text-decoration: none; } .sp-dlines a:hover b { text-decoration: underline; }
.sp-dlines small, .sp-lines small { color: var(--mist); font-size: 13px; }
.sp-dlines li > b, .sp-lines li > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-lines li { align-items: center; } .sp-lines li > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sp-free { margin: 14px 0 0; font-size: 14px; color: #E6E9FF; }
.sp-free i { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, #F0CB64 var(--p), rgba(255, 255, 255, .1) var(--p)); }
.sp-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 16px 0; }
.sp-sum dt { color: var(--mist); } .sp-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sp-sum .tot { color: #fff; font: 700 19px var(--display); padding-top: 8px; border-top: 1px solid var(--g-edge); }
.sp-go { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 17px; }

/* checkout + done */
.sp-co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sp-addr, .sp-co-sum, .sp-done { padding: 22px clamp(18px, 3vw, 28px); border-radius: 18px; border: 1px solid var(--g-edge);
  background: var(--g-fill), var(--g-tint); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: var(--g-hi), 0 40px 90px -40px rgba(0, 0, 0, .9); }
.sp-addr { display: grid; gap: 12px; } .sp-addr h2 { margin: 0; } .sp-addr .section-lead { margin: 0 0 4px; }
.sp-co-sum { position: sticky; top: 90px; } .sp-co-sum h3 { margin: 0 0 12px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.si-field select { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 6, 18, .45); color: #fff; font: 400 16px var(--text); }
.si-field select:focus { outline: none; border-color: rgba(168, 228, 255, .6); box-shadow: 0 0 0 3px rgba(70, 200, 255, .2); }
.si-field input[aria-invalid], .si-field select[aria-invalid] { border-color: rgba(255, 120, 110, .8); }
/* pay.js prints "includes 18% GST" for reports; goods carry other GST rates, so the shop shows its own line instead */
.sp-pay .pay-sum .small { display: none; }
.sp-done { width: min(640px, 100%); margin: 0 auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.sp-done h2 { margin: 0; } .sp-done > p { margin: 0; color: #DDE2FA; }
.sp-done .sp-lines, .sp-done .sp-sum { width: 100%; text-align: left; }
.sp-done .tick { width: 64px; height: 64px; fill: none; stroke: #2BD46B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sp-to { display: grid; gap: 4px; color: #E6E9FF !important; font-size: 14.5px; }
.sp-to span { color: var(--mist); font-size: 13px; }
html[data-page="shop"]:not([data-shop="grid"]) #shopTitle, html[data-page="shop"]:not([data-shop="grid"]) #shopLead { display: none; }

/* "Buy this stone" in the problem panel and the chat */
.sp-pd { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(251, 227, 161, .14), rgba(124, 92, 255, .12)), var(--g-solid); border: 1px solid rgba(242, 199, 92, .45); }
.sp-pd span { flex: 1; display: grid; gap: 2px; } .sp-pd small { color: var(--mist); } .sp-pd i { font-style: normal; color: #F4D27A; font-size: 20px; }
.sp-pd:hover { border-color: rgba(242, 199, 92, .8); }
.sp-buys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-buy { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 999px; text-decoration: none; font: 600 13.5px var(--text); color: #1E1030;
  background: linear-gradient(180deg, #F0CB64, #E0B444); }

/* phone */
@media (max-width: 900px) {
  .tabbar:has(> a:nth-child(6)) { grid-template-columns: repeat(6, 1fr); }
  .tabbar:has(> a:nth-child(6)) a { font-size: 10.5px; }
  .sp-hero, .sp-addr, .sp-co-sum, .sp-done, .sp-dpanel { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sp-hero, .sp-addr, .sp-co-sum, .sp-done { background: var(--g-fill), var(--g-solid); }
  .sp-dpanel { background: var(--g-fill), var(--g-solid); }
  .nav-cart { min-height: 34px; padding: 5px 8px; }
}
@media (max-width: 760px) {
  .sp-filters { grid-template-columns: 1fr 1fr; }
  .sp-detail, .sp-co { grid-template-columns: 1fr; }
  .sp-hero { position: relative; top: 0; width: min(100%, 420px); margin: 0 auto; }
  .sp-co-sum { position: static; order: -1; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-body { padding: 12px; } .sp-body h3 { font-size: 15.5px; } .sp-price b { font-size: 19px; }
  .sp-add { min-height: 40px; font-size: 14px; padding-left: 8px; padding-right: 8px; }
  .sp-types { display: flex; } .sp-types button { flex: 1; padding: 9px 8px; font-size: 14px; }
}
@media (max-width: 420px) { .sp-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sp-dpanel, .sp-drawer, .sp-card { transition: none; } }
