/* ==========================================================================
   Shop (/shop/: the storefront, product pages, order form, order tracking, invoice, box code).
   Only tokens from app.css (both themes come from them); RTL via logical properties; no third-party anything.
   The look (founder, 2026-11-14: «کوچیک ولی classy»): small type, hairlines instead of coloured panels, pictures that do
   not shout, generous but not huge white space. Colour comes from the product pictures, not from the page.
   ========================================================================== */
.sh-page { --sh-r: 14px; --sh-gap: clamp(26px, 4vw, 40px); }
.sh { max-inline-size: 1040px; }
.sh-narrow { max-inline-size: 640px; }
.sh h1 { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.7rem); font-weight: 700; line-height: 1.4; letter-spacing: var(--ls-title); margin: 0; text-wrap: balance; }
.sh h2 { font-size: var(--fs-md); font-weight: 700; line-height: 1.5; margin: 0; }
.sh-kicker { color: var(--ink-2); font-weight: 600; font-size: var(--fs-xs); margin: 0; }
.sh-kicker a { color: inherit; }
.sh-lead { color: var(--ink-2); margin: 0; font-size: var(--fs-sm); line-height: 1.95; max-inline-size: 62ch; }
.sh-fine { margin: 0; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.8; }
.sh-crumbs { color: var(--ink-2); font-size: var(--fs-xs); } .sh-crumbs a { color: inherit; text-decoration: none; }
.sh-crumbs a:hover { text-decoration: underline; }
.sh-product, .sh-store { display: grid; gap: 14px; align-content: start; }
.sh-product > *, .sh-store > * { min-inline-size: 0; }

.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sh-pill { display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-2xs); line-height: 1.6; padding: 1px 9px;
  border-radius: 999px; color: var(--ink-2); border: 1px solid var(--hair); }
.sh-pill.is-hot { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
/* a status word (app.css also has a round counter called .badge, which would squeeze it into a 22px dot) */
.sh .badge { display: inline-flex; inline-size: auto; block-size: auto; padding: 1px 9px; border-radius: 999px; white-space: nowrap; font-size: var(--fs-2xs); font-weight: 600;
  line-height: 1.6; background: var(--accent-soft); color: var(--accent-ink, var(--indigo)); }
.sh .badge.soon { background: var(--surface-2); color: var(--ink-2); }
.sh fieldset.field { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.sh-stock { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: var(--fs-xs); padding: 2px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, var(--ink)); }

/* a section of the long page: a hairline, the title in a narrow column, the content beside it */
.sh-sec { display: grid; gap: 14px; padding-block-start: var(--sh-gap); margin-block-start: calc(var(--sh-gap) - 14px); border-block-start: 1px solid var(--hair); }
.sh-sec > * { min-inline-size: 0; }
@media (min-width: 860px) { .sh-sec { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }

/* ---- storefront ---- */
.sh-store-head { display: grid; gap: 6px; padding-block: clamp(6px, 2vw, 20px) clamp(10px, 2vw, 18px); }
.sh-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 280px)); }
.sh-card { display: grid; gap: 12px; align-content: start; color: inherit; text-decoration: none; }
.sh-card-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--sh-r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--hair); }
.sh-card-img img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; transition: scale var(--dur-3) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.sh-card:hover .sh-card-img img { scale: 1.03; } a.sh-card:hover b { text-decoration: underline; text-underline-offset: 4px; } }
.sh-card-tags { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.sh-card-tags .sh-pill { background: var(--card); }
.sh-card-body { display: grid; gap: 2px; align-content: start; padding-inline: 2px; }
.sh-card-body b { font-size: var(--fs-base); font-weight: 600; line-height: 1.6; }
.sh-card-sub { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.8; }
.sh-card-price { display: grid; margin-block-start: 6px; font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sh-card-price small { color: var(--ink-2); font-weight: 500; font-size: var(--fs-2xs); }
.sh-store > .sh-fine { margin-block-start: 6px; }
.sh-store .sh-trust { margin-block-start: var(--sh-gap); padding-block-start: 18px; border-block-start: 1px solid var(--hair); }

/* ---- product page: gallery ---- */
.sh-hero { display: grid; gap: 20px; align-items: start; }
.sh-hero > * { min-inline-size: 0; }
.sh-gallery { inline-size: 100%; max-inline-size: min(100%, 56vh, 460px); margin-inline: auto; }
@media (min-width: 860px) { .sh-hero { grid-template-columns: minmax(0, 43%) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); }
  .sh-gallery { max-inline-size: none; position: sticky; inset-block-start: calc(var(--header-h) + 20px); } }
.sh-stage { position: relative; border-radius: var(--sh-r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--hair); }
.sh-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sh-gal::-webkit-scrollbar { display: none; }
.sh-gal:focus-visible { outline-offset: -3px; }
.sh-gal figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.sh-gal img { inline-size: 100%; block-size: 100%; object-fit: contain; display: block; }
.sh-gal figcaption { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sh-nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; inline-size: 32px; block-size: 32px; border-radius: 50%; border: 1px solid var(--hair); padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); background: var(--card); opacity: 0;
  transition: opacity var(--dur-2) var(--ease-std), transform var(--dur-2) var(--spring); }
.sh-nav::before { content: ""; position: absolute; inset: -6px; }
.sh-nav[hidden] { display: none; }
.sh-nav svg { inline-size: 16px; block-size: 16px; }
.sh-nav.is-prev { inset-inline-start: 10px; } .sh-nav.is-next { inset-inline-end: 10px; }
.sh-stage:hover .sh-nav, .sh-nav:focus-visible { opacity: 1; }
.sh-stage .sh-nav:disabled { opacity: 0; pointer-events: none; }
.sh-nav:active { transform: var(--press); }
@media (hover: none), (max-width: 859px) { .sh-nav { display: none; } }
.sh-count { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; font-size: var(--fs-2xs); font-weight: 600; padding: 1px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sh-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 1px 2px; scrollbar-width: none; }
.sh-thumbs::-webkit-scrollbar { display: none; }
.sh-thumbs a { position: relative; flex: 0 0 auto; inline-size: 44px; block-size: 44px; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--hair); opacity: 0.6; transition: opacity var(--dur-2) var(--ease-std), border-color var(--dur-2) var(--ease-std); }
.sh-thumbs a:hover, .sh-thumbs a:focus-visible { opacity: 1; }
.sh-thumbs a.is-on { opacity: 1; border-color: var(--ink); }
.sh-thumbs img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
@media (min-width: 860px) { .sh-thumbs { overflow: visible; } .sh-thumbs a { flex: 1 1 0; min-inline-size: 0; max-inline-size: 44px; block-size: auto; aspect-ratio: 1 / 1; } }
.sh-gallery .sh-fine { margin-block-start: 8px; }

/* ---- product page: the buy column ---- */
.sh-buy { display: grid; gap: 12px; align-content: start; }
.sh-buy > p { margin: 0; }
.sh-facts { display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.9; }
.sh-facts span + span::before { content: "·"; margin-inline: 8px; color: var(--ink-2); font-weight: 400; }

.sh-pricebox { display: grid; gap: 8px; padding-block: 14px; margin-block-start: 4px; border-block: 1px solid var(--hair); }
.sh-from { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.sh-from > span { color: var(--ink-2); font-size: var(--fs-sm); }
.sh-from b { font-size: var(--fs-xl); font-weight: 700; white-space: nowrap; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.sh-from b small, .sh-from > span small { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.sh-from b small { margin-inline-end: 6px; }
.sh-from.is-soft b { font-size: var(--fs-base); font-weight: 600; color: var(--ink-2); }
.sh-from s { color: var(--ink-2); font-weight: 400; font-size: var(--fs-sm); }
.sh-pay2 { list-style: none; counter-reset: pay; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.8; }
.sh-pay2 li { counter-increment: pay; display: flex; gap: 6px; align-items: baseline; }
.sh-pay2 li::before { content: counter(pay, persian); flex: none; inline-size: 16px; block-size: 16px; border-radius: 50%; display: grid; place-items: center; translate: 0 2px;
  font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); }
.sh-pay2 b { color: var(--ink); font-weight: 600; }
.sh-more summary { cursor: pointer; inline-size: fit-content; font-size: var(--fs-xs); color: var(--accent-ink, var(--indigo)); list-style: none; padding-block: 4px; }
.sh-more summary::-webkit-details-marker { display: none; }
.sh-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.sh-more p { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.9; }
.sh-more p b { color: var(--ink); font-weight: 600; }
.sh-stockline { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.8; }

/* the offers: slim rows in one outlined list */
.sh-offers { display: grid; overflow: clip; border: 1px solid var(--hair); border-radius: var(--sh-r); background: var(--card); scroll-margin-block-start: calc(var(--header-h) + 24px); }
.sh-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: end; padding: 12px 14px; border-block-start: 1px solid var(--hair); color: inherit; }
.sh-offer:first-child { border-block-start: 0; }
.sh-offer-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.sh-offer b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.7; }
.sh-ribbon { display: inline-block; margin-inline-start: 4px; font-size: 0.6875rem; font-weight: 600; padding: 0 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--accent-soft); color: var(--accent-ink, var(--indigo)); }
.sh-price { font-weight: 700; font-size: var(--fs-base); white-space: nowrap; display: inline-flex; align-items: baseline; gap: 6px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.sh-price s { color: var(--ink-2); font-weight: 400; font-size: var(--fs-xs); }
.sh-price small { color: var(--ink-2); font-weight: 500; font-size: var(--fs-2xs); }
.sh-offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.85; }
.sh-offer > small { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.8; }
.sh-offer > .btn { white-space: nowrap; }
@media (max-width: 520px) { .sh-offer > .sh-offer-list, .sh-offer > .btn { grid-column: 1 / -1; } .sh-offer > .btn { justify-self: end; margin-block-start: 6px; } }
/* the same row as a radio choice (order form) */
label.sh-offer { cursor: pointer; align-items: baseline; transition: background-color var(--dur-2) var(--ease-std); }
label.sh-offer > small { grid-column: 1 / -1; padding-inline-start: 26px; }
label.sh-offer:has(input:checked) { background: var(--accent-soft); }
label.sh-offer:first-child { border-start-start-radius: inherit; border-start-end-radius: inherit; }
label.sh-offer:last-child { border-end-start-radius: inherit; border-end-end-radius: inherit; }
label.sh-offer:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
label.sh-offer input { margin-inline-end: 8px; accent-color: var(--accent); inline-size: 16px; block-size: 16px; vertical-align: -3px; }

.sh-notify { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px solid var(--hair); border-radius: var(--sh-r); font-size: var(--fs-sm); }
.sh-notify p { margin: 0; }
.sh-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-trust.is-row { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sh-trust li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.7; }
.sh-trust li svg { inline-size: 15px; block-size: 15px; margin-block-start: 3px; color: var(--ink-2); flex: none; }
@media (max-width: 360px) { .sh-trust:not(.is-row) { grid-template-columns: 1fr; } }

/* ---- product page: under the fold ---- */
.sh-video { inline-size: 100%; max-inline-size: 640px; border-radius: var(--sh-r); background: #000; aspect-ratio: 16 / 9; display: block; }

.sh-day, .sh-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 28px; }
.sh-day { counter-reset: n; } .sh-how { counter-reset: n; }
.sh-day li, .sh-how li { counter-increment: n; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; align-content: start; }
.sh-day li::before, .sh-how li::before { content: counter(n, persian); grid-row: span 2; inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); margin-block-start: 1px; }
.sh-day b, .sh-how b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.75; }
.sh-day span, .sh-how span { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.9; }
@media (min-width: 640px) { .sh-day { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sh-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sh-how { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; }
  .sh-how li { grid-template-columns: 1fr; gap: 6px; } .sh-how li::before { grid-row: auto; } }

.sh-inside { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0; list-style: none; }
.sh-inside li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; align-items: center; align-content: center; padding-block: 10px; border-block-end: 1px solid var(--hair); }
.sh-inside img { grid-row: span 2; inline-size: 48px; block-size: 48px; border-radius: 10px; object-fit: cover; display: block; background: var(--surface-2); }
.sh-inside li b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.7; align-self: end; }
.sh-inside li span { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.8; align-self: start; }
.sh-inside li:first-child { padding-block-start: 0; }
.sh-inside li:last-child { border-block-end: 0; }
@media (min-width: 640px) { .sh-inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-inside li:nth-child(2) { padding-block-start: 0; } .sh-inside li:nth-last-child(2):nth-child(odd) { border-block-end: 0; } }

.sh-specs { margin: 0; display: grid; }
.sh-specs div { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 12px; padding-block: 8px; border-block-end: 1px solid var(--hair); font-size: var(--fs-sm); }
.sh-specs div:first-child { padding-block-start: 0; }
.sh-specs div:last-child { border-block-end: 0; }
.sh-specs dt { color: var(--ink-2); }
.sh-specs dd { margin: 0; }

.sh-faq details { border-block-end: 1px solid var(--hair); }
.sh-faq details:last-child { border-block-end: 0; }
.sh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; list-style: none; }
.sh-faq details:first-child summary { padding-block-start: 0; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: ""; flex: none; inline-size: 7px; block-size: 7px; margin-inline-end: 3px; border-inline-end: 1.5px solid var(--ink-2); border-block-end: 1.5px solid var(--ink-2);
  rotate: 45deg; translate: 0 -2px; transition: rotate var(--dur-2) var(--ease-std), translate var(--dur-2) var(--ease-std); }
.sh-faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.sh-faq p { color: var(--ink-2); margin: 0; padding-block-end: 14px; font-size: var(--fs-sm); line-height: 1.95; max-inline-size: 68ch; }

/* the slim buy bar of a phone: the price and one button stay in reach (shop-product.js hides it while the offers are on
   screen; without the script it simply stays) */
.sh-bar { position: fixed; z-index: 53; inset-inline: 0; inset-block-end: 0; padding: 6px max(12px, var(--safe-l)) calc(8px + var(--safe-b)); pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-std), visibility 0s; }
body.has-tabbar .sh-bar { inset-block-end: calc(var(--tabbar-h) + var(--safe-b)); padding-block-end: 6px; }
.sh-bar-in { pointer-events: auto; max-inline-size: 440px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px; padding-inline-start: 16px; border-radius: 999px; background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--hair); box-shadow: var(--e2); }
.sh-bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.5; min-inline-size: 0; }
.sh-bar b { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-bar b small { font-weight: 500; }
.sh-bar small { color: var(--ink-2); font-size: var(--fs-2xs); white-space: nowrap; }
.sh-bar .btn { flex: none; min-block-size: 36px; padding-inline: 18px; }
.sh-bar[data-js]:not(.is-on) { transform: translateY(130%); opacity: 0; visibility: hidden; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-std), visibility 0s var(--dur-3); }
@media (max-width: 859px) {
  .sh-page:has(.sh-bar) { padding-block-end: 60px; }
  body:has(.sh-bar.is-on) .sp-fab, body:has(.sh-bar:not([data-js])) .sp-fab { inset-block-end: calc(68px + var(--safe-b)); }
  body:has(> .tabbar):has(.sh-bar.is-on) .sp-fab, body:has(> .tabbar):has(.sh-bar:not([data-js])) .sp-fab { inset-block-end: calc(var(--tabbar-h) + var(--safe-b) + 64px); }
}
@media (min-width: 860px) { .sh-bar { display: none; } }

/* ---- order form, order summary and tracking ---- */
.sh-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 12px; border-block: 1px solid var(--hair); color: inherit; text-decoration: none; }
.sh-item img { inline-size: 48px; block-size: 48px; border-radius: 10px; object-fit: cover; display: block; background: var(--surface-2); }
.sh-item div { display: grid; min-inline-size: 0; }
.sh-item b { font-size: var(--fs-sm); font-weight: 600; }
.sh-item small { color: var(--ink-2); font-size: var(--fs-xs); }
.sh-progress { list-style: none; counter-reset: pr; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: var(--fs-xs); color: var(--ink-2); }
.sh-progress li { counter-increment: pr; display: inline-flex; align-items: center; gap: 6px; }
.sh-progress li::before { content: counter(pr, persian); inline-size: 18px; block-size: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.6875rem;
  border: 1px solid var(--line); }
.sh-progress li + li::after { content: ""; order: -1; inline-size: 14px; block-size: 1px; background: var(--line); }
.sh-progress .is-now { color: var(--ink); font-weight: 600; }
.sh-progress .is-now::before { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.sh-lines { display: grid; gap: 6px; margin: 0; }
.sh-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sh-lines dt { color: var(--ink-2); }
.sh-lines dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.sh-lines .total { border-block-start: 1px solid var(--hair); padding-block-start: 8px; font-size: var(--fs-md); }
.sh-lines .total dd { font-weight: 800; }
.sh-lines .is-due dd, .sh-lines .is-due dt { color: var(--accent-ink, var(--accent)); font-weight: 800; }

.sh-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; }
.sh-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-block-end: 18px; }
.sh-steps li::before { content: ""; position: absolute; inset-inline-start: 13px; inset-block: 28px 0; inline-size: 2px; background: var(--hair); }
.sh-steps li:last-child { padding-block-end: 0; }
.sh-steps li:last-child::before { display: none; }
.sh-dot { inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--hair);
  background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 800; }
.sh-steps .is-done .sh-dot { background: var(--ok); border-color: var(--ok); color: var(--card); }
.sh-steps .is-done::before { background: var(--ok); }
.sh-steps .is-now .sh-dot { border-color: var(--accent); color: var(--accent-ink, var(--accent)); box-shadow: 0 0 0 4px var(--accent-soft); }
.sh-steps b { display: block; }
.sh-steps small { color: var(--ink-2); }
.sh-steps .is-todo b { color: var(--ink-2); font-weight: 600; }
.sh-track { direction: ltr; unicode-bidi: isolate; font-weight: 800; letter-spacing: .04em; user-select: all; }

.sh-orders { list-style: none; padding: 0; margin: 0; display: grid; border-block-start: 1px solid var(--hair); }
.sh-orders a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding-block: 12px; border-block-end: 1px solid var(--hair);
  color: inherit; text-decoration: none; font-size: var(--fs-sm); }
.sh-orders img { grid-row: span 2; inline-size: 48px; block-size: 48px; border-radius: 10px; object-fit: cover; display: block; background: var(--surface-2); }
.sh-orders a:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.sh-orders b { font-weight: 600; }
.sh-orders small { color: var(--ink-2); grid-column: 2 / -1; font-size: var(--fs-xs); }
.sh-orders a:not(:has(img)) small { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) { .sh-orders a:hover b { text-decoration: underline; text-underline-offset: 4px; } }
.sh-code-hero { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px; align-items: start; }
.sh-code-hero img { inline-size: 72px; block-size: 72px; object-fit: cover; border-radius: var(--sh-r); display: block; border: 1px solid var(--hair); }
.sh-code input { font-size: 1.25rem; letter-spacing: .08em; text-align: center; font-weight: 700; }
.sh-cancel summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); }

@media print {
  .sh-invoice { border: 0; box-shadow: none; }
  .no-print { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-card-img img, .sh-bar, .sh-nav, .sh-thumbs a { transition: none; }
  a.sh-card:hover .sh-card-img img { scale: 1; }
}
/* the shop inside the app: one calm card per product and a button to the website (templates/shop/handoff.html) */
.sh-handoff img { inline-size: 100%; max-inline-size: 320px; block-size: auto; border-radius: 16px; justify-self: center; }
.sh-handoff h2 { margin: 0; }

.sh-store .sh-store-head { padding: clamp(18px, 4vw, 32px); border-radius: 24px; border: 1px solid var(--hair); background: radial-gradient(ellipse at top left, var(--accent-soft), transparent 70%), var(--card); }
.sh-store-actions, .sh-product-contents { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.sh-card-open, .sh-product-contents a { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; color: var(--accent-ink); font-weight: 700; }
.sh-product-contents a { padding-inline: 10px; border: 1px solid var(--hair); border-radius: 10px; text-decoration: none; }
.sh-product :is(#sh-in, #sh-spec, #sh-faq) { scroll-margin-block-start: calc(var(--safe-t, 0px) + 84px); }

/* The product gallery keeps thumbnails readable independently of its full-size images. */
.sh-thumbs { overflow-x: auto; overscroll-behavior-inline: contain; }
.sh-thumbs a { flex: 0 0 52px; min-inline-size: 52px; max-inline-size: none; block-size: 52px; opacity: .86; }
.sh-thumbs a.is-on { opacity: 1; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sh-count { direction: ltr; color: var(--ink); }
html[dir="ltr"] .sh-stage .sh-nav svg { transform: scaleX(-1); }
.sh-notify .small { display: flex; gap: 8px; align-items: flex-start; }
.sh-notify .small .ic { flex: none; margin-block-start: .4em; color: var(--ok); }

.sh-product .sh-journey {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--hair);
  border-radius: var(--sh-r);
  background: linear-gradient(145deg, color-mix(in srgb, var(--saffron) 11%, var(--card)), var(--card) 70%);
}
.sh-journey-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sh-journey-head h2 { margin: 0; }
.sh-journey-head .btn { min-block-size: 44px; white-space: normal; }
.sh-journey .sh-day { gap: 10px; margin: 0; }
.sh-journey .sh-day li {
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--card);
}
.sh-journey .sh-day li::before { inline-size: 32px; block-size: 32px; background: var(--warn-soft); color: var(--warn-ink); border: 0; }
.sh-journey .sh-day b { font-size: var(--fs-base); }
.sh-journey .sh-day span { font-size: var(--fs-sm); }
.sh-product .sh-inside { gap: 8px 12px; }
.sh-product .sh-inside li {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0 11px;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--card);
}
.sh-product .sh-inside img { inline-size: 62px; block-size: 62px; }
.sh-product .sh-specs div { padding: 11px 13px; }
.sh-product .sh-specs div:nth-child(odd) { background: var(--surface-2); }
@media (max-width: 520px) {
  .sh-product .sh-specs div { grid-template-columns: minmax(75px, .8fr) minmax(0, 1.4fr); }
}
