/* SwipeStore Tenants 0.1.0 (Swipe engine 1.3.0) – standalone styles (no theme compile required) */
:root {
    --ss-accent: #ff2d55;
    --ss-accent-text: #fff;
    --ss-bg: #000;
    --ss-text: #fff;
    --ss-sheet-bg: #fff;
    --ss-sheet-text: #111;
    --ss-muted: #6b7280;
    --ss-border: #e5e7eb;
    --ss-radius: 18px;
    --ss-top: env(safe-area-inset-top, 0px);
    --ss-bottom: env(safe-area-inset-bottom, 0px);
    --ss-side-w: 340px;
    --ss-top-h: 40px;
    --ss-cap-h: max(160px, 20dvh);
    --ss-rail-space: 76px;
    --ss-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body.ss-body { margin: 0; height: 100%; overflow: hidden; background: var(--ss-bg); color: var(--ss-text); font-family: var(--ss-font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.ss-app { position: fixed; inset: 0; height: 100dvh; overflow: hidden; overflow: clip; }
.ss-boot { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; font-size: 15px; opacity: .85; }
.ss-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--ss-accent); animation: ss-spin .8s linear infinite; }
.ss-sheet .ss-spinner, .ss-checkout .ss-spinner { border-color: rgba(0,0,0,.12); border-top-color: var(--ss-accent); }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.ss-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================================================================
   1.1 – immersive stage, custom swipe engine, scope bar, scope sheet
   Only transform + opacity are ever animated. No backdrop-filter on
   anything that sits above moving content.
   ====================================================================== */
.ss-icon-btn { position: relative; flex: 0 0 auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; transition: transform .15s ease, opacity .15s ease; text-decoration: none; }
.ss-icon-btn:active { transform: scale(.9); }
.ss-icon-btn svg { width: 22px; height: 22px; }
.ss-icon-btn--flat { background: none; width: 40px; height: 40px; }
.ss-icon-btn--flat svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.ss-badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ss-accent); color: var(--ss-accent-text); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.ss-badge[hidden] { display: none; }
.ss-badge.ss-bump { transform: scale(1.35); }
.ss-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.1; text-align: center; text-decoration: none; transition: transform .12s ease, opacity .2s ease; }
.ss-btn:active { transform: scale(.97); }
.ss-btn[disabled] { opacity: .45; pointer-events: none; }
.ss-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ss-btn--primary { background: var(--ss-accent); color: var(--ss-accent-text); }
.ss-btn--glass { background: rgba(255,255,255,.16); color: #fff; }
.ss-btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.ss-btn--dark { background: #111; color: #fff; }
.ss-btn.is-done { background: #16a34a; color: #fff; }

/* ---------- top: tabs (areas), sub tabs, scope pill ---------- */
.ss-top { position: absolute; z-index: 30; top: 0; left: 0; right: 0; padding-top: var(--ss-top); pointer-events: none; transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.ss-top::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--ss-top) + 120px); background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0)); pointer-events: none; }
.ss-top-row { display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 6px; }
.ss-top-row > *, .ss-subtabs, .ss-scope-pill-row > * { pointer-events: auto; }
.ss-tabs { flex: 1 1 auto; min-width: 0; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); overscroll-behavior-x: contain; }
.ss-tabs::-webkit-scrollbar { display: none; }
.ss-tabs-inner { display: flex; align-items: center; gap: 20px; height: 100%; width: max-content; margin: 0 auto; padding: 0 16px; }
.ss-top .ss-tab { position: relative; flex: 0 0 auto; height: 100%; border: 0; background: none; padding: 0; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; opacity: .62; text-shadow: 0 1px 3px rgba(0,0,0,.45); transition: opacity .2s ease; display: inline-flex; align-items: center; gap: 4px; }
.ss-top .ss-tab::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: #fff; transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ss-top .ss-tab.is-active { opacity: 1; font-weight: 700; }
.ss-top .ss-tab.is-active::after { transform: scaleX(1); }
.ss-top .ss-tab svg { width: 15px; height: 15px; color: var(--ss-accent); }
.ss-subtabs { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ss-subtabs::-webkit-scrollbar { display: none; }
.ss-subtabs[hidden], .ss-scope-pill-row[hidden] { display: none; }
.ss-subtabs-inner { display: flex; gap: 8px; width: max-content; margin: 0 auto; padding: 2px 12px 6px; }
.ss-subtab { flex: 0 0 auto; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(0,0,0,.34); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: transform .12s ease; }
.ss-subtab:active { transform: scale(.95); }
.ss-subtab.is-active { background: #fff; color: #111; }
.ss-scope-pill-row { display: flex; justify-content: center; gap: 6px; padding: 2px 12px 6px; }
.ss-scope-pill { display: inline-flex; align-items: center; gap: 7px; max-width: calc(100vw - 80px); height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #111; font-size: 13.5px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ss-scope-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-scope-pill svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ss-scope-pill-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ss-scope-pill-x svg { width: 16px; height: 16px; }
.ss-app.has-subtabs { --ss-top-h: 74px; }
.ss-app.has-pill { --ss-top-h: 76px; }
.ss-app.has-subtabs.has-pill { --ss-top-h: 110px; }

/* auto-hide while swiping, tap to hide the whole UI */
.ss-app.is-swiping .ss-top { opacity: 0; transform: translate3d(0,-10px,0); }
.ss-app.is-swiping .ss-top * { pointer-events: none; }
.ss-rail, .ss-caption, .ss-dots, .ss-shade, .ss-vprog, .ss-sound { transition: opacity .2s ease; }
.ss-app.ui-hidden .ss-top, .ss-app.ui-hidden .ss-rail, .ss-app.ui-hidden .ss-caption, .ss-app.ui-hidden .ss-dots, .ss-app.ui-hidden .ss-shade, .ss-app.ui-hidden .ss-progress, .ss-app.ui-hidden .ss-feed-nav, .ss-app.ui-hidden .ss-gallery-nav { opacity: 0 !important; pointer-events: none !important; }
.ss-app.ui-hidden .ss-top * { pointer-events: none !important; }

/* ---------- progress "3 / 15" ---------- */
.ss-progress { position: absolute; z-index: 25; left: 8px; top: 50%; display: flex; align-items: center; gap: 8px; transform: translate3d(0,-50%,0); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.ss-progress.is-visible, .ss-app.is-swiping .ss-progress { opacity: 1; }
.ss-progress-bar { width: 3px; height: 84px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.ss-progress-bar i { display: block; height: 100%; background: #fff; transform-origin: top; transform: scaleY(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ss-progress-label { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,.42); font-variant-numeric: tabular-nums; }

/* ---------- feed / engine ---------- */
.ss-feed { position: absolute; inset: 0; outline: none; transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.ss-feed.is-leaving { opacity: 0; transform: scale(.965); transition-duration: .17s, .17s; }
.ss-feed.is-entering { opacity: 0; transform: translate3d(0,36px,0); transition: none; }
.ss-engine-custom .ss-feed { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; contain: strict; }
.ss-track { position: absolute; inset: 0; will-change: transform; transform: translate3d(0,0,0); }
.ss-engine-custom .ss-slide { position: absolute; inset: 0; contain: strict; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ss-slide { overflow: hidden; background: #0b0b0d; }
.ss-native .ss-feed { overflow-y: scroll; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.ss-native .ss-feed::-webkit-scrollbar { display: none; }
.ss-native .ss-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }

/* gallery */
.ss-gallery { position: absolute; inset: 0; overflow: hidden; }
.ss-gtrack { position: absolute; inset: 0; display: flex; }
.ss-native .ss-gallery { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ss-native .ss-gallery::-webkit-scrollbar { display: none; }
.ss-native .ss-gtrack { position: relative; height: 100%; }
.ss-native .ss-media { scroll-snap-align: center; }

/* media: edge colour fills the screen – no box, no frame */
.ss-media { position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #f2f2f4; }
.ss-media img, .ss-media video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--ss-focus-y, 50%); user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* 1.2: background around a zoomed-out image */
.ss-gallery { container-type: size; }
.ss-media-bg { position: absolute; inset: -6%; z-index: 0; background: center / cover no-repeat; filter: blur(26px) saturate(1.2); transform: scale(1.08); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.ss-media.bg-blur .ss-media-bg { opacity: 1; }
.ss-media.bg-blur::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.14); pointer-events: none; }
.ss-media.bg-color { background-color: var(--ss-img-bg, #f3f4f6) !important; }
.ss-media.bg-frame { background-color: var(--ss-frame-bg, #fff) !important; }
/* Sweetspot: position + size of the image are computed by sweetspot() (shared with the admin preview) */
.ss-media.is-custom { padding: 0 !important; display: block; }
.ss-media.is-custom img { position: absolute; max-width: none; max-height: none; object-fit: fill; }
.ss-media.is-cover .ss-media-bg, .ss-media.is-cover::after { display: none; }
.ss-media img { opacity: 0; transition: opacity .18s ease; }
.ss-media.is-loaded img { opacity: 1; }
.ss-media.is-contain { padding: calc(var(--ss-top) + var(--ss-top-h) + var(--ss-zo, 0) * 1vh) calc(var(--ss-zo, 0) * 1vw) calc(var(--ss-cap-h) + var(--ss-zo, 0) * 1vh); }
@supports (width: 1cqw) { .ss-media.is-contain { padding: calc(var(--ss-top) + var(--ss-top-h) + var(--ss-zo, 0) * 1cqh) calc(var(--ss-zo, 0) * 1cqw) calc(var(--ss-cap-h) + var(--ss-zo, 0) * 1cqh); } }
.ss-media.is-contain img { object-fit: contain; }
.ss-media.is-cover, .ss-media.is-video { padding: 0; background-color: #111; }
.ss-media.is-contain img { min-width: 0; min-height: 0; }
.ss-media.is-video { background: #000; }
@media (min-aspect-ratio: 4/5) { .ss-media.is-cover img { object-fit: contain; } .ss-media.is-cover { padding: calc(var(--ss-top) + var(--ss-top-h)) 0 var(--ss-cap-h); background-color: #111; } }
.ss-noimage { width: 50%; max-width: 260px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.ss-noimage svg { width: 40%; }
.ss-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.34) 0, rgba(0,0,0,0) calc(var(--ss-top) + 120px)), linear-gradient(to top, rgba(0,0,0,.66) 0, rgba(0,0,0,.38) 16%, rgba(0,0,0,0) 34%); }

/* gallery dots: transform only */
.ss-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--ss-cap-h) + 4px); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.ss-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); box-shadow: 0 0 2px rgba(0,0,0,.4); transition: transform .2s ease, background-color .2s ease; }
.ss-dot.is-active { background: #fff; transform: scale(1.4); }
.ss-dot.is-video { border-radius: 1px; }
.ss-gallery-nav { position: absolute; z-index: 6; top: 45%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.38); color: #fff; display: none; align-items: center; justify-content: center; }
.ss-gallery-nav svg { width: 22px; height: 22px; }
.ss-gallery-nav--prev { left: 16px; }
.ss-gallery-nav--next { right: 84px; }
@media (hover: hover) and (pointer: fine) { .ss-slide:hover .ss-gallery-nav:not([disabled]) { display: inline-flex; } }

/* video */
.ss-sound { position: absolute; z-index: 6; right: 12px; top: calc(var(--ss-top) + var(--ss-top-h) + 10px); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ss-sound svg { width: 20px; height: 20px; }
.ss-playstate { position: absolute; z-index: 4; left: 50%; top: 45%; width: 76px; height: 76px; margin: -38px 0 0 -38px; color: rgba(255,255,255,.92); opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.ss-playstate svg { width: 100%; height: 100%; }
.ss-media.is-user-paused .ss-playstate { opacity: 1; }
.ss-media.is-flash:not(.is-user-paused) .ss-playstate { animation: ss-flash .6s ease forwards; }
@keyframes ss-flash { 0% { opacity: 0; transform: scale(.7); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
.ss-vprog { position: absolute; z-index: 12; left: 0; right: 0; bottom: var(--ss-bottom); height: 2px; background: rgba(255,255,255,.22); pointer-events: none; }
.ss-vprog[hidden] { display: none; }
.ss-vprog i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- slim caption (~20 % of the screen) ---------- */
.ss-caption { position: absolute; z-index: 10; left: 14px; right: 78px; bottom: calc(12px + var(--ss-bottom)); max-width: 560px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); isolation: isolate; }
.ss-cap-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 18px; }
.ss-manufacturer { font-size: 13.5px; font-weight: 700; opacity: .92; }
.ss-badges { display: inline-flex; gap: 5px; }
.ss-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.22); text-shadow: none; }
.ss-tag--sale { background: var(--ss-accent); color: var(--ss-accent-text); }
.ss-name { margin: 3px 0 2px; font-size: 17px; line-height: 1.25; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ss-name-opt { font-size: 13px; font-weight: 500; opacity: .78; }
.ss-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.ss-price { font-size: 20px; font-weight: 800; }
.ss-list-price { font-size: 13px; opacity: .72; text-decoration: line-through; }
.ss-tax { font-size: 11px; opacity: .8; }
.ss-short-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-size: 13px; }
.ss-short { flex: 0 1 auto; min-width: 0; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-short:empty { display: none; }
.ss-stock-low { color: #ffd166; font-weight: 700; }
.ss-stock-out { color: #ff9a9a; font-weight: 700; }
.ss-more { flex: 0 0 auto; border: 0; background: none; padding: 0; color: #fff; font-weight: 800; font-size: 13px; opacity: .95; text-shadow: inherit; }
.ss-more-box { display: none; }
.ss-cta { width: 100%; max-width: 340px; min-height: 44px; margin-top: 10px; border-radius: 12px; font-size: 15px; text-shadow: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ss-cta svg { width: 19px; height: 19px; }
.ss-caption.is-expanded::before { content: ""; position: absolute; z-index: -1; left: -14px; right: -78px; bottom: calc(-12px - var(--ss-bottom)); height: 100dvh; background: linear-gradient(to top, rgba(0,0,0,.86) 0, rgba(0,0,0,.66) 45%, rgba(0,0,0,0) 80%); pointer-events: none; animation: ss-fade .2s ease; }
.ss-caption.is-expanded .ss-name { white-space: normal; }
.ss-caption.is-expanded .ss-short { white-space: normal; }
.ss-caption.is-expanded .ss-more-box { display: block; max-height: 36dvh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; margin-top: 8px; font-size: 13.5px; line-height: 1.45; animation: ss-fade .2s ease; }
.ss-more-text { margin: 0 0 8px; opacity: .9; }
.ss-more-props { list-style: none; margin: 0 0 8px; padding: 0; }
.ss-more-props li { padding: 2px 0; }
.ss-more-props li span { opacity: .65; margin-right: 6px; }
.ss-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; opacity: .8; margin-bottom: 8px; }
.ss-more-details { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13px; }
.ss-more-details svg { width: 16px; height: 16px; }

/* ---------- action rail ---------- */
.ss-rail { position: absolute; z-index: 11; right: 6px; bottom: calc(66px + var(--ss-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ss-rail-btn { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; padding: 0; background: none; color: #fff; font-size: 11.5px; font-weight: 700; text-shadow: 0 0 2px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.6); }
.ss-rail-btn[disabled] { opacity: .45; }
.ss-rail-ic { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
.ss-rail-btn:active .ss-rail-ic { transform: scale(.88); }
.ss-rail-ic svg { width: 31px; height: 31px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.ss-like.is-liked .ss-rail-ic { color: var(--ss-accent); }
.ss-rail-btn.is-pop .ss-rail-ic { animation: ss-pop-rail .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes ss-pop-rail { 0% { transform: scale(.6); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.ss-rail-count { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ss-accent); color: var(--ss-accent-text); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; text-shadow: none; }
.ss-rail-count[hidden] { display: none; }

/* double-tap heart */
.ss-burst { position: absolute; z-index: 40; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: var(--ss-accent); pointer-events: none; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); animation: ss-burst .85s cubic-bezier(.2,.9,.3,1) forwards; }
.ss-burst svg { width: 100%; height: 100%; }
@keyframes ss-burst { 0% { opacity: 0; transform: scale(.25) rotate(-14deg); } 18% { opacity: 1; transform: scale(1.18) rotate(-8deg); } 32% { transform: scale(.94) rotate(-8deg); } 46% { transform: scale(1) rotate(-8deg); } 78% { opacity: 1; transform: translate3d(0,-12px,0) scale(1) rotate(-8deg); } 100% { opacity: 0; transform: translate3d(0,-70px,0) scale(1.35) rotate(-8deg); } }

/* desktop feed navigation */
.ss-feed-nav { position: absolute; z-index: 20; right: 16px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
    .ss-feed-nav { display: flex; }
    .ss-rail { right: 74px; }
    .ss-caption { right: 150px; left: 28px; }
    .ss-gallery-nav--next { right: 140px; }
    .ss-media.is-contain { padding-left: 140px; padding-right: 140px; }
}

/* tail slides (loading / end / empty / error) */
.ss-slide--info, .ss-slide--loading { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #0b0b0d; }
.ss-info-box { max-width: 380px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ss-info-box h2 { margin: 0; font-size: 22px; }
.ss-info-box p { margin: 0; opacity: .8; }
.ss-info-box .ss-btn { width: 100%; flex: none; }

/* first-visit hint */
.ss-hint { position: absolute; z-index: 60; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,.62); text-align: center; padding: 24px; font-size: 16px; font-weight: 700; animation: ss-fade .3s ease; }
.ss-hint-top { position: absolute; top: calc(var(--ss-top) + 54px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
.ss-hint-top svg { width: 26px; height: 26px; animation: ss-bob 1.4s ease-in-out infinite; }
.ss-hint-hand { width: 64px; height: 64px; animation: ss-hint-up 1.6s ease-in-out infinite; }
.ss-hint-row { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.ss-hint-row span { display: inline-flex; align-items: center; gap: 4px; }
.ss-hint-row svg { width: 22px; height: 22px; }
.ss-hint-row span:last-child svg { color: var(--ss-accent); }
.ss-hint small { opacity: .7; font-weight: 500; }
@keyframes ss-hint-up { 0%,100% { transform: translateY(24px); opacity: .4; } 50% { transform: translateY(-24px); opacity: 1; } }
@keyframes ss-bob { 0%,100% { transform: translateY(4px); } 50% { transform: translateY(-4px); } }
@keyframes ss-fade { from { opacity: 0; } to { opacity: 1; } }

/* PWA install card */
.ss-pwa { position: absolute; z-index: 95; left: 12px; right: 12px; bottom: calc(12px + var(--ss-bottom)); max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(24,24,28,.96); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: translate3d(0,140%,0); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.ss-pwa.is-in { transform: none; }
.ss-pwa img { width: 46px; height: 46px; border-radius: 11px; flex: 0 0 auto; }
.ss-pwa > div { flex: 1 1 auto; min-width: 0; }
.ss-pwa strong { display: block; font-size: 15px; }
.ss-pwa span { display: block; font-size: 12.5px; opacity: .75; line-height: 1.35; }
.ss-pwa .ss-btn { flex: 0 0 auto; min-height: 38px; padding: 0 14px; font-size: 14px; }
.ss-pwa-x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ss-pwa-x svg { width: 16px; height: 16px; }

/* ---------- scope sheet: frosted glass, full screen on phones ---------- */
.ss-scope { position: absolute; z-index: 85; inset: 0; display: flex; flex-direction: column; color: #fff; background: rgba(16,16,20,.78); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); transform: translate3d(0,100%,0); visibility: hidden; transition: transform .36s cubic-bezier(.2,.8,.2,1), visibility 0s linear .36s; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ss-scope { background: rgba(16,16,20,.97); } }
.ss-scope.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.ss-scope-head { flex: 0 0 auto; padding: calc(4px + var(--ss-top)) 14px 8px; touch-action: none; }
.ss-scope-grip { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 4px auto 10px; }
.ss-scope-searchrow { display: flex; align-items: center; gap: 10px; }
.ss-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border-radius: 14px; background: rgba(255,255,255,.13); }
.ss-search > svg { width: 20px; height: 20px; opacity: .75; flex: 0 0 auto; }
.ss-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; }
.ss-search input::placeholder { color: rgba(255,255,255,.55); }
.ss-search input::-webkit-search-cancel-button { display: none; }
.ss-search-clear { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ss-search-clear[hidden] { display: none; }
.ss-search-clear svg { width: 15px; height: 15px; }
.ss-scope-cancel { border: 0; background: none; color: #fff; font-weight: 700; font-size: 15px; padding: 8px 2px; }
.ss-scope-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 2px 0 24px; -webkit-overflow-scrolling: touch; }
.ss-sec { padding: 0 16px; }
.ss-sec[hidden] { display: none; }
.ss-sec h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.62); }
.ss-price-out { text-transform: none; letter-spacing: 0; font-size: 14px; color: #fff; }
.ss-muted { color: rgba(255,255,255,.6); font-size: 14px; }
.ss-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chiprow--sub { margin-top: 12px; }
.ss-scope .ss-chip-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 600; transition: transform .12s ease, background-color .15s ease; }
.ss-scope .ss-chip-toggle:active { transform: scale(.95); }
.ss-scope .ss-chip-toggle.is-active { background: #fff; color: #111; }
.ss-scope .ss-chip-toggle small { opacity: .6; font-weight: 600; }
.ss-scope .ss-chip-toggle svg { width: 15px; height: 15px; opacity: .8; }
.ss-scope .ss-swatch { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.4); }
.ss-areas { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.ss-areas::-webkit-scrollbar { display: none; }
.ss-area { position: relative; flex: 0 0 auto; width: 124px; height: 156px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #2a2a30; color: #fff; text-align: left; scroll-snap-align: start; transition: transform .12s ease; }
.ss-area:active { transform: scale(.96); }
.ss-area img, .ss-area-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(135deg, #3a3a42, #222); }
.ss-area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 62%); border-radius: inherit; box-shadow: inset 0 0 0 0 var(--ss-accent); transition: box-shadow .15s ease; }
.ss-area.is-active::after { box-shadow: inset 0 0 0 3px var(--ss-accent); }
.ss-area-name, .ss-area-count { position: absolute; z-index: 1; left: 10px; right: 8px; }
.ss-area-name { bottom: 24px; font-weight: 800; font-size: 14.5px; line-height: 1.15; display: flex; align-items: center; gap: 4px; }
.ss-area-name svg { width: 14px; height: 14px; color: var(--ss-accent); }
.ss-area-count { bottom: 8px; font-size: 12px; opacity: .78; }
.ss-pick { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 14px; padding: 7px 14px 7px 7px; background: rgba(255,255,255,.12); color: #fff; text-align: left; }
.ss-pick > svg, .ss-pick > b { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(255,255,255,.16); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ss-pick span { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.15; }
.ss-pick small { font-weight: 500; font-size: 11.5px; opacity: .62; }
.ss-thumbrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 4px; overscroll-behavior-x: contain; }
.ss-thumbrow::-webkit-scrollbar { display: none; }
.ss-thumb { flex: 0 0 auto; width: 112px; border: 0; padding: 0; background: none; color: #fff; text-align: left; display: flex; flex-direction: column; gap: 5px; }
.ss-thumb img, .ss-thumb i, .ss-thumbrow--loading i { display: block; width: 112px; height: 112px; border-radius: 14px; object-fit: contain; background: #f2f2f4; }
.ss-thumb span { font-size: 12.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-thumb b { font-size: 13px; }
.ss-thumbrow--loading i { flex: 0 0 auto; background: rgba(255,255,255,.1); animation: ss-pulse 1s ease-in-out infinite alternate; }
@keyframes ss-pulse { from { opacity: .5; } to { opacity: 1; } }
.ss-range { position: relative; height: 34px; margin: 0 4px; }
.ss-range::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.ss-range-fill { position: absolute; top: 15px; height: 4px; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 2px; background: var(--ss-accent); }
.ss-range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ss-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.ss-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
.ss-range input::-moz-range-thumb { pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; }
.ss-range input::-moz-range-track { background: none; }
.ss-range-legend { display: flex; justify-content: space-between; font-size: 12px; opacity: .55; margin-top: 2px; }
.ss-scope-foot { flex: 0 0 auto; display: flex; gap: 10px; padding: 10px 16px calc(12px + var(--ss-bottom)); background: linear-gradient(to top, rgba(16,16,20,.9), rgba(16,16,20,0)); }
.ss-scope-reset { flex: 0 0 auto; min-height: 52px; padding: 0 16px; font-size: 14px; }
.ss-scope-cta { flex: 1 1 auto; min-height: 52px; font-size: 16px; border-radius: 16px; box-shadow: 0 10px 28px color-mix(in srgb, var(--ss-accent) 40%, transparent); }
.ss-scope-cta.is-counting span { opacity: .75; }

/* desktop ≥ 1280 px: the scope sheet becomes a permanent sidebar */
.ss-app.is-sidebar .ss-scope { right: auto; width: var(--ss-side-w); transform: none; visibility: visible; background: #121216; -webkit-backdrop-filter: none; backdrop-filter: none; border-right: 1px solid rgba(255,255,255,.08); transition: none; }
.ss-app.is-sidebar .ss-scope-grip, .ss-app.is-sidebar .ss-scope-cancel { display: none; }
.ss-app.is-sidebar .ss-scope-head { padding-top: 16px; }
.ss-app.is-sidebar .ss-areas { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.ss-app.is-sidebar .ss-area { width: calc(50% - 5px); height: 120px; }
.ss-app.is-sidebar .ss-feed, .ss-app.is-sidebar .ss-top { left: var(--ss-side-w); }
.ss-app.is-sidebar .ss-progress { left: calc(var(--ss-side-w) + 8px); }
.ss-app.is-sidebar .ss-toasts { left: calc(50% + var(--ss-side-w) / 2); }
.ss-app.is-sidebar .ss-top-row [data-action="search"] { display: none; }
@media (min-width: 900px) { .ss-app.is-sidebar .ss-sheet { margin-left: calc(-280px + var(--ss-side-w) / 2); } }
/* toast */
.ss-toasts { position: absolute; z-index: 120; left: 50%; top: calc(64px + var(--ss-top)); transform: translateX(-50%); width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ss-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(20,20,20,.92); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: ss-toast-in .25s ease; }
.ss-toast img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }
.ss-toast-text { flex: 1 1 auto; min-width: 0; }
.ss-toast-text strong { display: block; }
.ss-toast-text span { display: block; opacity: .75; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-toast button { border: 0; background: var(--ss-accent); color: var(--ss-accent-text); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.ss-toast--danger { background: #b91c1c; }
.ss-toast--warning { background: #92400e; }
.ss-toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: all .25s ease; }
@keyframes ss-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.ss-backdrop { position: absolute; z-index: 70; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.ss-backdrop.is-open { opacity: 1; pointer-events: auto; }
.ss-sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ss-border); }
.ss-sheet-head h2 { margin: 0; font-size: 17px; flex: 1 1 auto; }
.ss-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f4f6; color: #111; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ss-close svg { width: 20px; height: 20px; }
.ss-section-title { margin: 18px 10px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-muted); }
.ss-select, .ss-input, .ss-textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--ss-border); border-radius: 12px; background: #fff; color: #111; font-size: 16px; }
.ss-select:focus, .ss-input:focus, .ss-textarea:focus { outline: none; border-color: var(--ss-accent); }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip-toggle { border: 1.5px solid var(--ss-border); background: #fff; color: #111; border-radius: 999px; padding: 7px 12px; font-size: 14px; }
.ss-chip-toggle.is-active { border-color: var(--ss-accent); background: var(--ss-accent); color: var(--ss-accent-text); }


/* ---------- bottom sheets (details, cart) ---------- */
.ss-sheet { position: absolute; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 88dvh; display: flex; flex-direction: column; background: var(--ss-sheet-bg); color: var(--ss-sheet-text); border-radius: var(--ss-radius) var(--ss-radius) 0 0; transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--ss-bottom); box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
.ss-sheet { visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
.ss-sheet.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.ss-sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: #d1d5db; margin: 8px auto 0; }
.ss-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.ss-sheet-foot { padding: 12px 16px calc(12px + var(--ss-bottom)); border-top: 1px solid var(--ss-border); display: flex; gap: 10px; background: var(--ss-sheet-bg); }
@media (min-width: 900px) {
    .ss-sheet { left: 50%; width: 560px; margin-left: -280px; bottom: 24px; border-radius: var(--ss-radius); max-height: calc(100dvh - 48px); }
}
.ss-d-head { display: flex; gap: 14px; align-items: flex-start; }
.ss-d-head img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #f6f6f6; flex: 0 0 auto; }
.ss-d-head h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.ss-d-man { font-size: 13px; color: var(--ss-muted); font-weight: 600; }
.ss-d-price { font-size: 20px; font-weight: 800; }
.ss-d-price del { font-size: 14px; font-weight: 500; color: var(--ss-muted); margin-left: 6px; }
.ss-d-small { font-size: 12px; color: var(--ss-muted); }
.ss-d-section { margin-top: 18px; }
.ss-d-section h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-muted); }
.ss-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-option { border: 1.5px solid var(--ss-border); background: #fff; color: #111; border-radius: 12px; padding: 8px 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.ss-option.is-selected { border-color: var(--ss-accent); box-shadow: 0 0 0 1.5px var(--ss-accent) inset; font-weight: 700; }
.ss-option.is-unavailable { opacity: .45; text-decoration: line-through; }
.ss-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.ss-option img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.ss-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ss-border); border-radius: 12px; overflow: hidden; }
.ss-qty button { width: 42px; height: 42px; border: 0; background: #f9fafb; font-size: 20px; color: #111; }
.ss-qty input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.ss-qty input::-webkit-outer-spin-button, .ss-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ss-props { width: 100%; border-collapse: collapse; font-size: 14px; }
.ss-props th, .ss-props td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--ss-border); vertical-align: top; }
.ss-props th { width: 42%; color: var(--ss-muted); font-weight: 600; padding-right: 12px; }
.ss-desc { font-size: 14.5px; line-height: 1.55; color: #222; overflow-wrap: anywhere; }
.ss-desc img { max-width: 100%; height: auto; }
.ss-desc table { max-width: 100%; display: block; overflow-x: auto; }
.ss-link { color: var(--ss-accent); font-weight: 600; text-decoration: none; }
.ss-sheet .ss-btn--glass { background: #f3f4f6; color: #111; }

/* cart list */
.ss-items { list-style: none; margin: 0; padding: 0; }
.ss-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ss-border); align-items: center; }
.ss-item img, .ss-item .ss-item-ph { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f6f6f6; flex: 0 0 auto; }
.ss-item-main { flex: 1 1 auto; min-width: 0; }
.ss-item-label { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ss-item-sub { font-size: 12px; color: var(--ss-muted); }
.ss-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ss-item .ss-qty button { width: 34px; height: 34px; font-size: 18px; }
.ss-item .ss-qty input { width: 40px; height: 34px; font-size: 14px; }
.ss-item-price { font-weight: 700; white-space: nowrap; }
.ss-remove { border: 0; background: none; color: var(--ss-muted); padding: 6px; }
.ss-remove svg { width: 18px; height: 18px; }
.ss-totals { margin-top: 12px; font-size: 14px; }
.ss-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.ss-totals .ss-total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--ss-border); margin-top: 6px; padding-top: 10px; }
.ss-totals .ss-muted { color: var(--ss-muted); font-size: 12.5px; }
.ss-empty { text-align: center; color: var(--ss-muted); padding: 30px 0; }

/* ---------- checkout overlay ---------- */
.ss-checkout { position: absolute; z-index: 100; inset: 0; background: #f4f4f6; color: var(--ss-sheet-text); transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.ss-checkout { visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s; }
.ss-checkout.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.ss-checkout .ss-sheet-head { background: #fff; padding-top: calc(14px + var(--ss-top)); }
.ss-co-body { position: relative; flex: 1 1 auto; overflow-y: auto; padding: 12px 12px 24px; overscroll-behavior: contain; }
.ss-co-inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ss-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ss-card h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ss-card h3 .ss-step { width: 24px; height: 24px; border-radius: 50%; background: var(--ss-accent); color: var(--ss-accent-text); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ss-card.is-disabled { opacity: .5; pointer-events: none; }
.ss-checkout .ss-tabs { display: flex; gap: 6px; background: #f3f4f6; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.ss-checkout .ss-tab { flex: 1 1 0; border: 0; background: none; padding: 10px; border-radius: 9px; font-weight: 600; color: #555; }
.ss-checkout .ss-tab.is-active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ss-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ss-field { display: flex; flex-direction: column; gap: 4px; grid-column: span 2; }
.ss-field--half { grid-column: span 1; }
.ss-field label { font-size: 12.5px; font-weight: 600; color: #374151; }
.ss-field .ss-err { font-size: 12px; color: #dc2626; }
.ss-field.has-error .ss-input, .ss-field.has-error .ss-select { border-color: #dc2626; }
.ss-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ss-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ss-accent); flex: 0 0 auto; }
.ss-check a { color: var(--ss-accent); }
.ss-check.has-error { color: #dc2626; }
.ss-radio-list { display: flex; flex-direction: column; gap: 8px; }
.ss-radio { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--ss-border); border-radius: 12px; cursor: pointer; }
.ss-radio input { accent-color: var(--ss-accent); width: 20px; height: 20px; margin: 0; }
.ss-radio.is-selected { border-color: var(--ss-accent); background: color-mix(in srgb, var(--ss-accent) 5%, #fff); }
.ss-radio img { max-width: 56px; max-height: 28px; object-fit: contain; margin-left: auto; }
.ss-radio-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-radio-text strong { font-size: 14.5px; }
.ss-radio-text span { font-size: 12.5px; color: var(--ss-muted); }
.ss-address { font-size: 14px; line-height: 1.5; }
.ss-row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ss-alert { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; }
.ss-alert--danger { background: #fee2e2; color: #991b1b; }
.ss-alert--warning { background: #fef3c7; color: #92400e; }
.ss-alert--info { background: #e0f2fe; color: #075985; }
.ss-inline { display: flex; gap: 8px; }
.ss-inline .ss-btn { flex: 0 0 auto; min-height: 46px; }
.ss-co-foot { background: #fff; border-top: 1px solid var(--ss-border); padding: 12px 16px calc(12px + var(--ss-bottom)); }
.ss-co-foot-inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ss-co-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; }
.ss-co-total small { font-weight: 500; font-size: 12px; color: var(--ss-muted); }
.ss-success { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ss-success-icon { width: 76px; height: 76px; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; animation: ss-pop .45s cubic-bezier(.3,1.6,.5,1); }
.ss-success-icon svg { width: 40px; height: 40px; }
.ss-success h2 { margin: 0; }
.ss-success .ss-btn { width: 100%; max-width: 360px; flex: none; }
@keyframes ss-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* legal modal */
.ss-modal { position: absolute; z-index: 130; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.ss-modal-box { background: #fff; color: #111; width: 100%; max-width: 720px; max-height: 85dvh; border-radius: var(--ss-radius) var(--ss-radius) 0 0; display: flex; flex-direction: column; }
@media (min-width: 900px) { .ss-modal { align-items: center; } .ss-modal-box { border-radius: var(--ss-radius); } }
.ss-modal-body { overflow-y: auto; padding: 16px 20px 28px; font-size: 14.5px; line-height: 1.55; }
.ss-modal-body img { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.ss-app.is-sidebar .ss-scope-cta { font-size: 14.5px; }

/* 1.2 admin phone preview: simulate the iPhone status bar / safe areas */
body.ss-preview{--ss-top:47px;--ss-bottom:20px}

/* ---------------------------------------------------------------- 1.3 position counter */
.ss-progress[hidden] { display: none !important; }
.ss-progress.is-placed { transform: none; }
.ss-progress.is-always { opacity: 1; }
.ss-progress.is-compact .ss-progress-bar { display: none; }
.ss-progress[data-pos$="right"] { flex-direction: row-reverse; }
.ss-progress-label { color: #fff; white-space: nowrap; }
.ss-preview .ss-progress { pointer-events: auto; cursor: grab; touch-action: none; }
.ss-preview .ss-progress .ss-progress-label { outline: 1px dashed rgba(255,255,255,.75); outline-offset: 2px; }
.ss-preview .ss-progress.is-dragging { cursor: grabbing; transition: none; opacity: .9; }
.ss-preview .ss-progress.is-dragging .ss-progress-label { background: var(--ss-accent); }

/* ---------------------------------------------------------------- 1.3 device notice (QR code) */
.ss-gate { display: none; }
html.ss-gated, html.ss-gated body { overflow: auto; height: auto; min-height: 100%; }
html.ss-gated .ss-app { display: none !important; }
html.ss-gated .ss-gate { display: flex; min-height: 100vh; min-height: 100dvh; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,.10), transparent 60%), var(--ss-bg, #000); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; }
.ss-gate-card { width: 100%; max-width: 420px; background: #fff; color: #111; border-radius: 24px; padding: 32px 28px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ss-gate-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ss-gate h1 { font-size: 22px; line-height: 1.25; margin: 16px 0 8px; font-weight: 750; letter-spacing: -.01em; }
.ss-gate p { margin: 0 0 12px; color: #4b5563; font-size: 15px; line-height: 1.45; }
.ss-gate-qr { margin: 18px auto 10px; width: 212px; height: 212px; padding: 8px; border-radius: 16px; border: 1px solid #e5e7eb; box-sizing: border-box; background: #fff; }
.ss-gate-qr img { display: block; width: 196px; height: 196px; image-rendering: pixelated; }
.ss-gate .ss-gate-url { font-size: 13px; color: #6b7280; word-break: break-all; }
.ss-gate .ss-gate-devices { font-size: 13px; color: #6b7280; }
.ss-gate-back { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ss-accent, #ff2d55); color: var(--ss-accent-text, #fff) !important; text-decoration: none !important; font-weight: 650; font-size: 15px; }
.ss-gate-back:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
