/* The storefront (owner 2026-11-22: «маркетплейс как DIP-X»): category tiles, quick filters, product cards and a
   product page with a sticky buy box. Colours come from cabinet.css, so light and dark follow the cabinet. */
.sf { display: grid; gap: 18px; min-width: 0; }
.sf [data-tint="peach"] { background: var(--peach); } .sf [data-tint="lav"] { background: var(--lav); }
.sf [data-tint="mint"] { background: var(--mint); } .sf [data-tint="sky"] { background: var(--sky); }
.sf [data-tint="lemon"] { background: var(--lemon); } .sf [data-tint="rose"] { background: var(--rose); }

.sf-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sf-search { display: flex; flex: 1 1 320px; align-items: center; gap: 10px; min-width: 0; height: 52px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--soft); }
.sf-search:focus-within { border-color: var(--blue); }
.sf-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.sf-sort { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14px; }
.sf-sort select { height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; }

.sf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sf-tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1.5px solid transparent; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.sf-tile:hover { transform: translateY(-1px); }
.sf-tile.is-on { border-color: var(--blue); }
.sf-tile-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: var(--ink); font-size: 18px; font-weight: 700; }
.sf-tile-text { display: grid; min-width: 0; }
.sf-tile-text b { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sf-tile-text small { color: var(--soft); font-size: 13px; }

.sf-chips, .sf-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sf-chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sf-count { margin-left: auto; color: var(--soft); font-size: 14px; }

.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sf-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.sf-card:hover { transform: translateY(-2px); }
.sf-card.is-out { opacity: .7; }
.sf-card-media { position: relative; }
.sf-pic { display: block; width: 100%; object-fit: cover; }
.sf-pic--card { aspect-ratio: 16 / 10; }
.sf-pic--hero { flex: 0 0 clamp(180px, 40%, 300px); width: clamp(180px, 40%, 300px); aspect-ratio: 16 / 10; align-self: flex-start; border-radius: var(--r-l); }
.sf-hero-text { padding-right: 40px; }
.sf-pic--letter { display: grid; place-items: center; color: var(--ink); font-size: 56px; font-weight: 700; }
.sf-pic--hero.sf-pic--letter { font-size: 80px; }
.sf-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sf-badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sf-badge--instant { color: var(--green); }
.sf-badge--sale { background: var(--blue); color: #fff; }
.sf-card-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.sf-path { overflow: hidden; color: var(--soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sf-name { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sf-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-height: 20px; color: var(--soft); font-size: 13px; }
.sf-rating { display: inline-flex; align-items: center; gap: 4px; color: #f59e0b; }
.sf-rating b { color: var(--ink); }
.sf-rating small { color: var(--soft); }
.sf-card-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; justify-content: space-between; margin-top: auto; }
.sf-price { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sf-price b { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sf-price s { color: var(--hint); font-size: 14px; }
.sf-price small { color: var(--soft); font-size: 13px; }
.sf-stock { color: var(--soft); font-size: 13px; font-weight: 600; }
.sf-stock--ok { color: var(--green); }
.sf-stock--out { color: var(--bad); }
.sf-buy, .sf-pay { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--inv-bg); color: var(--inv-fg); font-size: 15px; font-weight: 600; cursor: pointer; }
.sf-buy:hover:not(:disabled), .sf-pay:hover:not(:disabled) { background: var(--inv-hover); }
.sf-buy:disabled, .sf-pay:disabled { opacity: .45; cursor: not-allowed; }
.sf-empty { padding: 48px 24px; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.sf-empty h3 { margin-bottom: 8px; }
.sf-empty p, .sf-muted { color: var(--soft); }

.sf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-back, .sf-crumb { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.sf-crumb { color: var(--soft); }
.sf-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 18px; align-items: start; }
.sf-product-main { display: grid; gap: 18px; min-width: 0; }
.sf-hero { display: flex; gap: 22px; padding: 20px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.sf-hero-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-hero-text h2 { font-size: clamp(22px, 2.4vw, 30px); overflow-wrap: anywhere; }
.sf-meta--big { font-size: 14px; }
.sf-seller { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--soft); font-size: 14px; }
.sf-seller b { color: var(--ink); }
.sf-tabs-card { padding: 6px 22px 22px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.sf-tabs { display: flex; gap: 22px; margin-bottom: 16px; border-bottom: 1.5px solid var(--line); }
.sf-tabs button { height: 52px; padding: 0; border: 0; border-bottom: 2.5px solid transparent; background: transparent; color: var(--soft); font-size: 16px; font-weight: 600; cursor: pointer; }
.sf-tabs button[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--ink); }
.sf-tab-body { display: grid; gap: 14px; }
.sf-description { color: var(--ink); white-space: pre-line; line-height: 1.6; }
.sf-features { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--ink); }
.sf-features li::marker { color: var(--blue); }
.sf-review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sf-review:last-of-type { border-bottom: 0; }
.sf-review-head { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 8px; }
.sf-review-head small { margin-left: auto; color: var(--hint); }
.sf-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; color: var(--ink); font-weight: 700; }
.sf-stars { display: inline-flex; gap: 1px; color: var(--line); }
.sf-stars i { display: inline-flex; }
.sf-stars i.on { color: #f59e0b; }
.sf-review p { color: var(--ink); white-space: pre-line; }
.sf-reply { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-m); background: var(--bg); }
.sf-reply b { font-size: 13px; }
.sf-more { justify-self: start; height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }

.sf-buybox { position: sticky; top: 96px; display: grid; gap: 14px; padding: 22px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.sf-buy-price { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sf-buy-price .sf-price b { color: var(--blue); font-size: 36px; }
.sf-buy-price > small { color: var(--soft); }
.sf-avail { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.sf-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--green); }
.sf-dot--out { background: var(--bad); }
.sf-qty-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1.5px solid var(--line); }
.sf-qty { display: flex; align-items: center; height: 48px; padding: 4px; border-radius: 999px; background: var(--bg); }
.sf-qty button { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.sf-qty button:disabled { opacity: .4; cursor: not-allowed; }
.sf-qty input { width: 64px; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.sf-qty input::-webkit-inner-spin-button, .sf-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sf-total { display: grid; justify-items: end; }
.sf-total span { color: var(--soft); font-size: 13px; }
.sf-total b { color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
.sf-pay--alt { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.sf-pay--alt:hover:not(:disabled) { background: var(--bg); }
.sf-message { padding: 10px 14px; border-radius: var(--r-m); background: var(--rose); color: var(--ink); font-size: 14px; }
.sf-balance { color: var(--soft); font-size: 14px; text-align: center; }
.sf-link { padding: 0; border: 0; background: none; color: var(--link); font-weight: 600; text-decoration: underline; cursor: pointer; }
.sf-note { display: flex; gap: 8px; align-items: flex-start; color: var(--soft); font-size: 13.5px; line-height: 1.45; }
.sf-note svg { flex: 0 0 15px; margin-top: 2px; color: var(--green); }

@media (max-width: 980px) {
  .sf-product { grid-template-columns: 1fr; }
  .sf-buybox { position: static; }
}
@media (max-width: 640px) {
  .sf-hero { flex-direction: column; }
  .sf-pic--hero { width: 100%; flex-basis: auto; }
  .sf-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .sf-card-body { padding: 12px; }
  .sf-price b { font-size: 18px; }
  .sf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-count { width: 100%; margin-left: 0; }
}

/* A review of a delivered order in My orders: five stars (radio buttons, right to left) and a few words. */
.cabinet-review-form { margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--line); grid-column: 1 / -1; }
.cabinet-review-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.cabinet-review-stars legend { width: 100%; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.cabinet-review-stars input { position: absolute; opacity: 0; pointer-events: none; }
.cabinet-review-stars label { color: var(--line); font-size: 28px; line-height: 1; cursor: pointer; }
.cabinet-review-stars input:checked ~ label, .cabinet-review-stars label:hover, .cabinet-review-stars label:hover ~ label { color: #f59e0b; }
.cabinet-review-stars input:focus-visible + label { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 2px; }
.cabinet-review-own { grid-column: 1 / -1; color: var(--soft); font-size: 14px; }
.cabinet-review-own span { color: #f59e0b; letter-spacing: 1px; }

/* The sign-in card links to the marketplace subdomain (owner 2026-11-22). */
.auth-market { margin: 14px 0 0; text-align: center; }
.auth-market a { color: var(--link); font-weight: 600; }

/* Motion (owner 2026-11-22: «улучши анимации», ideas from the reference stores). Everything is short and eased; a visitor
   who asked for reduced motion gets the same page without it. */
@keyframes sf-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sf-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sf-live { 0% { box-shadow: 0 0 0 0 rgb(18 163 114 / .55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(18 163 114 / 0); } }
@keyframes sf-shimmer { from { background-position: -320px 0; } to { background-position: 320px 0; } }
.sf-grid.is-entering > .sf-card { animation: sf-rise .5s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.sf[data-view="product"] .sf-product > * { animation: sf-rise .45s cubic-bezier(.16, 1, .3, 1) backwards; }
.sf[data-view="product"] .sf-product > *:nth-child(2) { animation-delay: 70ms; }
.sf-tab-body { animation: sf-fade .25s ease; }
.sf-card { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }
.sf-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(29 32 43 / .06), 0 22px 44px -20px rgb(29 32 43 / .38); }
.sf-card-media { overflow: hidden; }
.sf-card .sf-pic { transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .35s ease; }
.sf-card:hover .sf-pic { transform: scale(1.045); }
img.sf-pic { opacity: 0; }
img.sf-pic.is-loaded { opacity: 1; }
.sf-tile { transition: border-color .15s, transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s; }
.sf-tile:hover { transform: translateY(-2px); }
.sf-tile-mark svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.sf-tile:hover .sf-tile-mark svg { transform: scale(1.12) rotate(-4deg); }
.sf-chip, .sf-buy, .sf-pay { transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.sf-buy:active:not(:disabled), .sf-pay:active:not(:disabled), .sf-chip:active { transform: scale(.97); }
.sf-badge--hit { background: #fff4e5; color: #c2410c; }
:root[data-theme="dark"] .sf-badge--hit { background: #3a2412; color: #fdba74; }
.sf-total b { display: inline-block; transition: transform .2s; }

/* The pulse: figures and the «just bought» ticker. */
.sf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sf-stats.is-arriving { animation: sf-slide .45s cubic-bezier(.16, 1, .3, 1); }
.sf-stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); }
.sf-stat b { color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sf-stat span { color: var(--soft); font-size: 13.5px; }
.sf-stat-rating { display: inline-flex; align-items: center; gap: 6px; }
.sf-stat-rating svg { color: #f59e0b; }
.sf-ticker { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); animation: sf-slide .45s cubic-bezier(.16, 1, .3, 1) .08s backwards; }
.sf-ticker-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sf-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: sf-live 1.8s ease-out infinite; }
.sf-ticker-track { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.sf-ticker-row { display: flex; width: max-content; gap: 8px; animation: sf-ticker 48s linear infinite; }
.sf-ticker-copy { display: flex; gap: 8px; }
.sf-ticker:hover .sf-ticker-row, .sf-ticker:focus-within .sf-ticker-row { animation-play-state: paused; }
.sf-tick { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; max-width: 320px; height: 38px; padding: 0 12px 0 4px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; cursor: pointer; }
.sf-tick:hover { background: var(--line); }
.sf-tick img, .sf-tick i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; }
.sf-tick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-tick b { white-space: nowrap; }
.sf-tick small { color: var(--soft); white-space: nowrap; }

/* A placeholder grid while the catalogue loads (the host page draws it before the storefront mounts). */
.sf-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sf-skeleton { height: 330px; border-radius: var(--r-l); background: linear-gradient(90deg, var(--paper) 0, var(--bg) 40%, var(--paper) 80%) var(--paper); background-size: 640px 100%; box-shadow: var(--shadow); animation: sf-shimmer 1.3s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .sf *, .sf-skeleton { animation: none !important; transition: none !important; }
  .sf-card:hover, .sf-tile:hover { transform: none; }
  .sf-ticker-track { overflow-x: auto; }
  img.sf-pic { opacity: 1; }
}

/* Favourites, the seller's rating, the quantity limit and «Написать продавцу» (owner 2026-11-22). */
.sf-fav { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--soft); cursor: pointer; transition: transform .15s, color .15s; }
.sf-fav:hover { transform: scale(1.08); color: var(--ink); }
.sf-fav.is-on { color: #e11d48; }
.sf-fav.is-on svg { animation: sf-pop .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes sf-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.sf-hero { position: relative; }
.sf-fav--big { top: 16px; right: 16px; width: 42px; height: 42px; background: var(--bg); }
.sf-seller-rating { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--soft); }
.sf-seller-rating svg { color: #f59e0b; }
.sf-qty-hint { margin-top: -6px; color: var(--soft); font-size: 13px; animation: sf-fade .2s ease; }
.sf-ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1.5px dashed var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.sf-ask:hover { border-color: var(--ink); }
.sf-ask-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1.5px solid var(--line); animation: sf-fade .2s ease; }
.sf-ask-form label { display: grid; gap: 8px; color: var(--ink); }
.sf-ask-form textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--bg); color: var(--ink); resize: vertical; }
.sf-ask-actions { display: flex; gap: 8px; }
.sf-ask-actions .sf-pay { flex: 1 1 auto; min-height: 42px; }
.sf-ask-sent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--mint); color: var(--ink); font-size: 13.5px; }

/* After delivery (owner 2026-11-22): the order's guarantee and request state, the recorded-chat notice, the rules. */
.cabinet-order-states { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin: 0; }
.cabinet-order-state { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--soft); font-size: 13px; font-weight: 600; }
.cabinet-order-state--pending { background: var(--lemon); color: var(--ink); }
.cabinet-order-state--approved { background: var(--mint); color: var(--green); }
.cabinet-order-state--declined { background: var(--rose); color: var(--ink); }
.cabinet-chat-record { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 9px 14px; border-radius: var(--r-m); background: var(--sky); color: var(--ink); font-size: 13px; line-height: 1.45; }
.cabinet-chat-record svg { flex: 0 0 15px; margin-top: 1px; color: var(--blue); }
.cabinet-rules-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.cabinet-rules-dialog::backdrop { background: rgb(15 17 24 / .45); backdrop-filter: blur(3px); }
.cabinet-rules-dialog form { display: grid; gap: 16px; padding: 26px; }
.cabinet-rules-text { max-height: 46vh; overflow: auto; padding: 14px 16px; border-radius: var(--r-m); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.cabinet-rules-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.cabinet-rules-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.sf-ask-notice { display: flex; gap: 6px; color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.sf-official { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--blue); font-size: 12px; font-weight: 700; }
.sf-store-link { color: inherit; text-decoration: none; }
.sf-store-link:hover b { text-decoration: underline; }
.sf-seller > svg { color: var(--blue); }

/* The item page in full (owner 2026-11-22): details table, the seller's card, the seller's other goods and similar ones. */
.sf-card-seller { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; color: var(--soft); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.sf-card-seller svg { flex: 0 0 13px; color: var(--blue); }
.sf-official--seller { background: var(--mint); color: var(--green); }
.sf-specs { display: grid; margin: 0; border: 1.5px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.sf-specs > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sf-specs > div:first-child { border-top: 0; }
.sf-specs > div:nth-child(odd) { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.sf-specs dt { color: var(--soft); font-size: 14px; }
.sf-specs dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.sf-seller-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow); }
.sf-seller-avatar { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: var(--blue); font-size: 22px; font-weight: 700; }
.sf-seller-card-text { display: grid; flex: 1 1 220px; gap: 4px; min-width: 0; }
.sf-seller-card-text small { color: var(--soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.sf-seller-card-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-size: 17px; }
.sf-seller-card .sf-more { text-decoration: none; display: inline-flex; align-items: center; }
.sf-related { display: grid; gap: 14px; margin-top: 8px; }
.sf-related h3 { font-size: 22px; }

/* Banners (owner 2026-11-22): the hero carousel, a strip under it, a banner among the goods, a category's head and an
   item page. A picture fills the banner under a dark scrim for the text; without one the theme's gradient shows. */
.sf-banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-width: 0; overflow: hidden; border-radius: 24px; color: #fff; text-decoration: none; background: var(--sf-banner-bg); }
.sf-banner[data-theme="orange"] { --sf-banner-bg: linear-gradient(120deg, #f97316 0%, #ea580c 45%, #9a3412 100%); }
.sf-banner[data-theme="violet"] { --sf-banner-bg: linear-gradient(120deg, #8b5cf6 0%, #6d28d9 50%, #312e81 100%); }
.sf-banner[data-theme="blue"] { --sf-banner-bg: linear-gradient(120deg, #38bdf8 0%, #2563eb 50%, #1e3a8a 100%); }
.sf-banner[data-theme="green"] { --sf-banner-bg: linear-gradient(120deg, #34d399 0%, #059669 50%, #064e3b 100%); }
.sf-banner[data-theme="pink"] { --sf-banner-bg: linear-gradient(120deg, #f472b6 0%, #db2777 50%, #831843 100%); }
.sf-banner[data-theme="dark"] { --sf-banner-bg: linear-gradient(120deg, #334155 0%, #1e293b 50%, #0f172a 100%); }
.sf-banner-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sf-banner.has-picture::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.sf-banner-glow { position: absolute; inset: -40% -10% auto auto; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); filter: blur(10px); animation: sf-glow 9s ease-in-out infinite alternate; }
@keyframes sf-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12%, 10%) scale(1.15); } }
.sf-banner-text { display: grid; gap: 8px; max-width: min(560px, 100%); padding: clamp(18px, 3.4vw, 36px); }
.sf-banner-text b { font-size: clamp(22px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.sf-banner-text > span { font-size: clamp(14px, 1.5vw, 17px); opacity: .92; }
.sf-banner-badge { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; backdrop-filter: blur(6px); }
.sf-banner-cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px; padding: 11px 18px; border-radius: 999px; background: #fff; color: #111827; font-style: normal; font-weight: 700; font-size: 14px; transition: transform .2s ease; }
a.sf-banner:hover .sf-banner-cta { transform: translateX(3px); }
a.sf-banner:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sf-hero-carousel { position: relative; margin-bottom: 14px; border-radius: 24px; overflow: hidden; }
.sf-hero-track { display: flex; transform: translateX(calc(var(--slide, 0) * -100%)); transition: transform .6s cubic-bezier(.22, .8, .2, 1); }
.sf-banner--hero { flex: 0 0 100%; min-height: clamp(200px, 28vw, 340px); border-radius: 0; }
.sf-hero-dots { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 6px; transform: translateX(-50%); }
.sf-hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s ease, background .3s ease; }
.sf-hero-dot.is-on { width: 26px; background: #fff; }
.sf-hero-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111827; cursor: pointer; opacity: 0; transform: translateY(-50%); transition: opacity .2s ease; }
.sf-hero-nav--prev { left: 12px; } .sf-hero-nav--next { right: 12px; }
.sf-hero-carousel:hover .sf-hero-nav, .sf-hero-nav:focus-visible { opacity: 1; }
.sf-banner--strip { min-height: 64px; margin-bottom: 14px; border-radius: 18px; align-items: center; }
.sf-banner--strip .sf-banner-text { grid-auto-flow: column; align-items: center; gap: 14px; max-width: none; padding: 14px 20px; }
.sf-banner--strip .sf-banner-text b { font-size: 17px; }
.sf-banner--strip .sf-banner-cta { margin: 0 0 0 auto; padding: 8px 14px; }
.sf-banner--between { grid-column: 1 / -1; min-height: 150px; }
.sf-banner--category { min-height: 150px; margin: 0 0 14px; }
.sf-banner--product { min-height: 140px; margin-top: 18px; }
@media (max-width: 640px) {
  .sf-hero-carousel, .sf-banner { border-radius: 18px; }
  .sf-banner--hero { min-height: 220px; border-radius: 0; }
  .sf-hero-nav { display: none; }
  .sf-banner--strip .sf-banner-text { grid-auto-flow: row; }
  .sf-banner--strip .sf-banner-cta { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .sf-hero-track { transition: none; } .sf-banner-glow { animation: none; } }

/* The reference stores' extras (owner 2026-11-22): a price range, the seller online, earned badges, recently viewed. */
.sf-price-range { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.sf-price-range input { width: 92px; height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; font: inherit; font-size: 14px; }
.sf-price-range input:focus { outline: none; border-color: var(--blue); }
.sf-price-range i { color: var(--soft); font-style: normal; }
.sf-online { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 2px; border-radius: 50%; background: #12a372; box-shadow: 0 0 0 2px color-mix(in srgb, #12a372 25%, transparent); vertical-align: middle; }
.sf-seller-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.sf-seller-badge--top { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.sf-seller-badge--reliable { background: color-mix(in srgb, #12a372 16%, transparent); color: #0f766e; }
.sf-seller-badge--veteran { background: color-mix(in srgb, #8b5cf6 16%, transparent); color: #6d28d9; }
.sf-seller-badge--new { background: color-mix(in srgb, #64748b 16%, transparent); color: #475569; }
.sf-grid--row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sf-note--ok { color: #0f766e; }
@media (max-width: 640px) { .sf-price-range { width: 100%; margin: 4px 0 0; } .sf-price-range input { flex: 1; width: auto; } }
