:root {
  --ink: #232747;
  --muted: #535c78;
  --green: #3e42a2;
  --line: #dedfed;
  --sage: #efedfb;
}
#home, #shop, #categories, #tracking { scroll-margin-top: 90px; }
.topbar { background: #25264b; }
.head { height: 70px; }
.nav { margin-left: 12px; }
.head-actions .iconbtn { border-radius: 12px; }
#openCart { background: var(--green); color: white; border-color: var(--green); }
.cart-count { background: white; color: var(--green); min-width: 22px; width: auto; padding: 0 4px; }
.hero {
  min-height: clamp(365px, 37vw, 490px);
  position: relative;
  border-radius: 24px;
  background-image: linear-gradient(90deg, #ece0f5 3%, #ece0f5e8 25%, #ece0f500 63%), url('hero.webp');
  background-position: center, center 53%;
}
.hero-copy { padding-block: 42px; }
.hero h1 { font-size: clamp(38px, 6vw, 76px); }
.hero .primary, .track .primary { border-radius: 12px; }
.perks {
  background: #faf9fe;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 14px;
  padding: 14px 20px;
}
.perk-icon { flex: none; }
.section-head { align-items: center; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(29px, 4vw, 45px); margin: 0 0 4px; }
.section-head .foot-note { white-space: nowrap; }
.shop-tools { background: #faf9fe; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; margin: 0; }
.search { min-width: 0; }
.controls select { width: 100%; }
.shop-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shop-shortcuts .wish-button { min-height: 44px; font-size: 14px; }
.wish-button.active { border-color: var(--green); }
.filter-drawer { margin-top: 10px; }
.filter-drawer summary { cursor: pointer; color: var(--green); font-weight: 700; font-size: 14px; padding: 11px 4px; }
.filter-drawer .filter-row { margin: 2px 0 0; }
.filter-row > * { min-width: 0; }
#resetFilters { color: var(--green); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 650; }
.chips { margin-bottom: 16px; padding: 4px 4px 8px; }
.card { border-radius: 16px; min-width: 0; }
.art { height: auto; aspect-ratio: 4 / 3; }
.badge { border-radius: 20px; }
.card-body { overflow-wrap: anywhere; }
.card h3 { min-height: 0; }
.detail-link:hover { text-decoration: underline; }
.card .desc { margin-bottom: 5px; }
.card .foot-note { margin: 0 0 9px; }
.compare-pick { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 7px; margin: 0 0 12px; padding: 4px 8px; text-align: left; min-height: 32px; }
.compare-pick[aria-pressed=true], .heart[aria-pressed=true] { color: var(--green); background: var(--sage); border-color: #9d9ace; }
.price-row { flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 0; }
.old { color: var(--muted); }
.card-actions .add { color: white; background: var(--green); border-color: var(--green); }
.card-actions .add:hover { background: #2c317f; }
.card-actions .add[data-detail] { color: var(--ink); background: var(--sage); border-color: var(--line); }
.card-actions .add[data-detail]:hover { background: #e3dff5; }
.track { background: #eeebfb; border-radius: 20px; }
.track form { min-width: 0; }
.track-wrap { min-width: 0; }
.drawer, .dialog { overscroll-behavior: contain; }
.drawer-head { position: sticky; top: 0; background: #fff; z-index: 2; }
.close { flex: none; }
.dialog { max-height: calc(100dvh - 32px); }
.checkout-breakdown > div { gap: 10px; }
.toast { width: max-content; max-width: calc(100% - 32px); bottom: max(16px, env(safe-area-inset-bottom)); }
body:has(.modal:not([hidden]), .overlay:not([hidden])) { overflow: hidden; }
body:not(:has(.overlay:not([hidden]), .modal:not([hidden]))) .toast { pointer-events: none; }
:disabled { opacity: .55; cursor: default; }
@media (min-width: 761px) {
  .head-actions > a { display: none; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .head { height: 62px; }
  .topbar { font-size: 11px; }
  .hero {
    min-height: clamp(265px, 56vw, 340px);
    margin-top: 12px;
    border-radius: 18px;
    background-image: linear-gradient(90deg, #ede1f6 3%, #ede1f6e8 38%, #ede1f600 91%), url('hero.webp');
    background-position: center, 60% center;
    align-items: center;
  }
  .hero::before { display: none; }
  .hero-copy { padding: 22px 16px; }
  .hero h1 { font-size: clamp(34px, 7vw, 48px); }
  .hero p { max-width: 215px; font-size: 14px; margin-bottom: 17px; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 6px; gap: 4px; }
  .perk { flex-direction: column; gap: 4px; text-align: center; }
  .perk-icon { width: 29px; height: 29px; font-size: 15px; }
  .perk b { font-size: 11px; line-height: 1.3; }
  .perk div > span { display: none; }
  .section-head { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
  .controls { grid-template-columns: minmax(0, 1fr) auto; }
  .search { grid-column: 1 / -1; }
  .shop-shortcuts .wish-button { padding-inline: 10px; }
  .filter-row select { flex: 1 1 125px; }
  .card-actions { grid-template-columns: minmax(0, 1fr) 38px; gap: 4px; }
  .card-actions .add { min-height: 44px; }
  .drawer-head, .drawer-content, .drawer-foot { padding: 16px; }
}
@media (max-width: 380px) {
  .track form { flex-direction: column; }
  .controls select { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
