/* =========================================================================
   Ratings, quick add, compare, lightbox, sticky buy bar
   (colors come from the theme tokens in main.css / glass.css)
   ========================================================================= */
:root { --star: #f5b301; }

/* Stars: one element, filled by --pct (0–100%) */
.stars { --size: 15px; display: inline-block; position: relative; font-size: var(--size); line-height: 1; letter-spacing: 2px; color: var(--border-strong); vertical-align: middle; direction: ltr; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; top: 0; bottom: 0; left: 0; width: var(--pct, 0%); overflow: hidden; color: var(--star); white-space: nowrap; }
.stars-lg { --size: 22px; }

/* Product card extras */
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; }
.card-rating { font-size: .76rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.card-rating small { color: var(--muted); font-weight: 500; }
.card-tool { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, background .2s, color .2s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.product-card:hover .card-tool, .card-tool:focus-visible, .card-tool.is-active { opacity: 1; transform: none; }
.card-tool.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: none) { .card-tool { opacity: 1; transform: none; } }
.quick-add-wrap { position: relative; align-self: center; }
.quick-add { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .2s; }
.quick-add:hover { transform: scale(1.06); }
.quick-add.is-loading svg { display: none; }
.quick-variants { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 6; min-width: 210px; max-height: 240px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.quick-variants[hidden] { display: none; }
.quick-variants-title { font-size: .75rem; color: var(--muted); padding: 4px 8px; }
.quick-variants button { display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; font-size: .84rem; text-align: start; }
.quick-variants button:hover { background: var(--surface-3); }
.product-card { overflow: visible; }
.product-card-media { overflow: hidden; }

/* Product page extras */
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 8px; }
.rating-line:hover .muted { text-decoration: underline; }
.gallery-zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.gallery-zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.zoom-hint { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; pointer-events: none; }
.buy-extra { display: flex; gap: 16px; }
.buy-extra .link { display: inline-flex; align-items: center; gap: 6px; }
.buy-extra .link.is-active { color: var(--success); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.rating-summary { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.rating-big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-big small { font-size: 1rem; color: var(--muted); margin-inline-start: 4px; }
.rating-bars { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.rating-bar { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 8px; font-size: .8rem; }
.rating-bar i { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.rating-bar b { display: block; height: 100%; background: var(--star); border-radius: 6px; }
.review-form { border-top: 1px solid var(--border); padding-top: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; direction: ltr; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 28px; line-height: 1; color: var(--border-strong); cursor: pointer; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.review header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 6px; }
.review p { margin: 0; color: var(--text-2); }
.buyer-tag { color: var(--success); border-color: var(--success); }

/* Sticky buy bar (phones) */
.sticky-buy { position: fixed; z-index: 65; left: 0; right: 0; bottom: var(--bottom-nav-h); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); transform: translateY(130%); transition: transform .25s ease; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html[data-theme="dark"] .sticky-buy { background: rgba(14, 14, 16, .9); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy-info { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy-name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { flex-shrink: 0; }
@media (max-width: 820px) {
  .sticky-buy { display: flex; }
  body.has-sticky-buy .support-fab { bottom: calc(86px + var(--bottom-nav-h)); }
  body.has-sticky-buy .toasts { bottom: calc(90px + var(--bottom-nav-h)); }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .94); display: grid; place-items: center; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lightbox-stage img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; border-radius: 12px; cursor: zoom-in; transition: transform .25s ease; user-select: none; }
.lightbox.is-zoomed .lightbox-stage img { transform: scale(2.2); cursor: zoom-out; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.lightbox-btn:hover { background: #fff; color: #000; }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: 18px; inset-inline-end: 18px; }
.lightbox-prev { top: 50%; transform: translateY(-50%); right: 18px; }
.lightbox-next { top: 50%; transform: translateY(-50%); left: 18px; }
html[dir="ltr"] .lightbox-prev { right: auto; left: 18px; }
html[dir="ltr"] .lightbox-next { left: auto; right: 18px; }
html[dir="ltr"] .lightbox-prev svg, html[dir="ltr"] .lightbox-next svg { transform: scaleX(-1); }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: .9rem; opacity: .8; }
.lightbox-hint { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: .8rem; opacity: .55; white-space: nowrap; }
@media (max-width: 560px) { .lightbox-prev, .lightbox-next { display: none; } }

/* Compare */
.compare-bar { position: fixed; z-index: 66; bottom: calc(20px + var(--bottom-nav-h)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px; padding-inline-start: 14px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn-light { background: var(--paper); color: var(--ink); }
.compare-bar-text { font-weight: 700; font-size: .9rem; white-space: nowrap; }
body.has-sticky-buy .compare-bar { bottom: calc(90px + var(--bottom-nav-h)); }
.compare-wrap { overflow-x: auto; padding: 0; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; }
.compare-label { position: sticky; inset-inline-start: 0; z-index: 1; width: 170px; background: var(--surface); color: var(--muted); font-weight: 600; }
html[data-theme="dark"] .compare-label { background: #101012; }
.compare-product { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.compare-img { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.compare-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-name { font-weight: 800; color: var(--text); }
.compare-remove { position: absolute; top: 0; inset-inline-end: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.compare-remove:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.compare-variant { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; margin-inline-end: 10px; font-size: .82rem; }

/* =========================================================================
   Phones: bigger product photos, back button, fold-away filters
   ========================================================================= */
.back-btn, .mobile-tools { display: none; }
html[dir="ltr"] .back-btn svg { transform: scaleX(-1); }

@media (max-width: 820px) {
  .back-btn { display: inline-flex; }

  /* Catalog: filters behind a button, products first */
  .mobile-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-tools .btn { gap: 6px; }
  .filters { display: none; }
  .filters.is-open { display: flex; }
  .view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .view-toggle button { width: 40px; height: 34px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
  .view-toggle button.is-active { background: var(--ink); color: var(--paper); }

  /* Product photos fill the card (no inner frame) */
  .product-card-media { margin: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .rail { grid-auto-columns: 68%; }

  /* Product page: edge-to-edge gallery */
  html[data-theme] .product-detail { padding: 0 16px 16px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .product-detail .gallery { margin-inline: -16px; }
  .product-detail .gallery-main { border-radius: 0; border: 0; }
  .product-detail .gallery-thumbs { padding-inline: 16px; }
  .product-detail .thumb { width: 64px; height: 64px; }
  .product-detail .product-info { padding-top: 4px; }

}

@media (max-width: 560px) {
  .catalog-results.cols-1 .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .catalog-results.cols-2 .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-results.cols-1 .product-card-title { font-size: 1rem; }
  .catalog-results.cols-1 .price strong { font-size: 1.1rem; }
}

/* =========================================================================
   Photos: always shown whole (never cropped), sitting on the theme's own
   background — dark in dark mode, light in light mode.
   ========================================================================= */
.gallery-main img { object-fit: contain; }
.gallery-main { background: var(--surface-2); }

/* Card photo frame is 4:5 — the shape of our studio shots — and the photo fills it edge to edge
   (cover). Square shots lose only a little at the sides, which are empty studio background.
   Only extreme shapes (tall story posters, wide group shots) are shown whole instead, on a
   blurred copy of themselves so the frame still looks full; main.js tags those with .is-contain
   after measuring the photo. Same in light and dark theme. */
.product-card-media { aspect-ratio: 4 / 5; }
.product-card-media img { position: absolute; inset: 0; z-index: 1; object-fit: cover; object-position: 50% 50%; }
.product-card-media.is-contain img { object-fit: contain; }
.product-card-media.is-contain::before {
  content: ""; position: absolute; inset: -12%; z-index: 0;
  background: var(--card-img) center / cover no-repeat;
  filter: blur(24px) saturate(1.1) brightness(.85); transform: scale(1.08);
}
.product-card.is-out .product-card-media.is-contain::before { filter: blur(24px) grayscale(1); opacity: .6; }
/* Wide studio group shots (black stage, e.g. iPhone Duo): no blur — the frame becomes the same
   black stage and the photo's top/bottom edges fade into it, so it reads as one full picture.
   The photo is a touch wider than the frame (only empty stage is cropped at the sides). */
.product-card-media.is-wide { background: #050506; }
.product-card-media.is-wide::before { content: none; }
.product-card-media.is-wide img {
  inset: 0 auto; left: -6%; width: 112%; height: auto; max-width: none; margin: auto 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
.product-card-media > :not(img) { z-index: 2; }

/* Promo cards: the product photo fills the card's side at full height and fades softly into the
   card (no boxed thumbnail with hard edges or black letterbox bars). */
.promo-card .promo-thumb {
  top: 0; bottom: 0; left: 3%; transform: none; width: 42%; aspect-ratio: auto; border-radius: 0; overflow: visible;
}
.promo-card .promo-thumb img {
  /* the element is exactly the photo (full card height, natural width), so the mask fades the
     photo's own edges — its dark background melts into the card instead of showing a box */
  position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; object-fit: cover;
  transform: translateX(-50%) scale(1.08); transform-origin: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
html[dir="ltr"] .promo-card .promo-thumb { left: auto; right: 3%; }
@media (max-width: 560px) {
  /* narrow cards: keep the photo inside its side so it never runs under the text */
  .promo-card .promo-thumb img { top: 50%; height: auto; width: 118%; max-height: 112%; object-fit: contain; transform: translate(-50%, -50%); }
}
.promo-card { min-height: 220px; }
/* Light theme, white card: a studio photo (black background) can't fade into white, so it sits on
   its own dark stage tile instead — framed and intentional, matching the dark card next to it. */
html:not([data-theme="dark"]) .promo-card.is-light .promo-thumb {
  top: 14px; bottom: 14px; left: 14px; width: 40%; overflow: hidden; border-radius: 18px;
  background: #000; box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
html:not([data-theme="dark"]) .promo-card.is-light .promo-thumb img {
  -webkit-mask-image: none; mask-image: none; transform: translateX(-50%) scale(1.02);
}
html[dir="ltr"]:not([data-theme="dark"]) .promo-card.is-light .promo-thumb { left: auto; right: 14px; }
@media (max-width: 560px) {
  html:not([data-theme="dark"]) .promo-card.is-light .promo-thumb img { width: 100%; max-height: 100%; transform: translate(-50%, -50%); }
}

/* Small product thumbnails elsewhere show the whole photo too. */
.bs-img img,
.thumb img,
.compare-img img,
.cart-item-media img,
.mini-cart-media img,
.promo-thumb img,
.search-result img { object-fit: contain; }

@media (max-width: 820px) {
  /* Product page: the photo keeps its own shape at full phone width */
  .product-detail .gallery-main { aspect-ratio: auto; }
  .product-detail .gallery-main img { height: auto; max-height: 82vh; }
}
@media (max-width: 560px) {
  /* "One per row": the card photo keeps its own shape too */
  .catalog-results.cols-1 .product-card-media { aspect-ratio: auto; }
  .catalog-results.cols-1 .product-card-media img { position: static; height: auto; }
}

/* =========================================================================
   Home hero: the product photo fills the banner's full height, touches the
   outer edge and fades into the banner on the text side.
   ========================================================================= */
.hero-compose { grid-template-columns: 1fr 1fr; padding-inline-start: clamp(72px, 6vw, 96px); padding-inline-end: 0; gap: 24px; } /* start padding keeps the copy clear of the slider arrow */
.hero-visual { height: 100%; padding: 0; display: flex; align-items: stretch; justify-content: flex-end; overflow: hidden; }
.hero-visual img {
  height: 100%; width: auto; max-width: 100%; max-height: none; aspect-ratio: auto;
  object-fit: contain; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent);
  mask-image: linear-gradient(to right, #000 72%, transparent);
}
html[dir="ltr"] .hero-visual img {
  -webkit-mask-image: linear-gradient(to left, #000 72%, transparent);
  mask-image: linear-gradient(to left, #000 72%, transparent);
}
.hero-visual .brand-mark { align-self: center; margin-inline-end: 48px; }
/* Poster banners carry their own text: show them whole, as a card, clear of the slider arrow. */
@media (min-width: 821px) {
  /* Poster slides keep the site's own black + red look; the poster sits on it as a card. */
  .hero-slides { height: clamp(420px, 34vw, 500px); }
  .hero-visual.is-poster {
    padding-block: 14px; padding-inline-end: clamp(72px, 6vw, 96px); justify-content: center;
    background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(200, 22, 44, .38), transparent 70%);
  }
  .hero-visual.is-poster img, html[dir="ltr"] .hero-visual.is-poster img {
    -webkit-mask-image: none; mask-image: none;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 1px rgba(229, 57, 70, .25), 0 0 40px rgba(229, 57, 70, .28), 0 22px 50px rgba(0, 0, 0, .6);
  }
}

@media (max-width: 820px) {
  /* Phones: slides stack in one grid cell, so the banner grows to its tallest slide */
  .hero-slides { height: auto; display: grid; }
  .hero-slide { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero-slide > img.cover { height: auto; aspect-ratio: 4 / 5; }
  .hero-compose { display: flex; flex-direction: column; height: auto; padding: 0 0 50px; gap: 0; }
  .hero-visual { order: -1; height: auto; justify-content: center; }
  .hero-visual img, html[dir="ltr"] .hero-visual img {
    width: 100%; height: auto; max-height: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent);
    mask-image: linear-gradient(to bottom, #000 92%, transparent);
  }
  .hero-visual .brand-mark { margin: 40px auto 10px; }
  .hero-copy { position: relative; margin-top: 14px; padding: 0 20px; }
}

/* ---------- background music button (static/js/music.js) ---------- */
.music-toggle { width: 38px; height: 38px; justify-content: center; }
.music-toggle .music-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.music-toggle .music-eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: music-eq 1.6s ease-in-out infinite; }
.music-toggle .music-eq i:nth-child(2) { animation-delay: -.55s; animation-duration: 1.9s; }
.music-toggle .music-eq i:nth-child(3) { animation-delay: -1.1s; animation-duration: 1.4s; }
.music-toggle.is-on .icon-note { display: none; }
.music-toggle.is-on .music-eq { display: inline-flex; }
html[data-theme="dark"] .music-toggle.is-on { color: #fff; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .45)); }
/* Timed hero banner (e.g. Black Friday): live countdown under the title. */
.hero-countdown { display: flex; gap: 10px; margin: 4px 0 20px; direction: ltr; }
.hero-countdown .cd-unit { display: grid; justify-items: center; gap: 4px; min-width: 0; height: auto; background: none; box-shadow: none; }
.hero-countdown .cd-unit b { min-width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; font-family: var(--font-latin);
  font-size: 1.55rem; font-weight: 800; color: #fff; background: rgba(229, 57, 74, .16); border: 1px solid rgba(255, 77, 94, .65);
  box-shadow: 0 0 22px rgba(229, 57, 74, .35); }
.hero-countdown .cd-unit em { font-style: normal; font-size: .78rem; color: #b9b9c0; }
html[data-theme="dark"] .hero-countdown .cd-unit { background: none; box-shadow: none; }
@media (max-width: 820px) {
  .hero-countdown { justify-content: center; gap: 8px; margin-bottom: 14px; }
  .hero-countdown .cd-unit b { min-width: 48px; height: 48px; font-size: 1.25rem; }
  /* a tall story poster shouldn't stretch the whole slider on phones */
  .hero-visual.is-poster img, html[dir="ltr"] .hero-visual.is-poster img {
    width: auto; max-width: 100%; height: 380px; margin: 18px auto 0; border-radius: 16px;
    -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 34px rgba(229, 57, 74, .3);
  }
}

/* Styled dropdown (select[data-rs-select] + main.js): matches the site's glass / neon look. */
.rs-select-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.rs-select { position: relative; }
.rs-select-btn {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  cursor: pointer; font-weight: 600; text-align: start; transition: border-color .2s, box-shadow .2s, background .2s;
}
.rs-select-btn svg { flex-shrink: 0; transition: transform .2s; opacity: .8; }
.rs-select-btn.is-placeholder span { opacity: .55; font-weight: 500; }
.rs-select.is-open .rs-select-btn svg { transform: rotate(180deg); }
.rs-select-btn:hover, .rs-select.is-open .rs-select-btn, .rs-select-btn:focus-visible { border-color: var(--ink); outline: none; }
.rs-select-list {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 40; margin: 0; padding: 6px; list-style: none;
  max-height: 300px; overflow: auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25); outline: none; animation: rs-select-in .16s ease;
}
.rs-select-list[hidden] { display: none; }
.rs-select-list li {
  position: relative; padding: 11px 14px; padding-inline-end: 34px; border-radius: 10px; cursor: pointer; font-weight: 600;
  color: var(--text-2); transition: background .12s, color .12s;
}
.rs-select-list li.is-active { background: var(--surface-2); color: var(--text); }
.rs-select-list li[aria-selected="true"] { color: var(--text); }
.rs-select-list li[aria-selected="true"]::after {
  content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #e5394a; box-shadow: 0 0 8px rgba(229, 57, 74, .8);
}
@keyframes rs-select-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html[data-theme="dark"] .rs-select-btn { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .rs-select-btn:hover, html[data-theme="dark"] .rs-select.is-open .rs-select-btn, html[data-theme="dark"] .rs-select-btn:focus-visible {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .05), 0 0 18px rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .rs-select-list {
  background: rgba(14, 14, 16, .96); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .7), 0 0 30px rgba(229, 57, 74, .18);
}
html[data-theme="dark"] .rs-select-list li { color: rgba(255, 255, 255, .72); }
html[data-theme="dark"] .rs-select-list li.is-active { background: rgba(229, 57, 74, .14); color: #fff; }
html[data-theme="dark"] .rs-select-list li[aria-selected="true"] { color: #fff; text-shadow: var(--neon-soft); }
@media (prefers-reduced-motion: reduce) { .rs-select-list { animation: none; } }

/* Product quantity starts at 0: nudge the + when "add to cart" is pressed without one. */
.qty.needs-qty { animation: qty-nudge .5s ease; border-color: #e5484d; }
.qty.needs-qty [data-qty-plus] { background: rgba(229, 72, 77, .18); }
@keyframes qty-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* On, but the browser is holding the sound until the first tap: still bars + a soft pulse. */
.music-toggle.is-waiting .music-eq i { animation: none; transform: scaleY(.35); }
.music-toggle.is-waiting { animation: music-wait 1.8s ease-in-out infinite; }
@keyframes music-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes music-wait { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .music-toggle .music-eq i { animation: none; transform: scaleY(.65); } .music-toggle.is-waiting { animation: none; } }

/* ---------- welcome mode: the brand reel in a glass card (static/js/welcome.js) ---------- */
html.welcome-open, html.welcome-open body { overflow: hidden; }
.welcome {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(6px) saturate(115%); backdrop-filter: blur(6px) saturate(115%);
  transition: opacity .6s ease, visibility .6s;
}
.welcome.is-leaving { opacity: 0; visibility: hidden; }
.welcome-card {
  position: relative; width: min(900px, 100%); padding: 12px; border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 46px rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  animation: welcome-in .7s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform .6s ease;
}
.welcome.is-leaving .welcome-card { transform: scale(.96); }
@keyframes welcome-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.welcome-media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.welcome-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.welcome-close, .welcome-sound {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font: inherit;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, box-shadow .2s;
}
.welcome-close:hover, .welcome-sound:hover { background: rgba(255, 255, 255, .18); }
.welcome-close { top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; }
.welcome-sound { bottom: 14px; inset-inline-start: 12px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; }
.welcome-sound .icon-sound, .welcome-sound.is-on .icon-muted { display: none; }
.welcome-sound.is-on .icon-sound { display: block; }
.welcome-sound:not(.is-on) { animation: welcome-pulse 2.4s ease-in-out infinite; }
@keyframes welcome-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.welcome-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); z-index: 2; }
.welcome-progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .25s linear; }
html[dir="ltr"] .welcome-progress span { transform-origin: left; }
.welcome-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 6px 4px; }
.welcome-tagline { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.1rem); font-weight: 600; text-shadow: 0 0 1px rgba(255, 255, 255, .55), 0 0 12px rgba(255, 255, 255, .3); }
.welcome-enter { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 0; background: #fff; color: #000; font-weight: 700; cursor: pointer; box-shadow: 0 0 24px rgba(255, 255, 255, .22); transition: transform .2s, box-shadow .2s; }
.welcome-enter:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 255, 255, .38); }
html[dir="ltr"] .welcome-enter svg { transform: scaleX(-1); }
/* Light theme: frosted white glass, dark text. */
html[data-theme="light"] .welcome { background: rgba(255, 255, 255, .28); }
html[data-theme="light"] .welcome-card { color: #111; background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .55)); border-color: rgba(0, 0, 0, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .9); }
html[data-theme="light"] .welcome-tagline { text-shadow: none; }
html[data-theme="light"] .welcome-enter { background: #111; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
/* Upright screens: a vertical card that fits the height of the phone. */
@media (max-aspect-ratio: 4/5) {
  .welcome-card { width: min(440px, 100%, calc((100dvh - 150px) * 9 / 16 + 24px)); padding: 10px; border-radius: 22px; }
  .welcome-media { aspect-ratio: 9 / 16; border-radius: 14px; }
  .welcome-foot { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding: 12px 2px 2px; }
  .welcome-tagline { display: none; }
  .welcome-enter { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .welcome, .welcome-card, .welcome-sound { transition: none; animation: none; } }

/* Non-original products say so plainly instead of claiming authenticity. */
.not-original-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: .85rem; border: 1px dashed var(--border-strong, rgba(127, 127, 127, .45)); color: var(--muted, inherit); }

/* ---------- Catalog filter panel ----------
   Clear sections (sort / price / brand / switches) split by hairlines, the price boxes look exactly
   like the dropdown boxes, the brand list is a checkbox version of the sort dropdown, and the
   apply button glows red while there are changes the results don't show yet. Light + dark. */
.filters { gap: 0; }
.filters-head { padding-bottom: 14px; }
.filter-section { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); }
.filter-title { margin: 0; font-size: .92rem; font-weight: 800; color: var(--text); }
.filters .field-row { grid-template-columns: 1fr 1fr; }
.price-range .field { gap: 4px; }
.price-range .field > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.price-range input { font-weight: 600; transition: border-color .2s, box-shadow .2s, background .2s; }
.price-range input::placeholder { color: var(--muted); font-weight: 500; opacity: .8; }
.price-range input:hover, .price-range input:focus { border-color: var(--ink); }
html[data-theme="dark"] .price-range input { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .price-range input:hover, html[data-theme="dark"] .price-range input:focus {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .05), 0 0 18px rgba(255, 255, 255, .12);
}

.rs-multi .rs-select-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-multi-list { display: flex; flex-direction: column; gap: 2px; }
.rs-multi-list[hidden] { display: none; }
.rs-multi-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-weight: 600; color: var(--text-2); transition: background .12s, color .12s;
}
.rs-multi-option:hover, .rs-multi-option:focus-within { background: var(--surface-2); color: var(--text); }
.rs-multi-option:has(input:checked) { color: var(--text); }
.rs-multi-option input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #e5394a; cursor: pointer; }
.rs-multi-option input:focus-visible { outline: 2px solid #e5394a; outline-offset: 2px; }
html[data-theme="dark"] .rs-multi-option { color: rgba(255, 255, 255, .72); }
html[data-theme="dark"] .rs-multi-option:hover, html[data-theme="dark"] .rs-multi-option:focus-within { background: rgba(229, 57, 74, .14); color: #fff; }
html[data-theme="dark"] .rs-multi-option:has(input:checked) { color: #fff; text-shadow: var(--neon-soft); }

.filters-actions { padding-top: 16px; border-top: 1px solid var(--border); }
.filters-actions .btn { min-height: 46px; transition: box-shadow .2s, background .2s; }
.filters-actions .btn.is-pending { box-shadow: 0 0 0 3px rgba(229, 57, 74, .3), 0 0 20px rgba(229, 57, 74, .45); }

/* Header search suggestions: product names only, the typed part in bold. */
.search-results .search-result { display: block; padding: 11px 16px; font-weight: 600; font-size: .92rem; line-height: 1.5; color: var(--text-2); }
.search-results .search-result b { color: var(--text); font-weight: 800; }
.search-results .search-result:hover, .search-results .search-result.active { color: var(--text); }
html[data-theme="dark"] .search-results .search-result { color: rgba(255, 255, 255, .75); }
html[data-theme="dark"] .search-results .search-result b { color: #fff; text-shadow: var(--neon-soft); }
html[data-theme="dark"] .search-results .search-result:hover, html[data-theme="dark"] .search-results .search-result.active { color: #fff; background: rgba(229, 57, 74, .12); }

/* The brand list opens inside the panel (pushing the switches and the apply button down) instead
   of floating over the page, and on desktop the sticky panel scrolls on its own when it's taller
   than the screen, so the list and the apply button are always reachable. */
.rs-multi-list { position: static; margin-top: 8px; max-height: 240px; box-shadow: none; }
html[data-theme="dark"] .rs-multi-list { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02); }
@media (min-width: 821px) {
  .filters { max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* Jumping to the results (apply on phones, pagination) stops below the sticky header. */
.catalog-results { scroll-margin-top: 150px; }
@media (max-width: 820px) { .catalog-results { scroll-margin-top: 196px; } }

/* ---------- Visit the shop (home) — photo: static/img/store/storefront.jpg ---------- */
.store-visit {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: 22px; overflow: hidden;
  color: #fff; box-shadow: var(--shadow-sm);
  background: radial-gradient(90% 120% at 0% 100%, rgba(170, 20, 40, .35), transparent 60%), #000;
}
html[dir="ltr"] .store-visit { background: radial-gradient(90% 120% at 100% 100%, rgba(170, 20, 40, .35), transparent 60%), #000; }
html[data-theme="dark"] .store-visit {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(150, 18, 36, .32), rgba(255, 255, 255, .03) 65%);
}
.store-visit-media { position: relative; min-height: 380px; }
.store-visit-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  /* the photo melts into the card on the text side */
  -webkit-mask-image: linear-gradient(to left, #000 72%, transparent);
  mask-image: linear-gradient(to left, #000 72%, transparent);
}
html[dir="ltr"] .store-visit-media img {
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent);
  mask-image: linear-gradient(to right, #000 72%, transparent);
}
.store-visit-body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.store-visit-body .eyebrow { color: #a9a9b2; margin-bottom: 0; }
.store-visit-body h2 { margin: 0; font-size: 1.6rem; line-height: 1.4; }
.store-visit-body > p { margin: 0; color: #c4c4cc; }
.store-visit-info { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 14px; }
.store-visit-info li { display: flex; align-items: flex-start; gap: 12px; }
.store-visit-info svg { flex: none; margin-top: 3px; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.store-visit-info span { display: grid; gap: 2px; line-height: 1.6; }
.store-visit-info small { color: #9a9aa2; font-size: .75rem; }
.store-visit-info a { color: #fff; }
.store-visit-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.store-visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store-visit .btn-light { background: #fff; color: #000; }
.store-visit .btn-light:hover { background: #e9e9ec; box-shadow: 0 0 22px rgba(255, 255, 255, .3); }
.store-visit-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.store-visit-btn-ghost:hover { border-color: #fff; }
@media (max-width: 760px) {
  .store-visit { grid-template-columns: minmax(0, 1fr); }
  .store-visit-media { min-height: 0; aspect-ratio: 4 / 3; }
  .store-visit-media img,
  html[dir="ltr"] .store-visit-media img {
    object-position: 50% 22%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .store-visit-body { padding: 4px 18px 22px; }
  .store-visit-body h2 { font-size: 1.25rem; }
  .store-visit-actions .btn { flex: 1 1 auto; }
}

/* ---------- Footer: the shop at night, faint, behind the footer (static/img/store/storefront-wide.jpg) ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/store/storefront-wide.jpg") left top / auto 620px no-repeat;
  opacity: .34;
  /* the glowing sign would sit behind the contact items (phone number etc.), so it is faded out;
     only the lit doorway shows, faintly, and it fades away again further down */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 150px, #000 240px, #000 430px, transparent 580px);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 150px, #000 240px, #000 430px, transparent 580px);
}
@media (max-width: 760px) {
  /* phones: the store name sits where the sign would be, so fade the sign out and keep the lit doorway */
  .site-footer::before {
    background-size: auto 520px; background-position: 22% 40px; opacity: .3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 150px, #000 290px, #000 520px, transparent 640px);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 150px, #000 290px, #000 520px, transparent 640px);
  }
}
