@font-face {
  font-family: "Fredoka Pelangi";
  src: url("../fonts/Fredoka-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Pelangi";
  src: url("../fonts/Nunito-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root,
html[data-theme="rainbow"] {
  color-scheme: light;
  --ink: #25324a;
  --muted: #687287;
  --paper: #fff8ef;
  --paper-2: #fffdf9;
  --surface: #ffffff;
  --surface-soft: #fff2e8;
  --line: #eadfd5;
  --primary: #ed5274;
  --primary-strong: #c92f58;
  --secondary: #149d94;
  --accent: #ffc83d;
  --accent-2: #5b8def;
  --accent-3: #8968d6;
  --accent-4: #59b96a;
  --hero-start: #d83d63;
  --hero-end: #e5673d;
  --hero-ink: #ffffff;
  --hero-soft: #fff3dc;
  --footer: #28334e;
  --tone-a: #ef6683;
  --tone-b: #20a69e;
  --tone-c: #f0aa2f;
  --tone-d: #5987e4;
  --tone-e: #8d6ad8;
  --tone-f: #55ad66;
  --shadow: 0 18px 46px rgba(68, 44, 51, 0.12);
  --shadow-small: 0 9px 24px rgba(68, 44, 51, 0.09);
  --shell: min(1240px, calc(100% - 40px));
}

html[data-theme="sky"] {
  --ink: #173554;
  --muted: #62778d;
  --paper: #f2fbff;
  --paper-2: #fbfeff;
  --surface-soft: #e7f7ff;
  --line: #d8e9f1;
  --primary: #3986f4;
  --primary-strong: #1d64c7;
  --secondary: #1ca9a0;
  --accent: #ffd052;
  --accent-2: #6aa3ff;
  --accent-3: #7c74d8;
  --accent-4: #57b78c;
  --hero-start: #2266c4;
  --hero-end: #248ca5;
  --hero-soft: #e9faff;
  --footer: #173958;
  --tone-a: #4a8ee8;
  --tone-b: #20a69e;
  --tone-c: #eeb23c;
  --tone-d: #4d71d4;
  --tone-e: #8f75d6;
  --tone-f: #5db480;
}

html[data-theme="garden"] {
  --ink: #243b35;
  --muted: #687b70;
  --paper: #f8f8eb;
  --paper-2: #fffef8;
  --surface-soft: #eef5dd;
  --line: #dce6d3;
  --primary: #3c9b68;
  --primary-strong: #26764d;
  --secondary: #e97e42;
  --accent: #f4c744;
  --accent-2: #5f8ed7;
  --accent-3: #8a73c7;
  --accent-4: #6bad59;
  --hero-start: #286f4c;
  --hero-end: #438555;
  --hero-soft: #f5f1d8;
  --footer: #29453b;
  --tone-a: #e4774d;
  --tone-b: #3d9a77;
  --tone-c: #e3a632;
  --tone-d: #6287c5;
  --tone-e: #8c71bd;
  --tone-f: #67a957;
}

html[data-theme="berry"] {
  --ink: #3f2944;
  --muted: #806b82;
  --paper: #fff6fb;
  --paper-2: #fffafd;
  --surface-soft: #fbe9f4;
  --line: #ead9e6;
  --primary: #ca4f8d;
  --primary-strong: #9f326c;
  --secondary: #7f62c5;
  --accent: #ffb949;
  --accent-2: #638edf;
  --accent-3: #9b6dd3;
  --accent-4: #5eae7b;
  --hero-start: #9f356f;
  --hero-end: #7350aa;
  --hero-soft: #fff0f8;
  --footer: #452e50;
  --tone-a: #d45d91;
  --tone-b: #7b66c5;
  --tone-c: #e8a03e;
  --tone-d: #5c8bdc;
  --tone-e: #a66fd0;
  --tone-f: #62a77a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: var(--paper);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 8%, color-mix(in srgb, var(--accent) 18%, transparent) 0 5%, transparent 16%),
    radial-gradient(circle at 94% 25%, color-mix(in srgb, var(--accent-2) 13%, transparent) 0 7%, transparent 18%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  font-family: "Nunito Pelangi", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 18%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 72%);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -90px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--primary-strong);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-2) 75%, #fff);
  outline-offset: 3px;
}

.site-header,
.detail-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, var(--line));
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  box-shadow: 0 8px 30px rgba(37, 50, 74, 0.04);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: var(--shell);
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 3px solid #fff;
  border-radius: 18px 18px 18px 7px;
  display: grid;
  place-content: center;
  gap: 3px;
  background: var(--primary);
  box-shadow: 0 9px 0 color-mix(in srgb, var(--primary-strong) 35%, transparent);
  transform: rotate(-3deg);
}

.brand-mark::after {
  position: absolute;
  right: -4px;
  top: -5px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.brand-mark span {
  display: block;
  width: 27px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-mark span:nth-child(2) {
  width: 21px;
  background: #fff;
}

.brand-mark span:nth-child(3) {
  width: 15px;
  background: var(--secondary);
}

.brand-copy {
  display: grid;
  line-height: 0.92;
}

.brand-copy small {
  color: var(--primary-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand-copy strong {
  color: var(--ink);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.header-search {
  position: relative;
  z-index: 2;
  height: 54px;
  max-width: 610px;
  flex: 1;
  margin-inline: auto;
  padding: 0 16px;
  border: 2px solid color-mix(in srgb, var(--secondary) 18%, var(--line));
  border-radius: 18px;
  display: flex;
  align-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.header-search:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--secondary) 14%, transparent);
  transform: translateY(-1px);
}

.header-search svg {
  width: 22px;
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
}

.search-submit {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 8%, transparent);
}

.search-submit:hover {
  background: color-mix(in srgb, var(--secondary) 16%, transparent);
}

.header-search input {
  width: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 650;
}

.header-search input::placeholder {
  color: color-mix(in srgb, var(--muted) 74%, #fff);
  font-weight: 550;
}

.clear-search {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 50%;
  display: none;
  color: var(--primary-strong);
  background: var(--surface-soft);
  font-size: 22px;
}

.clear-search.visible {
  display: grid;
  place-items: center;
}

.search-suggestions {
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(100% + 10px);
  z-index: 150;
  max-height: min(64vh, 540px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  border: 2px solid color-mix(in srgb, var(--secondary) 24%, var(--line));
  border-radius: 20px 20px 20px 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 97%, var(--paper));
  box-shadow: 0 24px 60px rgba(37, 50, 74, 0.2);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--secondary) 35%, transparent) transparent;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion-head {
  min-height: 34px;
  padding: 4px 8px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.search-suggestion-head strong {
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-suggestion-head small {
  font-size: 9px;
  font-weight: 700;
}

.search-suggestion-item {
  min-height: 72px;
  padding: 7px 9px 7px 7px;
  border-radius: 15px 15px 15px 6px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  transition: background 150ms ease, transform 150ms ease;
}

.search-suggestion-item + .search-suggestion-item {
  border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible,
.search-suggestion-item.active {
  outline: 0;
  background: color-mix(in srgb, var(--secondary) 10%, var(--surface));
  transform: translateX(2px);
}

.search-suggestion-image {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 14%, var(--line));
  border-radius: 14px 14px 14px 5px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.search-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.search-suggestion-copy > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy > strong {
  overflow: hidden;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-suggestion-copy b {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.search-suggestion-copy i {
  padding: 2px 6px;
  border-radius: 999px;
  color: #245c46;
  background: #e8f8ee;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.search-suggestion-copy i.low {
  color: #9d2e42;
  background: #ffedf1;
}

.search-suggestion-arrow {
  width: 28px;
  height: 28px;
  border-radius: 10px 10px 10px 4px;
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  background: var(--surface-soft);
  font-size: 16px;
  font-weight: 900;
}

.search-suggestion-status {
  min-height: 86px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  text-align: center;
}

.search-suggestion-status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 15px 0 0 color-mix(in srgb, var(--accent) 75%, var(--secondary));
}

.search-suggestion-status p {
  margin: 0 0 0 13px;
  font-size: 12px;
  font-weight: 750;
}

.search-suggestion-status.loading span {
  border: 2px solid color-mix(in srgb, var(--secondary) 22%, transparent);
  border-top-color: var(--secondary);
  background: transparent;
  box-shadow: none;
  animation: search-spin 700ms linear infinite;
}

@keyframes search-spin {
  to { transform: rotate(360deg); }
}

.header-tools,
.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-launcher,
.header-action,
.header-logout,
.share-button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
  font-weight: 850;
  font-size: 13px;
  transition: transform 0.18s, background 0.18s;
}

.theme-launcher {
  padding: 9px 12px;
}

.header-action {
  padding: 9px 11px;
}

.header-logout {
  padding: 9px 11px;
  cursor: pointer;
}

.header-logout[hidden] { display: none; }

.header-logout svg {
  width: 22px;
  fill: none;
  stroke: var(--secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-button svg {
  width: 21px;
  fill: none;
  stroke: var(--primary-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-logout:disabled { cursor: wait; opacity: .55; }

.theme-launcher:hover,
.header-action:hover,
.header-logout:hover,
.share-button:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.theme-launcher svg,
.header-action svg {
  width: 23px;
  fill: none;
  stroke: var(--primary-strong);
  stroke-width: 1.8;
}

.header-action svg {
  stroke: var(--secondary);
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  width: var(--shell);
  min-height: 490px;
  margin: 28px auto 76px;
  overflow: hidden;
  border: 5px solid color-mix(in srgb, var(--hero-soft) 48%, transparent);
  border-radius: 42px 42px 42px 16px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  color: var(--hero-ink);
  background:
    linear-gradient(115deg, rgba(17, 22, 52, 0.12), transparent 58%),
    linear-gradient(135deg, var(--hero-start), var(--hero-end));
  box-shadow: 0 28px 70px color-mix(in srgb, var(--hero-start) 25%, transparent);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  width: 390px;
  height: 390px;
  right: -165px;
  top: -185px;
  border: 52px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  left: 43%;
  bottom: -105px;
  width: 230px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--secondary) 28%, transparent);
  content: "";
  filter: blur(1px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 70px 24px 64px 66px;
  animation: hero-enter 0.7s both;
}

.eyebrow,
.section-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff8df;
}

.hero .eyebrow i {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 9px 0 0 var(--secondary), 18px 0 0 var(--accent-2);
}

.hero h1 {
  max-width: 670px;
  margin: 18px 0 16px;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  position: relative;
  color: var(--accent);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 1px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  transform: rotate(-1deg);
}

.hero p {
  max-width: 600px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 620;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-button,
.load-more,
.empty-state button {
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 16px 16px 16px 6px;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 9px 0 color-mix(in srgb, #7b4c00 23%, transparent);
  font-weight: 900;
  transition: transform 0.18s, box-shadow 0.18s;
}

.hero-button:hover,
.empty-state button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 0 color-mix(in srgb, #7b4c00 23%, transparent);
}

.hero-button span {
  margin-left: 8px;
  font-size: 20px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.hero-note strong {
  display: block;
  color: #fff;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.hero-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 100%;
  animation: art-enter 0.85s 0.08s both;
}

.play-rainbow {
  position: absolute;
  right: 52px;
  top: 84px;
  width: 330px;
  height: 184px;
  overflow: hidden;
  transform: rotate(5deg);
}

.play-rainbow i {
  position: absolute;
  left: 50%;
  bottom: -16px;
  border-style: solid;
  border-bottom: 0;
  border-radius: 260px 260px 0 0;
  transform: translateX(-50%);
}

.play-rainbow i:nth-child(1) {
  width: 315px;
  height: 170px;
  border-width: 28px;
  border-color: var(--accent);
}

.play-rainbow i:nth-child(2) {
  width: 258px;
  height: 139px;
  border-width: 27px;
  border-color: var(--secondary);
}

.play-rainbow i:nth-child(3) {
  width: 203px;
  height: 108px;
  border-width: 26px;
  border-color: var(--accent-2);
}

.play-rainbow i:nth-child(4) {
  width: 150px;
  height: 78px;
  border-width: 25px;
  border-color: #fff0e8;
}

.play-sun {
  position: absolute;
  right: 42px;
  top: 28px;
  width: 76px;
  height: 76px;
  border: 7px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 -8px 0 rgba(160, 90, 0, 0.08);
}

.play-sun::before,
.play-sun::after {
  position: absolute;
  top: 32px;
  width: 8px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.play-sun::before {
  left: 21px;
}

.play-sun::after {
  right: 21px;
}

.play-sun i {
  position: absolute;
  left: 30px;
  top: -23px;
  width: 7px;
  height: 17px;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: 4px 61px;
}

.play-sun i:nth-child(2) { transform: rotate(45deg); }
.play-sun i:nth-child(3) { transform: rotate(90deg); }
.play-sun i:nth-child(4) { transform: rotate(135deg); }
.play-sun i:nth-child(5) { transform: rotate(180deg); }
.play-sun i:nth-child(6) { transform: rotate(225deg); }
.play-sun i:nth-child(7) { transform: rotate(270deg); }
.play-sun i:nth-child(8) { transform: rotate(315deg); }

.play-cloud {
  position: absolute;
  width: 126px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 13px 24px rgba(52, 34, 65, 0.1);
}

.play-cloud i {
  position: absolute;
  bottom: 11px;
  border-radius: 50%;
  background: #fff;
}

.play-cloud i:nth-child(1) { left: 18px; width: 48px; height: 48px; }
.play-cloud i:nth-child(2) { left: 49px; width: 65px; height: 65px; }
.play-cloud i:nth-child(3) { right: 9px; width: 37px; height: 37px; }
.cloud-left { left: 16px; top: 205px; transform: scale(0.72); }
.cloud-right { right: 1px; top: 248px; transform: scale(0.58); }

.play-card {
  position: absolute;
  min-width: 225px;
  min-height: 84px;
  padding: 14px 17px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 23px 23px 8px 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(65, 30, 55, 0.19);
  backdrop-filter: blur(8px);
}

.play-card-a {
  right: 78px;
  bottom: 116px;
  transform: rotate(-4deg);
}

.play-card-b {
  right: 8px;
  bottom: 30px;
  transform: rotate(4deg) scale(0.92);
}

.play-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 17px 17px 17px 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--secondary);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.play-card-b .play-card-icon {
  color: var(--ink);
  background: var(--accent);
}

.play-card small {
  display: block;
  color: var(--primary-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.play-card strong {
  display: block;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 20px;
  line-height: 1.05;
}

.play-block {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(60, 31, 49, 0.15);
}

.block-a { left: 36px; bottom: 52px; transform: rotate(-12deg); }
.block-b { left: 89px; bottom: 35px; color: #fff; background: var(--accent-2); transform: rotate(9deg); }

.hero-confetti {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 34px;
  border-radius: 99px;
  background: var(--accent);
  transform: rotate(28deg);
}

.confetti-one { left: 47%; top: 50px; }
.confetti-two { left: 53%; bottom: 42px; height: 18px; background: var(--secondary); transform: rotate(-22deg); }
.confetti-three { right: 31%; top: 30px; height: 22px; background: #fff; transform: rotate(65deg); }

.category-section,
.catalog-section,
.trust-strip,
.site-footer > div,
.related-section {
  width: var(--shell);
  margin-inline: auto;
}

.category-section {
  margin-bottom: 72px;
}

.section-heading,
.catalog-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  color: var(--primary-strong);
}

.section-heading h2,
.catalog-heading h2,
.related-section h2,
.theme-dialog h2,
.category-dialog h2 {
  margin: 6px 0 0;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-heading p,
.catalog-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-button {
  min-height: 44px;
  padding: 7px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  font-weight: 900;
}

.short-label {
  display: none;
}

.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(165px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 5px 3px 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.tone-0 { --tone: var(--tone-a); }
.tone-1 { --tone: var(--tone-b); }
.tone-2 { --tone: var(--tone-c); }
.tone-3 { --tone: var(--tone-d); }
.tone-4 { --tone: var(--tone-e); }
.tone-5 { --tone: var(--tone-f); }
.delay-0 { --delay: 0ms; }
.delay-1 { --delay: 45ms; }
.delay-2 { --delay: 90ms; }
.delay-3 { --delay: 135ms; }
.delay-4 { --delay: 180ms; }
.delay-5 { --delay: 225ms; }
.delay-6 { --delay: 270ms; }
.delay-7 { --delay: 315ms; }

.category-card {
  position: relative;
  min-width: 0;
  min-height: 225px;
  padding: 11px 11px 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--tone) 16%, var(--line));
  border-radius: 27px 27px 27px 9px;
  scroll-snap-align: start;
  color: var(--ink);
  background: color-mix(in srgb, var(--tone) 6%, var(--surface));
  box-shadow: 0 8px 0 color-mix(in srgb, var(--tone) 13%, transparent);
  text-align: left;
  animation: card-rise 0.55s var(--delay, 0ms) both;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card::after {
  position: absolute;
  right: -17px;
  bottom: -24px;
  width: 78px;
  height: 78px;
  border: 15px solid color-mix(in srgb, var(--tone) 10%, transparent);
  border-radius: 50%;
  content: "";
}

.category-card:hover {
  border-color: var(--tone);
  box-shadow: 0 14px 0 color-mix(in srgb, var(--tone) 24%, transparent);
  transform: translateY(-4px);
}

.category-card.active {
  border-color: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent), 0 10px 0 color-mix(in srgb, var(--tone) 28%, transparent);
}

.category-image {
  position: relative;
  height: 126px;
  overflow: hidden;
  border-radius: 20px 20px 20px 7px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone) 18%, #fff);
}

.category-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: inherit;
  content: "";
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-image > span {
  color: var(--tone);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 46px;
  font-weight: 650;
}

.category-image i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tone);
  background: rgba(255, 255, 255, 0.9);
  font-style: normal;
}

.category-copy {
  display: block;
  min-width: 0;
  padding: 12px 38px 0 3px;
}

.category-copy strong {
  display: block;
  overflow: hidden;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.category-arrow {
  position: absolute;
  right: 13px;
  bottom: 14px;
  z-index: 1;
  width: 31px;
  height: 31px;
  border-radius: 11px 11px 11px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tone);
  font-weight: 900;
}

.category-skeleton {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-skeleton i,
.product-skeleton {
  background: linear-gradient(100deg, color-mix(in srgb, var(--line) 70%, #fff) 25%, #fff 45%, color-mix(in srgb, var(--line) 70%, #fff) 65%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.category-skeleton i {
  height: 225px;
  border-radius: 27px;
}

.catalog-section {
  padding-bottom: 76px;
}

.sort-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sort-control select {
  min-width: 190px;
  padding: 11px 36px 11px 13px;
  border: 2px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
}

.sort-control select:focus {
  border-color: var(--secondary);
}

.active-filter {
  width: max-content;
  max-width: 100%;
  margin: -4px 0 22px;
  padding: 8px 9px 8px 15px;
  border: 1px solid color-mix(in srgb, var(--secondary) 25%, var(--line));
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--secondary) 11%, var(--surface));
  font-size: 13px;
  font-weight: 850;
}

.active-filter button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-strong);
  font-size: 12px;
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--tone, var(--primary)) 8%, var(--line));
  border-radius: 27px 27px 27px 10px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  animation: card-rise 0.55s var(--delay, 0ms) both;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.product-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: color-mix(in srgb, var(--tone, var(--primary)) 68%, var(--primary));
  content: "";
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--tone, var(--primary)) 55%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--tone, var(--primary)) 5%, #f5f7fa);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-photo img {
  transform: scale(1.045);
}

.product-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(to top, rgba(25, 30, 48, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.product-photo-spark {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 14px -7px 0 -2px var(--accent), -4px -17px 0 -3px #fff;
}

.stock-badge {
  position: absolute;
  left: 12px;
  top: 13px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #245c46;
  background: rgba(239, 255, 246, 0.93);
  box-shadow: 0 5px 14px rgba(37, 50, 74, 0.08);
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.stock-badge.low {
  color: #9d2e42;
  background: rgba(255, 239, 242, 0.95);
}

.product-body {
  padding: 16px 17px 18px;
}

.product-category {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: color-mix(in srgb, var(--tone, var(--primary)) 76%, #1b2437);
  background: color-mix(in srgb, var(--tone, var(--primary)) 11%, transparent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.065em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-name {
  min-height: 43px;
  margin: 9px 0 14px;
  overflow: hidden;
  display: -webkit-box;
  color: var(--ink);
  font-family: "Nunito Pelangi", sans-serif;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.product-footer > div {
  min-width: 0;
}

.product-price {
  display: block;
  color: var(--primary-strong);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.1;
}

.product-code {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-arrow {
  min-width: 42px;
  height: 36px;
  padding: 0 9px;
  border-radius: 13px 13px 13px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background: var(--primary-strong);
  font-weight: 900;
}

.view-arrow i {
  font-size: 10px;
  font-style: normal;
}

.product-skeleton {
  height: 390px;
  border-radius: 27px;
}

.load-more-wrap {
  padding-top: 36px;
  text-align: center;
}

.load-more {
  min-width: 230px;
  color: #fff;
  background: var(--primary-strong);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--primary-strong) 28%, transparent);
}

.load-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 color-mix(in srgb, var(--primary-strong) 28%, transparent);
}

.empty-state {
  padding: 68px 20px;
  border: 2px dashed color-mix(in srgb, var(--primary) 30%, var(--line));
  border-radius: 30px 30px 30px 10px;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin: 20px 0 4px;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 28px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.empty-state a.hero-button {
  display: inline-flex;
  align-items: center;
}

.empty-illustration {
  width: 90px;
  height: 70px;
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.empty-illustration i {
  width: 20px;
  border-radius: 12px 12px 4px 4px;
  background: var(--tone-a);
}

.empty-illustration i:nth-child(1) { height: 38px; }
.empty-illustration i:nth-child(2) { height: 61px; background: var(--tone-c); }
.empty-illustration i:nth-child(3) { height: 49px; background: var(--tone-b); }

.trust-strip {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.trust-strip article {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 23px 23px 23px 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
  box-shadow: var(--shadow-small);
}

.trust-strip article:nth-child(2) .trust-icon { color: #7b5700; background: color-mix(in srgb, var(--accent) 35%, #fff); }
.trust-strip article:nth-child(3) .trust-icon { color: #fff; background: var(--secondary); }

.trust-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 17px 17px 17px 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
}

.trust-icon svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trust-strip strong {
  display: block;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 17px;
  font-weight: 620;
}

.trust-strip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 74px 0 32px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 18%, rgba(255, 255, 255, 0.08) 0 7%, transparent 7.3%),
    radial-gradient(circle at 7% 82%, rgba(255, 255, 255, 0.07) 0 9%, transparent 9.3%),
    var(--footer);
}

.site-footer > .footer-rainbow {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.footer-rainbow i:nth-child(1) { background: var(--tone-a); }
.footer-rainbow i:nth-child(2) { background: var(--tone-c); }
.footer-rainbow i:nth-child(3) { background: var(--tone-b); }
.footer-rainbow i:nth-child(4) { background: var(--tone-d); }
.footer-rainbow i:nth-child(5) { background: var(--tone-e); }

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 56px;
}

.footer-brand .eyebrow {
  color: var(--accent);
}

.footer-brand h2 {
  margin: 12px 0;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.03;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--secondary);
  color: #fff;
  font-weight: 850;
}

.site-footer h3.footer-subtitle {
  margin-top: 25px;
}

.site-footer > .footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.mobile-nav {
  display: none;
}

dialog {
  border: 0;
  color: var(--ink);
  background: var(--surface);
}

dialog::backdrop {
  background: rgba(31, 35, 55, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-handle {
  display: none;
}

.category-dialog,
.theme-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: min(82dvh, 780px);
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 30px 30px 30px 12px;
  box-shadow: 0 30px 90px rgba(24, 28, 49, 0.26);
}

.dialog-header,
.theme-dialog-head {
  position: sticky;
  top: -28px;
  z-index: 3;
  margin: -28px -28px 22px;
  padding: 25px 28px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.dialog-header h2,
.theme-dialog h2 {
  font-size: 31px;
}

.theme-dialog-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-header > button,
.theme-dialog-head > button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 24px;
}

.dialog-category-group + .dialog-category-group {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px dashed var(--line);
}

.dialog-category-group h3 {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 18px;
  font-weight: 620;
}

.dialog-category-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-category-group button {
  min-height: 41px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 13px 5px;
  color: var(--ink);
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

.dialog-category-group button:hover {
  border-color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 10%, #fff);
}

.dialog-category-group small {
  margin-left: 4px;
  color: var(--muted);
}

.theme-dialog {
  width: min(690px, calc(100% - 30px));
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  position: relative;
  min-height: 112px;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 22px 22px 22px 8px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--paper-2);
  text-align: left;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.theme-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.theme-option > span:nth-child(2) {
  min-width: 0;
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option strong {
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 16px;
  font-weight: 620;
}

.theme-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.theme-option b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--line);
  font-size: 12px;
}

.theme-option.active b {
  color: #fff;
  background: var(--primary-strong);
}

.theme-preview {
  position: relative;
  width: 70px;
  height: 74px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 18px 18px 18px 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  box-shadow: 0 6px 16px rgba(38, 41, 66, 0.13);
}

.theme-preview i:nth-child(1) { background: var(--preview-a); }
.theme-preview i:nth-child(2) { background: var(--preview-b); }
.theme-preview i:nth-child(3) { background: var(--preview-c); }
.theme-preview i:nth-child(4) { background: var(--preview-d); }
.preview-rainbow { --preview-a: #ed5274; --preview-b: #ffc83d; --preview-c: #149d94; --preview-d: #5b8def; }
.preview-sky { --preview-a: #3986f4; --preview-b: #6ed9d0; --preview-c: #ffd052; --preview-d: #edfaff; }
.preview-garden { --preview-a: #3c9b68; --preview-b: #f4c744; --preview-c: #e97e42; --preview-d: #eef5dd; }
.preview-berry { --preview-a: #ca4f8d; --preview-b: #8c68ce; --preview-c: #ffb949; --preview-d: #fae5f2; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 400;
  max-width: calc(100% - 28px);
  padding: 12px 17px;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  background: var(--footer);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 13%, color-mix(in srgb, var(--accent) 17%, transparent) 0 5%, transparent 15%),
    radial-gradient(circle at 94% 20%, color-mix(in srgb, var(--secondary) 12%, transparent) 0 8%, transparent 18%),
    var(--paper);
}

.detail-header .header-shell {
  justify-content: flex-start;
  gap: 12px;
}

.back-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 2px solid var(--line);
  border-radius: 15px 15px 15px 6px;
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  background: var(--surface);
  font-size: 23px;
  font-weight: 900;
}

.detail-header .brand {
  margin-right: 0;
}

.detail-header .header-search {
  height: 48px;
  max-width: 520px;
  margin-inline: auto;
}

.detail-header-actions {
  flex: 0 0 auto;
}

.compact-theme {
  width: 44px;
  padding: 9px;
  justify-content: center;
}

.share-button {
  padding: 9px 15px;
}

.detail-main {
  width: var(--shell);
  min-height: 570px;
  margin: 40px auto 76px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: start;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.88;
  border: 6px solid var(--surface);
  border-radius: 34px 34px 34px 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 7%, #eef2f5);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-main::after {
  position: absolute;
  right: 17px;
  top: 17px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  content: "Ketuk untuk memperbesar";
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(7px);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  scrollbar-width: thin;
}

.gallery-thumbs button {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 17px 17px 17px 6px;
  background: var(--surface);
}

.gallery-thumbs button.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 12px 12px 12px 4px;
  object-fit: cover;
}

.detail-copy {
  position: sticky;
  top: 120px;
  padding: 34px;
  border: 2px solid color-mix(in srgb, var(--primary) 18%, var(--line));
  border-radius: 32px 32px 32px 11px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.detail-breadcrumb {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin: 13px 0 8px;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.detail-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.detail-price {
  margin: 24px 0 10px;
  color: var(--primary-strong);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 38px;
  font-weight: 660;
  line-height: 1;
}

.detail-stock {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #245c46;
  background: #e8f8ee;
  font-size: 11px;
  font-weight: 900;
}

.detail-stock.low {
  color: #9d2e42;
  background: #ffedf1;
}

.detail-description-panel {
  margin: 23px 0 16px;
  padding: 17px 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 21px 21px 21px 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface) 72%);
}

.detail-description-panel::after {
  content: "";
  width: 72px;
  height: 72px;
  position: absolute;
  right: -28px;
  top: -32px;
  border: 13px solid color-mix(in srgb, var(--secondary) 12%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.detail-description-panel h2 {
  margin: 4px 0 8px;
  position: relative;
  z-index: 1;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.018em;
}

.detail-description {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.detail-note {
  padding: 13px;
  border: 1px dashed color-mix(in srgb, var(--secondary) 40%, var(--line));
  border-radius: 17px 17px 17px 6px;
  display: flex;
  gap: 10px;
  background: color-mix(in srgb, var(--secondary) 8%, var(--surface));
}

.detail-note > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px 10px 10px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--secondary);
  font-family: "Fredoka Pelangi", sans-serif;
  font-weight: 700;
}

.detail-note p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.detail-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.detail-actions a,
.detail-actions button {
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 15px 15px 15px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.detail-actions a {
  color: #fff;
  background: var(--primary-strong);
}

.detail-actions button {
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--surface-soft);
}

.product-video-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 54px;
  padding: 30px;
  border: 2px solid color-mix(in srgb, var(--primary) 20%, var(--line));
  border-radius: 34px 34px 34px 13px;
  display: grid;
  grid-template-columns: minmax(220px, 0.64fr) minmax(0, 1.36fr);
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at 3% 14%, color-mix(in srgb, var(--secondary) 23%, transparent) 0 12%, transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--primary)) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-small);
}

.product-video-copy {
  position: relative;
  z-index: 1;
}

.product-video-copy h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.product-video-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.product-video-player,
.product-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 26px 26px 26px 9px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 20%, transparent);
}

.product-video-player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.28) 0 7%, transparent 8%),
    linear-gradient(135deg, var(--primary-strong), color-mix(in srgb, var(--secondary) 78%, var(--primary-strong)));
  cursor: pointer;
}

.product-video-player::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 18, 34, 0.48));
  content: "";
}

.video-orbit {
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.video-orbit-one {
  width: 210px;
  height: 210px;
  right: -58px;
  top: -78px;
}

.video-orbit-two {
  width: 96px;
  height: 96px;
  right: 38px;
  top: 36px;
}

.video-play-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px 20px 20px 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px rgba(10, 18, 34, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.video-play-icon i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}

.product-video-player:hover .video-play-icon,
.product-video-player:focus-visible .video-play-icon {
  background: rgba(255, 255, 255, 0.34);
  transform: scale(1.07);
}

.video-play-copy {
  display: grid;
  gap: 3px;
}

.video-play-copy strong {
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 20px;
  font-weight: 650;
}

.video-play-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 750;
}

.detail-loading {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 50px;
}

.detail-loading > div,
.detail-loading i {
  display: block;
  border-radius: 28px;
  background: linear-gradient(100deg, #e8e9e7 25%, #fff 45%, #e8e9e7 65%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.detail-loading > div { min-height: 520px; }
.detail-loading section { display: grid; align-content: start; gap: 15px; }
.detail-loading i:nth-child(1) { height: 55px; }
.detail-loading i:nth-child(2) { height: 100px; }
.detail-loading i:nth-child(3) { height: 48px; }
.detail-loading i:nth-child(4) { height: 170px; }

.related-section {
  margin-bottom: 100px;
}

.related-section h2 {
  margin-bottom: 24px;
}

.detail-sticky {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 30px;
  display: grid;
  place-items: center;
  background: rgba(18, 22, 38, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 90dvh;
  border: 6px solid #fff;
  border-radius: 24px;
  object-fit: contain;
}

.lightbox button {
  position: fixed;
  right: 22px;
  top: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  font-size: 28px;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes art-enter {
  from { opacity: 0; transform: translateX(25px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1050px) {
  .header-shell { gap: 14px; }
  .theme-launcher-label,
  .header-action span,
  .header-logout span,
  .share-button span { display: none; }
  .theme-launcher,
  .header-action,
  .header-logout,
  .share-button { width: 44px; padding: 9px; justify-content: center; }
  .hero { grid-template-columns: 1fr 0.8fr; }
  .hero-copy { padding-left: 46px; }
  .play-rainbow { right: 2px; transform: rotate(5deg) scale(0.86); }
  .play-card { min-width: 195px; }
  .play-card-a { right: 20px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-skeleton { grid-template-columns: repeat(4, 1fr); }
  .category-skeleton i:nth-child(n+5) { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 24px); }
  html { scroll-padding-top: 142px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); font-size: 15px; }
  .site-header .header-shell {
    min-height: auto;
    padding: 9px 0 10px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 15px 15px 15px 6px; box-shadow: 0 6px 0 color-mix(in srgb, var(--primary-strong) 28%, transparent); }
  .brand-mark span { width: 22px; height: 4px; }
  .brand-mark span:nth-child(2) { width: 17px; }
  .brand-mark span:nth-child(3) { width: 12px; }
  .brand-mark::after { width: 12px; height: 12px; }
  .brand-copy small { font-size: 7px; }
  .brand-copy strong { font-size: 21px; }
  .header-tools { margin-left: auto; }
  .theme-launcher,
  .header-action,
  .header-logout,
  .share-button { width: 40px; min-height: 40px; border-radius: 13px; }
  .theme-launcher svg,
  .header-action svg,
  .header-logout svg { width: 21px; }
  .header-search { order: 3; width: 100%; height: 47px; flex-basis: 100%; border-radius: 15px; box-shadow: 0 5px 16px rgba(37, 50, 74, 0.07); }
  .search-suggestions { top: calc(100% + 7px); max-height: min(58vh, 470px); padding: 6px; border-radius: 17px 17px 17px 7px; }
  .search-suggestion-head { padding-inline: 6px; }
  .search-suggestion-head small { display: none; }
  .search-suggestion-item { min-height: 68px; padding: 6px; grid-template-columns: 54px minmax(0, 1fr) 26px; gap: 9px; }
  .search-suggestion-image { width: 54px; height: 54px; }
  .search-suggestion-copy > strong { font-size: 13px; }
  .search-suggestion-copy b { font-size: 11px; }
  .search-suggestion-arrow { width: 26px; height: 26px; }
  .hero {
    min-height: 390px;
    margin: 14px auto 26px;
    border-width: 4px;
    border-radius: 31px 31px 31px 12px;
    display: block;
  }
  .hero-copy { padding: 27px 20px 26px; }
  .hero h1 { max-width: 340px; margin-top: 11px; font-size: clamp(34px, 10vw, 40px); }
  .hero p { max-width: 310px; margin-bottom: 20px; font-size: 13px; line-height: 1.45; }
  .hero-actions { gap: 11px; }
  .hero-button { min-height: 45px; padding: 10px 15px; }
  .hero-note { display: none; }
  .hero-tags { display: none; }
  .hero-art { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
  .play-rainbow { right: -74px; top: auto; bottom: -54px; width: 265px; transform: scale(0.64); transform-origin: center bottom; }
  .play-sun { right: 12px; top: auto; bottom: 42px; transform: scale(0.48); }
  .play-cloud { display: none; }
  .play-card-a,
  .play-card-b,
  .play-block { display: none; }
  .hero-confetti { display: none; }
  .section-heading,
  .catalog-heading { align-items: start; }
  .category-section .section-heading { position: relative; display: block; }
  .category-section .section-heading h2 { padding-right: 62px; font-size: 29px; }
  .category-section .text-button { position: absolute; right: 0; top: -4px; }
  .category-section .text-button .full-label { display: none; }
  .category-section .text-button .short-label { display: inline; }
  .section-heading h2,
  .catalog-heading h2,
  .related-section h2 { font-size: 32px; }
  .section-heading p { font-size: 13px; }
  .text-button { flex: 0 0 auto; padding-inline: 9px; font-size: 12px; }
  .category-section { margin-bottom: 48px; }
  .category-rail { grid-auto-columns: 153px; gap: 11px; margin-right: -12px; padding-right: 12px; }
  .category-card { min-height: 198px; border-radius: 23px 23px 23px 8px; }
  .category-image { height: 113px; }
  .category-copy strong { font-size: 15px; }
  .category-skeleton { grid-template-columns: repeat(3, 1fr); gap: 10px; overflow: hidden; }
  .category-skeleton i { height: 205px; }
  .category-skeleton i:nth-child(n+4) { display: none; }
  .catalog-heading { display: grid; grid-template-columns: 1fr auto; }
  .catalog-heading p { font-size: 12px; }
  .sort-control { align-self: end; }
  .sort-control select { min-width: 138px; max-width: 148px; padding: 9px 28px 9px 10px; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-card { border-radius: 21px 21px 21px 7px; }
  .product-body { padding: 12px 11px 14px; }
  .stock-badge { left: 8px; top: 9px; padding: 5px 7px; font-size: 9px; }
  .product-category { max-width: 100%; font-size: 8px; }
  .product-name { min-height: 39px; margin: 8px 0 11px; font-size: 13px; line-height: 1.38; }
  .product-price { font-size: 19px; }
  .product-code { font-size: 9px; }
  .view-arrow { min-width: 32px; width: 32px; height: 32px; padding: 0; border-radius: 11px 11px 11px 4px; }
  .view-arrow i { display: none; }
  .product-skeleton { height: 300px; }
  .trust-strip { margin-bottom: 54px; grid-template-columns: 1fr; gap: 10px; }
  .trust-strip article { padding: 16px; }
  .site-footer { padding: 55px 0 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand h2 { font-size: 36px; }
  .site-footer > .footer-bottom { margin-top: 34px; display: grid; }
  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    z-index: 120;
    min-height: 62px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
    border-radius: 23px 23px 23px 9px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    box-shadow: 0 16px 42px rgba(28, 32, 52, 0.22);
    backdrop-filter: blur(18px);
  }
  .mobile-nav a,
  .mobile-nav button { min-width: 0; padding: 5px; border: 0; border-radius: 15px; display: grid; place-items: center; gap: 1px; color: inherit; background: transparent; font-size: 9px; font-weight: 850; }
  .mobile-nav a.active { color: #fff; background: var(--primary-strong); }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .category-dialog,
  .theme-dialog { width: 100%; max-width: none; max-height: 87dvh; margin: auto 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 29px 29px 0 0; }
  .dialog-handle { width: 46px; height: 5px; margin: -10px auto 13px; border-radius: 99px; display: block; background: var(--line); }
  .dialog-header,
  .theme-dialog-head { top: -22px; margin: -22px -16px 18px; padding: 20px 16px 16px; }
  .dialog-header h2,
  .theme-dialog h2 { font-size: 27px; }
  .theme-options { grid-template-columns: 1fr; }
  .theme-option { min-height: 94px; grid-template-columns: 62px minmax(0, 1fr) 22px; }
  .theme-preview { width: 58px; height: 62px; }
  .toast { bottom: 86px; }
  .detail-header .header-shell { min-height: auto; padding: 8px 0 10px; flex-wrap: wrap; gap: 8px; }
  .detail-header .header-search { order: 3; width: 100%; height: 47px; max-width: none; flex: 1 0 100%; margin: 0; }
  .detail-header-actions { margin-left: auto; }
  .detail-header .brand-copy small { display: none; }
  .detail-header .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .back-button { width: 40px; height: 40px; flex-basis: 40px; }
  .share-button { min-height: 40px; padding: 8px 11px; }
  .compact-theme { min-height: 40px; width: 40px; }
  .detail-main { margin: 18px auto 38px; }
  .detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .gallery-main { aspect-ratio: 1 / 0.92; border-width: 4px; border-radius: 27px 27px 27px 10px; }
  .gallery-main::after { right: 11px; top: 11px; padding: 5px 8px; font-size: 8px; }
  .gallery-thumbs button { width: 68px; height: 68px; flex-basis: 68px; }
  .detail-copy { position: static; padding: 22px 18px; border-radius: 27px 27px 27px 10px; }
  .detail-copy h1 { font-size: 31px; }
  .detail-price { font-size: 32px; }
  .detail-actions { grid-template-columns: 1fr; }
  .product-video-section { margin-top: 26px; padding: 20px 16px 16px; grid-template-columns: 1fr; gap: 16px; border-radius: 27px 27px 27px 10px; }
  .product-video-copy h2 { font-size: 28px; }
  .product-video-player { min-height: 190px; padding: 18px; border-radius: 22px 22px 22px 8px; }
  .video-play-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 17px 17px 17px 6px; }
  .video-play-copy strong { font-size: 18px; }
  .detail-loading { grid-template-columns: 1fr; gap: 18px; }
  .detail-loading > div { min-height: 360px; }
  .related-section { margin-bottom: 110px; }
  .detail-sticky { position: fixed; left: 10px; right: 10px; bottom: max(9px, env(safe-area-inset-bottom)); z-index: 130; min-height: 66px; padding: 8px 9px 8px 15px; border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 16px 42px rgba(28, 32, 52, 0.24); backdrop-filter: blur(18px); }
  .detail-sticky small { display: block; color: var(--muted); font-size: 9px; }
  .detail-sticky strong { color: var(--primary-strong); font-family: "Fredoka Pelangi", sans-serif; font-size: 19px; }
  .detail-sticky a { min-height: 48px; padding: 11px 16px; border-radius: 15px 15px 15px 6px; display: grid; place-items: center; color: #fff; background: var(--primary-strong); font-weight: 900; }
  .lightbox { padding: 12px; }
  .lightbox button { right: 13px; top: 13px; }
}

@media (max-width: 365px) {
  .hero { min-height: 390px; }
  .hero-note { display: none; }
  .hero h1 { font-size: 34px; }
  .hero p { max-width: 285px; }
  .hero-copy { padding-inline: 18px; }
  .product-grid { gap: 8px; }
  .product-body { padding-inline: 9px; }
  .product-price { font-size: 17px; }
  .catalog-heading { grid-template-columns: 1fr; }
  .sort-control { width: 100%; }
  .sort-control select { width: 100%; max-width: none; }
  .detail-header .brand-copy { display: none; }
  .detail-header .brand { gap: 0; }
  .detail-header .share-button { padding-inline: 9px; font-size: 12px; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  :root { --shell: calc(100% - 24px); }
  .site-header,
  .detail-header { position: relative; }
  .site-header .header-shell { min-height: 66px; flex-wrap: nowrap; padding-block: 7px; }
  .site-header .header-search { order: initial; flex-basis: auto; }
  .detail-header .header-shell { min-height: 66px; flex-wrap: nowrap; padding-block: 7px; }
  .detail-header .header-search { order: initial; width: auto; max-width: 420px; flex: 1 1 280px; margin-inline: auto; }
  .detail-header .brand-copy { display: none; }
  .hero { min-height: 315px; display: grid; grid-template-columns: 1.1fr 0.9fr; }
  .hero-copy { padding: 27px 20px 24px 34px; }
  .hero h1 { font-size: 38px; }
  .hero p { margin-bottom: 18px; font-size: 13px; }
  .hero-note { display: block; }
  .hero-tags { display: none; }
  .hero-art { position: relative; inset: auto; min-height: 315px; }
  .play-rainbow { right: 4px; top: 15px; bottom: auto; width: 330px; transform: scale(0.65); transform-origin: right top; }
  .play-sun { right: 15px; top: 4px; bottom: auto; transform: scale(0.58); }
  .play-card-a { left: auto; right: 18px; bottom: 28px; display: flex; transform: rotate(-3deg) scale(0.66); transform-origin: right bottom; }
  .play-card-b { display: none; }
  .play-block { display: none; }
  .category-dialog,
  .theme-dialog { width: min(780px, calc(100% - 24px)); max-height: 95dvh; margin: auto; border-radius: 25px; }
  .theme-options { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Public taxonomy navigation wraps instead of overflowing narrow phone screens. */
.subcategory-rail{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.subcategory-rail[hidden]{display:none}
.subcategory-rail button{display:flex;align-items:center;gap:8px;max-width:100%;min-height:42px;padding:9px 13px;border:1px solid var(--line,#dbe4df);border-radius:14px;background:var(--surface,#fff);color:var(--ink,#253e37);font:inherit;font-size:.85rem;text-align:left;cursor:pointer}
.subcategory-rail button[aria-pressed=true]{background:var(--primary-strong,#c92f58);color:#fff;border-color:var(--primary-strong,#c92f58)}
.subcategory-rail small{opacity:.78;font-variant-numeric:tabular-nums}
@media(max-width:600px){.subcategory-rail{gap:6px;margin-bottom:16px}.subcategory-rail button{font-size:.8rem;padding:8px 10px;min-height:44px}}

/* Keep the reset action readable under every theme's global button rules. */
.active-filter button{background:transparent;color:var(--primary-strong,#c92f58);border:1px solid currentColor;min-height:36px}

