:root {
  color-scheme: light;
  --bg: #f4f2f8;
  --panel: #fff;
  --line: #e5dfef;
  --text: #22182c;
  --muted: #61586d;
  --acid: #6634b4;
  --glass: #fffdfbd9;
  --wash: #ede5fa;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171320;
  --panel: #242031;
  --line: #443952;
  --text: #f9f4ff;
  --muted: #c0b4cf;
  --acid: #d6b9ff;
  --glass: #262030db;
  --wash: #342648;
}
.shell { width: min(1280px, calc(100% - 48px)); }
.top { height: 64px; }
.top nav { color: var(--muted); }
.mark, .action { background: var(--acid); color: var(--bg); }
.action:hover { background: var(--acid); opacity: .86; }
.hero {
  min-height: 220px;
  grid-template-columns: 1.75fr 1fr;
  border-color: #ac83db67;
  border-radius: 22px;
  background: radial-gradient(ellipse at 82% 45%, #b583e0, transparent 55%), linear-gradient(110deg, #312050, #7750a7);
  color: #fff;
}
.hero-copy { padding: 28px 0 28px 34px; }
.hero h1 { font-size: clamp(2rem, 5.1vw, 4.5rem); letter-spacing: -.07em; line-height: 1; }
.hero-copy>p:nth-of-type(2) { color: #f3eafa; margin: 12px 0 15px; }
.hero .action { background: #f8f2ff; color: #34224b; }
.eyebrow { margin-bottom: 10px; color: #f1dcfc; }
.hero-art { min-height: 220px; }
.hero-card { width: 151px; padding: 5px; border-radius: 17px; transform: rotate(12deg); }
.hero-card img { border-radius: 11px; }
.hero-art::before, .hero-art::after { max-width: 280px; }
.spark { color: #f5dfab; }
.collections, #catalog { margin-top: 26px; scroll-margin-top: 16px; }
.collections h2, #catalog h2 { font-size: 1.6rem; }
.more {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 7px 13px;
  font-size: .9rem;
}
.filters { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.filters input:not(#query) { width: 100%; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); font-size: .9rem; }
.filters select, .search { min-height: 44px; }
.market-state { color: var(--muted); margin: 0 0 12px; font-size: .88rem; }
.market-state:empty { display: none; }
.grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.card { border-radius: 14px; }
.card:hover { border-color: var(--acid); }
.picture { aspect-ratio: 1.08; background: var(--wash); }
.picture img { object-fit: contain; }
.card h3 { margin: 3px 0 8px; font-size: .98rem; }
.card-copy { padding: 10px; }
.card-bottom { flex-wrap: wrap; }
.card-meta { font-size: .75rem; }
.detail, .empty button, .more { background: var(--wash); border-color: var(--line); color: var(--text); }
.heart, .close { background: #2a2038c9; color: #fff; }
.heart[aria-pressed=true] { color: #ffd1ee; }
.demo { color: var(--acid); background: var(--wash); border-color: var(--line); }
.dialog-img { object-fit: contain; background: var(--wash); }
dialog p, dialog li { color: var(--muted); }
.more { display: block; margin: 18px auto 0; }
.footer { margin-top: 30px; padding-bottom: 110px; }
.dock {
  position: fixed;
  z-index: 10;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100% - 26px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 5px;
  border-radius: 28px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow: inset 0 1px 1px #ffffffb0, 0 8px 30px #20123642;
}
.dock :is(a,button) { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 22px; background: none; padding: 5px 1px; color: inherit; font-size: .75rem; line-height: 1.3; }
.dock :is(a,button):hover, .dock [aria-pressed="true"] { background: var(--wash); color: var(--acid); }
.dock span { font: 1.4rem/1 system-ui; }
.dock b { position: absolute; top: 1px; right: 13%; background: var(--acid); color: var(--bg); padding: 1px 5px; border-radius: 10px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row:first-of-type { margin-top: 12px; }
.settings-row select { max-width: 55%; background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 5px; border-radius: 8px; }
.settings-row input { accent-color: var(--acid); width: 20px; height: 20px; }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
#snow i { position: absolute; top: -25px; left: var(--x); color: #fff; font: var(--size)/1 system-ui; text-shadow: 0 1px 3px #6c6487; animation: snowfall var(--duration) var(--delay) linear infinite; }
@keyframes snowfall { to { transform: translate(45px, 110vh); } }
@media(max-width:1050px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media(max-width:650px) {
  .shell { width: calc(100% - 26px); }
  .hero { grid-template-columns: 1.9fr 1fr; min-height: 162px; }
  .hero h1 { font-size: clamp(1.85rem, 6.4vw, 2.9rem); }
  .hero-copy { padding: 16px 0 17px 16px; }
  .hero-copy>p:nth-of-type(2) { margin: 8px 0 12px; font-size: .85rem; }
  .hero .action { font-size: .82rem; padding: 8px 11px; }
  .hero-art { min-height: 155px; }
  .hero-card { width: 100px; max-width: 75%; }
  .eyebrow { font-size: .62rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-bottom { flex-direction: row; align-items: center; }
  .card-bottom .detail { width: auto; }
}
@media(prefers-reduced-motion: reduce) { #snow { display: none; } }

.seller small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.seller .mark { width: 38px; height: 38px; border-radius: 12px; }
.promos, .store-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.promos button {
  position: relative;
  display: grid;
  justify-items: start;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 48px 14px 15px;
  background: var(--wash);
  color: var(--text);
  text-align: left;
}
.promos button:last-child { background: #242035; color: #fff; }
.promos button>span { position: absolute; right: 12px; bottom: 9px; font-size: 2.35rem; color: inherit; opacity: .5; }
.promos button>strong { font-size: clamp(.95rem, 2.1vw, 1.22rem); }
.promos button>small { font-size: .79rem; opacity: .86; }
.info-card { padding: 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; }
.info-card h2 { font-size: 1.12rem; }
.info-card ol { margin: 8px 0 0; padding-inline-start: 19px; }
.info-card li, .info-card p { color: var(--muted); font-size: .9rem; }
.info-card p { margin: 8px 0; }
.review-list { max-height: 152px; overflow: auto; margin-bottom: 6px; font-size: .9rem; }
.review-list blockquote { margin: 5px 0; padding: 6px 9px; background: var(--wash); border-radius: 8px; }
.review-list blockquote p { margin: 3px 0; }
.review-list strong { color: var(--acid); }
.info-card a, .seller-contact { color: var(--acid); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.seller-contact { display: inline-block; margin-top: 12px; }
.luxury { margin-top: 26px; }
.luxury h2 { font-size: 1.6rem; }
.catalog-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.catalog-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 7px 12px;
  font-size: .88rem;
}
.catalog-tabs button[aria-pressed=true] { background: var(--wash); color: var(--acid); border-color: var(--acid); }
@media(max-width:650px) { .store-info { grid-template-columns: 1fr; } .promos button { padding-right: 33px; } .promos button>span { font-size: 1.6rem; } }
