:root {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --surface-muted: #fafafa;
  --text: #111111;
  --muted: #6f6f6f;
  --border: #e7e7e7;
  --accent: #2f6a57;
  --accent-dark: #224f41;
  --accent-soft: #eef5f1;
  --danger: #d25151;
  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 24px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #202321;
    --surface: #252825;
    --surface-soft: #2b2f2c;
    --surface-muted: #292c2a;
    --text: #f5f5f5;
    --muted: #b2b5b3;
    --border: #383c39;
    --accent: #8fc5b1;
    --accent-dark: #9fd2bf;
    --accent-soft: #17231e;
    --danger: #f07a7a;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Onest", Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

input,
select,
button {
  outline: none;
}

input::placeholder {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 620px) minmax(190px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.brand__logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 22px;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 160ms ease;
}

.search:focus-within {
  border-color: var(--text);
  background: var(--surface);
}

.search__icon {
  position: relative;
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--muted);
}

.search__icon::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search__icon::after {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: center;
}

.search input {
  width: 100%;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 21px;
}

.icon-button:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}

.counter {
  position: absolute;
  top: -1px;
  right: -3px;
  min-width: 19px;
  padding: 2px 5px;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.catalog-bar {
  position: sticky;
  z-index: 20;
  top: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dock-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.dock-toggle:hover,
.dock-toggle.is-collapsed {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.dock-toggle__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.dock-toggle__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dock-toggle__image--open {
  display: none;
}

.dock-toggle[aria-expanded="false"] .dock-toggle__image--close {
  display: none;
}

.dock-toggle[aria-expanded="false"] .dock-toggle__image--open {
  display: block;
}

.catalog-bar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.breadcrumbs strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.filter-button {
  display: none;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
}

.sort-select {
  min-width: 112px;
  min-height: 34px;
  padding: 7px 30px 7px 11px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
}

.category-strip {
  position: sticky;
  z-index: 19;
  top: 120px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

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

.category-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  cursor: pointer;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.category-chip:hover,
.category-chip.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  max-width: 100%;
  min-height: calc(100vh - 169px);
}

.catalog-layout.filters-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-layout.filters-collapsed .filters {
  display: none;
}

.filters {
  position: sticky;
  top: 128px;
  align-self: start;
  height: calc(100vh - 128px);
  padding: 16px 16px 26px;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.filters::-webkit-scrollbar {
  width: 6px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.filters__header {
  display: flex;
  min-height: 28px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.filters__count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.filters__close {
  display: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
}

.filter-group {
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.filter-group h2 {
  margin: 0 0 9px;
  font-size: 13px;
}

.filter-group label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}

.filter-group input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.reset-button {
  width: 100%;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.catalog-content {
  min-width: 0;
  padding: 0;
  background: var(--surface);
}

.home-hero {
  grid-column: 1 / -1;
  padding: 18px 24px 0;
  background: var(--surface);
}

.home-hero__carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-soft);
}

.home-hero__slides {
  position: relative;
  min-height: 198px;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  min-height: 198px;
  padding: 20px 24px 22px;
  visibility: hidden;
  color: #ffffff;
  background-color: var(--slide-b);
  background-image:
    linear-gradient(90deg, rgba(28, 32, 31, 0.58) 0%, rgba(28, 32, 31, 0.42) 28%, rgba(28, 32, 31, 0.18) 56%, rgba(28, 32, 31, 0.24) 100%),
    var(--slide-image),
    linear-gradient(135deg, var(--slide-a), var(--slide-b));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, cover, auto;
  background-position: center center, center center, center center;
  opacity: 0;
  transition: opacity 420ms ease, visibility 420ms ease;
  pointer-events: none;
}

.home-hero__slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.home-hero__slide::after {
  position: absolute;
  right: 22px;
  bottom: 14px;
  content: attr(data-symbol);
  opacity: 0.18;
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
}

.home-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__title {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 12px 0 7px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.02;
}

.home-hero__text {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.home-hero__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 18px;
  cursor: pointer;
  color: #111111;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.home-hero__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px 12px;
  background: var(--surface);
}

.home-hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: color-mix(in srgb, var(--text) 28%, transparent);
  border: 0;
  border-radius: 999px;
  transition: width 180ms ease;
}

.home-hero__dot span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.home-hero__dot.is-active {
  width: 34px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.home-hero__dot.is-active span {
  animation: heroSlideProgress 4200ms linear forwards;
}

@keyframes heroSlideProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 24px 34px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.catalog-heading h1 {
  max-width: 760px;
  margin: 4px 0 0;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: background-color 160ms ease;
  flex-direction: column;
}

.product-card:hover {
  z-index: 1;
  background: var(--surface-muted);
}

.product-card__image {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 0.94;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.product-illustration {
  display: grid;
  width: 43%;
  height: 62%;
  place-items: center;
  color: rgba(30, 47, 38, 0.78);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(30, 47, 38, 0.28);
  border-radius: 30% 30% 22% 22%;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.04), 0 8px 14px rgba(0, 0, 0, 0.08);
  font-size: clamp(20px, 3vw, 35px);
  transform: rotate(-3deg);
}

.product-card:nth-child(even) .product-illustration {
  width: 55%;
  height: 46%;
  border-radius: 48% 48% 30% 30%;
  transform: rotate(3deg);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 1px 8px color-mix(in srgb, var(--surface) 90%, transparent);
}

.favorite-button.is-favorite {
  color: var(--danger);
}

.product-card__body {
  display: flex;
  min-height: 168px;
  padding: 16px 18px 18px;
  flex: 1;
  flex-direction: column;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
}

.product-price {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.add-button:hover {
  background: var(--surface-soft);
}

.add-button.is-added {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-state__icon {
  color: var(--muted);
  font-size: 55px;
}

.empty-state h2 {
  margin-bottom: 5px;
}

.empty-state p {
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

.overlay {
  position: fixed;
  z-index: 49;
  inset: 0;
  visibility: hidden;
  background: rgba(9, 18, 14, 0.44);
  opacity: 0;
  transition: 180ms ease;
}

.overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.product-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: 180ms ease;
}

.product-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.product-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  width: min(900px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.product-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 28px;
}

.product-modal__image {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 76%, var(--image-a) 24%), color-mix(in srgb, var(--surface-muted) 88%, var(--image-b) 12%));
}

.product-modal__image .product-illustration {
  width: 46%;
  height: 56%;
}

.product-modal__content {
  display: flex;
  padding: 40px 34px 32px;
  flex-direction: column;
}

.product-modal__brand,
.product-modal__category {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-modal__content h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.product-modal__description {
  margin: 20px 0 28px;
  color: var(--text);
  line-height: 1.7;
}

.product-modal__footer {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}

.product-modal__price {
  font-size: 26px;
}

@media (max-width: 1200px) and (min-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(300px, 620px) minmax(190px, 1fr);
  }

  .brand__name {
    display: none;
  }
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .catalog-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .catalog-heading,
  .home-hero {
    padding-inline: 28px;
  }
}

@media (max-width: 899px) {
  body {
    padding-bottom: 75px;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 8px 12px;
  }

  .brand {
    justify-self: start;
  }

  .brand__name {
    display: none;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .search {
    min-height: 40px;
    padding: 0 2px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .search:focus-within {
    background: transparent;
    border-color: var(--text);
  }

  .search__icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    margin-right: 9px;
  }

  .header-actions {
    display: none;
  }

  .catalog-bar {
    top: 62px;
    padding: 6px 12px;
  }

  .filter-button {
    display: inline-flex;
  }

  .sort-select {
    min-width: 92px;
    max-width: 118px;
  }

  .category-strip {
    top: 110px;
    padding: 9px 12px;
  }

  .catalog-layout,
  .catalog-layout.filters-collapsed {
    display: block;
  }

  .catalog-layout.filters-collapsed .filters {
    display: block;
  }

  .filters {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 310px);
    height: 100%;
    padding: 16px 14px 24px;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .filters.is-open {
    transform: translateX(0);
  }

  .filters__close {
    display: block;
  }

  .home-hero {
    padding: 12px 12px 0;
  }

  .home-hero__slide {
    min-height: 166px;
    padding: 16px 16px 18px;
  }

  .home-hero__eyebrow {
    padding: 5px 9px;
    font-size: 10px;
  }

  .home-hero__title {
    margin-top: 10px;
    font-size: 25px;
  }

  .home-hero__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-hero__button {
    min-height: 34px;
    margin-top: 10px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .catalog-heading {
    padding: 20px 14px 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card__body {
    min-height: 150px;
    padding: 14px;
  }

  .product-footer {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(18px);
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-nav button {
    position: relative;
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    background: transparent;
    border: 0;
    flex-direction: column;
    font-size: 21px;
  }

  .mobile-nav small {
    font-size: 10px;
  }

  .mobile-counter {
    position: absolute;
    top: 5px;
    left: calc(50% + 8px);
    min-width: 18px;
    padding: 2px 5px;
    color: #ffffff;
    background: var(--danger);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
  }

  .product-modal {
    padding: 0;
  }

  .product-modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .product-modal__image {
    min-height: 280px;
  }

  .product-modal__content {
    padding: 24px 18px 20px;
  }

  .product-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .catalog-bar {
    align-items: center;
  }

  .breadcrumbs {
    max-width: calc(100% - 104px);
  }

  .catalog-heading h1 {
    font-size: 24px;
  }

  .home-hero__title {
    font-size: 26px;
  }

  .product-title {
    font-size: 14px;
  }

  .product-price {
    font-size: 15px;
  }

  .product-meta {
    gap: 6px;
    font-size: 9px;
  }
}


.catalog-layout.page-mode {
  display: block;
}

.app-page {
  min-height: calc(100vh - 124px);
  padding: 30px 34px 48px;
  background: var(--background);
}

.app-page__header {
  max-width: 1120px;
  margin: 0 auto 22px;
}

.app-page__header h1 {
  margin: 4px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.profile-layout,
.cart-layout {
  max-width: 1120px;
  margin: 0 auto;
}

.profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-card,
.profile-stat,
.cart-summary,
.cart-item,
.cart-empty {
  background: var(--surface);
  border: 1px solid var(--border);
}

.profile-card {
  padding: 20px;
  border-radius: 16px;
}

.profile-card--identity {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.profile-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.profile-muted {
  margin: 3px 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-edit,
.profile-link {
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.profile-edit {
  padding: 9px 13px;
}

.profile-link {
  margin-top: 14px;
  padding: 8px 12px;
  font-size: 12px;
}

.profile-edit:hover,
.profile-link:hover {
  background: var(--surface-soft);
}

.profile-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  display: flex;
  min-height: 96px;
  padding: 16px;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
}

.profile-stat strong {
  font-size: 26px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 13px;
}

.profile-status {
  padding: 6px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.cart-items {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 48px 14px 14px;
  border-radius: 14px;
}

.cart-item__image {
  display: grid;
  width: 116px;
  height: 104px;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-item__image .product-illustration {
  width: 48%;
  height: 64%;
  font-size: 20px;
}

.cart-item__content p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cart-item__content h2 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.3;
}

.cart-item__content span {
  color: var(--muted);
  font-size: 12px;
}

.cart-item__price {
  white-space: nowrap;
}

.cart-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
}

.cart-item__remove:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.cart-summary {
  position: sticky;
  top: 142px;
  padding: 20px;
  border-radius: 16px;
}

.cart-summary h2 {
  margin: 0 0 18px;
}

.cart-summary__row,
.cart-summary__total {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cart-summary__row {
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.cart-summary__total {
  padding: 18px 0;
  font-size: 18px;
}

.checkout-button,
.cart-empty button {
  width: 100%;
  min-height: 44px;
  cursor: pointer;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.checkout-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.cart-summary > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.cart-empty {
  display: grid;
  min-height: 320px;
  padding: 34px;
  place-items: center;
  align-content: center;
  border-radius: 16px;
  text-align: center;
}

.cart-empty__icon {
  font-size: 44px;
}

.cart-empty h2 {
  margin: 14px 0 6px;
}

.cart-empty p {
  max-width: 380px;
  margin: 0 0 20px;
  color: var(--muted);
}

.cart-empty button {
  width: auto;
  padding: 0 18px;
}

.mobile-nav button.is-active {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 899px) {
  .app-page {
    min-height: calc(100vh - 178px);
    padding: 22px 14px 92px;
  }

  .app-page__header {
    margin-bottom: 16px;
  }

  .app-page__header h1 {
    font-size: 32px;
  }

  .profile-layout,
  .cart-layout {
    display: block;
  }

  .profile-card,
  .profile-stats,
  .cart-items,
  .cart-summary {
    margin-bottom: 10px;
  }

  .profile-card--identity {
    grid-template-columns: auto 1fr;
  }

  .profile-edit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-stats {
    display: grid;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stat {
    min-height: 74px;
  }

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    padding-right: 38px;
  }

  .cart-item__image {
    width: 84px;
    height: 84px;
  }

  .cart-item__price {
    grid-column: 2;
  }
}


/* V0.2.6: category dock placement and dedicated product page */
.category-strip-top-host:empty,
.category-strip-dock-host:empty {
  display: none;
}

.category-strip.is-in-dock {
  position: static;
  display: grid;
  gap: 4px;
  padding: 4px 0 12px;
  overflow: visible;
  background: transparent;
  border-bottom: 0;
}

.category-strip.is-in-dock .category-chip {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.category-strip.is-in-dock .category-chip:not(.is-active):hover {
  color: var(--text);
  background: var(--surface-soft);
}

.product-page {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 0 46px;
  background: var(--surface);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(340px, 48%) minmax(0, 1fr);
  min-height: 620px;
  border-bottom: 1px solid var(--border);
}

.product-detail__image {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.product-detail__image .product-illustration {
  width: min(280px, 44%);
  height: min(390px, 62%);
}

.product-detail__content {
  display: flex;
  padding: clamp(30px, 5vw, 72px);
  flex-direction: column;
}

.product-detail__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail__meta span + span::before {
  margin-right: 10px;
  content: "·";
}

.product-detail h1 {
  max-width: 720px;
  margin: 14px 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.product-detail__description {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.product-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.product-detail__facts div {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-detail__facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-detail__facts dd {
  margin: 0;
  font-weight: 650;
}

.product-detail__section {
  max-width: 760px;
  margin-top: 25px;
}

.product-detail__section h2 {
  margin: 0 0 7px;
  font-size: 16px;
}

.product-detail__section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-detail__notice {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.product-detail__buy {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px);
  align-items: stretch;
  max-width: 520px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.product-detail__buy strong {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 23px;
  white-space: nowrap;
}

.product-detail__buy button {
  min-height: 50px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  font-weight: 750;
}

.product-detail__buy button:hover,
.product-detail__buy button.is-added {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.similar-section {
  padding-top: 34px;
}

.similar-section__heading {
  padding: 0 28px 20px;
}

.similar-section__heading h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 2.5vw, 36px);
}

.similar-products {
  border-top: 1px solid var(--border);
}

@media (max-width: 899px) {
  .category-strip.is-in-dock {
    top: auto;
  }

  .product-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-detail__image {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .product-detail__image .product-illustration {
    width: min(190px, 42%);
    height: 240px;
  }

  .product-detail__content {
    padding: 26px 18px 32px;
  }

  .product-detail h1 {
    font-size: 34px;
  }

  .product-detail__buy {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .product-detail__facts {
    grid-template-columns: 1fr;
  }

  .product-detail__buy {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .product-detail__buy button {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}


/* V0.2.8: tighter filter dock top edge and no accidental UI text selection */
.filters {
  padding-top: 4px;
}

.filters__header {
  min-height: 22px;
  margin-bottom: 2px;
}

.filters,
.category-strip,
.site-header,
.catalog-bar,
.mobile-nav,
button,
label,
select,
.product-meta,
.product-title,
.product-price,
.product-badge,
.eyebrow,
.breadcrumbs {
  -webkit-user-select: none;
  user-select: none;
}

.search input,
.product-detail__content,
.product-detail__description,
.product-detail__section,
.cart-item__content,
.profile-card__content {
  -webkit-user-select: text;
  user-select: text;
}

@media (max-width: 899px) {
  .filters {
    padding-top: 6px;
  }
}


/* V0.2.9: dock footer, fixed promo height, final top-gap correction */
.filters {
  padding-top: 0;
}

.filters__header {
  min-height: 0;
  margin: 0;
  padding: 7px 0 6px;
  line-height: 1;
}

.filters__count {
  line-height: 1;
}

.dock-links {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.dock-links button {
  width: 100%;
  padding: 7px 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.dock-links button:hover {
  color: var(--text);
}

.dock-links__socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.dock-links__socials button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
}

.dock-links__socials button:hover {
  background: var(--surface-soft);
}

.home-hero__slides {
  height: 198px;
  min-height: 0;
  overflow: hidden;
}

.home-hero__slide,
.home-hero__slide.is-active {
  height: 198px;
  min-height: 0;
}

@media (max-width: 899px) {
  .filters {
    padding-top: 0;
  }

  .filters__header {
    padding-top: 7px;
  }

  .home-hero__slides,
  .home-hero__slide,
  .home-hero__slide.is-active {
    height: 166px;
    min-height: 0;
  }
}


/* V0.2.10: fixed-row filter dock and fixed-row promotional banner */
.filters {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  height: calc(100dvh - 128px);
  padding: 0;
  overflow: hidden;
}

.filters__header {
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.filters__count {
  line-height: 1;
  white-space: nowrap;
}

.filters__scroll {
  min-width: 0;
  min-height: 0;
  padding: 0 16px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.filters__scroll::-webkit-scrollbar {
  width: 6px;
}

.filters__scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.filters__scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.category-strip.is-in-dock {
  gap: 2px;
  padding: 5px 0 8px;
}

.category-strip.is-in-dock .category-chip {
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-group {
  padding: 8px 0;
}

.filter-group h2 {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0;
  white-space: nowrap;
}

.filter-group label {
  min-height: 30px;
  margin: 0;
  white-space: nowrap;
}

.reset-button {
  min-height: 38px;
  padding: 0 10px;
}

.dock-links {
  gap: 0;
  margin-top: 10px;
  padding-top: 8px;
}

.dock-links button {
  min-height: 30px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dock-links__socials {
  margin-top: 6px;
  padding-top: 8px;
}

.dock-links__socials button {
  min-height: 34px;
  padding: 0 6px;
  white-space: nowrap;
}

/* The banner is four measured rows: label, title, description, action. */
.home-hero__slides {
  height: 176px;
  min-height: 176px;
}

.home-hero__slide,
.home-hero__slide.is-active {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 22px 34px 20px 38px;
  align-content: center;
  row-gap: 8px;
  height: 176px;
  min-height: 176px;
  padding: 16px 22px;
}

.home-hero__eyebrow {
  align-self: center;
  width: max-content;
  height: 22px;
  padding: 0 9px;
  align-items: center;
  white-space: nowrap;
}

.home-hero__title {
  align-self: center;
  max-width: calc(100% - 120px);
  margin: 0;
  overflow: hidden;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 34px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-hero__text {
  align-self: center;
  max-width: calc(100% - 120px);
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-hero__button {
  align-self: center;
  justify-self: start;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .filters {
    grid-template-rows: 46px minmax(0, 1fr);
    height: 100dvh;
    padding: 0;
  }

  .filters__header {
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
  }

  .filters__scroll {
    padding: 0 14px calc(24px + env(safe-area-inset-bottom));
  }

  .home-hero__slides {
    height: 156px;
    min-height: 156px;
  }

  .home-hero__slide,
  .home-hero__slide.is-active {
    grid-template-rows: 18px 28px 18px 34px;
    row-gap: 7px;
    height: 156px;
    min-height: 156px;
    padding: 14px 16px;
  }

  .home-hero__eyebrow {
    height: 18px;
    padding: 0 7px;
    font-size: 9px;
  }

  .home-hero__title {
    max-width: calc(100% - 72px);
    margin: 0;
    font-size: clamp(17px, 5.1vw, 21px);
    line-height: 28px;
    white-space: nowrap;
  }

  .home-hero__text {
    display: block;
    max-width: calc(100% - 52px);
    font-size: clamp(10px, 3.1vw, 12px);
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .home-hero__button {
    min-height: 34px;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    font-size: 11px;
  }
}


/* V0.2.11: breakpoint debug, information pages, account checklist and heart parity */
@media (min-width: 900px) {
  .filters {
    top: 120px;
    height: calc(100dvh - 120px);
  }
}

/* Desktop promo gains breathing room; mobile keeps the compact measured layout. */
@media (min-width: 900px) {
  .home-hero__slides {
    height: 200px;
    min-height: 200px;
  }

  .home-hero__slide,
  .home-hero__slide.is-active {
    grid-template-rows: 22px 40px 20px 38px;
    row-gap: 10px;
    height: 200px;
    min-height: 200px;
    padding: 25px 22px;
  }

  .home-hero__title {
    line-height: 40px;
  }
}

/* From 900px upward the filter dock uses the full desktop layout. */

.favorite-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--text);
}

.favorite-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.favorite-button.is-favorite {
  color: var(--danger);
}

.info-page__card {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.info-page__lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

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

.info-page__sections section {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.info-page__sections h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.info-page__sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.info-page__placeholder {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  flex-direction: column;
  font-size: 12px;
}

.checklist-trigger {
  position: relative;
}

.checklist-counter {
  position: absolute;
  top: -2px;
  right: -4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.sheet-backdrop {
  position: fixed;
  z-index: 69;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}

/* V0.2.86: catalog-aware checklist links, regular note weight, a character-limit status, and a left-side whole-list action. */
.checklist-sheet {
  position: fixed;
  z-index: 70;
  bottom: 18px;
  left: 50%;
  display: grid;
  width: min(720px, calc(100% - 32px));
  min-height: 340px;
  max-height: min(70dvh, 620px);
  padding: 16px 20px 18px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 220ms ease;
}

.checklist-sheet.is-open {
  transform: translate(-50%, 0);
}

.checklist-sheet__close {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0;
}

.checklist-sheet__close::before,
.checklist-sheet__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}

.checklist-sheet__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.checklist-sheet__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.checklist-sheet__close:hover,
.checklist-sheet__close:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: transparent;
  outline: none;
}

.checklist-sheet__meta {
  display: grid;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  transform: translateY(-10px);
}

.checklist-sheet__meta > span {
  max-width: 230px;
  overflow: hidden;
  justify-self: center;
  color: var(--muted);
  grid-column: 2;
  font-weight: 400;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-sheet__meta > span[data-tone="warning"] {
  color: var(--accent-selection-text);
}

.checklist-sheet__meta > span[data-tone="success"] {
  color: var(--text);
}

.checklist-sheet__meta button {
  display: inline-flex;
  min-height: 38px;
  max-width: 150px;
  padding: 0 15px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-left: -9px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  grid-column: 1;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.checklist-sheet__meta button:hover,
.checklist-sheet__meta button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: transparent;
  outline: none;
}

.checklist-sheet__meta button:disabled {
  opacity: 0.38;
  cursor: default;
}

.checklist-sheet__meta button:disabled:hover {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.checklist-items {
  display: flex;
  min-height: 0;
  margin: 0;
  padding: 8px 0 10px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  flex-direction: column;
  list-style: none;
  scrollbar-gutter: stable;
}

.checklist-items > :first-child {
  margin-top: auto;
}

.checklist-item {
  display: grid;
  min-height: 50px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) auto;
}

.checklist-item label {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
  cursor: pointer;
}

.checklist-item input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.checklist-item label span {
  font-weight: 400;
  overflow-wrap: anywhere;
}

.checklist-item.is-completed label span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.checklist-item__actions {
  display: flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.checklist-item__link {
  display: inline-flex;
  min-height: 32px;
  max-width: 150px;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
}

.checklist-item__link-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-item__link-arrow {
  flex: 0 0 auto;
  color: var(--accent-selection-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.checklist-item__link:hover,
.checklist-item__link:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: transparent;
  outline: none;
}

.checklist-item__remove {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}

.checklist-item__remove:hover,
.checklist-item__remove:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
}

.checklist-empty {
  margin: auto 0;
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}

.checklist-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.checklist-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.checklist-form input:focus {
  border-color: var(--accent-dark);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.checklist-form button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 12px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.checklist-form button:hover,
.checklist-form button:focus-visible {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 78%, var(--accent-soft) 22%);
  border-color: var(--accent-selection-text);
  outline: none;
}

.checklist-form button:active {
  transform: scale(0.96);
}

body.checklist-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .info-page__card {
    padding: 18px;
  }

  .info-page__sections {
    grid-template-columns: 1fr;
  }

  .checklist-sheet {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    min-height: 300px;
    max-height: min(78dvh, 620px);
    padding: 14px;
    border-radius: 20px;
  }

  .checklist-sheet__meta {
    min-height: 46px;
    transform: translateY(-7px);
  }

  .checklist-sheet__meta > span {
    max-width: 170px;
    font-size: 11px;
  }

  .checklist-sheet__meta button {
    min-height: 36px;
    max-width: 128px;
    margin-left: -3px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .checklist-item__link {
    max-width: 116px;
  }

  .checklist-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
}

@media (max-width: 520px) {
  .checklist-sheet__meta > span {
    max-width: 112px;
    font-size: 10px;
  }

  .checklist-sheet__meta button {
    max-width: 104px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .checklist-item {
    gap: 6px;
  }

  .checklist-item__actions {
    gap: 2px;
  }

  .checklist-item__link {
    max-width: 86px;
    gap: 5px;
    padding-inline: 8px;
  }
}


/* V0.2.12: 900px desktop dock, paused promo hover and checklist interaction polish */
@media (min-width: 900px) {
  .catalog-layout,
  .catalog-layout.filters-collapsed {
    display: grid;
  }

  .catalog-layout.filters-collapsed .filters {
    display: none;
  }

  .filters {
    position: sticky;
    z-index: auto;
    top: 120px;
    bottom: auto;
    left: auto;
    width: auto;
    height: calc(100dvh - 120px);
    border-right: 1px solid var(--border);
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .filters__close,
  .filter-button {
    display: none;
  }
}

.home-hero.is-paused .home-hero__dot.is-active span {
  animation-play-state: paused;
}

.checklist-sheet,
.checklist-sheet button,
.checklist-sheet label,
.checklist-sheet span,
.checklist-sheet li {
  -webkit-user-select: none;
  user-select: none;
}

.checklist-sheet input[type="text"] {
  -webkit-user-select: text;
  user-select: text;
}


/* V0.2.13: supplied brand mark, document checklist icon and tighter controls */
.brand__logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.checklist-doc-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 24px;
  color: currentColor;
  background:
    linear-gradient(currentColor, currentColor) 5px 8px / 9px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 14px / 7px 2px no-repeat;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.checklist-trigger .checklist-doc-icon {
  width: 18px;
  height: 22px;
  border-width: 1.8px;
}

.filter-button {
  display: none !important;
}

.filter-group input[type="checkbox"],
.checklist-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: 0;
  background-color: var(--surface);
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 7px;
}

.filter-group input[type="checkbox"]:checked,
.checklist-item input[type="checkbox"]:checked {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.4 6.35 11.5 12.8 4.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px 13px;
  border-color: var(--accent);
}

.filter-group input[type="checkbox"]:focus-visible,
.checklist-item input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}


.mobile-checklist .checklist-doc-icon {
  width: 20px;
  height: 24px;
}

@media (max-width: 899px) {
  .brand__logo {
    width: 42px;
    height: 42px;
  }

}

/* V0.2.14: smaller brand mark, viewport-aware dock height and refined checklist icon */
.brand__logo {
  width: 40px;
  height: 40px;
}

.reset-button {
  border-width: 2px;
}

.checklist-doc-icon {
  background: none;
}

.checklist-doc-icon::before,
.checklist-doc-icon::after {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.checklist-doc-icon::before {
  top: 8px;
}

.checklist-doc-icon::after {
  top: 14px;
}

@media (min-width: 900px) {
  .filters {
    height: calc(100dvh - var(--filter-viewport-top, 120px));
  }
}

@media (max-width: 899px) {
  .brand__logo {
    width: 38px;
    height: 38px;
  }
}

/* V0.2.15: explicit theme and language controls in the filter dock */
html[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --surface-muted: #fafafa;
  --text: #111111;
  --muted: #6f6f6f;
  --border: #e7e7e7;
  --accent: #2f6a57;
  --accent-dark: #224f41;
  --accent-soft: #eef5f1;
  --danger: #d25151;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #202321;
  --surface: #252825;
  --surface-soft: #2b2f2c;
  --surface-muted: #292c2a;
  --text: #f5f5f5;
  --muted: #b2b5b3;
  --border: #383c39;
  --accent: #8fc5b1;
  --accent-dark: #9fd2bf;
  --accent-soft: #273831;
  --danger: #f07a7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dock-preferences {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  -webkit-user-select: none;
  user-select: none;
}

.dock-preference {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dock-preference__label {
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.dock-radio-list {
  display: grid;
  gap: 0;
}

.dock-radio-option {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 32px;
  margin: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}


/* V0.2.16: unified aqua accents, tighter card controls and top-positioned hero */
html[data-theme="light"] {
  --accent: #97d2cf;
  --accent-dark: #4f8e8a;
  --accent-soft: #dff1f0;
  --accent-contrast: #153331;
}

html[data-theme="dark"] {
  --accent: #72b3af;
  --accent-dark: #8cc8c4;
  --accent-soft: #304846;
  --accent-contrast: #102927;
}

/* Selected catalog states share the same accent fill. */
.category-chip.is-active,
.category-chip:hover,
.category-strip.is-in-dock .category-chip.is-active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.product-badge {
  top: 12px;
  left: 12px;
  color: var(--accent-contrast);
  background: var(--accent);
}

/* Heart and badge now use the same visual inset from the card frame. */
.favorite-button {
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
}

.favorite-icon {
  width: 24px;
  height: 24px;
}

.favorite-button.is-favorite {
  color: var(--accent-dark);
}

/* Price/add controls use the same practical radius as the dock reset control. */
.product-footer,
.reset-button {
  border-radius: 8px;
}

.add-button.is-added,
.home-hero__button:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
}

/* Native selected controls follow the unified palette. */
.filter-group input,
.checklist-item input {
  accent-color: var(--accent);
}

.filter-group input[type="checkbox"]:checked,
.checklist-item input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
}

/* Social controls use the same 2px outline as the main dock action. */
.dock-links__socials button {
  border-width: 2px;
}

/* The home banner belongs directly below logo/search, before catalog controls. */
.home-hero--top {
  display: block;
  width: 100%;
  padding: 14px 24px 0;
  background: var(--surface);
}

.home-hero--top[hidden] {
  display: none;
}

@media (max-width: 1040px) {
  .home-hero--top {
    padding-inline: 20px;
  }
}

@media (max-width: 899px) {
  .home-hero--top {
    padding: 10px 12px 0;
  }
}


/* V0.2.17: smaller grid favorites and inset custom sort chevron */
.favorite-button {
  width: 20px;
  height: 20px;
}

.favorite-icon {
  width: 20px;
  height: 20px;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M2 1.5L7 6.5L12 1.5' stroke='%236F7775' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 8px;
}


/* V0.2.18: progressive product rendering and banner dots inside the artwork */
.catalog-lazy-sentinel {
  width: 100%;
  height: 1px;
  background: var(--surface);
  pointer-events: none;
}

.catalog-lazy-sentinel[hidden] {
  display: none;
}

/* Remove the separate dots strip and overlay navigation on the banner itself. */
.home-hero__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 10px;
  gap: 8px;
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

.home-hero__dot {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.home-hero__dot.is-active {
  background: rgba(255, 255, 255, 0.3);
}

.home-hero__dot span {
  background: var(--accent);
}

@media (max-width: 899px) {
  .home-hero__dots {
    bottom: 8px;
  }
}


/* V0.2.19: breadcrumb product navigation and page-preserving dock */
.breadcrumbs #breadcrumbCategory {
  overflow: hidden;
  color: var(--text);
  font-weight: 750;
  text-overflow: ellipsis;
}

.breadcrumbs #breadcrumbCategory:hover {
  color: var(--accent-dark);
}

#breadcrumbProduct {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.product-detail h1 {
  max-width: 720px;
  margin: 12px 0 14px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

@media (min-width: 900px) {
  .catalog-layout.page-mode {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .catalog-layout.page-mode.filters-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-layout.page-mode .filters {
    display: grid;
  }

  .catalog-layout.page-mode.filters-collapsed .filters {
    display: none;
  }

  .catalog-layout.page-mode .app-page {
    grid-column: 2;
    min-width: 0;
  }

  .catalog-layout.page-mode.filters-collapsed .app-page {
    grid-column: 1;
  }
}

@media (max-width: 899px) {
  .product-detail h1 {
    font-size: 26px;
  }
}


/* V0.2.20: full product page, viewport gallery and structured commerce blocks */
body[data-view="product"] .catalog-layout.page-mode {
  display: block;
}

body[data-view="product"] .filters,
body[data-view="product"] .category-strip,
body[data-view="product"] .dock-toggle {
  display: none !important;
}

body[data-view="product"] .product-page {
  width: 100%;
  padding-bottom: 56px;
  background: var(--background);
}

.product-section-tabs {
  position: sticky;
  z-index: 15;
  top: 128px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.product-section-tabs::-webkit-scrollbar {
  display: none;
}

.product-section-tabs a {
  flex: 0 0 auto;
  padding: 15px 0 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.product-section-tabs a:first-child,
.product-section-tabs a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.product-overview {
  display: grid;
  grid-template-columns: minmax(480px, 54%) minmax(360px, 46%);
  align-items: start;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.product-gallery {
  position: sticky;
  top: 178px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-self: start;
  height: min(720px, calc(100dvh - 194px));
  min-height: 470px;
  padding: 16px 18px 18px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  flex-direction: column;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 86%, var(--image-a) 14%), color-mix(in srgb, var(--surface) 88%, var(--image-b) 12%));
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-gallery__thumb.is-active {
  border: 2px solid var(--accent-dark);
}

.product-gallery__stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.product-detail__image {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 89%, var(--image-a) 11%), color-mix(in srgb, var(--surface) 91%, var(--image-b) 9%));
  border: 0;
}

.product-gallery__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.product-gallery__arrow:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.product-gallery__arrow--prev { left: 14px; }
.product-gallery__arrow--next { right: 14px; }

.product-gallery__count {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.product-gallery-art {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.product-gallery-art--front .product-illustration {
  width: min(290px, 42%);
  height: min(430px, 62%);
  font-size: clamp(32px, 4vw, 56px);
}

.product-gallery-art.is-thumbnail .product-illustration {
  width: 34px;
  height: 44px;
  border-width: 1px;
  border-radius: 12px 12px 9px 9px;
  font-size: 11px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.04);
}

.product-gallery-package {
  display: grid;
  width: min(310px, 48%);
  min-height: 360px;
  padding: 42px 26px;
  place-items: center;
  color: rgba(35, 55, 47, 0.86);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 28px 28px 20px 20px;
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, 0.04), 0 18px 36px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.product-gallery-package span { font-size: 48px; }
.product-gallery-package strong { font-size: 28px; text-transform: uppercase; }
.product-gallery-package small { color: #64716b; font-weight: 700; }

.product-gallery-art.is-thumbnail .product-gallery-package {
  width: 36px;
  min-height: 46px;
  padding: 5px 3px;
  border-width: 1px;
  border-radius: 9px;
}

.product-gallery-art.is-thumbnail .product-gallery-package span { font-size: 11px; }
.product-gallery-art.is-thumbnail .product-gallery-package strong { font-size: 5px; }
.product-gallery-art.is-thumbnail .product-gallery-package small { display: none; }

.product-gallery-art--texture {
  gap: 16px;
  align-content: center;
}

.product-gallery-texture-disc {
  display: grid;
  width: min(330px, 52%);
  aspect-ratio: 1;
  place-items: center;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.96), rgba(255,255,255,.62) 48%, color-mix(in srgb, var(--image-b) 42%, #fff));
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  font-size: 58px;
}

.product-gallery-art--texture > small {
  color: var(--muted);
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-gallery-art.is-thumbnail .product-gallery-texture-disc {
  width: 39px;
  font-size: 13px;
  box-shadow: none;
}

.product-gallery-art.is-thumbnail > small { display: none; }

.product-gallery-art--set {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.product-gallery-mini {
  display: grid;
  width: 22%;
  height: 48%;
  place-items: center;
  color: rgba(35,55,47,.82);
  background: rgba(255,255,255,.9);
  border: 2px solid rgba(35,55,47,.2);
  border-radius: 24px 24px 16px 16px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.04), 0 12px 24px rgba(0,0,0,.07);
  font-size: 30px;
}

.product-gallery-mini--one { height: 42%; transform: translateY(14px) rotate(-5deg); }
.product-gallery-mini--three { height: 42%; transform: translateY(14px) rotate(5deg); }

.product-gallery-art.is-thumbnail .product-gallery-mini {
  width: 14px;
  height: 34px;
  border-width: 1px;
  border-radius: 6px;
  font-size: 6px;
  box-shadow: none;
}

.product-summary {
  display: flex;
  gap: 20px;
  min-width: 0;
  padding: clamp(28px, 4vw, 54px);
  flex-direction: column;
  background: var(--surface);
}

.product-summary h1 {
  max-width: 720px;
  margin: -4px 0 -2px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

.product-detail__description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-identity {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, .8fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-identity > * {
  min-height: 64px;
  padding: 11px 14px;
  border-right: 1px solid var(--border);
}

.product-identity > *:last-child { border-right: 0; }

.product-identity span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-identity strong { font-size: 13px; }

.product-utility-button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.product-utility-button:hover,
.product-utility-button.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.product-utility-button__icon,
.product-utility-button__icon .favorite-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.compare-icon {
  position: relative;
  width: 20px;
  height: 18px;
}

.compare-icon::before,
.compare-icon::after {
  position: absolute;
  bottom: 1px;
  width: 6px;
  content: "";
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.compare-icon::before { left: 1px; height: 10px; }
.compare-icon::after { right: 1px; height: 16px; }

.product-variant {
  display: grid;
  gap: 10px;
}

.product-variant__heading {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.product-variant__heading span { color: var(--muted); }

.product-variant__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-variant__options button {
  min-height: 40px;
  padding: 0 15px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 650;
}

.product-variant__options button:hover,
.product-variant__options button.is-active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.product-purchase {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.product-purchase__availability {
  display: flex;
  gap: 3px;
  padding: 13px 16px;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.product-purchase__availability span {
  color: var(--accent-dark);
  font-weight: 800;
}

.product-purchase__availability small { color: var(--muted); }

.product-purchase__price-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.product-purchase__price-row > strong {
  font-size: 30px;
  white-space: nowrap;
}

.product-purchase__price-row button {
  min-height: 48px;
  cursor: pointer;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.product-purchase__price-row button:hover,
.product-purchase__price-row button.is-added {
  background: var(--accent-dark);
  color: #fff;
}

.product-promotion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: 12px;
}

.product-promotion > span {
  padding: 6px 9px;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-promotion h2 { margin: 0 0 3px; font-size: 15px; }
.product-promotion p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.product-promotion > strong { font-size: 23px; }

.product-service-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.product-service-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.product-service-list article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 8px;
}

.product-service-list strong { font-size: 13px; }
.product-service-list p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.product-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 28px;
  background: var(--background);
}

.product-content-main,
.product-content-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.product-content-card,
.product-brand-card,
.product-store-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.product-content-card > h2,
.product-brand-card h2,
.product-store-card h2 {
  margin: 4px 0 16px;
  font-size: 24px;
}

.product-content-card__lead,
.product-brand-card p,
.product-store-card p {
  color: var(--muted);
  line-height: 1.65;
}


.product-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.product-brand-card button,
.product-together-section__total button {
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 750;
}

.product-store-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product-store-card li::before {
  margin-right: 8px;
  color: var(--accent-dark);
  content: "✓";
  font-weight: 900;
}

.product-reviews__heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product-reviews__score {
  display: grid;
  justify-items: end;
}

.product-reviews__score > strong { font-size: 30px; }
.product-reviews__score > span { color: #e8a20b; letter-spacing: 2px; }
.product-reviews__score > small { color: var(--muted); }

.product-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-review-list article {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-review-list span { float: right; color: #e8a20b; }
.product-review-list p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }

.product-together-section {
  padding: 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-together-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.product-together-section__heading h2 { margin: 4px 0 0; font-size: 28px; }

.product-together-section__total {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 12px;
  align-items: center;
}

.product-together-section__total span { color: var(--muted); }
.product-together-section__total strong { font-size: 23px; }

.product-together-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.product-together-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-together-item__image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 86%, var(--image-a) 14%), color-mix(in srgb, var(--surface) 88%, var(--image-b) 12%));
  border-radius: 10px;
}

.product-together-item__image .product-illustration {
  width: 52px;
  height: 70px;
  border-width: 1px;
  border-radius: 15px 15px 10px 10px;
  font-size: 14px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.04);
}

.product-together-item > div:last-of-type {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-together-item span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.product-together-item strong { font-size: 14px; line-height: 1.35; }
.product-together-item b { font-size: 17px; }
.product-together-item i { position: absolute; top: 50%; right: -12px; z-index: 2; display: grid; width: 24px; height: 24px; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; font-style: normal; transform: translateY(-50%); }

@media (max-width: 1180px) {
  .product-overview { grid-template-columns: minmax(400px, 50%) minmax(340px, 50%); }
  .product-gallery { grid-template-columns: 64px minmax(0,1fr); padding-inline: 12px; }
  .product-gallery__thumb { width: 56px; height: 56px; flex-basis: 56px; }
  .product-summary { padding: 28px; }
  .product-identity { grid-template-columns: 1fr 1fr; }
  .product-identity > * { border-bottom: 1px solid var(--border); }
  .product-identity > *:nth-child(2) { border-right: 0; }
  .product-identity > *:nth-last-child(-n+2) { border-bottom: 0; }
  .product-content-layout { grid-template-columns: 1fr; }
  .product-content-aside { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 899px) {
  .product-section-tabs { top: 120px; padding-inline: 14px; }
  .product-overview { grid-template-columns: 1fr; }
  .product-gallery {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .product-gallery__stage { height: min(520px, 64dvh); min-height: 350px; grid-row: 1; }
  .product-gallery__thumbs { grid-row: 2; overflow-x: auto; overflow-y: hidden; flex-direction: row; }
  .product-gallery__thumb { flex: 0 0 60px; width: 60px; height: 60px; }
  .product-summary { padding: 24px 16px 30px; }
  .product-summary h1 { font-size: 26px; }
  .product-content-layout { padding: 16px; }
  .product-content-aside { grid-template-columns: 1fr; }
  .product-together-section { padding: 22px 16px; }
  .product-together-section__heading { align-items: start; flex-direction: column; }
  .product-together-section__total { grid-template-columns: auto auto; }
  .product-together-section__total button { grid-column: 1 / -1; }
  .product-together-products { grid-template-columns: 1fr; }
  .product-together-item i { right: auto; bottom: -12px; top: auto; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .product-section-tabs { gap: 18px; }
  .product-identity { grid-template-columns: 1fr 1fr; }
  .product-purchase__price-row { grid-template-columns: 1fr; }
  .product-promotion { grid-template-columns: auto minmax(0,1fr); }
  .product-promotion > strong { grid-column: 2; }
  .product-detail__facts,
  .product-review-list { grid-template-columns: 1fr; }
  .product-content-card,
  .product-brand-card,
  .product-store-card { padding: 18px; }
  .product-reviews__heading { flex-direction: column; }
  .product-reviews__score { justify-items: start; }
}

/* V0.2.21: product top-bar cleanup, frosted glass top rails, centered gallery arrows */
.category-strip-top-host,
.category-strip-dock-host {
  min-height: 0;
  font-size: 0;
  line-height: 0;
}

.category-strip-top-host:empty,
.category-strip-dock-host:empty,
.category-strip-top-host:not(:has(> .category-strip)),
.category-strip-dock-host:not(:has(> .category-strip)) {
  display: none;
}

body[data-view="product"] .category-strip-top-host,
body[data-view="product"] .category-strip-dock-host {
  display: none !important;
}

.site-header,
.catalog-bar,
.category-strip,
.product-section-tabs {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

body[data-view="product"] .catalog-bar,
body[data-view="product"] .product-section-tabs {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.product-section-tabs {
  margin-top: 0;
}

.product-gallery__arrow {
  font-size: 0;
}

.product-gallery__arrow::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.product-gallery__arrow--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.product-gallery__arrow--next::before {
  transform: translateX(-2px) rotate(45deg);
}

@media (max-width: 899px) {
  .site-header,
  .catalog-bar,
  .category-strip,
  .product-section-tabs {
    background: color-mix(in srgb, var(--surface) 84%, transparent);
  }

  body[data-view="product"] .catalog-bar,
  body[data-view="product"] .product-section-tabs {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
  }
}

/* V0.2.22: unified frosted product top panel */
body[data-view="product"]::before {
  content: "";
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  left: 0;
  height: 186px;
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .site-header,
body[data-view="product"] .catalog-bar,
body[data-view="product"] .product-section-tabs {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-view="product"] .site-header {
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .catalog-bar {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .product-section-tabs {
  top: 130px;
  padding-top: 0;
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .product-section-tabs a {
  position: relative;
}

body[data-view="product"] .product-overview {
  position: relative;
  z-index: 1;
}

@media (max-width: 899px) {
  body[data-view="product"]::before {
    height: 174px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
  }

  body[data-view="product"] .catalog-bar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body[data-view="product"] .product-section-tabs {
    top: 122px;
  }
}

/* V0.2.23: slimmer equal product rails and single content divider */
body[data-view="product"] {
  --product-main-header-height: 72px;
  --product-rail-height: 44px;
  --product-top-panel-height: calc(
    var(--product-main-header-height) + var(--product-rail-height) * 2
  );
}

body[data-view="product"]::before {
  height: var(--product-top-panel-height);
  border-bottom: 0;
}

body[data-view="product"] .catalog-bar {
  height: var(--product-rail-height);
  min-height: var(--product-rail-height);
  padding-top: 0;
  padding-bottom: 0;
}

body[data-view="product"] .product-section-tabs {
  top: calc(
    var(--product-main-header-height) + var(--product-rail-height)
  );
  height: var(--product-rail-height);
  min-height: var(--product-rail-height);
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

body[data-view="product"] .product-section-tabs a {
  display: flex;
  height: var(--product-rail-height);
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

body[data-view="product"] .product-gallery {
  top: var(--product-top-panel-height);
  height: min(
    720px,
    calc(100dvh - var(--product-top-panel-height))
  );
}

/* The tabs' bottom border is the only line before product content. */
body[data-view="product"] .product-overview,
body[data-view="product"] .product-gallery,
body[data-view="product"] .product-summary {
  border-top: 0;
}

@media (max-width: 899px) {
  body[data-view="product"] {
    --product-main-header-height: 62px;
    --product-rail-height: 42px;
  }

  body[data-view="product"]::before {
    height: var(--product-top-panel-height);
  }

  body[data-view="product"] .catalog-bar {
    height: var(--product-rail-height);
    min-height: var(--product-rail-height);
    padding-top: 0;
    padding-bottom: 0;
  }

  body[data-view="product"] .product-section-tabs {
    top: calc(
      var(--product-main-header-height) + var(--product-rail-height)
    );
    height: var(--product-rail-height);
    min-height: var(--product-rail-height);
  }

  body[data-view="product"] .product-section-tabs a {
    height: var(--product-rail-height);
  }
}


/* V0.2.24: product breadcrumb accent, tab scroll-state, centered gallery arrows */
#breadcrumbProduct {
  color: var(--accent-dark);
  font-weight: 760;
}

.product-section-tabs a:first-child {
  color: var(--muted);
  border-bottom-color: transparent;
}

.product-section-tabs a.is-active,
.product-section-tabs a[aria-current="true"],
.product-section-tabs a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

#productAbout,
#productSpecs,
#productReviews,
#productTogether {
  scroll-margin-top: 190px;
}

.product-gallery__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: 0;
}

.product-gallery__arrow--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.product-gallery__arrow--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

@media (max-width: 899px) {
  #productAbout,
  #productSpecs,
  #productReviews,
  #productTogether {
    scroll-margin-top: 176px;
  }
}

/* V0.2.25: sync catalog breadcrumb row and category row heights */
.catalog-bar {
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.category-strip {
  top: 116px;
  align-items: center;
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.category-chip {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.1;
}

@media (max-width: 899px) {
  .catalog-bar {
    top: 62px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .category-strip {
    top: 104px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .category-chip {
    min-height: 28px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}


/* V0.2.26: frosted search/breadcrumb block, taller desktop banner, product dock return */
.site-header,
.catalog-bar {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.catalog-bar {
  border-bottom: 1px solid var(--border);
}

.catalog-content > .home-hero {
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.catalog-content > .home-hero .home-hero__carousel {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.catalog-content > .home-hero .home-hero__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  z-index: 2;
  padding: 0 16px;
  background: transparent;
}

.catalog-content > .home-hero .home-hero__dot {
  background: rgba(255, 255, 255, 0.34);
}

.catalog-content > .home-hero .home-hero__slides {
  min-height: 198px;
}

.catalog-content > .home-hero .home-hero__slide {
  min-height: 198px;
  padding-bottom: 42px;
}

@media (min-width: 900px) {
  .catalog-content > .home-hero .home-hero__slides {
    min-height: 348px;
  }

  .catalog-content > .home-hero .home-hero__slide {
    min-height: 348px;
    padding: 26px 28px 52px;
  }
}

.product-gallery__arrow {
  font-size: 0;
}

.product-gallery__arrow::before {
  width: 7px;
  height: 7px;
  border-top-width: 0;
  border-left-width: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.product-gallery__arrow--prev::before {
  transform: translate(-42%, -50%) rotate(135deg);
}

.product-gallery__arrow--next::before {
  transform: translate(-58%, -50%) rotate(-45deg);
}

body[data-view="product"] .filters {
  display: block !important;
}

body[data-view="product"] .dock-toggle {
  display: grid !important;
}

body[data-view="product"] .catalog-bar__actions {
  display: none;
}

body[data-view="product"] .catalog-bar {
  grid-template-columns: auto minmax(0, 1fr);
}

body[data-view="product"] .catalog-layout.page-mode.filters-collapsed .filters {
  display: none !important;
}

@media (min-width: 900px) {
  body[data-view="product"] .catalog-layout.page-mode {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
  }

  body[data-view="product"] .catalog-layout.page-mode.filters-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="product"] .catalog-layout.page-mode .product-page {
    grid-column: 2;
  }

  body[data-view="product"] .catalog-layout.page-mode.filters-collapsed .product-page {
    grid-column: 1;
  }
}


/* V0.2.27: hero-dot alignment and more unified frosted top bars */
.site-header,
.catalog-bar {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.site-header {
  position: sticky;
  border-bottom: 0;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--border);
}

.catalog-bar {
  position: sticky;
  margin-top: -1px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-content > .home-hero {
  border-bottom: 0;
}

.catalog-content > .home-hero .home-hero__dots {
  left: 0;
  right: 0;
  width: 100%;
  justify-content: center;
  transform: none;
}

.catalog-content > .home-hero .home-hero__carousel {
  border-bottom: 0;
}

.catalog-content > .home-hero .home-hero__slides {
  overflow: hidden;
}

/* V0.2.28: remove catalog-only filter blocks from dock on product/cart/profile/info views */
body[data-view="product"] .filters__count,
body[data-view="cart"] .filters__count,
body[data-view="profile"] .filters__count,
body[data-view="info"] .filters__count,
body[data-view="product"] .category-strip-dock-host,
body[data-view="cart"] .category-strip-dock-host,
body[data-view="profile"] .category-strip-dock-host,
body[data-view="info"] .category-strip-dock-host,
body[data-view="product"] .filter-group,
body[data-view="cart"] .filter-group,
body[data-view="profile"] .filter-group,
body[data-view="info"] .filter-group,
body[data-view="product"] .reset-button,
body[data-view="cart"] .reset-button,
body[data-view="profile"] .reset-button,
body[data-view="info"] .reset-button {
  display: none !important;
}

body[data-view="product"] .filters__header,
body[data-view="cart"] .filters__header,
body[data-view="profile"] .filters__header,
body[data-view="info"] .filters__header {
  min-height: 0;
  margin-bottom: 0;
  justify-content: flex-end;
}

body[data-view="product"] .dock-preferences,
body[data-view="cart"] .dock-preferences,
body[data-view="profile"] .dock-preferences,
body[data-view="info"] .dock-preferences {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* V0.2.29: unified two-rail frosted top sheet for catalog/cart/profile/info */
body[data-view="catalog"],
body[data-view="cart"],
body[data-view="profile"],
body[data-view="info"] {
  --two-rail-main-header-height: 72px;
  --two-rail-sub-header-height: 44px;
  --two-rail-total-height: calc(
    var(--two-rail-main-header-height) + var(--two-rail-sub-header-height)
  );
}

body[data-view="catalog"]::before,
body[data-view="cart"]::before,
body[data-view="profile"]::before,
body[data-view="info"]::before {
  content: "";
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  left: 0;
  height: var(--two-rail-total-height);
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  border-bottom: 0;
}

body[data-view="catalog"] .site-header,
body[data-view="catalog"] .catalog-bar,
body[data-view="cart"] .site-header,
body[data-view="cart"] .catalog-bar,
body[data-view="profile"] .site-header,
body[data-view="profile"] .catalog-bar,
body[data-view="info"] .site-header,
body[data-view="info"] .catalog-bar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-view="catalog"] .site-header,
body[data-view="cart"] .site-header,
body[data-view="profile"] .site-header,
body[data-view="info"] .site-header {
  min-height: var(--two-rail-main-header-height);
  border-bottom: 1px solid var(--border);
}

body[data-view="catalog"] .site-header::after,
body[data-view="cart"] .site-header::after,
body[data-view="profile"] .site-header::after,
body[data-view="info"] .site-header::after {
  display: none;
}

body[data-view="catalog"] .catalog-bar,
body[data-view="cart"] .catalog-bar,
body[data-view="profile"] .catalog-bar,
body[data-view="info"] .catalog-bar {
  top: var(--two-rail-main-header-height);
  height: var(--two-rail-sub-header-height);
  min-height: var(--two-rail-sub-header-height);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 899px) {
  body[data-view="catalog"],
  body[data-view="cart"],
  body[data-view="profile"],
  body[data-view="info"] {
    --two-rail-main-header-height: 62px;
    --two-rail-sub-header-height: 42px;
  }

  body[data-view="catalog"]::before,
  body[data-view="cart"]::before,
  body[data-view="profile"]::before,
  body[data-view="info"]::before {
    height: var(--two-rail-total-height);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
  }

  body[data-view="catalog"] .catalog-bar,
  body[data-view="cart"] .catalog-bar,
  body[data-view="profile"] .catalog-bar,
  body[data-view="info"] .catalog-bar {
    top: var(--two-rail-main-header-height);
    height: var(--two-rail-sub-header-height);
    min-height: var(--two-rail-sub-header-height);
  }
}

/* V0.2.30: compact navigation-first dock and single-pixel top rails */
body[data-view="product"] .category-strip-dock-host:has(> .category-strip),
body[data-view="cart"] .category-strip-dock-host:has(> .category-strip),
body[data-view="profile"] .category-strip-dock-host:has(> .category-strip),
body[data-view="info"] .category-strip-dock-host:has(> .category-strip) {
  display: block !important;
}

body[data-view="product"] .category-strip.is-in-dock,
body[data-view="cart"] .category-strip.is-in-dock,
body[data-view="profile"] .category-strip.is-in-dock,
body[data-view="info"] .category-strip.is-in-dock {
  display: grid !important;
}

body[data-view="product"] .filters,
body[data-view="cart"] .filters,
body[data-view="profile"] .filters,
body[data-view="info"] .filters {
  grid-template-rows: minmax(0, 1fr);
}

body[data-view="product"] .filters__header,
body[data-view="cart"] .filters__header,
body[data-view="profile"] .filters__header,
body[data-view="info"] .filters__header {
  display: none;
}

body[data-view="product"] .filters__scroll,
body[data-view="cart"] .filters__scroll,
body[data-view="profile"] .filters__scroll,
body[data-view="info"] .filters__scroll {
  padding-top: 0;
}

body[data-view="product"] .category-strip.is-in-dock,
body[data-view="cart"] .category-strip.is-in-dock,
body[data-view="profile"] .category-strip.is-in-dock,
body[data-view="info"] .category-strip.is-in-dock {
  padding-top: 6px;
  padding-bottom: 10px;
}

body[data-view="product"] .dock-preferences,
body[data-view="cart"] .dock-preferences,
body[data-view="profile"] .dock-preferences,
body[data-view="info"] .dock-preferences {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* One real divider per rail: remove stacked pseudo/border lines everywhere. */
.site-header::after {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid var(--border) !important;
}

.catalog-bar {
  margin-top: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--border) !important;
}

body[data-view="product"] .product-section-tabs {
  margin-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .catalog-layout.page-mode,
body[data-view="product"] .product-page {
  margin-top: 0;
}

/* V0.2.31: compact product gallery without thumbnail rail */
.product-gallery {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.product-gallery__thumbs {
  display: none !important;
}

.product-gallery__stage {
  grid-column: 1;
  grid-row: 1;
}

@media (max-width: 1180px) {
  .product-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  .product-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery__stage {
    grid-row: 1;
  }
}

/* V0.2.32: authoritative top-row and dock geometry cleanup */
body {
  --tm-main-rail: 72px;
  --tm-sub-rail: 44px;
  --tm-category-rail: 44px;
  --tm-top-two-rails: calc(var(--tm-main-rail) + var(--tm-sub-rail));
  --tm-product-top: calc(
    var(--tm-main-rail) + var(--tm-sub-rail) + var(--tm-category-rail)
  );
}

.site-header {
  height: var(--tm-main-rail) !important;
  min-height: var(--tm-main-rail) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.catalog-bar {
  top: var(--tm-main-rail) !important;
  height: var(--tm-sub-rail) !important;
  min-height: var(--tm-sub-rail) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Exactly one shared frosted sheet for the two permanent rows. */
body[data-view="catalog"]::before,
body[data-view="cart"]::before,
body[data-view="profile"]::before,
body[data-view="info"]::before {
  height: var(--tm-top-two-rails) !important;
}

/* Top category row exists only when the desktop catalog dock is collapsed. */
.category-strip-top-host {
  display: none;
  min-height: 0;
}

body[data-view="catalog"][data-dock="closed"] .category-strip-top-host.is-active {
  display: block;
  height: var(--tm-category-rail);
  min-height: var(--tm-category-rail);
}

body[data-dock="open"] .category-strip-top-host {
  display: none !important;
}

.category-strip:not(.is-in-dock) {
  position: sticky;
  z-index: 19;
  top: var(--tm-top-two-rails) !important;
  height: var(--tm-category-rail);
  min-height: var(--tm-category-rail);
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

/* Dock host is the only valid category location while the dock is open. */
.category-strip-dock-host {
  display: none;
  min-height: 0;
}

body[data-dock="open"] .category-strip-dock-host.is-active {
  display: block !important;
}

body[data-dock="closed"] .category-strip-dock-host {
  display: none !important;
}

.category-strip.is-in-dock {
  position: static !important;
  top: auto !important;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Desktop dock: one fixed header row + one independent scroll area. */
@media (min-width: 900px) {
  .filters {
    top: var(--tm-top-two-rails) !important;
    height: calc(100dvh - var(--tm-top-two-rails)) !important;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr);
    padding: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="product"] .filters {
    top: var(--tm-product-top) !important;
    height: calc(100dvh - var(--tm-product-top)) !important;
    grid-template-rows: minmax(0, 1fr);
  }

  body[data-view="cart"] .filters,
  body[data-view="profile"] .filters,
  body[data-view="info"] .filters {
    grid-template-rows: minmax(0, 1fr);
  }
}

.filters__header {
  height: 34px;
  min-height: 34px;
  margin: 0 !important;
  padding: 0 16px !important;
}

.filters__scroll {
  min-height: 0;
  padding-top: 0 !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Non-catalog dock: navigation first, then preferences/info/socials without gaps. */
body:not([data-view="catalog"]) .filters__header,
body:not([data-view="catalog"]) .filters__count,
body:not([data-view="catalog"]) .filter-group,
body:not([data-view="catalog"]) .reset-button {
  display: none !important;
}

body:not([data-view="catalog"]) .dock-preferences {
  margin-top: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--border) !important;
}

body:not([data-view="catalog"]) .dock-links {
  margin-top: 8px !important;
}

.dock-links__socials {
  height: auto !important;
  min-height: 36px;
}

.dock-links__socials button {
  min-height: 36px;
}

/* Product page uses the same exact three-rail geometry. */
body[data-view="product"] {
  --product-main-header-height: var(--tm-main-rail) !important;
  --product-rail-height: var(--tm-sub-rail) !important;
  --product-top-panel-height: var(--tm-product-top) !important;
}

body[data-view="product"]::before {
  height: var(--tm-product-top) !important;
}

body[data-view="product"] .product-section-tabs {
  top: var(--tm-top-two-rails) !important;
  height: var(--tm-category-rail) !important;
  min-height: var(--tm-category-rail) !important;
}

body[data-view="product"] .product-gallery {
  top: var(--tm-product-top) !important;
  height: min(720px, calc(100dvh - var(--tm-product-top))) !important;
}

/* Prevent any accidental duplicated seams in all top rails. */
.site-header::after {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid var(--border) !important;
}

.catalog-bar,
body[data-view="product"] .product-section-tabs,
.category-strip:not(.is-in-dock) {
  margin-top: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--border) !important;
}

@media (max-width: 899px) {
  body {
    --tm-main-rail: 62px;
    --tm-sub-rail: 42px;
    --tm-category-rail: 42px;
  }

  .filters {
    top: 0 !important;
    height: 100dvh !important;
  }

  body[data-view="catalog"][data-dock="closed"] .category-strip-top-host.is-active {
    height: var(--tm-category-rail);
    min-height: var(--tm-category-rail);
  }
}

/* V0.2.33: authoritative top stacking — no category bleed through frosted rails */
body[data-view="catalog"]::before,
body[data-view="cart"]::before,
body[data-view="profile"]::before,
body[data-view="info"]::before,
body[data-view="product"]::before {
  z-index: 80 !important;
  background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
  -webkit-backdrop-filter: blur(20px) saturate(112%) !important;
  backdrop-filter: blur(20px) saturate(112%) !important;
}

.site-header {
  z-index: 90 !important;
  isolation: isolate;
}

.catalog-bar {
  z-index: 89 !important;
  isolation: isolate;
}

body[data-view="product"] .product-section-tabs {
  z-index: 88 !important;
  isolation: isolate;
}

.category-strip:not(.is-in-dock) {
  z-index: 70 !important;
}

/* Keep the glass as one plane: rows themselves stay transparent above it. */
body[data-view="catalog"] .site-header,
body[data-view="catalog"] .catalog-bar,
body[data-view="cart"] .site-header,
body[data-view="cart"] .catalog-bar,
body[data-view="profile"] .site-header,
body[data-view="profile"] .catalog-bar,
body[data-view="info"] .site-header,
body[data-view="info"] .catalog-bar,
body[data-view="product"] .site-header,
body[data-view="product"] .catalog-bar,
body[data-view="product"] .product-section-tabs {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Mobile dock/overlay must remain above the permanent frosted sheet. */
@media (max-width: 899px) {
  .overlay.is-visible {
    z-index: 210 !important;
  }

  .filters.is-open {
    z-index: 220 !important;
  }
}

/* V0.2.34: tighter product detail density + merged info/specs/why block */
body[data-view="product"] .product-layout {
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
}

body[data-view="product"] .product-summary {
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
}

body[data-view="product"] .product-summary h1 {
  max-width: 560px;
  margin: -2px 0 0;
  font-size: clamp(20px, 1.85vw, 28px);
  line-height: 1.12;
}

body[data-view="product"] .product-detail__description {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.5;
}

body[data-view="product"] .product-identity {
  grid-template-columns: minmax(132px, 1.15fr) minmax(104px, .85fr) auto auto;
  border-radius: 12px;
}

body[data-view="product"] .product-identity > * {
  min-height: 58px;
  padding: 10px 12px;
}

body[data-view="product"] .product-identity strong {
  font-size: 12px;
}

body[data-view="product"] .product-utility-button {
  min-width: 76px;
  gap: 6px;
}

body[data-view="product"] .product-variant {
  gap: 8px;
}

body[data-view="product"] .product-variant__options {
  gap: 7px;
}

body[data-view="product"] .product-variant__options button {
  min-height: 38px;
  padding: 0 14px;
}

body[data-view="product"] .product-purchase {
  border-radius: 14px;
}

body[data-view="product"] .product-purchase__availability {
  padding: 12px 14px;
}

body[data-view="product"] .product-purchase__price-row {
  gap: 12px;
  padding: 12px 14px;
}

body[data-view="product"] .product-purchase__price-row > strong {
  font-size: 26px;
}

body[data-view="product"] .product-purchase__price-row button {
  min-height: 44px;
  border-radius: 10px;
}

body[data-view="product"] .product-promotion {
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
}

body[data-view="product"] .product-service-list article {
  gap: 9px;
  padding: 10px 0;
}

body[data-view="product"] .product-content-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  padding: 18px 20px 22px;
}

body[data-view="product"] .product-content-main,
body[data-view="product"] .product-content-aside {
  gap: 14px;
}

body[data-view="product"] .product-content-card,
body[data-view="product"] .product-brand-card,
body[data-view="product"] .product-store-card {
  padding: 18px;
  border-radius: 12px;
}

body[data-view="product"] .product-content-card > h2,
body[data-view="product"] .product-brand-card h2,
body[data-view="product"] .product-store-card h2 {
  margin: 3px 0 12px;
  font-size: 21px;
}

body[data-view="product"] .product-content-card__lead,
body[data-view="product"] .product-brand-card p,
body[data-view="product"] .product-store-card p {
  line-height: 1.55;
}

body[data-view="product"] .product-insights-card {
  padding: 0;
  overflow: hidden;
}

body[data-view="product"] .product-insights-block {
  padding: 18px;
}

body[data-view="product"] .product-insights-block + .product-insights-block {
  border-top: 1px solid var(--border);
}

body[data-view="product"] .product-insights-block h2 {
  margin: 3px 0 12px;
  font-size: 20px;
}


body[data-view="product"] .product-detail__facts {
  margin-top: 4px;
}


body[data-view="product"] .product-brand-card button,
body[data-view="product"] .product-together-section__total button {
  min-height: 40px;
  border-radius: 10px;
}

@media (max-width: 1080px) {
  body[data-view="product"] .product-layout {
    grid-template-columns: 1fr;
  }

  body[data-view="product"] .product-content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-view="product"] .product-summary {
    padding: 16px 14px 20px;
    gap: 12px;
  }

  body[data-view="product"] .product-summary h1 {
    font-size: 22px;
  }

  body[data-view="product"] .product-content-layout {
    padding: 14px;
    gap: 12px;
  }

  body[data-view="product"] .product-content-main,
  body[data-view="product"] .product-content-aside {
    gap: 12px;
  }

  body[data-view="product"] .product-content-card,
  body[data-view="product"] .product-brand-card,
  body[data-view="product"] .product-store-card,
  body[data-view="product"] .product-insights-block {
    padding: 16px;
  }

  body[data-view="product"] .product-identity > * {
    padding: 10px;
  }
}

/* V0.2.36: product content layout cleanup */
body[data-view="product"] .product-content-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-view="product"] .product-content-aside {
  display: none;
}

body[data-view="product"] .product-insights-block > .eyebrow {
  display: none;
}

body[data-view="product"] .product-insights-block h2 {
  margin-top: 0;
}

/* V0.2.37: discounted products and discount filter */
.product-price--discount {
  gap: 7px;
  padding-inline: 10px;
}

.product-price--discount del {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.product-price--discount strong {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-purchase__price-row > strong.is-discounted {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.product-purchase__price-row > strong.is-discounted del {
  color: var(--muted);
  font-size: 24px;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
}

.product-purchase__price-row > strong.is-discounted span {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .product-price--discount {
    gap: 5px;
    padding-inline: 8px;
  }

  .product-price--discount del {
    font-size: 13px;
  }

  .product-price--discount strong {
    font-size: 11px;
  }

  .product-purchase__price-row > strong.is-discounted {
    gap: 8px;
  }

  .product-purchase__price-row > strong.is-discounted del {
    font-size: 21px;
  }

  .product-purchase__price-row > strong.is-discounted span {
    font-size: 16px;
  }
}


/* V0.2.38: catalog metadata — country, stock alerts and points */
.filter-group--special label,
.filter-group--country label {
  font-weight: 400;
}

.product-card__signals {
  display: flex;
  gap: 5px 8px;
  align-items: center;
  min-height: 18px;
  margin: -7px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  flex-wrap: wrap;
}

.product-card__points {
  white-space: nowrap;
}

.product-card.is-out-of-stock .product-card__image {
  opacity: 0.72;
}

.add-button--notify {
  padding-inline: 10px;
  color: var(--accent-dark);
  font-size: 11px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.add-button--notify.is-subscribed,
.product-purchase__price-row button.is-notify.is-subscribed {
  color: var(--text);
  background: var(--surface-soft);
}

.product-purchase__availability[data-stock-tone="low"] span,
.product-purchase__availability[data-stock-tone="out"] span {
  color: var(--danger);
}

.product-purchase__availability[data-stock-tone="limited"] small:first-of-type,
.product-purchase__availability[data-stock-tone="low"] small:first-of-type {
  color: var(--accent-dark);
  font-weight: 750;
}

.product-purchase__points {
  color: var(--accent-dark) !important;
  font-weight: 750;
}

.product-purchase__price-row button.is-notify {
  color: var(--accent-dark);
  background: var(--surface);
  border: 2px solid var(--accent);
}

.product-purchase__price-row button.is-notify:hover {
  color: var(--accent-contrast);
  background: var(--accent);
}

@media (max-width: 720px) {
  .product-card__signals {
    gap: 4px 6px;
    margin-bottom: 8px;
    font-size: 9px;
  }

}

/* V0.2.39: cart additions — gift wrapping and order points */
.cart-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cart-extras {
  display: grid;
  gap: 10px;
}

.cart-extra-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-extra-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cart-extra-card__heading h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.cart-extra-card__heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cart-extra-card__heading > strong {
  flex: 0 0 auto;
  font-size: 14px;
}

.cart-extra-card.is-disabled {
  background: color-mix(in srgb, var(--surface) 72%, var(--background));
}

.cart-extra-toggle,
.cart-extra-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.cart-extra-toggle {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 750;
}

.cart-extra-toggle:has(input:disabled) {
  cursor: default;
  color: var(--muted);
}

.cart-extra-toggle input,
.cart-extra-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-dark);
}

.cart-gift-options {
  display: grid;
  gap: 12px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.cart-gift-options[hidden] {
  display: none;
}

.cart-gift-options > label:first-child {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cart-gift-options textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 10px 11px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.cart-gift-options textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-color: var(--accent-dark);
}

.cart-extra-check {
  color: var(--muted);
  font-size: 12px;
}

.cart-points-earned {
  display: grid;
  gap: 2px;
  margin: 13px 0 2px;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 10px;
}

.cart-points-earned[hidden] {
  display: none;
}

.cart-points-earned span,
.cart-points-earned small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.cart-points-earned strong {
  color: var(--accent-dark);
  font-size: 18px;
}

@media (max-width: 899px) {
  .cart-main {
    margin-bottom: 10px;
  }

  .cart-extra-card {
    padding: 14px;
  }

}

@media (max-width: 640px) {
  .cart-extra-card__heading {
    gap: 10px;
  }
}



/* V0.2.40: certificates are regular catalog products */
.product-card--certificate .product-card__image {
  background:
    radial-gradient(circle at 18% 50%, var(--surface) 0 10px, transparent 11px),
    radial-gradient(circle at 82% 50%, var(--surface) 0 10px, transparent 11px),
    linear-gradient(135deg, var(--image-a), var(--image-b));
}

.product-card--certificate .product-illustration {
  position: relative;
  width: 66%;
  height: 44%;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent);
  border-radius: 14px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 14%, transparent);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 850;
  transform: rotate(-2deg);
}

.product-card--certificate:nth-child(even) .product-illustration {
  width: 66%;
  height: 44%;
  border-radius: 14px;
  transform: rotate(2deg);
}

.product-card--certificate .product-illustration::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 9px;
}

.product-card__certificate-type {
  color: var(--accent-dark);
  white-space: nowrap;
}

.product-card--certificate .product-footer {
  border-radius: 12px;
}

.product-card--certificate .product-price {
  font-size: 16px;
}

body[data-view="product"] .product-variant[hidden] {
  display: none;
}

/* V0.2.41: account dashboard — points, club, certificates, alerts and partnership */
.profile-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-dashboard .profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-dashboard .profile-stat {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 12px;
}

.profile-dashboard .profile-card {
  padding: 18px;
  border-radius: 14px;
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-section-heading h2 {
  margin: 0 0 4px;
}

.profile-status--neutral {
  color: var(--muted);
  background: var(--surface-soft);
}

.profile-card--wallet,
.profile-card--club {
  min-height: 260px;
}

.profile-points-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 2px;
}

.profile-points-balance strong {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.profile-points-balance span,
.profile-points-equivalent {
  color: var(--muted);
}

.profile-points-equivalent {
  margin: 0 0 18px;
}

.profile-points-equivalent strong {
  color: var(--text);
}

.profile-progress {
  height: 7px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.profile-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width .25s ease;
}

.profile-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.profile-benefits li::before {
  margin-right: 8px;
  color: var(--accent-dark);
  content: "✓";
  font-weight: 900;
}

.profile-primary-action,
.profile-text-action,
.profile-partner-form button {
  min-height: 40px;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
}

.profile-primary-action,
.profile-partner-form button {
  color: var(--accent-contrast);
  background: var(--accent);
  border: 0;
}

.profile-primary-action:hover,
.profile-partner-form button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.profile-primary-action:disabled {
  cursor: default;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.profile-primary-action--secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.profile-primary-action--secondary:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.profile-text-action {
  min-height: 34px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.profile-text-action:hover {
  background: var(--surface-soft);
}

.profile-card--certificates,
.profile-card--partner {
  grid-column: 1 / -1;
}

.profile-certificate-list,
.profile-alert-list {
  display: grid;
  gap: 8px;
}

.profile-certificate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.profile-certificate > div:first-child,
.profile-certificate__balance {
  display: grid;
  gap: 3px;
}

.profile-certificate span,
.profile-certificate small,
.profile-certificate__balance small {
  color: var(--muted);
  font-size: 11px;
}

.profile-certificate strong {
  font-size: 15px;
}

.profile-certificate__balance {
  text-align: right;
}

.profile-certificate__balance b {
  color: var(--accent-dark);
  font-size: 14px;
}

.profile-alert-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.profile-alert-item__main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.profile-alert-item__main > span:last-child {
  display: grid;
  gap: 3px;
}

.profile-alert-item__main small {
  color: var(--muted);
}

.profile-alert-item__symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 9px;
  font-weight: 850;
}

.profile-alert-item__remove {
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.profile-alert-item__remove:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.profile-empty-inline {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.profile-empty-inline p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-partner-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 10px;
}

.profile-partner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-partner-form label {
  display: grid;
  gap: 6px;
}

.profile-partner-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-partner-form select,
.profile-partner-form input,
.profile-partner-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
}

.profile-partner-form textarea {
  min-height: 86px;
  resize: vertical;
}

.profile-partner-form__wide,
.profile-partner-form button {
  grid-column: 1 / -1;
}

.profile-partner-form button {
  justify-self: start;
}

@media (max-width: 760px) {
  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-dashboard .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card--wallet,
  .profile-card--club,
  .profile-card--certificates,
  .profile-card--partner {
    grid-column: 1;
  }

  .profile-card--wallet,
  .profile-card--club {
    min-height: 0;
  }

  .profile-partner-form {
    grid-template-columns: 1fr;
  }

  .profile-partner-form__wide,
  .profile-partner-form button {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .profile-dashboard .profile-card {
    padding: 15px;
  }

  .profile-section-heading,
  .profile-certificate,
  .profile-alert-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .profile-section-heading {
    display: grid;
  }

  .profile-section-heading .profile-status,
  .profile-section-heading .profile-text-action {
    justify-self: start;
  }

  .profile-certificate__balance {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    text-align: left;
  }

  .profile-alert-item__remove {
    width: 100%;
  }
}

/* V0.2.43: restrained accent states, dock shortcuts, compact page titles and product information cleanup */
html[data-theme="light"] {
  --accent-selection-bg: #f1f4f3;
  --accent-selection-border: #d7e4e2;
  --accent-selection-text: #4f8e8a;
}

html[data-theme="dark"] {
  --accent-selection-bg: #303735;
  --accent-selection-border: #465451;
  --accent-selection-text: #8cc8c4;
}

/* Selected states now use accent text over a quiet near-neutral background. */
.category-chip.is-active,
.category-strip.is-in-dock .category-chip.is-active,
.category-chip.is-active:hover,
.category-strip.is-in-dock .category-chip.is-active:hover,
.product-variant__options button.is-active,
.product-variant__options button.is-active:hover,
.product-utility-button.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  box-shadow: none;
}

.category-chip:not(.is-active):hover,
.category-strip.is-in-dock .category-chip:not(.is-active):hover {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 76%, transparent);
  border-color: var(--accent-selection-border);
}

.product-badge,
.product-promotion > span {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
}

/* Preserve CTA emphasis: only selected tags and controls become quiet. */
.product-purchase__price-row button,
.checkout-button,
.profile-primary-action,
.profile-partner-form button {
  box-shadow: none;
}

/* The visual heart outline now has the same perceived inset from top and right. */
.favorite-button {
  top: 12px;
  right: 16px;
}

/* V0.2.45: plain dock shortcuts with numeric counters and no decorative rules. */
.dock-shortcuts {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 8px 0;
}

.dock-shortcuts button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 5px 2px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.dock-shortcuts button:hover,
.dock-shortcuts button.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
}

.dock-shortcuts button:hover,
.dock-shortcuts button.is-active,
.dock-links button:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.dock-shortcuts button b {
  min-width: 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

/* V0.2.44: one total desktop banner height; no additive slide sizing. */
@media (min-width: 900px) {
  .catalog-content > .home-hero {
    height: clamp(300px, 28vw, 348px);
    min-height: 0;
    max-height: 348px;
    overflow: hidden;
  }

  .catalog-content > .home-hero .home-hero__carousel,
  .catalog-content > .home-hero .home-hero__slides,
  .catalog-content > .home-hero .home-hero__slide,
  .catalog-content > .home-hero .home-hero__slide.is-active {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }
}

/* Standard page headings: profile, cart, information and comparable pages. */
.app-page__header {
  margin-bottom: 16px;
}

.app-page__header h1 {
  margin-top: 3px;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.15;
}

/* Accent dock icon with a small tactile press animation. */
.dock-toggle {
  color: var(--accent-dark);
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.dock-toggle:hover,
.dock-toggle.is-collapsed {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.dock-toggle.is-pressed .dock-toggle__icon {
  animation: dock-icon-press 180ms ease;
}

@keyframes dock-icon-press {
  0% { transform: scale(1); }
  45% { transform: scale(.82); }
  100% { transform: scale(1); }
}

/* Product top row: brand is a compact action, code sits at the far right. */
body[data-view="product"] .product-summary__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body[data-view="product"] .product-detail__meta {
  gap: 8px;
  align-items: center;
  min-width: 0;
}

body[data-view="product"] .product-detail__meta span + span::before {
  content: none;
}

body[data-view="product"] .product-brand-chip {
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-view="product"] .product-brand-chip:hover {
  border-color: var(--accent-dark);
}

body[data-view="product"] .product-detail__type {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="product"] .product-code-inline {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

body[data-view="product"] .product-code-inline span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body[data-view="product"] .product-code-inline strong {
  font-size: 12px;
}

body[data-view="product"] .product-identity--actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-view="product"] .product-identity--actions > * {
  min-height: 54px;
  border-right: 1px solid var(--border);
}

body[data-view="product"] .product-identity--actions > *:last-child {
  border-right: 0;
}

body[data-view="product"] .product-utility-button {
  min-width: 0;
}

/* Seller information replaces the removed brand-description card. */
body[data-view="product"] .product-summary-seller {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: end;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
}

body[data-view="product"] .product-summary-seller__heading {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

body[data-view="product"] .product-summary-seller__heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body[data-view="product"] .product-summary-seller__heading strong {
  font-size: 14px;
}

body[data-view="product"] .product-summary-seller p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body[data-view="product"] .product-summary-seller button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 9px;
  font-weight: 700;
}

body[data-view="product"] .product-summary-seller button:hover {
  border-color: var(--accent-dark);
}

/* Product information is one text flow with simple chevron rows. */
body[data-view="product"] .product-info-accordions {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

body[data-view="product"] .product-info-accordions details {
  border-bottom: 1px solid var(--border);
}

body[data-view="product"] .product-info-accordions summary {
  position: relative;
  padding: 15px 34px 15px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

body[data-view="product"] .product-info-accordions summary::-webkit-details-marker {
  display: none;
}

body[data-view="product"] .product-info-accordions summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

body[data-view="product"] .product-info-accordions details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

body[data-view="product"] .product-info-accordions details > p {
  margin: -2px 34px 15px 0;
  color: var(--muted);
  line-height: 1.6;
}

body[data-view="product"] .product-info-accordions ul {
  display: grid;
  gap: 7px;
  margin: -4px 34px 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .app-page__header h1 {
    font-size: 20px;
  }

  body[data-view="product"] .product-summary__topline {
    gap: 10px;
  }

  body[data-view="product"] .product-detail__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-view="product"] .product-summary-seller {
    grid-template-columns: 1fr;
  }

  body[data-view="product"] .product-summary-seller button {
    grid-column: 1;
    grid-row: auto;
    width: max-content;
  }
}

/* V0.2.46: real Trevitan product photography and request-price state. */
.product-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 4%, 24px);
  object-fit: contain;
  object-position: center;
}

.product-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 5%, 44px);
  object-fit: contain;
  object-position: center;
}

.product-gallery-photo.is-thumbnail {
  padding: 4px;
}

.product-price--request {
  color: var(--muted);
  font-weight: 520;
}

.add-button--request,
.product-purchase__price-row button.is-price-request {
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--border-strong);
}

.add-button--request:hover,
.product-purchase__price-row button.is-price-request:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* V0.2.48: uploaded premium banner images replace abstract hero gradients while preserving readable text overlays. */


/* V0.2.49: collapsible dock groups, unified regular navigation text, radio preferences, and supplied open/close icons. */
.dock-section {
  margin: 0;
  border-top: 1px solid var(--border);
}

.dock-section:first-child {
  border-top: 0;
}

.dock-section__summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 1px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}

.dock-section__summary::-webkit-details-marker {
  display: none;
}

.dock-section__summary:hover {
  color: var(--accent-selection-text);
}

.dock-section__summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 52%, transparent);
  outline-offset: 2px;
  border-radius: 5px;
}

.dock-section__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.dock-section[open] > .dock-section__summary .dock-section__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.dock-section__body {
  min-width: 0;
  padding-bottom: 8px;
}

.category-strip.is-in-dock {
  gap: 2px;
  padding: 2px 0 6px !important;
}

.category-strip.is-in-dock .category-chip {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.category-strip.is-in-dock .category-chip.is-active,
.category-strip.is-in-dock .category-chip.is-active:hover {
  color: var(--text);
}

.category-strip.is-in-dock .category-chip:not(.is-active):hover {
  color: var(--text);
  background: var(--surface-soft);
  border-color: transparent;
}

.filter-group {
  padding: 9px 0;
}

.dock-section--filters .filter-group:first-child {
  padding-top: 3px;
  border-top: 0;
}

.filter-group h2 {
  height: 28px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.filter-group label {
  min-height: 32px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.filter-group input[type="radio"],
.dock-radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.filter-group input[type="radio"]:checked,
.dock-radio-option input[type="radio"]:checked {
  background:
    radial-gradient(circle at center, var(--accent-dark) 0 4px, transparent 4.5px),
    var(--surface);
  border-color: var(--accent-dark);
}

.filter-group input[type="radio"]:focus-visible,
.dock-radio-option input[type="radio"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.reset-button {
  min-height: 34px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
}

.dock-preferences,
body:not([data-view="catalog"]) .dock-preferences {
  gap: 12px;
  margin: 0 !important;
  padding: 4px 0 8px !important;
  border: 0 !important;
}

.dock-shortcuts {
  gap: 0;
  margin: 0;
  padding: 3px 0;
  border: 0;
}

.dock-shortcuts button,
.dock-links button {
  min-height: 34px;
  padding: 0 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.dock-shortcuts button b {
  min-width: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.dock-links,
body:not([data-view="catalog"]) .dock-links {
  gap: 0;
  margin: 0 !important;
  padding: 3px 0 0;
  border: 0;
}

.dock-links__socials {
  margin-top: 6px;
  padding-top: 8px;
}

.dock-links__socials button {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
}

body:not([data-view="catalog"]) .dock-section--filters {
  display: none !important;
}

.dock-toggle__icon {
  width: 24px;
  height: 24px;
  border: 0;
}


.dock-toggle__image {
  pointer-events: none;
}


/* V0.2.50: calmer dock control, unified dock navigation states, custom sort menu, avatar, and animated collapsible content. */
.dock-toggle {
  display: flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: background-color 220ms ease, color 220ms ease;
}

.dock-toggle:hover,
.dock-toggle.is-collapsed:hover {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 0;
}

.dock-toggle.is-collapsed,
.dock-toggle.is-collapsed:not(:hover) {
  background: transparent;
  border: 0;
}

.dock-toggle__icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  transform-origin: 50% 50%;
}

.dock-toggle__image {
  position: absolute;
  top: 50%;
  left: calc(50% + 0.5px);
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.dock-toggle.is-pressed .dock-toggle__icon {
  animation: dock-icon-press-calm 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes dock-icon-press-calm {
  0% { transform: scale(1); }
  48% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.dock-section__body {
  box-sizing: border-box;
  transform-origin: top;
}

.dock-section.is-animating > .dock-section__body {
  overflow: hidden;
  will-change: height, opacity, transform;
}

.dock-section.is-closing > .dock-section__summary .dock-section__chevron {
  transform: rotate(45deg) translate(-1px, -1px);
}

.dock-section__chevron {
  transition: transform 280ms cubic-bezier(0.22, 0.68, 0.24, 1);
}

.category-strip.is-in-dock .category-chip,
.dock-shortcuts button,
.dock-links > button {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.dock-shortcuts button,
.dock-links > button {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.dock-shortcuts button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.category-strip.is-in-dock .category-chip.is-active,
.category-strip.is-in-dock .category-chip.is-active:hover,
.dock-shortcuts button.is-active,
.dock-shortcuts button.is-active:hover,
.dock-links > button.is-active,
.dock-links > button.is-active:hover {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: transparent;
}

.category-strip.is-in-dock .category-chip:not(.is-active):hover,
.dock-shortcuts button:not(.is-active):hover,
.dock-links > button:not(.is-active):hover {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 76%, transparent);
  border-color: transparent;
}

.dock-shortcuts button b {
  min-width: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.dock-links,
body:not([data-view="catalog"]) .dock-links {
  gap: 2px;
  padding-top: 0;
}

.dock-preferences,
body:not([data-view="catalog"]) .dock-preferences {
  gap: 12px;
  margin-top: 10px !important;
  padding: 12px 0 8px !important;
  border-top: 1px solid var(--border) !important;
}

.sort-menu {
  position: relative;
  min-width: 112px;
}

.sort-menu[hidden] {
  display: none;
}

.sort-menu__button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 11px 0 12px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.sort-menu__button:hover,
.sort-menu.is-open .sort-menu__button {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.sort-menu__button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 56%, transparent);
  outline-offset: 2px;
}

.sort-menu__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.sort-menu.is-open .sort-menu__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.sort-menu__list {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 188px;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.sort-menu__list[hidden] {
  display: none;
}

.sort-menu__list button {
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.sort-menu__list button:hover,
.sort-menu__list button:focus-visible {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 76%, transparent);
  outline: 0;
}

.sort-menu__list button.is-selected {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
}

.sort-select--native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.header-profile-avatar,
.mobile-profile-avatar,
.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#headerProfileButton {
  padding: 5px;
}

.header-profile-avatar {
  border: 1px solid var(--border);
}

.profile-avatar {
  overflow: hidden;
  padding: 0;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.mobile-profile-avatar {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
}

@media (max-width: 899px) {
  .sort-menu {
    min-width: 92px;
    max-width: 138px;
  }

  .sort-menu__button {
    overflow: hidden;
  }

  .sort-menu__button > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-toggle.is-pressed .dock-toggle__icon {
    animation: none;
  }

  .dock-section__chevron {
    transition: none;
  }
}


/* V0.2.51: dock motion polish, working product-page scroll, lighter glass, transparent product imagery, and restrained typography. */

/* Stable accordion geometry: reveal rows by clipped height only. */
.dock-section__body {
  display: flow-root;
  padding-bottom: 0;
  overflow: visible;
  opacity: 1;
  transform: none;
}

.dock-section.is-animating > .dock-section__body {
  overflow: hidden;
  will-change: height;
}

.dock-section__chevron {
  transition: transform 360ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

/* Dock hover is one even accent surface; softness comes from the fade timing, not a gradient. */
.category-strip.is-in-dock .category-chip,
.dock-shortcuts button,
.dock-links > button {
  background-color: transparent;
  background-image: none;
  transition: color 190ms ease, background-color 230ms ease;
}

.category-strip.is-in-dock .category-chip::before,
.dock-shortcuts button::before,
.dock-links > button::before {
  content: none;
}

.category-strip.is-in-dock .category-chip:not(.is-active):hover,
.dock-shortcuts button:not(.is-active):hover,
.dock-links > button:not(.is-active):hover {
  color: var(--accent-selection-text);
  background-color: color-mix(in srgb, var(--accent-selection-bg) 76%, transparent);
  background-image: none;
  border-color: transparent;
}

.category-strip.is-in-dock .category-chip.is-active,
.category-strip.is-in-dock .category-chip.is-active:hover,
.dock-shortcuts button.is-active,
.dock-shortcuts button.is-active:hover,
.dock-links > button.is-active,
.dock-links > button.is-active:hover {
  background-color: var(--accent-selection-bg);
  background-image: none;
}

/* Slightly smaller custom radio controls in both themes. */
.filter-group input[type="radio"],
.dock-radio-option input[type="radio"] {
  width: 15px;
  height: 15px;
  border-width: 1.25px;
}

.filter-group input[type="radio"]:checked,
.dock-radio-option input[type="radio"]:checked {
  background:
    radial-gradient(circle at center, var(--accent-dark) 0 3px, transparent 3.5px),
    var(--surface);
}

/* Keep both supplied SVG states on the same fixed optical center and crossfade them. */
.dock-toggle {
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.dock-toggle::after {
  position: absolute;
  inset: 6px;
  content: "";
  pointer-events: none;
  background: var(--accent-selection-bg);
  border-radius: 8px;
  opacity: 0;
}

.dock-toggle__icon,
.dock-toggle.is-pressed .dock-toggle__icon {
  width: 24px;
  height: 24px;
  transform: none;
  animation: none;
}

.dock-toggle__image,
.dock-toggle__image--open,
.dock-toggle[aria-expanded="false"] .dock-toggle__image--close,
.dock-toggle[aria-expanded="false"] .dock-toggle__image--open {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 24px;
  height: 24px;
  margin: auto;
  object-fit: contain;
  opacity: 0;
  transform: none;
  transition: opacity 210ms ease;
}

.dock-toggle[aria-expanded="true"] .dock-toggle__image--close,
.dock-toggle[aria-expanded="false"] .dock-toggle__image--open {
  opacity: 1;
}

.dock-toggle.is-pressed::after {
  animation: dock-toggle-feedback 420ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

@keyframes dock-toggle-feedback {
  0% { opacity: 0; transform: scale(0.9); }
  42% { opacity: 0.72; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* Let the glass reveal actual content beneath it instead of behaving like an opaque slab. */
body[data-view="catalog"]::before,
body[data-view="cart"]::before,
body[data-view="profile"]::before,
body[data-view="info"]::before,
body[data-view="product"]::before {
  background: color-mix(in srgb, var(--surface) 78%, transparent) !important;
  -webkit-backdrop-filter: blur(24px) saturate(128%) !important;
  backdrop-filter: blur(24px) saturate(128%) !important;
}

.category-strip:not(.is-in-dock) {
  background: color-mix(in srgb, var(--surface) 76%, transparent) !important;
  -webkit-backdrop-filter: blur(22px) saturate(125%) !important;
  backdrop-filter: blur(22px) saturate(125%) !important;
}

/* Product pages require the same grid row contract as the catalog for dock scrolling. */
@media (min-width: 900px) {
  body[data-view="product"] .filters {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="product"] .filters__scroll {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
  }
}

/* Real product cutouts sit directly on the site/card background. */
.product-card__image,
.product-gallery,
.product-gallery__stage,
.product-detail__image,
.product-gallery__thumb {
  background: transparent !important;
  background-image: none !important;
}

/* Breadcrumb hierarchy uses one regular weight; hierarchy is expressed only by color. */
.breadcrumbs,
.breadcrumbs a,
.breadcrumbs span,
.breadcrumbs strong,
.breadcrumbs #breadcrumbCategory,
#breadcrumbProduct {
  font-weight: 400;
}

.breadcrumbs #breadcrumbCategory {
  color: var(--text);
}

#breadcrumbProduct {
  color: var(--accent-dark);
}

/* Prices remain legible without heavy bold blocks. */
.product-price,
.product-price--discount strong,
.product-purchase__price-row > strong,
.product-purchase__price-row > strong.is-discounted span,
.cart-item__price,
.cart-summary__row strong,
.cart-summary__total strong,
.product-together-section__total strong {
  font-weight: 600;
}

.product-price--discount del,
.product-purchase__price-row > strong.is-discounted del {
  font-weight: 500;
}

/* V0.2.52: final dock accordion, flat hover surfaces, seamless sort rows, and complete breadcrumb hover. */

/* Social links are deliberately the final controls in the Site and settings section. */
.dock-section--site .dock-links__socials {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Selected and hovered sort rows stay visually distinct with a measured 2 px interval. */
.sort-menu__list {
  gap: 2px;
  row-gap: 2px;
}

.sort-menu__list button {
  margin: 0;
  border-radius: 8px;
}

/* Every clickable breadcrumb level, including Home, responds with the accent color. */
.breadcrumbs a {
  transition: color 180ms ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--accent-dark);
}

.breadcrumbs a:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 56%, transparent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .dock-toggle.is-pressed::after {
    animation: none;
  }

  .category-strip.is-in-dock .category-chip,
  .dock-shortcuts button,
  .dock-links > button,
  .dock-toggle__image {
    transition: none;
  }
}

/* V0.2.53: uniform final accordion motion, transparent dark social controls, and optically round radios. */

/* Do not let browser scroll anchoring reposition the long final dock group
   while its measured height is changing. */
.filters__scroll,
.filters__scroll.is-accordion-animating,
.dock-section,
.dock-section__body {
  overflow-anchor: none;
}

/* Preserve a real zero-height closed frame instead of switching directly from
   the animated body to the browser's native display:none state. */
.dock-section:not([open]) > .dock-section__body {
  display: flow-root !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
}

.dock-section.is-animating > .dock-section__body {
  visibility: visible;
}

/* Neutralise the browser's filled dark-mode button surface. */
.dock-links__socials button,
html[data-theme="dark"] .dock-links__socials button {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  background: transparent;
  background-image: none;
  border: 1px solid var(--border);
  box-shadow: none;
}

.dock-links__socials button:hover,
.dock-links__socials button:focus-visible,
html[data-theme="dark"] .dock-links__socials button:hover,
html[data-theme="dark"] .dock-links__socials button:focus-visible {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 70%, transparent);
  background-image: none;
  border-color: var(--accent-selection-border);
}

/* 14 CSS px becomes an exact 21 device px at the project's 150% Windows
   scale. Fixed logical dimensions and a 1:1 ratio prevent optical flattening. */
.filter-group input[type="radio"],
.dock-radio-option input[type="radio"] {
  inline-size: 14px;
  block-size: 14px;
  min-inline-size: 14px;
  max-inline-size: 14px;
  min-block-size: 14px;
  max-block-size: 14px;
  aspect-ratio: 1 / 1;
  align-self: center;
  background-color: transparent;
  background-image: none;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transform: none;
}

.filter-group input[type="radio"]:checked,
.dock-radio-option input[type="radio"]:checked {
  background:
    radial-gradient(circle at 50% 50%, var(--accent-dark) 0 2.75px, transparent 3.25px),
    transparent;
  border-color: var(--accent-dark);
}

/* V0.2.54: compact page titles, purchase hub, grouped favorites, and contextual page search. */

/* A page name is the only heading in the page header. It stays small and
   accent-coloured instead of pairing an eyebrow with a second large title. */
.app-page__header--compact {
  max-width: 1120px;
  margin-bottom: 18px;
}

.app-page__header .app-page__compact-title {
  margin: 0;
  color: var(--accent-selection-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* Purchase areas are one page with three clear local contexts. */
.purchase-tabs {
  display: flex;
  max-width: 1120px;
  margin: 0 auto 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.purchase-tabs::-webkit-scrollbar {
  display: none;
}

.purchase-tab {
  position: relative;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  transition: color 170ms ease, background-color 170ms ease;
}

.purchase-tab:hover,
.purchase-tab:focus-visible {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 68%, transparent);
}

.purchase-tab.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  font-weight: 500;
}

.purchase-tab.is-active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--accent-selection-text);
  border-radius: 999px 999px 0 0;
}

.purchase-panel,
.purchase-orders {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.purchase-orders {
  display: grid;
  gap: 12px;
}

.purchase-order {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.purchase-order__header,
.purchase-order__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
}

.purchase-order__header {
  border-bottom: 1px solid var(--border);
}

.purchase-order__header p,
.purchase-order__header h2,
.purchase-order__footer span,
.purchase-order__footer strong,
.purchase-order__footer small {
  margin: 0;
}

.purchase-order__header p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.purchase-order__header h2 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 500;
}

.purchase-order__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.purchase-order__status--shipped {
  color: color-mix(in srgb, var(--accent-selection-text) 74%, var(--text));
}

.purchase-order__status--delivered {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--border);
}

.purchase-order__products {
  display: grid;
}

.purchase-order__products > button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 10px 18px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  transition: color 170ms ease, background-color 170ms ease;
}

.purchase-order__products > button:last-child {
  border-bottom: 0;
}

.purchase-order__products > button:hover,
.purchase-order__products > button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
}

.purchase-order__product-visual {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border-radius: 9px;
  font-size: 22px;
}

.purchase-order__product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purchase-order__products > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.purchase-order__products strong,
.purchase-order__products b {
  font-weight: 500;
}

.purchase-order__products strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.purchase-order__products small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.purchase-order__products b {
  white-space: nowrap;
  font-size: 13px;
}

.purchase-order__footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.purchase-order__footer > strong {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.purchase-order__footer small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

/* Favorites are a separate catalog-like page, divided by the real sections. */
.favorites-groups {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 28px;
}

.favorites-group {
  min-width: 0;
}

.favorites-group__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border);
}

.favorites-group__header h2,
.favorites-group__header span {
  margin: 0;
}

.favorites-group__header h2 {
  font-size: 15px;
  font-weight: 500;
}

.favorites-group__header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.favorites-grid {
  border-left: 1px solid var(--border);
}

.context-empty {
  display: grid;
  max-width: 1120px;
  min-height: 280px;
  margin: 0 auto;
  padding: 42px 24px;
  place-items: center;
  align-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.context-empty__icon {
  color: var(--muted);
  font-size: 38px;
  line-height: 1;
}

.context-empty h2 {
  margin: 13px 0 5px;
  font-size: 18px;
  font-weight: 500;
}

.context-empty p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.context-empty button {
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  cursor: pointer;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}

.context-empty button:hover,
.context-empty button:focus-visible {
  background: color-mix(in srgb, var(--accent-selection-bg) 78%, var(--accent-selection-text) 8%);
}

/* Favorites uses the same non-catalog dock and the same two-rail glass plane. */
body[data-view="favorites"] {
  --two-rail-main-header-height: 72px;
  --two-rail-sub-header-height: 44px;
  --two-rail-total-height: calc(var(--two-rail-main-header-height) + var(--two-rail-sub-header-height));
}

body[data-view="favorites"]::before {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--two-rail-total-height);
  content: "";
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
  backdrop-filter: blur(24px) saturate(128%);
}

body[data-view="favorites"] .site-header,
body[data-view="favorites"] .catalog-bar {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body[data-view="favorites"] .site-header {
  min-height: var(--two-rail-main-header-height);
  border-bottom: 1px solid var(--border) !important;
}

body[data-view="favorites"] .site-header::after {
  display: none !important;
}

body[data-view="favorites"] .catalog-bar {
  top: var(--two-rail-main-header-height);
  height: var(--two-rail-sub-header-height);
  min-height: var(--two-rail-sub-header-height);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

body[data-view="favorites"] .filters__count,
body[data-view="favorites"] .filter-group,
body[data-view="favorites"] .reset-button {
  display: none !important;
}

body[data-view="favorites"] .category-strip-dock-host:has(> .category-strip) {
  display: block !important;
}

body[data-view="favorites"] .category-strip.is-in-dock {
  display: grid !important;
  padding-top: 6px;
  padding-bottom: 10px;
}

body[data-view="favorites"] .filters {
  grid-template-rows: minmax(0, 1fr);
}

body[data-view="favorites"] .filters__header {
  display: none;
}

body[data-view="favorites"] .filters__scroll {
  padding-top: 0;
}

body[data-view="favorites"] .dock-preferences {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  body[data-view="favorites"] .filters {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="favorites"] .filters__scroll {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
  }
}

.mobile-favorites__icon {
  display: block;
  min-height: 22px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 899px) {
  body[data-view="favorites"] {
    --two-rail-main-header-height: 62px;
    --two-rail-sub-header-height: 42px;
  }

  body[data-view="favorites"]::before {
    height: var(--two-rail-total-height);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
  }

  body[data-view="favorites"] .catalog-bar {
    top: var(--two-rail-main-header-height);
    height: var(--two-rail-sub-header-height);
    min-height: var(--two-rail-sub-header-height);
  }

  .mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-page__header--compact {
    margin-bottom: 14px;
  }

  .app-page__header .app-page__compact-title {
    font-size: 12px;
  }

  .purchase-tabs {
    margin-right: -14px;
    margin-bottom: 16px;
    margin-left: -14px;
    padding: 0 8px;
  }

  .purchase-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .purchase-order__header,
  .purchase-order__footer {
    padding: 13px 14px;
  }

  .purchase-order__header {
    align-items: flex-start;
  }

  .purchase-order__products > button {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 64px;
    padding: 9px 14px;
  }

  .purchase-order__product-visual {
    width: 44px;
    height: 44px;
  }

  .purchase-order__products > button > b {
    grid-column: 2;
    margin-top: -2px;
    color: var(--muted);
    font-size: 11px;
  }

  .purchase-order__footer > strong {
    gap: 7px;
    font-size: 14px;
  }

  .favorites-groups {
    gap: 22px;
  }

  .favorites-group__header {
    min-height: 38px;
  }

  .favorites-group__header h2 {
    font-size: 14px;
  }

  .context-empty {
    min-height: 230px;
    padding: 32px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-tab,
  .purchase-order__products > button {
    transition: none;
  }
}


/* V0.2.55: cleaner hit semantics, stable card controls, grid density settings,
   stock-priority badges, and photographic massage/training certificates. */

/* Dock navigation rows keep the same measured 2 px separation as the other
   interactive lists, including simultaneous selected and hovered states. */
.dock-shortcuts {
  gap: 2px;
}

/* Compact desktop density control. Mobile remains a two-column catalog. */
.dock-radio-list--grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.dock-radio-list--grid .dock-radio-option {
  justify-content: flex-start;
  min-width: 0;
  gap: 9px;
}

@media (min-width: 900px) {
  html[data-grid-columns="3"] .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-grid-columns="4"] .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-grid-columns="5"] .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* The sort control is sized once for its longest option, so changing the
   selected value never changes the top-bar geometry. */
.sort-menu {
  width: 246px;
  min-width: 246px;
  max-width: 246px;
}

.sort-menu__list {
  width: 100%;
  min-width: 100%;
}

/* Product hierarchy is carried by spacing and colour, not heavy type. */
.product-title {
  margin-bottom: 6px;
  font-weight: 400;
}

.product-meta > span:last-child {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Reserve one stable action column for Add/Added. Notification actions may
   wrap inside the same measured area without moving the price column. */
@media (min-width: 900px) {
  .product-footer {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .add-button {
    width: 112px;
    padding-right: 9px;
    padding-left: 9px;
  }
}

/* Points now read in a simple left-to-right row. Urgent stock information is
   promoted to the image badge position instead of competing with points. */
.product-card__signals {
  justify-content: flex-start;
  margin: 0 0 9px;
}

.product-card__points {
  margin: 0;
}

.product-badge--stock {
  max-width: calc(100% - 70px);
  overflow: hidden;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
}

.product-card.is-out-of-stock .product-card__image {
  opacity: 1;
}

.product-card.is-out-of-stock .product-card__photo,
.product-card.is-out-of-stock .product-illustration {
  opacity: 0.58;
}

/* Supplied landscape certificate photography fills its frame cleanly while
   preserving the standard card geometry. */
.product-card--certificate .product-card__photo {
  padding: 0;
  object-fit: cover;
}

@media (max-width: 899px) {
  .sort-menu {
    width: 188px;
    min-width: 188px;
    max-width: 188px;
  }

  .product-footer {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .add-button {
    width: 100%;
    padding-right: 7px;
    padding-left: 7px;
  }
}

/* Price content may reflow, but the fixed action column never receives overflow. */
.product-price {
  min-width: 0;
  overflow: hidden;
}

/* V0.2.56: supplied navigation icons, calm inline header counters, vertical
   settings, stacked sale prices, tighter card rhythm, and complete certificate imagery. */

/* Header commerce controls: supplied cart/checklist icons, favorites beside them,
   and quiet counts on the right rather than floating badges. */
.header-action-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
}

.header-action-button__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.header-action-button__count {
  position: static;
  display: inline-block;
  min-width: 1ch;
  height: auto;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.mobile-nav__asset-icon {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

/* Discount hierarchy is vertical: the old value is small and crossed out,
   the current value sits below and remains slightly larger. */
.product-price--discount,
html[data-grid-columns="5"] .product-price--discount {
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 10px;
  line-height: 1.05;
}

.product-price--discount del,
html[data-grid-columns="5"] .product-price--discount del {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-decoration-thickness: 1px;
}

.product-price--discount strong,
html[data-grid-columns="5"] .product-price--discount strong {
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
}

.product-purchase__price-row > strong.is-discounted {
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.product-purchase__price-row > strong.is-discounted del {
  font-size: 14px;
  font-weight: 500;
}

.product-purchase__price-row > strong.is-discounted span {
  font-size: 22px;
  font-weight: 600;
}

/* Request-price certificates use the same measured type scale on both sides.
   The divider is the normal theme border, not the stronger request accent. */
.product-card--certificate .product-price--request {
  justify-content: center;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
}

.product-card--certificate .add-button--request {
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 899px) {
  .product-price--discount,
  html[data-grid-columns="5"] .product-price--discount {
    padding: 5px 7px;
  }

  .product-price--discount strong,
  html[data-grid-columns="5"] .product-price--discount strong {
    font-size: 14px;
  }
}


/* V0.2.57: redundant visible page headings are removed, while one configurable
   massage-school promotion remains pinned as the first catalog tile. */

.catalog-promo-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
}

.catalog-promo-card__hit-area {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.catalog-promo-card__hit-area:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: -4px;
}

.catalog-promo-card__topline {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 7px clamp(12px, 1.35vw, 18px) 4px;
}

.catalog-promo-card__visual {
  position: relative;
  aspect-ratio: 1 / 0.84;
  overflow: hidden;
  background: var(--surface-muted);
}

.catalog-promo-card__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(19, 25, 24, 0.04), rgba(19, 25, 24, 0.32));
  pointer-events: none;
}

.catalog-promo-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-promo-card:hover .catalog-promo-card__visual img {
  transform: scale(1.025);
}

.catalog-promo-card__badge {
  position: static;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 0 9px;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-promo-card__body {
  display: flex;
  min-height: 0;
  padding: 12px 18px 14px;
  flex: 1;
  flex-direction: column;
}

.catalog-promo-card__kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.catalog-promo-card__title {
  margin-top: 5px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 1.18;
}

.catalog-promo-card__text {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-promo-card__action {
  display: inline-flex;
  min-height: 18px;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 899px) {
  .catalog-promo-card__topline {
    min-height: 38px;
    padding: 5px 10px 2px;
  }

  .catalog-promo-card__badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }

  .catalog-promo-card__body {
    padding: 10px 12px 12px;
  }

  .catalog-promo-card__title {
    font-size: 16px;
  }

  .catalog-promo-card__text {
    font-size: 11px;
  }
}


/* V0.2.58: one consistent six-row product-card anatomy — significance/actions,
   image, brand/country, two-line title, points/reviews, and compact price action. */

.product-card {
  --product-card-inline: clamp(12px, 1.35vw, 18px);
}

.product-card__topline {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px var(--product-card-inline) 6px;
}

.product-card__badge-slot {
  display: flex;
  min-width: 0;
  align-items: center;
  flex: 1 1 auto;
}

.product-card__topline .product-badge {
  position: static;
  inset: auto;
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  overflow: hidden;
  padding: 0 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__topline .product-badge--stock {
  max-width: 100%;
}

.product-card__quick-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}


.product-card__quick-actions .favorite-button,
.product-compare-button {
  position: relative;
  inset: auto;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease;
}

.product-card__quick-actions .favorite-button:hover,
.product-card__quick-actions .favorite-button:focus-visible,
.product-compare-button:hover,
.product-compare-button:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-selection-bg);
  outline: none;
}

.product-card__quick-actions .favorite-button.is-favorite {
  color: var(--accent-dark);
}

.product-card__quick-actions .favorite-icon {
  width: 22px;
  height: 22px;
}

.product-compare-button__dot {
  width: 7px;
  height: 7px;
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-compare-button:hover .product-compare-button__dot,
.product-compare-button:focus-visible .product-compare-button__dot {
  border-color: var(--accent-dark);
}

.product-compare-button.is-compared .product-compare-button__dot {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px var(--accent-selection-bg);
}

.product-card__image {
  aspect-ratio: 1 / 0.84;
}

.product-card__body {
  min-height: 186px;
  padding: 12px var(--product-card-inline) 16px;
}

.product-meta {
  min-height: 16px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.product-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta > span:first-child {
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.product-meta > span:last-child {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
}

.product-title {
  display: -webkit-box;
  height: 2.76em;
  min-height: 2.76em;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.38;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__signals {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  flex-wrap: nowrap;
}

.product-card__points,
.product-card__reviews {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__reviews {
  margin-left: auto;
  text-align: right;
}

.product-footer,
.product-card--certificate .product-footer {
  grid-template-columns: minmax(0, 1fr) 52px;
  min-height: 56px;
  align-items: stretch;
  border-radius: 11px;
}

.product-footer .product-price {
  min-width: 0;
  justify-content: flex-start;
  padding: 8px 13px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.08;
}

.product-footer .product-price--discount,
html[data-grid-columns="5"] .product-footer .product-price--discount {
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 12px;
}

.product-footer .product-price--discount del,
html[data-grid-columns="5"] .product-footer .product-price--discount del {
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.product-footer .product-price--discount strong,
html[data-grid-columns="5"] .product-footer .product-price--discount strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.05;
}

.product-footer .product-price--request,
.product-card--certificate .product-footer .product-price--request {
  justify-content: flex-start;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.18;
  text-align: left;
  white-space: normal;
}

.add-button.product-card__action,
.product-card--certificate .add-button.product-card__action {
  width: 52px;
  min-width: 52px;
  min-height: 54px;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  font-size: 0;
  line-height: 1;
}

.add-button.product-card__action:hover,
.add-button.product-card__action:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-selection-bg);
  outline: none;
}

.add-button.product-card__action.is-added,
.add-button.product-card__action.is-subscribed {
  color: var(--accent-dark);
  background: var(--accent-selection-bg);
}

.product-card__cart-icon,
.product-card__action-icon {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}

.product-card__cart-icon {
  object-fit: contain;
}

.product-card__action-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  html[data-grid-columns="3"] .product-title {
    font-size: 16px;
  }

  html[data-grid-columns="5"] .product-card {
    --product-card-inline: 12px;
  }

  html[data-grid-columns="5"] .product-card__topline {
    gap: 6px;
  }

  html[data-grid-columns="5"] .product-meta,
  html[data-grid-columns="5"] .product-card__signals {
    font-size: 9px;
  }

  html[data-grid-columns="5"] .product-title {
    font-size: 14px;
  }

  html[data-grid-columns="5"] .product-footer,
  html[data-grid-columns="5"] .product-card--certificate .product-footer {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  html[data-grid-columns="5"] .add-button.product-card__action,
  html[data-grid-columns="5"] .product-card--certificate .add-button.product-card__action {
    width: 48px;
    min-width: 48px;
  }

  html[data-grid-columns="5"] .product-footer .product-price {
    padding-inline: 10px;
    font-size: 15px;
  }
}

@media (max-width: 899px) {
  .product-card {
    --product-card-inline: 10px;
  }

  .product-card__topline {
    min-height: 42px;
    gap: 5px;
    padding-top: 7px;
    padding-bottom: 3px;
  }

  .product-card__topline .product-badge {
    min-height: 27px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .product-card__quick-actions .favorite-button,
  .product-compare-button {
    width: 27px;
    height: 27px;
  }

  .product-card__quick-actions .favorite-icon {
    width: 20px;
    height: 20px;
  }

  .product-card__image {
    aspect-ratio: 1 / 0.86;
  }

  .product-card__body {
    min-height: 166px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .product-meta {
    gap: 5px;
    margin-bottom: 7px;
    font-size: 9px;
  }

  .product-title {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.34;
    height: 2.68em;
    min-height: 2.68em;
  }

  .product-card__signals {
    gap: 5px;
    margin-bottom: 9px;
    font-size: 9px;
  }

  .product-footer,
  .product-card--certificate .product-footer {
    grid-template-columns: minmax(0, 1fr) 43px;
    min-height: 50px;
  }

  .product-footer .product-price {
    padding-inline: 9px;
    font-size: 15px;
  }

  .product-footer .product-price--discount,
  html[data-grid-columns="5"] .product-footer .product-price--discount {
    padding-inline: 8px;
  }

  .product-footer .product-price--discount strong,
  html[data-grid-columns="5"] .product-footer .product-price--discount strong {
    font-size: 14px;
  }

  .product-footer .product-price--request,
  .product-card--certificate .product-footer .product-price--request {
    padding-inline: 8px;
    font-size: 11px;
  }

  .add-button.product-card__action,
  .product-card--certificate .add-button.product-card__action {
    width: 43px;
    min-width: 43px;
    min-height: 48px;
  }

  .product-card__cart-icon,
  .product-card__action-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
}

/* V0.2.59: responsive five-to-four column fallback and tighter card rhythm. */
.catalog-content,
.favorites-page,
.product-page {
  container-name: product-grid-shell;
  container-type: inline-size;
}

/* Keep the user's five-column preference, but render four columns whenever
   the actual content area is too narrow for stable card geometry. */
@media (min-width: 900px) {
  @container product-grid-shell (max-width: 1179px) {
    html[data-grid-columns="5"] .products-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}

/* Compact the six-row card without changing its hierarchy. */
.product-card__topline {
  min-height: 42px;
  padding-top: 7px;
  padding-bottom: 4px;
}

.product-card__topline .product-badge {
  min-height: 26px;
  padding-inline: 9px;
}

.product-card__body {
  min-height: 148px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.product-meta {
  margin-bottom: 4px;
}

.product-title {
  margin-bottom: 5px;
}

.product-card__signals {
  margin-bottom: 6px;
}

.product-footer,
.product-card--certificate .product-footer {
  height: 36px;
  min-height: 36px;
}

.product-footer .product-price {
  height: 100%;
  min-height: 0;
  padding-top: 3px;
  padding-bottom: 3px;
}

.product-footer .product-price--discount,
html[data-grid-columns="5"] .product-footer .product-price--discount {
  padding-top: 2px;
  padding-bottom: 2px;
}

.product-footer .product-price--request,
.product-card--certificate .product-footer .product-price--request {
  padding-top: 2px;
  padding-bottom: 2px;
}

.add-button.product-card__action,
.product-card--certificate .add-button.product-card__action {
  height: 100%;
  min-height: 0;
}

@media (max-width: 899px) {
  .product-card__topline {
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 2px;
  }

  .product-card__topline .product-badge {
    min-height: 24px;
    padding-inline: 8px;
  }

  .product-card__body {
    min-height: 136px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .product-meta {
    margin-bottom: 3px;
  }

  .product-title {
    margin-bottom: 4px;
  }

  .product-card__signals {
    margin-bottom: 5px;
  }

  .product-footer,
  .product-card--certificate .product-footer {
    height: 32px;
    min-height: 32px;
  }

  .product-footer .product-price {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .product-footer .product-price--discount,
  html[data-grid-columns="5"] .product-footer .product-price--discount {
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .product-footer .product-price--request,
  .product-card--certificate .product-footer .product-price--request {
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .add-button.product-card__action,
  .product-card--certificate .add-button.product-card__action {
    height: 100%;
    min-height: 0;
  }
}

/* V0.2.60: final compact price/action bubble — 36px desktop, 32px mobile. */


/* V0.2.61: lightweight iris-mask flight of the alpha product render into cart. */
.cart-image-flight {
  position: fixed;
  z-index: 10000;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
  contain: layout paint style;
  isolation: isolate;
  will-change: transform, opacity;
}

.cart-image-flight__visual {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path;
  user-select: none;
}

.cart-image-flight__image {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .cart-image-flight {
    display: none !important;
  }
}

/* V0.2.62: stable source card and calmer add-to-cart choreography. */
.product-card.is-cart-flight-source,
.product-card.is-cart-flight-source:hover {
  background: var(--surface-muted);
  transition: none;
}

.add-button.product-card__action.is-cart-animating,
#productDetailAdd.is-cart-animating {
  pointer-events: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}

.cart-image-flight,
.cart-image-flight__visual {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* V0.2.65: the confirmed V0.2.63 cart-flight gesture now shares one source resolver across catalog cards and the product-detail gallery. */


/* V0.2.66: canonical purchase-animation preference, compact pinned promotion,
   expanded catalog sorting, and scalable brand discovery. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.brand-filter__search {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 6px;
}

.brand-filter__search input {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  outline: none;
}

.brand-filter__search input::placeholder { color: var(--muted); }

.brand-filter__search input:focus {
  border-color: var(--accent-selection-border);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.brand-filter__list { display: grid; gap: 0; }

.filter-group label.brand-filter__option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.brand-filter__option[hidden] { display: none !important; }

.brand-filter__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-filter__count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

.brand-filter__empty {
  margin: 5px 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.brand-filter__more {
  display: inline-flex;
  min-height: 32px;
  gap: 9px;
  align-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

.brand-filter__more[hidden] { display: none; }

.brand-filter__more:hover,
.brand-filter__more:focus-visible {
  color: var(--accent-selection-text);
  outline: none;
}

.brand-filter__chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease, margin 180ms ease;
}

.brand-filter__more[aria-expanded="true"] .brand-filter__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

@media (max-width: 899px) {
  .sort-menu {
    width: min(246px, 62vw);
    min-width: min(246px, 62vw);
    max-width: min(246px, 62vw);
  }

  .sort-menu__button > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* V0.2.67: recolorable TM icon system, three accent palettes, KB-style
   add/remove icon states, comparison indicator, and softer search focus. */
:root {
  --tm-icon-logo-shell: url("assets/ui/logo-shell.svg");
  --tm-icon-logo-wordmark: url("assets/ui/logo-wordmark.svg");
  --tm-icon-cart: url("assets/ui/cart.svg");
  --tm-icon-cart-added: url("assets/ui/cart-added.svg");
  --tm-icon-cart-active: url("assets/ui/cart-active.svg");
  --tm-icon-cart-remove: url("assets/ui/cart-remove.svg");
  --tm-icon-favorite: url("assets/ui/favorite.svg");
  --tm-icon-favorite-added: url("assets/ui/favorite-added.svg");
  --tm-icon-favorite-active: url("assets/ui/favorite-active.svg");
  --tm-icon-favorite-remove: url("assets/ui/favorite-remove.svg");
  --tm-icon-compare: url("assets/ui/compare.svg");
  --tm-icon-compare-hover: url("assets/ui/compare-hover.svg");
  --tm-icon-compare-active: url("assets/ui/compare-active.svg");
  --tm-icon-checklist: url("assets/ui/checklist.svg");
  --tm-icon-story-grid: url("assets/ui/product-story-grid.svg");
  --tm-icon-story-link: url("assets/ui/product-story-link.svg");
  --tm-icon-story-copy: url("assets/ui/product-story-copy.svg");
  --tm-icon-story-comments: url("assets/ui/product-story-comments.svg");
  --tm-icon-bell: url("assets/ui/bell.svg");
  --tm-icon-bell-added: url("assets/ui/bell-added.svg");
  --tm-icon-bell-remove: url("assets/ui/bell-remove.svg");
  --tm-icon-dock-close: url("assets/ui/dock-close.svg");
  --tm-icon-dock-open: url("assets/ui/dock-open.svg");
}

html[data-theme="light"][data-accent="aqua"] {
  --accent: #7ec5c2;
  --accent-dark: #4f8e8a;
  --accent-soft: #e2f2f1;
  --accent-contrast: #173634;
  --accent-selection-bg: #f0f5f4;
  --accent-selection-border: #d2e6e4;
  --accent-selection-text: #4f8e8a;
}

html[data-theme="dark"][data-accent="aqua"] {
  --accent: #7ec5c2;
  --accent-dark: #97d5d2;
  --accent-soft: #2d4543;
  --accent-contrast: #102b29;
  --accent-selection-bg: #303a38;
  --accent-selection-border: #475854;
  --accent-selection-text: #95d1ce;
}

html[data-theme="light"][data-accent="sand"] {
  --accent: #c49c7e;
  --accent-dark: #8e674d;
  --accent-soft: #f4eae2;
  --accent-contrast: #3a271a;
  --accent-selection-bg: #f5f1ed;
  --accent-selection-border: #e7d7ca;
  --accent-selection-text: #8e674d;
}

html[data-theme="dark"][data-accent="sand"] {
  --accent: #c49c7e;
  --accent-dark: #d9b79e;
  --accent-soft: #47392f;
  --accent-contrast: #2d1c12;
  --accent-selection-bg: #3a342f;
  --accent-selection-border: #5b4c40;
  --accent-selection-text: #d7b298;
}

html[data-theme="light"][data-accent="violet"] {
  --accent: #967edd;
  --accent-dark: #7158b8;
  --accent-soft: #ede8fa;
  --accent-contrast: #24183e;
  --accent-selection-bg: #f2f0f8;
  --accent-selection-border: #ddd6f1;
  --accent-selection-text: #7158b8;
}

html[data-theme="dark"][data-accent="violet"] {
  --accent: #967edd;
  --accent-dark: #b8a6ee;
  --accent-soft: #3a3154;
  --accent-contrast: #211735;
  --accent-selection-bg: #373241;
  --accent-selection-border: #544a68;
  --accent-selection-text: #b7a5ec;
}

html[data-theme="light"][data-accent="blue"] {
  --accent: #2b7aff;
  --accent-dark: #1f5fc9;
  --accent-soft: #e6efff;
  --accent-contrast: #071a3b;
  --accent-selection-bg: #eef4ff;
  --accent-selection-border: #ceddff;
  --accent-selection-text: #1f5fc9;
}

html[data-theme="dark"][data-accent="blue"] {
  --accent: #2b7aff;
  --accent-dark: #72a5ff;
  --accent-soft: #253652;
  --accent-contrast: #07152e;
  --accent-selection-bg: #2d3542;
  --accent-selection-border: #415273;
  --accent-selection-text: #79a9ff;
}

html[data-theme="light"][data-accent="graphite"] {
  --accent: #626872;
  --accent-dark: #4a5058;
  --accent-soft: #eceef0;
  --accent-contrast: #181b1f;
  --accent-selection-bg: #f1f2f3;
  --accent-selection-border: #d9dde1;
  --accent-selection-text: #505760;
}

html[data-theme="dark"][data-accent="graphite"] {
  --accent: #7b818a;
  --accent-dark: #b9bec5;
  --accent-soft: #35383d;
  --accent-contrast: #111315;
  --accent-selection-bg: #32353a;
  --accent-selection-border: #4c5158;
  --accent-selection-text: #b8bdc4;
}

.tm-icon {
  --tm-icon: none;
  display: block;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--tm-icon) center / contain no-repeat;
  mask: var(--tm-icon) center / contain no-repeat;
}

.tm-icon--cart { --tm-icon: var(--tm-icon-cart); }
.tm-icon--favorite { --tm-icon: var(--tm-icon-favorite); }
.tm-icon--compare { --tm-icon: var(--tm-icon-compare); }
.tm-icon--checklist { --tm-icon: var(--tm-icon-checklist); }
.tm-icon--dock-close { --tm-icon: var(--tm-icon-dock-close); }
.tm-icon--dock-open { --tm-icon: var(--tm-icon-dock-open); }
.tm-icon--story-grid { --tm-icon: var(--tm-icon-story-grid); }
.tm-icon--story-link { --tm-icon: var(--tm-icon-story-link); }
.tm-icon--story-copy { --tm-icon: var(--tm-icon-story-copy); }
.tm-icon--story-comments { --tm-icon: var(--tm-icon-story-comments); }

.site-header {
  grid-template-columns: minmax(250px, 1fr) minmax(300px, 620px) minmax(250px, 1fr);
}

.brand {
  gap: 12px;
  color: var(--accent-dark);
}

.brand__shell {
  --tm-icon: var(--tm-icon-logo-shell);
  width: 42px;
  height: 42px;
}

.brand__wordmark {
  --tm-icon: var(--tm-icon-logo-wordmark);
  width: 158px;
  height: 22px;
}

.header-actions {
  gap: 4px;
}

.header-action-button__icon,
.mobile-nav__asset-icon,
.mobile-favorites__icon {
  color: var(--accent-dark);
}

.header-compare-indicator {
  cursor: default;
  user-select: none;
}

.header-compare-indicator:hover {
  background: transparent;
  border-color: transparent;
}

.dock-toggle__image {
  color: var(--accent-dark);
}

.search {
  transition:
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.search:hover {
  border-color: color-mix(in srgb, var(--accent-dark) 28%, var(--border));
}

.search:focus-within {
  border-color: color-mix(in srgb, var(--accent-dark) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 9%, transparent);
}

.brand-filter__search input {
  transition: border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.brand-filter__search input:hover {
  border-color: color-mix(in srgb, var(--accent-dark) 25%, var(--border));
}

.brand-filter__search input:focus {
  border-color: color-mix(in srgb, var(--accent-dark) 40%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 8%, transparent);
}

.accent-choice-list {
  display: grid;
  gap: 2px;
  align-items: stretch;
  width: 100%;
}

.accent-choice {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.accent-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.accent-choice__swatch {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 50%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.accent-choice--aqua .accent-choice__swatch { background: #7ec5c2; }
.accent-choice--sand .accent-choice__swatch { background: #c49c7e; }
.accent-choice--violet .accent-choice__swatch { background: #967edd; }
.accent-choice--blue .accent-choice__swatch { background: #2b7aff; }
.accent-choice--graphite .accent-choice__swatch { background: #626872; }

.accent-choice:hover .accent-choice__swatch {
  transform: scale(1.06);
}

.accent-choice__label {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  transition: color 160ms ease;
}

.accent-choice:hover .accent-choice__label,
.accent-choice:has(input:checked) .accent-choice__label {
  color: var(--accent-dark);
}

.accent-choice input:checked + .accent-choice__swatch {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 3px var(--text);
}

.accent-choice input:focus-visible + .accent-choice__swatch {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px color-mix(in srgb, var(--accent) 58%, transparent);
}

.tm-state-icon {
  --tm-state-base: none;
  --tm-state-hover: var(--tm-state-active);
  --tm-state-active: var(--tm-state-base);
  --tm-state-remove: var(--tm-state-active);
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: currentColor;
}

.tm-state-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  -webkit-mask: var(--tm-state-base) center / contain no-repeat;
  mask: var(--tm-state-base) center / contain no-repeat;
  transition: opacity 160ms ease, transform 180ms ease;
}

.tm-state-icon--cart {
  --tm-state-base: var(--tm-icon-cart);
  --tm-state-hover: var(--tm-icon-cart-added);
  --tm-state-active: var(--tm-icon-cart-active);
  --tm-state-remove: var(--tm-icon-cart-remove);
}

.tm-state-icon--favorite {
  --tm-state-base: var(--tm-icon-favorite);
  --tm-state-hover: var(--tm-icon-favorite-added);
  --tm-state-active: var(--tm-icon-favorite-active);
  --tm-state-remove: var(--tm-icon-favorite-remove);
}

.tm-state-icon--compare {
  --tm-state-base: var(--tm-icon-compare);
  --tm-state-hover: var(--tm-icon-compare-hover);
  --tm-state-active: var(--tm-icon-compare-active);
  --tm-state-remove: var(--tm-icon-compare);
}

.tm-state-icon--bell {
  --tm-state-base: var(--tm-icon-bell);
  --tm-state-hover: var(--tm-icon-bell-added);
  --tm-state-active: var(--tm-icon-bell-added);
  --tm-state-remove: var(--tm-icon-bell-remove);
}

.add-button:not(.is-added):not(.is-pointer-state-locked):hover .tm-state-icon::before,
.favorite-button:not(.is-favorite):not(.is-pointer-state-locked):hover .tm-state-icon::before,
.product-compare-button:not(.is-compared):not(.is-pointer-state-locked):hover .tm-state-icon::before,
.product-utility-button:not(.is-active):not(.is-pointer-state-locked):hover .tm-state-icon::before,
.add-button:not(.is-added):focus-visible .tm-state-icon::before,
.favorite-button:not(.is-favorite):focus-visible .tm-state-icon::before,
.product-compare-button:not(.is-compared):focus-visible .tm-state-icon::before,
.product-utility-button:not(.is-active):focus-visible .tm-state-icon::before {
  -webkit-mask-image: var(--tm-state-hover);
  mask-image: var(--tm-state-hover);
}

.add-button.is-added .tm-state-icon::before,
.favorite-button.is-favorite .tm-state-icon::before,
.product-compare-button.is-compared .tm-state-icon::before,
.product-utility-button.is-active .tm-state-icon::before,
.add-button--notify.is-subscribed .tm-state-icon::before,
.tm-state-icon.is-active::before {
  -webkit-mask-image: var(--tm-state-active);
  mask-image: var(--tm-state-active);
}

.add-button.is-added:not(.is-pointer-state-locked):hover .tm-state-icon::before,
.favorite-button.is-favorite:not(.is-pointer-state-locked):hover .tm-state-icon::before,
.product-compare-button.is-compared:not(.is-pointer-state-locked):hover .tm-state-icon::before,
.product-utility-button.is-active:not(.is-pointer-state-locked):hover .tm-state-icon::before,
.add-button--notify.is-subscribed:not(.is-pointer-state-locked):hover .tm-state-icon::before,
.add-button.is-added:focus-visible .tm-state-icon::before,
.favorite-button.is-favorite:focus-visible .tm-state-icon::before,
.product-compare-button.is-compared:focus-visible .tm-state-icon::before,
.product-utility-button.is-active:focus-visible .tm-state-icon::before,
.add-button--notify.is-subscribed:focus-visible .tm-state-icon::before {
  -webkit-mask-image: var(--tm-state-remove);
  mask-image: var(--tm-state-remove);
}

/* A pointer-triggered fresh state wins over both :hover and browser focus styling until pointer exit. */
.add-button:not(.is-added):not(.is-subscribed).is-pointer-state-locked .tm-state-icon::before,
.favorite-button:not(.is-favorite).is-pointer-state-locked .tm-state-icon::before,
.product-utility-button:not(.is-active).is-pointer-state-locked .tm-state-icon::before {
  -webkit-mask-image: var(--tm-state-base);
  mask-image: var(--tm-state-base);
}

.add-button.is-added.is-pointer-state-locked .tm-state-icon::before,
.favorite-button.is-favorite.is-pointer-state-locked .tm-state-icon::before,
.product-utility-button.is-active.is-pointer-state-locked .tm-state-icon::before,
.add-button--notify.is-subscribed.is-pointer-state-locked .tm-state-icon::before {
  -webkit-mask-image: var(--tm-state-active);
  mask-image: var(--tm-state-active);
}

.product-card__quick-actions .favorite-button,
.product-compare-button {
  color: var(--text);
}

.product-card__quick-actions .favorite-button.is-favorite,
.product-compare-button.is-compared,
.add-button.is-added,
.add-button--notify.is-subscribed {
  color: var(--accent-dark);
}

.product-card__quick-actions .favorite-icon,
.product-compare-button__dot,
.product-card__cart-icon,
.compare-icon {
  display: none !important;
}

.product-card__action .tm-state-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.product-utility-button__icon.tm-state-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.sort-menu {
  width: 196px;
  min-width: 196px;
  max-width: 196px;
}

@media (max-width: 1200px) and (min-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(280px, 620px) minmax(250px, 1fr);
  }

  .brand__wordmark {
    display: none;
  }
}

@media (max-width: 899px) {
  .brand__shell {
    width: 38px;
    height: 38px;
  }

  .brand__wordmark {
    display: none;
  }

  .search:hover,
  .search:focus-within {
    background: transparent;
    box-shadow: none;
  }

  .sort-menu {
    width: min(196px, 62vw);
    min-width: min(196px, 62vw);
    max-width: min(196px, 62vw);
  }

  .tm-state-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

.header-compare-indicator.has-items .tm-icon--compare {
  --tm-icon: var(--tm-icon-compare-active);
  color: var(--accent-dark);
}

/* V0.2.68: icon hover states use the supplied checked/filled SVGs directly; no overlaid plus glyph. */


/* V0.2.69: circular accent swatches, blue palette, warmed SVG masks, and bell states. */
.add-button--notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-purchase__price-row button.is-notify {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.product-purchase__price-row button.is-notify .tm-state-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.add-button--notify:not(.is-subscribed):hover,
.add-button--notify:not(.is-subscribed):focus-visible {
  color: var(--accent-dark);
}

.add-button--notify.is-subscribed {
  color: var(--accent-dark);
}

/* V0.2.70: favorite states — outline, checked hover, plain filled active, remove hover. */

/* V0.2.71: freshly toggled cart, favorite, and notification controls keep their new state under the pointer. Remove hover appears only after pointer exit and re-entry. */


/* V0.2.72: full-bleed pinned promotion, massage-school article, comparison page,
   and a plain filled active bell (the checked bell remains hover-only). */
:root {
  --tm-icon-bell-active: url("assets/ui/bell-active.svg");
}

.tm-state-icon--bell {
  --tm-state-base: var(--tm-icon-bell);
  --tm-state-hover: var(--tm-icon-bell-added);
  --tm-state-active: var(--tm-icon-bell-active);
  --tm-state-remove: var(--tm-icon-bell-remove);
}

.catalog-promo-card__topline {
  display: none;
}

.catalog-promo-card__visual {
  order: -1;
  width: 100%;
  margin: 0;
}

.catalog-promo-card__visual .catalog-promo-card__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: clamp(12px, 1.35vw, 18px);
}

.header-compare-indicator {
  cursor: pointer;
}

/* V0.2.83: every desktop header action now shares the same restrained
   accent hover, keyboard-focus, and current-section treatment. */
@media (min-width: 900px) {
  .site-header .header-action-button:hover,
  .site-header .header-action-button:focus-visible,
  .site-header .header-action-button.is-active,
  .site-header #headerProfileButton:hover,
  .site-header #headerProfileButton:focus-visible,
  .site-header #headerProfileButton.is-active {
    color: var(--accent-dark);
    background: var(--accent-selection-bg);
    border-color: transparent;
    outline: none;
  }
}

.school-page,
.comparison-page {
  min-width: 0;
}

.school-article {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.school-article__hero {
  display: grid;
  min-height: 430px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.school-article__hero-copy {
  display: flex;
  padding: clamp(22px, 3vw, 34px);
  justify-content: center;
  flex-direction: column;
}

.school-article__eyebrow,
.school-article__intro-grid span,
.school-article__footer span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.school-article__hero h1 {
  max-width: 620px;
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
}

.school-article__hero p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.school-article__hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.school-article__hero-actions button,
.school-article__footer button {
  min-height: 38px;
  padding: 0 16px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.school-article__hero-actions button:first-child,
.school-article__footer button {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: transparent;
}

.school-article__hero-media {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.school-article__hero-media img,
.school-article__media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-article__hero-media figcaption,
.school-article__media-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(20, 22, 21, 0.56);
  border-radius: 999px;
  font-size: 10px;
}

.school-article__intro-grid {
  display: grid;
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(40px, 6vw, 86px) clamp(10px, 3vw, 34px);
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
}

.school-article__intro-grid h2 {
  margin: 9px 0 0;
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

.school-article__intro-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.school-article__media-grid {
  display: grid;
  gap: 12px;
  margin: clamp(28px, 4vw, 52px) 0;
  grid-template-columns: 1.25fr 0.75fr;
}

.school-article__media-grid figure,
.school-article__media-placeholder {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.school-article__media-placeholder {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-direction: column;
}

.school-article__media-placeholder span {
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.school-article__sections {
  display: grid;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-article__sections article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.school-article__sections article > span {
  color: var(--accent-dark);
  font-size: 12px;
}

.school-article__sections h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.school-article__sections p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.school-article__footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 24px 0 4px;
}

.school-article__footer div {
  display: grid;
  gap: 5px;
}

.school-article__footer strong {
  font-size: 18px;
  font-weight: 500;
}

.comparison-page__toolbar {
  display: flex;
  min-height: 44px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.comparison-page__toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-page__toolbar button,
.comparison-empty button {
  min-height: 34px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
}

.comparison-scroll {
  overflow: auto hidden;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.comparison-table {
  display: grid;
  min-width: calc(160px + var(--comparison-columns) * 220px);
  grid-template-columns: 160px repeat(var(--comparison-columns), minmax(220px, 1fr));
}

.comparison-corner,
.comparison-product-head,
.comparison-row-label,
.comparison-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-corner {
  background: var(--surface-soft);
}

.comparison-product-head {
  position: relative;
  display: flex;
  min-height: 340px;
  padding: 18px;
  background: var(--surface);
  flex-direction: column;
}

.comparison-product-head__remove {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}

.comparison-product-head__remove:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.comparison-product-head__image {
  display: flex;
  height: 170px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.comparison-product-head__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comparison-product-head > span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.comparison-product-head > strong {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comparison-product-head__action {
  margin-top: auto;
  padding-top: 12px;
}

.comparison-product-head__action .add-button {
  width: 42px;
  height: 36px;
  margin-left: auto;
}

.comparison-row-label,
.comparison-cell {
  min-height: 58px;
  padding: 16px;
}

.comparison-row-label {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
}

.comparison-cell {
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
}

.comparison-cell .product-price {
  min-height: auto;
}

.comparison-no-results {
  display: grid;
  gap: 5px;
  padding: 42px 20px;
  text-align: center;
}

.comparison-no-results span {
  color: var(--muted);
  font-size: 13px;
}

/* These two article-like pages use the same page-mode dock as account/cart/info. */
body[data-view="school"] .filters__count,
body[data-view="comparison"] .filters__count,
body[data-view="school"] .filter-group,
body[data-view="comparison"] .filter-group,
body[data-view="school"] .reset-button,
body[data-view="comparison"] .reset-button {
  display: none !important;
}

body[data-view="school"] .filters__header,
body[data-view="comparison"] .filters__header {
  min-height: 0;
  padding: 0;
  border: 0;
}

body[data-view="school"],
body[data-view="comparison"] {
  --two-rail-main-header-height: 72px;
  --two-rail-sub-header-height: 44px;
  --two-rail-total-height: calc(var(--two-rail-main-header-height) + var(--two-rail-sub-header-height));
}

body[data-view="school"]::before,
body[data-view="comparison"]::before {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--two-rail-total-height);
  content: "";
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
  backdrop-filter: blur(24px) saturate(128%);
}

body[data-view="school"] .site-header,
body[data-view="school"] .catalog-bar,
body[data-view="comparison"] .site-header,
body[data-view="comparison"] .catalog-bar {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body[data-view="school"] .site-header,
body[data-view="comparison"] .site-header {
  min-height: var(--two-rail-main-header-height);
  border-bottom: 1px solid var(--border) !important;
}

body[data-view="school"] .catalog-bar,
body[data-view="comparison"] .catalog-bar {
  top: var(--two-rail-main-header-height);
  height: var(--two-rail-sub-header-height);
  min-height: var(--two-rail-sub-header-height);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

body[data-view="school"] .category-strip-dock-host:has(> .category-strip),
body[data-view="comparison"] .category-strip-dock-host:has(> .category-strip) {
  display: block !important;
}

body[data-view="school"] .category-strip.is-in-dock,
body[data-view="comparison"] .category-strip.is-in-dock {
  display: grid !important;
  padding-top: 6px;
  padding-bottom: 10px;
}

body[data-view="school"] .filters,
body[data-view="comparison"] .filters {
  grid-template-rows: minmax(0, 1fr);
}

body[data-view="school"] .filters__header,
body[data-view="comparison"] .filters__header {
  display: none;
}

body[data-view="school"] .filters__scroll,
body[data-view="comparison"] .filters__scroll {
  padding-top: 0;
}

body[data-view="school"] .dock-preferences,
body[data-view="comparison"] .dock-preferences {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  body[data-view="school"] .filters,
  body[data-view="comparison"] .filters {
    display: grid !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="school"] .filters__scroll,
  body[data-view="comparison"] .filters__scroll {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 899px) {
  body[data-view="school"],
  body[data-view="comparison"] {
    --two-rail-main-header-height: 62px;
    --two-rail-sub-header-height: 42px;
  }

  body[data-view="school"]::before,
  body[data-view="comparison"]::before {
    height: var(--two-rail-total-height);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
  }

  .catalog-promo-card__visual .catalog-promo-card__badge {
    top: 10px;
    left: 10px;
  }

  .school-article__hero {
    grid-template-columns: 1fr;
  }

  .school-article__hero-media {
    min-height: 300px;
    order: -1;
  }

  .school-article__hero-copy {
    padding: 24px 18px 28px;
  }

  .school-article__intro-grid,
  .school-article__media-grid,
  .school-article__sections {
    grid-template-columns: 1fr;
  }

  .school-article__intro-grid {
    padding: 36px 4px;
  }

  .school-article__media-grid figure,
  .school-article__media-placeholder {
    min-height: 250px;
  }

  .school-article__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .comparison-table {
    min-width: calc(112px + var(--comparison-columns) * 190px);
    grid-template-columns: 112px repeat(var(--comparison-columns), minmax(190px, 1fr));
  }

  .comparison-product-head {
    min-height: 310px;
    padding: 14px;
  }

  .comparison-product-head__image {
    height: 145px;
  }

  .comparison-row-label,
  .comparison-cell {
    padding: 12px;
  }
}


/* V0.2.74: deterministic KB-style icon handoff and exact cart state machine.
   Every mask remains raster-warm. A target layer becomes visible before the
   previous layer fades, so crossed-out states never pass through an empty frame. */
.tm-mask-raster-cache {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  display: grid;
  grid-auto-flow: column;
  width: 24px;
  height: 24px;
  overflow: visible;
  opacity: 0.001;
  pointer-events: none;
  contain: layout style paint;
}

.tm-mask-raster-cache__item {
  display: block;
  width: 24px;
  height: 24px;
  background: #000;
  -webkit-mask: var(--tm-warm-mask) center / contain no-repeat;
  mask: var(--tm-warm-mask) center / contain no-repeat;
  transform: translateZ(0);
}

.tm-state-icon--layered {
  contain: paint;
  isolation: isolate;
}

.tm-state-icon--layered::before {
  content: none;
}

.tm-state-icon__layer {
  position: absolute;
  inset: 0;
  display: block;
  background: currentColor;
  opacity: 0.001;
  transform: translateZ(0);
  transition-property: opacity;
  transition-duration: 56ms;
  transition-timing-function: linear;
  transition-delay: 30ms;
  backface-visibility: hidden;
  will-change: opacity;
}

.tm-state-icon__layer--base {
  -webkit-mask: var(--tm-state-base) center / contain no-repeat;
  mask: var(--tm-state-base) center / contain no-repeat;
  opacity: 1;
  transition-delay: 0ms;
}

.tm-state-icon__layer--hover {
  -webkit-mask: var(--tm-state-hover) center / contain no-repeat;
  mask: var(--tm-state-hover) center / contain no-repeat;
}

.tm-state-icon__layer--active {
  -webkit-mask: var(--tm-state-active) center / contain no-repeat;
  mask: var(--tm-state-active) center / contain no-repeat;
}

.tm-state-icon__layer--remove {
  -webkit-mask: var(--tm-state-remove) center / contain no-repeat;
  mask: var(--tm-state-remove) center / contain no-repeat;
}

/* Inactive hover/focus: target enters first, base leaves after a short overlap. */
.add-button:not(.is-added):not(.is-subscribed):not(.is-pointer-state-locked):hover .tm-state-icon__layer--base,
.favorite-button:not(.is-favorite):not(.is-pointer-state-locked):hover .tm-state-icon__layer--base,
.product-compare-button:not(.is-compared):not(.is-pointer-state-locked):hover .tm-state-icon__layer--base,
.product-utility-button:not(.is-active):not(.is-pointer-state-locked):hover .tm-state-icon__layer--base,
.add-button:not(.is-added):not(.is-subscribed):focus-visible .tm-state-icon__layer--base,
.favorite-button:not(.is-favorite):focus-visible .tm-state-icon__layer--base,
.product-compare-button:not(.is-compared):focus-visible .tm-state-icon__layer--base,
.product-utility-button:not(.is-active):focus-visible .tm-state-icon__layer--base {
  opacity: 0.001;
  transition-delay: 30ms;
}

.add-button:not(.is-added):not(.is-subscribed):not(.is-pointer-state-locked):hover .tm-state-icon__layer--hover,
.favorite-button:not(.is-favorite):not(.is-pointer-state-locked):hover .tm-state-icon__layer--hover,
.product-compare-button:not(.is-compared):not(.is-pointer-state-locked):hover .tm-state-icon__layer--hover,
.product-utility-button:not(.is-active):not(.is-pointer-state-locked):hover .tm-state-icon__layer--hover,
.add-button:not(.is-added):not(.is-subscribed):focus-visible .tm-state-icon__layer--hover,
.favorite-button:not(.is-favorite):focus-visible .tm-state-icon__layer--hover,
.product-compare-button:not(.is-compared):focus-visible .tm-state-icon__layer--hover,
.product-utility-button:not(.is-active):focus-visible .tm-state-icon__layer--hover {
  opacity: 1;
  transition-delay: 0ms;
}

/* Active resting state. */
.add-button.is-added .tm-state-icon__layer--base,
.favorite-button.is-favorite .tm-state-icon__layer--base,
.product-compare-button.is-compared .tm-state-icon__layer--base,
.product-utility-button.is-active .tm-state-icon__layer--base,
.add-button--notify.is-subscribed .tm-state-icon__layer--base {
  opacity: 0.001;
  transition-delay: 30ms;
}

.add-button.is-added .tm-state-icon__layer--active,
.favorite-button.is-favorite .tm-state-icon__layer--active,
.product-compare-button.is-compared .tm-state-icon__layer--active,
.product-utility-button.is-active .tm-state-icon__layer--active,
.add-button--notify.is-subscribed .tm-state-icon__layer--active {
  opacity: 1;
  transition-delay: 0ms;
}

/* Remove state only on a genuine second pointer entry. The remove layer enters
   before the active layer leaves, eliminating the perceived missing frame. */
.add-button.is-added:not(.is-pointer-state-locked):not(.is-cart-animating):hover .tm-state-icon__layer--active,
.favorite-button.is-favorite:not(.is-pointer-state-locked):hover .tm-state-icon__layer--active,
.product-compare-button.is-compared:not(.is-pointer-state-locked):hover .tm-state-icon__layer--active,
.product-utility-button.is-active:not(.is-pointer-state-locked):hover .tm-state-icon__layer--active,
.add-button--notify.is-subscribed:not(.is-pointer-state-locked):hover .tm-state-icon__layer--active,
.add-button.is-added:focus-visible .tm-state-icon__layer--active,
.favorite-button.is-favorite:focus-visible .tm-state-icon__layer--active,
.product-compare-button.is-compared:focus-visible .tm-state-icon__layer--active,
.product-utility-button.is-active:focus-visible .tm-state-icon__layer--active,
.add-button--notify.is-subscribed:focus-visible .tm-state-icon__layer--active {
  opacity: 0.001;
  transition-delay: 30ms;
}

.add-button.is-added:not(.is-pointer-state-locked):not(.is-cart-animating):hover .tm-state-icon__layer--remove,
.favorite-button.is-favorite:not(.is-pointer-state-locked):hover .tm-state-icon__layer--remove,
.product-compare-button.is-compared:not(.is-pointer-state-locked):hover .tm-state-icon__layer--remove,
.product-utility-button.is-active:not(.is-pointer-state-locked):hover .tm-state-icon__layer--remove,
.add-button--notify.is-subscribed:not(.is-pointer-state-locked):hover .tm-state-icon__layer--remove,
.add-button.is-added:focus-visible .tm-state-icon__layer--remove,
.favorite-button.is-favorite:focus-visible .tm-state-icon__layer--remove,
.product-compare-button.is-compared:focus-visible .tm-state-icon__layer--remove,
.product-utility-button.is-active:focus-visible .tm-state-icon__layer--remove,
.add-button--notify.is-subscribed:focus-visible .tm-state-icon__layer--remove {
  opacity: 1;
  transition-delay: 0ms;
}

/* Fresh pointer state always wins until pointer exit. This makes the exact cart
   sequence deterministic: outline -> checked hover -> filled active -> crossed
   second hover -> outline immediately after removal under the same pointer. */
.is-pointer-state-locked .tm-state-icon__layer--hover,
.is-pointer-state-locked .tm-state-icon__layer--remove {
  opacity: 0.001 !important;
  transition-delay: 30ms !important;
}

.add-button:not(.is-added):not(.is-subscribed).is-pointer-state-locked .tm-state-icon__layer--base,
.favorite-button:not(.is-favorite).is-pointer-state-locked .tm-state-icon__layer--base,
.product-compare-button:not(.is-compared).is-pointer-state-locked .tm-state-icon__layer--base,
.product-utility-button:not(.is-active).is-pointer-state-locked .tm-state-icon__layer--base {
  opacity: 1 !important;
  transition-delay: 0ms !important;
}

.add-button.is-added.is-pointer-state-locked .tm-state-icon__layer--active,
.favorite-button.is-favorite.is-pointer-state-locked .tm-state-icon__layer--active,
.product-compare-button.is-compared.is-pointer-state-locked .tm-state-icon__layer--active,
.product-utility-button.is-active.is-pointer-state-locked .tm-state-icon__layer--active,
.add-button--notify.is-subscribed.is-pointer-state-locked .tm-state-icon__layer--active,
.add-button.is-added.is-cart-animating .tm-state-icon__layer--active {
  opacity: 1 !important;
  transition-delay: 0ms !important;
}

.add-button.is-added.is-cart-animating .tm-state-icon__layer--remove {
  opacity: 0.001 !important;
  transition-delay: 30ms !important;
}

/* The price-bubble action uses one permanent accent layer. Hover, immediate
   committed cart state, flight, impact, and removal under the pointer never
   recreate or drop this surface. */
.add-button.product-card__action,
.product-card--certificate .add-button.product-card__action {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

.add-button.product-card__action::before,
.product-card--certificate .add-button.product-card__action::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: var(--accent-selection-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 110ms ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.add-button.product-card__action > *,
.product-card--certificate .add-button.product-card__action > * {
  position: relative;
  z-index: 1;
}

.add-button.product-card__action:hover::before,
.add-button.product-card__action:focus-visible::before,
.add-button.product-card__action.is-cart-animating::before,
.add-button.product-card__action.is-added::before,
.add-button.product-card__action.is-subscribed::before,
.product-card--certificate .add-button.product-card__action:hover::before,
.product-card--certificate .add-button.product-card__action:focus-visible::before,
.product-card--certificate .add-button.product-card__action.is-cart-animating::before,
.product-card--certificate .add-button.product-card__action.is-added::before,
.product-card--certificate .add-button.product-card__action.is-subscribed::before {
  opacity: 1;
}


/* V0.2.75: five vertical mood accents with visible labels and graphite Silence palette. */


/* V0.2.76: compact mood swatches, smaller shell logo, KB-style dynamic search,
   and a five-item mobile commerce dock with accent counters. */

/* Quiet swatches are smaller at rest; the existing hover grow remains visible. */
.accent-choice {
  grid-template-columns: 30px minmax(0, 1fr);
}

.accent-choice__swatch {
  width: 18px;
  height: 18px;
}

.accent-choice:hover .accent-choice__swatch {
  transform: scale(1.12);
}

/* The shell is slightly quieter than the wordmark and no longer dominates the header. */
.brand__shell {
  width: 38px;
  height: 38px;
}

/* Search action lives on the right. Placeholder changes fade as one complete phrase. */
.search {
  position: relative;
  min-width: 0;
  padding: 0 6px 0 16px;
  overflow: hidden;
}

.search input {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.search input::placeholder {
  opacity: 1;
  transition: opacity 180ms ease;
}

.search.is-placeholder-fading input::placeholder {
  opacity: 0;
}

.search__action {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 34px;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease;
}

.search__action:disabled {
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

.search__action.is-clear:hover,
.search__action.is-clear:focus-visible {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-selection-bg) 72%, transparent);
}

.search__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  color: currentColor;
}

.search__icon::before,
.search__icon::after {
  transition:
    top 180ms ease,
    right 180ms ease,
    bottom 180ms ease,
    left 180ms ease,
    width 180ms ease,
    height 180ms ease,
    border-width 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.search__action.is-clear .search__icon::before,
.search__action.is-clear .search__icon::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  border: 0;
  border-radius: 999px;
  transform-origin: center;
}

.search__action.is-clear .search__icon::before {
  transform: rotate(45deg);
}

.search__action.is-clear .search__icon::after {
  right: auto;
  bottom: auto;
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  body {
    padding-bottom: 78px;
  }

  .site-header {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    overflow: hidden;
  }

  .brand {
    width: 34px;
    min-width: 34px;
  }

  .brand__shell {
    width: 34px;
    height: 34px;
  }

  .search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 3px 0 12px;
    background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 999px;
  }

  .search:hover,
  .search:focus-within {
    background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
    border-color: color-mix(in srgb, var(--accent-dark) 34%, var(--border));
    box-shadow: none;
  }

  .search input {
    width: auto;
    min-width: 0;
  }

  .search__action {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 70px;
  }

  .mobile-nav button {
    min-width: 0;
    padding: 10px 2px 3px;
  }

  .mobile-nav__asset-icon,
  .mobile-favorites__icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    color: var(--accent-dark);
  }

  .mobile-favorites .tm-icon--favorite {
    display: block;
    visibility: visible;
  }

  .mobile-compare.has-items .tm-icon--compare,
  .mobile-compare.is-active .tm-icon--compare {
    --tm-icon: var(--tm-icon-compare-active);
  }

  .mobile-counter {
    top: 2px;
    left: 50%;
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    color: var(--accent-contrast);
    background: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent-dark) 18%, transparent);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    transform: translateX(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search input::placeholder,
  .search__icon::before,
  .search__icon::after,
  .accent-choice__swatch {
    transition: none;
  }
}


/* V0.2.77: calm mobile counters, layered search crossfade, and accent social icons. */

/* Mobile counters stay as quiet accent numerals above the icons. The shared
   blurred navigation surface already supplies enough separation. */
@media (max-width: 899px) {
  .mobile-counter {
    top: 1px;
    left: 50%;
    min-width: 0;
    height: auto;
    padding: 0;
    color: var(--accent-selection-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    transform: translateX(6px);
    box-shadow: none;
  }
}

/* The search glyph is two permanently mounted layers. Switching state only
   crossfades opacity/scale, so the magnifier never has to morph into an X. */
.search {
  padding-right: 10px;
}

.search input {
  padding-right: 7px;
}

.search__action {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.search__icon {
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0;
  place-items: center;
}

.search__icon::before,
.search__icon::after {
  content: none !important;
}

.search__glyph {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 150ms linear,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.search__glyph--magnifier {
  opacity: 1;
  transform: scale(1);
}

.search__glyph--magnifier::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search__glyph--magnifier::after {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: center;
}

.search__glyph--clear::before,
.search__glyph--clear::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}

.search__glyph--clear::before {
  transform: rotate(45deg);
}

.search__glyph--clear::after {
  transform: rotate(-45deg);
}

.search__action.is-clear .search__glyph--magnifier {
  opacity: 0;
  transform: scale(0.92);
}

.search__action.is-clear .search__glyph--clear {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 899px) {
  .search {
    padding-right: 8px;
  }

  .search__action {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

/* Social arrows are replaced by supplied vector marks. CSS masks keep the
   source files monochrome and let the active mood recolour them automatically. */
.dock-links__socials button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.dock-social-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: var(--accent-dark);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.dock-social-icon--instagram {
  -webkit-mask-image: url("assets/ui/instagram.svg");
  mask-image: url("assets/ui/instagram.svg");
}

.dock-social-icon--telegram {
  -webkit-mask-image: url("assets/ui/telegram.svg");
  mask-image: url("assets/ui/telegram.svg");
}

@media (prefers-reduced-motion: reduce) {
  .search__glyph {
    transition: none;
  }
}

/* V0.2.78: mobile counter alignment and bottom-edge seam guard. */
@media (max-width: 899px) {
  .mobile-nav {
    bottom: -2px;
    min-height: 72px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 2px);
  }

  .mobile-nav button {
    justify-content: flex-start;
    padding: 22px 2px 3px;
  }

  .mobile-counter {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* V0.2.79: mobile cart counters remain geometrically fixed during impact. */
@media (max-width: 899px) {
  .mobile-counter {
    font-variant-numeric: tabular-nums;
    transform-origin: center;
    will-change: auto;
  }
}

/* V0.2.80: quieter mobile search typography and identical compositor-stable
   cart impact settling on mobile and desktop. */
@media (max-width: 899px) {
  .search input {
    font-size: 14px;
    line-height: 1.25;
  }

  .search input::placeholder {
    font-size: inherit;
  }
}

.header-action-button__icon.is-cart-impacting,
.mobile-nav__icon-slot.is-cart-impacting {
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}

/* V0.2.81: every mobile vector glyph sits inside the same fixed compositor slot.
   Active masks may change, but the layout box and rasterized inner glyph do not. */
@media (max-width: 899px) {
  .mobile-nav__icon-slot {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    contain: layout paint;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 50% 50%;
    backface-visibility: hidden;
  }

  .mobile-nav__icon-slot > .mobile-nav__asset-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    transform: none;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
  }
}


/* V0.2.82: preserve the full mobile Home breadcrumb instead of collapsing it to “Г…”. */
@media (max-width: 430px) {
  .breadcrumbs {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .breadcrumbs #breadcrumbsHome,
  .breadcrumbs #breadcrumbDivider,
  .breadcrumbs #breadcrumbProductDivider {
    flex: 0 0 auto;
  }

  .breadcrumbs #breadcrumbCategory,
  .breadcrumbs #breadcrumbProduct {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sort-menu {
    width: clamp(164px, 48vw, 196px);
    min-width: clamp(164px, 48vw, 196px);
    max-width: clamp(164px, 48vw, 196px);
  }
}

@media (max-width: 340px) {
  .breadcrumbs:has(#breadcrumbCategory:not([hidden])) #breadcrumbsHome,
  .breadcrumbs:has(#breadcrumbCategory:not([hidden])) #breadcrumbDivider {
    display: none;
  }
}

/* V0.2.89: final catalog sections, contextual dock controls and the revised purchase flow. */
.dock-section__summary {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-weight: 500;
}

.dock-section__summary:hover,
.dock-section__summary:focus-visible {
  color: var(--accent-selection-text);
}

.dock-section__chevron {
  opacity: 0.72;
}

.dock-section__summary:hover .dock-section__chevron,
.dock-section__summary:focus-visible .dock-section__chevron {
  opacity: 1;
}

.category-strip.is-in-dock .category-chip {
  padding-inline: 12px;
}

#gridPreferenceFieldset[hidden],
.dock-section[hidden],
.purchase-panel[hidden],
.checkout-options[hidden] {
  display: none !important;
}

.products-grid.products-grid--sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px 30px;
}

.section-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(64px, 1fr) auto;
  min-width: 0;
  min-height: 168px;
  padding: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    color 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.section-card::before {
  position: absolute;
  inset: auto -28px -38px auto;
  width: 116px;
  height: 116px;
  content: "";
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 50%;
  transition: transform 220ms ease, background-color 170ms ease;
}

.section-card:hover,
.section-card:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
  transform: translateY(-2px);
}

.section-card:hover::before,
.section-card:focus-visible::before {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  transform: scale(1.08);
}

.section-card__number {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.section-card__copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 6px;
  grid-column: 1 / -1;
}

.section-card__copy strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
}

.section-card__copy small,
.section-card__meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.section-card__copy small {
  max-width: 32ch;
}

.section-card__meta {
  align-self: end;
}

.section-card__arrow {
  position: relative;
  z-index: 1;
  align-self: end;
  color: var(--accent-selection-text);
  font-size: 18px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 170ms ease;
}

.section-card:hover .section-card__arrow,
.section-card:focus-visible .section-card__arrow {
  transform: translateX(3px);
}

.checkout-options {
  display: grid;
  gap: 12px;
}

.checkout-details-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.checkout-details-card__heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.checkout-field,
.checkout-choice-group {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.checkout-field > span,
.checkout-choice-group > legend,
.cart-card-phrases > legend {
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.checkout-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

.checkout-field input:focus {
  border-color: var(--accent-selection-border);
  outline: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.checkout-choice-group,
.cart-card-phrases {
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-choice-grid--payment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 66px;
  padding: 12px 13px;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.checkout-choice:hover,
.checkout-choice:focus-within,
.checkout-choice.is-selected,
.checkout-choice:has(input:checked) {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.checkout-choice input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: var(--accent-dark);
}

.checkout-choice > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.checkout-choice strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.checkout-choice small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.cart-card-phrases {
  display: grid;
  gap: 8px;
}

.cart-card-phrases__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cart-card-phrase {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cart-card-phrase input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cart-card-phrase:hover,
.cart-card-phrase:focus-within,
.cart-card-phrase.is-selected,
.cart-card-phrase:has(input:checked) {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.purchase-orders-panel {
  display: grid;
  gap: 30px;
}

.purchase-orders-group {
  display: grid;
  gap: 12px;
}

.purchase-orders-group__header {
  padding: 0 2px;
}

.purchase-orders-group__header h2,
.purchase-orders-group__header p {
  margin: 0;
}

.purchase-orders-group__header h2 {
  font-size: 18px;
  font-weight: 600;
}

.purchase-orders-group__header p {
  max-width: 72ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.purchase-order__footer {
  align-items: stretch;
}

.purchase-order__totals {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.purchase-order__totals > strong {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.purchase-order__repeat {
  display: flex;
  max-width: 360px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.purchase-order__repeat > small {
  max-width: 190px;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
  line-height: 1.35;
}

.purchase-order__repeat > button {
  min-height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border: 1px solid var(--accent-selection-border);
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
}

.purchase-order__repeat > button:hover,
.purchase-order__repeat > button:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.cart-summary > p[data-tone="status"] {
  color: var(--accent-selection-text);
}

@media (max-width: 1120px) {
  .products-grid.products-grid--sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-choice-grid--payment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .products-grid.products-grid--sections {
    gap: 10px;
    padding: 14px 16px 24px;
  }

  .section-card {
    min-height: 154px;
    padding: 16px;
  }

  .checkout-choice-grid,
  .checkout-choice-grid--payment {
    grid-template-columns: 1fr;
  }

  .purchase-order__footer {
    display: grid;
    gap: 12px;
  }

  .purchase-order__repeat {
    max-width: none;
    padding: 12px 0 0;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .purchase-order__repeat > small {
    max-width: 220px;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .products-grid.products-grid--sections {
    grid-template-columns: 1fr;
  }

  .section-card {
    min-height: 138px;
    grid-template-rows: auto minmax(54px, 1fr) auto;
  }

  .checkout-details-card,
  .cart-extra-card {
    padding: 14px;
  }

  .cart-card-phrases__list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-card-phrase {
    justify-content: flex-start;
  }

  .purchase-order__totals {
    align-items: flex-start;
  }

  .purchase-order__repeat {
    display: grid;
  }

  .purchase-order__repeat > button {
    width: 100%;
  }
}

/* V0.2.90: cleaner dock grouping, notification routing, account simplification,
   soft social fades, and fully rounded purchase tabs. */
.dock-section--settings {
  border-top: 0;
}

.dock-section--settings .dock-preferences,
body:not([data-view="catalog"]) .dock-section--settings .dock-preferences {
  margin-top: 0 !important;
  padding-top: 4px !important;
  border-top: 0 !important;
}

.dock-links__socials button {
  opacity: 0.9;
  transition:
    color 220ms ease,
    background-color 260ms ease,
    border-color 220ms ease,
    opacity 220ms ease;
}

.dock-social-icon {
  opacity: 0.82;
  transition:
    background-color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.dock-links__socials button:hover,
.dock-links__socials button:focus-visible {
  opacity: 1;
}

.dock-links__socials button:hover .dock-social-icon,
.dock-links__socials button:focus-visible .dock-social-icon {
  background-color: currentColor;
  opacity: 1;
  transform: translateY(-1px);
}

.purchase-tabs {
  gap: 8px;
  align-items: center;
  border-bottom: 0;
}

.purchase-tab {
  border: 1px solid transparent;
  border-radius: 999px;
}

.purchase-tab:hover,
.purchase-tab:focus-visible {
  border-color: var(--accent-selection-border);
  outline: none;
}

.purchase-tab.is-active {
  border-color: var(--accent-selection-border);
}

.purchase-tab.is-active::after {
  content: none;
}

.cart-empty__icon.tm-icon--cart {
  width: 58px;
  height: 58px;
  color: var(--accent-selection-text);
}

.profile-card--identity {
  grid-template-columns: auto minmax(180px, 1fr) minmax(250px, 0.9fr) auto;
}

.profile-identity__person,
.profile-identity__address {
  min-width: 0;
}

.profile-identity__address {
  display: grid;
  gap: 3px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.profile-identity__address strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-link--inline {
  width: max-content;
  margin-top: 8px;
}

.tm-icon--bell {
  --tm-icon: var(--tm-icon-bell);
}

.notifications-layout {
  display: grid;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  gap: 12px;
}

.notifications-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.notifications-card--overview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.notifications-card__icon {
  width: 28px;
  height: 28px;
  place-self: center;
  color: var(--accent-selection-text);
}

.notifications-card--overview h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.notifications-card--overview .profile-kicker {
  margin-bottom: 4px;
}

.notifications-card--overview .profile-muted {
  max-width: 64ch;
}

.notifications-card--stock .profile-section-heading {
  margin-bottom: 14px;
}

body[data-view="notifications"] .dock-shortcuts #dockNotificationsButton {
  color: var(--accent-selection-text);
}

@media (max-width: 899px) {
  .profile-card--identity {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-identity__address {
    grid-column: 2 / -1;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .profile-edit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .profile-card--identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-identity__address {
    grid-column: 1 / -1;
  }

  .notifications-card {
    padding: 16px;
  }

  .notifications-card--overview {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .notifications-card--overview > .profile-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-links__socials button,
  .dock-social-icon {
    transition: none;
  }
}

/* V0.2.91: calm dock hierarchy, a stable notifications dock, and dated blog articles. */
.dock-section {
  border-top: 0;
}

.dock-section--filters,
.dock-section--menu,
.dock-section--settings {
  position: relative;
  margin-top: 10px;
  padding-top: 10px;
}

.dock-section--filters::before,
.dock-section--menu::before,
.dock-section--settings::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--border);
  opacity: 0.86;
}

.dock-section--settings .dock-preferences,
body:not([data-view="catalog"]) .dock-section--settings .dock-preferences {
  margin-top: 0 !important;
  padding-top: 4px !important;
  border-top: 0 !important;
}

.category-strip__divider {
  display: none;
}

.category-strip.is-in-dock .category-strip__divider {
  display: block;
  height: 1px;
  margin: 7px 10px;
  background: var(--border);
  opacity: 0.74;
}

/* Notifications use exactly the same dock and two-rail page geometry as the
   account/cart/info views. The missing view selectors previously left the
   category strip in its horizontal mode and pushed the remaining dock groups
   out of sight. */
body[data-view="notifications"] {
  --two-rail-main-header-height: 72px;
  --two-rail-sub-header-height: 44px;
  --two-rail-total-height: calc(
    var(--two-rail-main-header-height) + var(--two-rail-sub-header-height)
  );
}

body[data-view="notifications"]::before {
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  left: 0;
  height: var(--two-rail-total-height);
  content: "";
  pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

body[data-view="notifications"] .site-header,
body[data-view="notifications"] .catalog-bar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-view="notifications"] .site-header {
  min-height: var(--two-rail-main-header-height);
  border-bottom: 1px solid var(--border);
}

body[data-view="notifications"] .site-header::after {
  display: none;
}

body[data-view="notifications"] .catalog-bar {
  top: var(--two-rail-main-header-height);
  height: var(--two-rail-sub-header-height);
  min-height: var(--two-rail-sub-header-height);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

body[data-view="notifications"] .filters__count,
body[data-view="notifications"] .filter-group,
body[data-view="notifications"] .reset-button {
  display: none !important;
}

body[data-view="notifications"] .filters {
  grid-template-rows: minmax(0, 1fr);
}

body[data-view="notifications"] .filters__header {
  display: none;
}

body[data-view="notifications"] .filters__scroll {
  padding-top: 0;
}

body[data-view="notifications"] .category-strip-dock-host:has(> .category-strip) {
  display: block !important;
}

body[data-view="notifications"] .category-strip.is-in-dock {
  display: grid !important;
  padding-top: 6px;
  padding-bottom: 10px;
}

body[data-view="notifications"] .dock-preferences {
  margin-top: 0 !important;
  padding-top: 4px !important;
  border-top: 0 !important;
}

.info-page--blog .info-page__card {
  max-width: 1120px;
  padding: 0;
  background: transparent;
  border: 0;
}

.blog-reader {
  width: 100%;
}

.blog-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.blog-toolbar__navigation {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.blog-toolbar__button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent-selection-bg) 64%, transparent);
  border: 1px solid var(--accent-selection-border);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.blog-toolbar__button:hover,
.blog-toolbar__button:focus-visible,
.blog-toolbar__button[aria-expanded="true"] {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-text);
  outline: none;
}

.blog-toolbar__button:disabled {
  opacity: 0.38;
  cursor: default;
}

.blog-toolbar__button:disabled:hover {
  color: var(--muted);
  background: color-mix(in srgb, var(--accent-selection-bg) 64%, transparent);
  border-color: var(--accent-selection-border);
}

.blog-calendar-shell {
  position: relative;
  flex: 0 0 auto;
}

.blog-calendar-button__glyph {
  position: relative;
  width: 15px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.blog-calendar-button__glyph::before,
.blog-calendar-button__glyph::after {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.blog-calendar-button__glyph::before {
  left: 3px;
}

.blog-calendar-button__glyph::after {
  right: 3px;
}

.blog-calendar {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 246px;
  padding: 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}

.blog-calendar__month {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.blog-calendar__weekdays,
.blog-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.blog-calendar__weekdays {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.blog-calendar__weekdays span {
  line-height: 20px;
}

.blog-calendar__blank,
.blog-calendar__day {
  aspect-ratio: 1;
}

.blog-calendar__day {
  display: grid;
  width: 100%;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
}

.blog-calendar__day:disabled {
  opacity: 0.38;
}

.blog-calendar__day.has-article {
  cursor: pointer;
  color: var(--text);
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

.blog-calendar__day.has-article:hover,
.blog-calendar__day.has-article:focus-visible,
.blog-calendar__day.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  box-shadow: inset 0 0 0 1px var(--accent-selection-border);
  outline: none;
}

.blog-article {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.blog-article__media {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 6px;
}

.blog-article__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.blog-article__media figcaption {
  padding: 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.blog-article__content {
  max-width: 840px;
  padding: 20px 30px 34px;
}

.blog-article__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.blog-article__meta span {
  padding: 5px 8px;
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-radius: 999px;
}

.blog-article h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.blog-article__lead {
  max-width: 720px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.blog-article__body {
  display: grid;
  max-width: 760px;
  gap: 16px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.blog-article__body p {
  margin: 0;
}

.blog-quote {
  margin: 4px 0;
  padding: 16px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent-selection-bg) 66%, transparent);
  border: 1px solid var(--accent-selection-border);
  border-radius: 18px;
}

.blog-quote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.blog-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.blog-inline-figure {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.blog-inline-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.blog-inline-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.blog-video-placeholder {
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px dashed var(--accent-selection-border);
  border-radius: 18px;
}

.blog-video-placeholder__play {
  position: relative;
  align-self: start;
  width: 46px;
  height: 46px;
  background: color-mix(in srgb, var(--accent-selection-bg) 74%, transparent);
  border: 1px solid var(--accent-selection-border);
  border-radius: 50%;
}

.blog-video-placeholder__play::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--accent-selection-text);
  transform: translate(-35%, -50%);
}

.blog-video-placeholder__copy {
  display: grid;
  gap: 6px;
}

.blog-video-placeholder__copy strong {
  font-size: 15px;
  font-weight: 600;
}

.blog-video-placeholder__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-related-products {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.blog-related-products h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

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

.blog-related-product {
  position: relative;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.blog-related-product__hit-area {
  position: absolute;
  inset: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

.blog-related-product__visual {
  display: grid;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, var(--related-a), var(--related-b));
  border-radius: 14px;
}

.blog-related-product__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related-product__symbol {
  color: rgba(255, 255, 255, 0.92);
  font-size: 26px;
}

.blog-related-product__copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.blog-related-product__brand {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-related-product__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.blog-related-product__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.blog-related-product__price {
  font-weight: 600;
}

.blog-related-product__action {
  color: var(--accent-selection-text);
}

.blog-related-product:hover,
.blog-related-product:focus-within {
  border-color: var(--accent-selection-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-article__related {
  display: none;
}

.blog-article__footer {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.blog-article__share-label {
  color: var(--muted);
  font-size: 12px;
}

.blog-article__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-article__socials button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    opacity 220ms ease;
}

.blog-article__socials button:hover,
.blog-article__socials button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.blog-article__socials button:hover .dock-social-icon,
.blog-article__socials button:focus-visible .dock-social-icon {
  background-color: currentColor;
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 899px) {
  body[data-view="notifications"] {
    --two-rail-main-header-height: 62px;
    --two-rail-sub-header-height: 42px;
  }

  body[data-view="notifications"]::before {
    background: color-mix(in srgb, var(--surface) 84%, transparent);
  }

  .blog-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .blog-calendar-shell {
    margin-left: auto;
  }

  .blog-article__media {
    aspect-ratio: 16 / 9;
  }

  .blog-article__content {
    padding: 18px 20px 28px;
  }

  .blog-article__media figcaption {
    padding: 0 20px;
  }

  .blog-related-products__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .blog-toolbar,
  .blog-toolbar__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .blog-calendar-shell {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .blog-calendar-shell > .blog-toolbar__button {
    width: 100%;
  }

  .blog-calendar {
    right: auto;
    left: 0;
    width: min(100%, 270px);
  }

  .blog-toolbar__button {
    min-width: 0;
    padding-inline: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-article__media img {
    aspect-ratio: 16 / 9;
  }

  .blog-related-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .blog-video-placeholder {
    grid-template-columns: 1fr;
  }

  .blog-article h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-toolbar__button {
    transition: none;
  }
}

@media (max-width: 560px) {
  .blog-toolbar__navigation {
    grid-column: 1 / -1;
  }

  .blog-toolbar__button {
    font-size: 12px;
  }

  .blog-article__socials button {
    justify-content: center;
    flex: 1 1 0;
  }
}

/* V0.2.95–V0.2.97: product-story prototype, shared product rail,
   onboarding, recommendations and preserved site chrome. */
.dock-preference--prototype-debug {
  display: grid;
  gap: 10px;
}

.dock-debug-button {
  min-height: 38px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease;
}

.dock-debug-button:hover,
.dock-debug-button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story[hidden],
.product-classic-content[hidden],
.product-story-onboarding[hidden] {
  display: none !important;
}

.product-story__progress[hidden],
.product-story__pause[hidden],
.product-view-rail__classic-tabs[hidden] {
  display: none !important;
}

.product-classic-content {
  position: relative;
}

/* V0.2.97: supplied SVG controls for both product modes and Story playback. */
.product-view-rail {
  position: sticky;
  z-index: 88;
  top: var(--tm-top-two-rails);
  display: grid;
  width: 100%;
  height: var(--tm-category-rail);
  min-height: var(--tm-category-rail);
  padding: 0 12px;
  gap: 10px;
  align-items: center;
  background: transparent;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: auto minmax(0, 1fr) auto;
  isolation: isolate;
}

.product-view-rail__mode-toggle,
.product-story__pause {
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font: inherit;
  transition:
    color 180ms ease,
    background-color 220ms ease;
}

.product-view-rail__mode-toggle:hover,
.product-view-rail__mode-toggle:focus-visible,
.product-story__pause:hover,
.product-story__pause:focus-visible,
.product-story__pause.is-paused {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  outline: none;
}

.product-view-rail__mode-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.product-view-rail__mode-glyph {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--product-view-mode-icon) center / contain no-repeat;
  mask: var(--product-view-mode-icon) center / contain no-repeat;
}

.product-view-rail__mode-toggle[data-target-mode="classic"] .product-view-rail__mode-glyph {
  --product-view-mode-icon: url("assets/ui/product-view-classic.svg");
}

.product-view-rail__mode-toggle[data-target-mode="story"] .product-view-rail__mode-glyph {
  --product-view-mode-icon: url("assets/ui/product-view-story.svg");
}

.product-view-rail__classic-tabs,
body[data-view="product"] .product-view-rail__classic-tabs {
  position: static !important;
  top: auto !important;
  display: flex;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  background: transparent !important;
  border: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.product-view-rail__classic-tabs[hidden] {
  display: none !important;
}

body[data-view="product"] .product-view-rail__classic-tabs a {
  height: 100%;
}

.product-story {
  position: relative;
  display: grid;
  width: 100%;
  height: calc(100dvh - var(--tm-product-top));
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  grid-template-rows: minmax(0, 1fr);
}

body.product-story-active {
  overflow: hidden;
  overscroll-behavior: none;
}

/* The product story replaces the page body, not the site chrome. */
body.product-story-active .product-page {
  padding-bottom: 0;
}

.product-story__pause {
  border-radius: 11px;
}

.product-story__pause > span {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--tm-story-pause-icon, url("assets/ui/product-story-pause.svg")) center / contain no-repeat;
  mask: var(--tm-story-pause-icon, url("assets/ui/product-story-pause.svg")) center / contain no-repeat;
}

.product-story__pause.is-paused > span {
  --tm-story-pause-icon: url("assets/ui/product-story-play.svg");
}

.product-story__pause.is-replay > span {
  --tm-story-pause-icon: url("assets/ui/product-story-replay.svg");
}

.product-story__progress {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 4px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-story__progress::-webkit-scrollbar {
  display: none;
}

.product-story__group {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  gap: 12px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease;
}

.product-story__group.is-active {
  color: var(--accent-selection-text);
  border-color: var(--accent-selection-border);
}

.product-story__group-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--tm-story-group-icon) center / contain no-repeat;
  mask: var(--tm-story-group-icon) center / contain no-repeat;
}

.product-story__group--image {
  --tm-story-group-icon: url("assets/ui/product-story-segment-image.svg");
}

.product-story__group--info {
  --tm-story-group-icon: url("assets/ui/product-story-segment-info.svg");
}

.product-story__group-bars {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.product-story__segment {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 4px;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.product-story__segment--recommendations {
  width: 52px;
}

.product-story__segment-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-selection-text);
  border-radius: inherit;
  transform: scaleX(var(--story-segment-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.product-story__segment.is-active,
.product-story__segment.is-complete,
.product-story__segment:hover,
.product-story__segment:focus-visible {
  outline: none;
}

.product-story__segment.is-complete .product-story__segment-fill {
  transform: scaleX(1);
}

.product-story__segment:focus-visible {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-selection-text) 35%, transparent);
}

.product-story__viewport {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-story__visual,
.product-story__info {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.product-story__visual {
  display: grid;
  place-items: center;
  background: transparent;
  border-right: 1px solid var(--border);
}

.product-story__visual-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.product-story__visual-frame {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.product-story__visual-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-story__visual-frame .product-gallery-art {
  width: min(76%, 560px);
  height: min(76%, 560px);
}

.product-story__visual-identity {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  padding: 12px 14px;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: rgba(18, 18, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.product-story__visual-identity span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-story__visual-identity strong {
  max-width: 70%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-story__info {
  background: var(--surface);
}

.product-story__info-scroll {
  height: 100%;
  padding: clamp(28px, 4vw, 58px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: max(clamp(28px, 4vw, 58px), 110px);
}

.product-story__info-scroll:focus-visible {
  outline: none;
}

.product-story-panel {
  display: grid;
  max-width: 620px;
  min-width: 0;
  min-height: 100%;
  gap: 14px;
  align-content: start;
}

.product-story-panel--recommendations {
  align-content: start;
}

.product-story-panel__kicker {
  color: var(--accent-selection-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.product-story-panel h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.product-story-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.product-story-panel__lead {
  color: var(--text) !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  line-height: 1.52 !important;
}

.product-story-panel__identity-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-story-panel__identity-row span {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
}

.product-story-facts {
  display: grid;
  margin: 4px 0 0;
  border-top: 1px solid var(--border);
}

.product-story-facts div {
  display: grid;
  padding: 13px 0;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1.25fr);
}

.product-story-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.product-story-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.product-story-notice {
  margin: 4px 0;
  padding: 16px 17px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent-selection-bg) 64%, transparent);
  border: 1px solid var(--accent-selection-border);
  border-radius: 18px;
}

.product-story-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-selection-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.product-story-notice p {
  color: var(--text);
}

.product-story-variants {
  display: grid;
  gap: 9px;
}

.product-story-variants button {
  display: flex;
  min-height: 48px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 15px;
  font: inherit;
}

.product-story-variants button:hover,
.product-story-variants button:focus-visible,
.product-story-variants button.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story-variants button span {
  font-size: 13px;
}

.product-story-variants button strong {
  font-size: 13px;
  font-weight: 600;
}

.product-story-selection {
  display: grid;
  padding: 14px 15px;
  gap: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.product-story-selection span,
.product-story-selection small {
  color: var(--muted);
  font-size: 11px;
}

.product-story-selection strong {
  font-size: 14px;
  font-weight: 600;
}

.product-story-recommendations {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-story-recommendation {
  display: grid;
  min-width: 0;
  padding: 9px;
  gap: 9px;
  grid-template-rows: 112px minmax(0, 1fr);
  cursor: pointer;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  font: inherit;
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 220ms ease,
    transform 180ms ease;
}

.product-story-recommendation:hover,
.product-story-recommendation:focus-visible {
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
  transform: translateY(-1px);
}

.product-story-recommendation__media {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, var(--image-a), var(--image-b));
  border-radius: 14px;
}

.product-story-recommendation__media img,
.product-story-recommendation__media .product-gallery-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-story-recommendation__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
}

.product-story-recommendation__copy small {
  color: var(--accent-selection-text);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-story-recommendation__copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-story-recommendation__copy > span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.product-story-recommendation__copy b {
  color: var(--accent-selection-text);
  font-size: 18px;
  font-weight: 400;
}

.product-story__back {
  position: absolute;
  z-index: 8;
  bottom: 90px;
  left: 50%;
  display: inline-flex;
  min-height: 38px;
  padding: 0 15px 0 13px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.product-story__back::before {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  content: "";
  background-color: currentColor;
  -webkit-mask: url("assets/ui/product-story-grid.svg") center / contain no-repeat;
  mask: url("assets/ui/product-story-grid.svg") center / contain no-repeat;
}

.product-story__back:hover,
.product-story__back:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story__back[hidden] {
  display: none !important;
}

.product-story__footer {
  position: relative;
  z-index: 6;
  display: flex;
  min-width: 0;
  padding: 10px 16px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.product-story__context {
  display: flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
}

.product-story__footer-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.product-story__footer-thumb.is-landing {
  animation: product-story-thumb-land 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes product-story-thumb-land {
  from {
    opacity: 0;
    transform: translateY(-90px) scale(2.4);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-story__price-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-story__price-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-story__price-copy strong {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.product-story__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-story__back,
.product-story__footer {
  display: none;
}

.product-story-mobile-overlay,
.product-story-mobile-bar,
.product-story-mobile-panel {
  position: absolute;
}

.product-story-mobile-overlay[hidden],
.product-story-mobile-bar[hidden],
.product-story-mobile-panel[hidden] {
  display: none !important;
}

.product-story-mobile-overlay {
  z-index: 42;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.product-story-mobile-bar {
  z-index: 45;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  width: auto;
  grid-template-columns: minmax(0, 250px) 82px;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  transform: none;
  isolation: isolate;
  pointer-events: auto;
  touch-action: manipulation;
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu,
.product-story-mobile-panel {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu {
  box-sizing: border-box;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 7px 10px;
  border-radius: 18px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.product-story-mobile-bar__context:hover,
.product-story-mobile-bar__context:focus-visible,
.product-story-mobile-bar__menu:hover,
.product-story-mobile-bar__menu:focus-visible,
.product-story-mobile-bar__context[aria-expanded="true"],
.product-story-mobile-bar__menu[aria-expanded="true"] {
  color: var(--accent-selection-text);
  background: color-mix(in srgb, var(--accent-selection-bg) 78%, transparent);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story-mobile-bar__context {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.product-story-mobile-bar__thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: cover;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.product-story-mobile-bar__thumb.is-landing {
  animation: product-story-thumb-land 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-story-mobile-bar__copy,
.product-story-mobile-panel__stack,
.product-story-mobile-actions {
  min-width: 0;
}

.product-story-mobile-bar__copy {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 1px;
  align-content: center;
}

.product-story-mobile-bar__copy strong,
.product-story-mobile-bar__copy span,
.product-story-mobile-bar__copy small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-story-mobile-bar__copy strong {
  max-width: 17ch;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
}

.product-story-mobile-bar__copy span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.product-story-mobile-bar__copy small {
  max-width: 20ch;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.15;
}

.product-story-mobile-bar__menu {
  display: grid;
  place-items: center;
  padding-inline: 10px;
}

.product-story-mobile-bar__menu-icons {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 13px;
  align-items: center;
  justify-items: center;
}

.product-story-mobile-bar__menu .tm-icon {
  width: 19px;
  height: 19px;
}

.product-story-mobile-panel {
  z-index: 46;
  bottom: 90px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  transform: none;
  pointer-events: auto;
}

.product-story-mobile-panel--context {
  left: 20px;
  width: min(300px, calc(100% - 40px));
}

.product-story-mobile-panel--actions {
  right: 20px;
  left: auto;
  width: min(244px, calc(100% - 40px));
}

.product-story-mobile-panel__stack {
  display: grid;
  gap: 0;
}

.product-story-mobile-panel__row,
.product-story-mobile-actions button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  gap: 10px;
  align-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 0;
  transition:
    color 180ms ease,
    background-color 220ms ease,
    opacity 180ms ease;
}

.product-story-mobile-panel__row:hover,
.product-story-mobile-panel__row:focus-visible,
.product-story-mobile-actions button:hover,
.product-story-mobile-actions button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story-mobile-panel__row--link {
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.product-story-mobile-panel__row > div,
.product-story-mobile-actions button > span:last-child {
  min-width: 0;
}

.product-story-mobile-panel__row span,
.product-story-mobile-panel__summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.product-story-mobile-panel__row strong,
.product-story-mobile-panel__summary strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-actions .tm-icon {
  width: 18px;
  height: 18px;
}

.product-story-mobile-panel__range-block {
  display: grid;
  padding: 10px 13px 12px;
  gap: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.product-story-mobile-panel__range-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.product-story-mobile-panel__range-head span {
  color: var(--muted);
  font-size: 12px;
}

.product-story-mobile-panel__range-head strong {
  font-size: 14px;
}

.product-story-mobile-range {
  position: relative;
  padding-block: 4px;
}

.product-story-mobile-range input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  background: color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 999px;
  outline: none;
}

.product-story-mobile-range input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -4px;
  appearance: none;
  background: var(--surface);
  border: 3px solid var(--accent-selection-text);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.product-story-mobile-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
  border: 0;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--surface);
  border: 3px solid var(--accent-selection-text);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.product-story-mobile-range__ticks {
  position: absolute;
  inset: 4px 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.product-story-mobile-range__ticks span {
  width: 6px;
  height: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent);
}

.product-story-mobile-panel__row--code {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-story-mobile-panel__copy {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 14px;
}

.product-story-mobile-panel__copy .tm-icon {
  width: 18px;
  height: 18px;
}

.product-story-mobile-panel__summary {
  display: grid;
  padding: 11px 13px 12px;
  gap: 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.product-story-mobile-actions {
  display: grid;
  gap: 0;
}

.product-story-mobile-actions button:last-child,
.product-story-mobile-panel__stack > .product-story-mobile-panel__row:last-child {
  border-bottom: 0;
}

.product-story-mobile-actions button {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  text-align: left;
}

.product-story-mobile-actions button.is-active {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.product-story-onboarding {
  position: absolute;
  z-index: 60;
  inset: 0;
  color: #fff;
}

.product-story-onboarding__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 10, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.product-story-onboarding__hint {
  position: absolute;
  z-index: 2;
  display: grid;
  max-width: 210px;
  padding: 12px 14px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.product-story-onboarding__hint strong {
  font-size: 13px;
  font-weight: 600;
}

.product-story-onboarding__hint span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.product-story-onboarding__hint--left {
  top: 44%;
  left: 5%;
}

.product-story-onboarding__hint--center {
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
}

.product-story-onboarding__hint--right {
  top: 44%;
  right: 5%;
}

.product-story-onboarding__hint--scroll {
  right: 6%;
  bottom: 112px;
  max-width: 260px;
}

.product-story-onboarding__done {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  min-width: 130px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  transform: translateX(-50%);
}

.product-story-onboarding__done:hover,
.product-story-onboarding__done:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

@media (max-width: 899px) {
  .product-view-rail {
    padding-inline: 9px;
    gap: 8px;
  }

  .product-view-rail__mode-toggle,
  .product-story__pause {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .product-view-rail__classic-tabs,
  body[data-view="product"] .product-view-rail__classic-tabs {
    gap: 18px;
  }

  .product-story {
    height: calc(100dvh - var(--tm-product-top) - 70px);
    min-height: 0;
    padding-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-rows: minmax(0, 1fr);
  }

  .product-story__progress {
    width: 100%;
    padding-inline: 0;
    gap: 6px;
    justify-content: center;
    overflow: hidden;
  }

  .product-story__group {
    min-width: 0;
    min-height: 30px;
    padding-inline: 8px;
    gap: 7px;
  }

  .product-story__group--image {
    flex: 3 1 0;
  }

  .product-story__group--info {
    flex: 5 1 0;
  }

  .product-story__group-icon {
    width: 18px;
    height: 18px;
  }

  .product-story__group-bars {
    min-width: 0;
    gap: 4px;
    flex: 1 1 auto;
  }

  .product-story__segment {
    width: auto;
    height: 4px;
    flex: 1 1 0;
  }

  .product-story__segment--recommendations {
    width: auto;
    flex-grow: 1.25;
  }

  .product-story__viewport {
    display: block;
  }

  .product-story__visual,
  .product-story__info {
    position: absolute;
    inset: 0;
  }

  .product-story__visual {
    background: transparent;
    border-right: 0;
  }

  .product-story__visual-media {
    background: transparent;
  }

  .product-story__visual-identity {
    display: none;
  }

  .product-story[data-phase="image"] .product-story__info {
    display: none;
  }

  .product-story[data-phase="info"] .product-story__visual,
  .product-story[data-phase="recommendations"] .product-story__visual {
    display: none;
  }

  .product-story__visual-frame > img {
    object-fit: contain;
  }

  .product-story__visual-identity {
    right: 12px;
    bottom: 76px;
    left: 12px;
  }

  .product-story__nav {
    display: none;
  }

  .product-story__info-scroll {
    padding: 24px 20px 98px;
    scrollbar-gutter: auto;
  }

  .product-story-panel {
    min-height: auto;
    padding-top: 8px;
    align-content: start;
  }

  .product-story-panel h2 {
    font-size: clamp(16px, 5.2vw, 20px);
  }

  .product-story-panel__lead {
    font-size: 14px !important;
  }

  .product-story-mobile-bar {
    width: min(320px, calc(100% - 32px));
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .product-story-mobile-panel--context {
    width: min(320px, calc(100% - 24px));
  }

  .product-story-mobile-panel--actions {
    width: min(252px, calc(100% - 24px));
  }

  .product-story-recommendations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-story-recommendation {
    grid-template-rows: 104px minmax(0, 1fr);
  }

  .product-story-onboarding__hint {
    max-width: 150px;
    padding: 10px 11px;
  }

  .product-story-onboarding__hint--left {
    top: 42%;
    left: 10px;
  }

  .product-story-onboarding__hint--center {
    top: 29%;
  }

  .product-story-onboarding__hint--right {
    top: 42%;
    right: 10px;
  }

  .product-story-onboarding__hint--scroll {
    right: 14px;
    bottom: 98px;
    left: 14px;
    max-width: none;
  }
}

@media (max-width: 460px) {
  .product-view-rail {
    padding-inline: 5px;
    gap: 4px;
  }

  .product-view-rail__mode-toggle,
  .product-story__pause {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .product-story__progress {
    gap: 4px;
  }

  .product-story__group {
    min-height: 30px;
    padding-inline: 6px;
    gap: 5px;
  }

  .product-story__group-icon {
    width: 18px;
    height: 18px;
  }

  .product-story__group-bars {
    gap: 3px;
  }

  .product-story__visual-identity {
    display: none;
  }

  .product-story-mobile-bar {
    width: min(312px, calc(100% - 16px));
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
  }

  .product-story-mobile-panel--context {
    width: min(312px, calc(100% - 16px));
  }

  .product-story-mobile-panel--actions {
    width: min(244px, calc(100% - 16px));
  }

  .product-story-facts div {
    gap: 10px;
    grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.25fr);
  }

  .product-story__footer {
    gap: 8px;
  }

  .product-story__context {
    gap: 8px;
  }

  .product-story__actions {
    gap: 6px;
  }

  .product-story__action {
    width: 42px;
    height: 42px;
  }

  .product-story-onboarding__hint--left,
  .product-story-onboarding__hint--right {
    top: 45%;
    max-width: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-story__segment-fill,
  .product-story__footer-thumb,
  .product-story-recommendation,
  .product-view-rail__mode-toggle,
  .product-story__pause,
  .product-story__action {
    transition: none;
    animation: none;
  }
}

@media (min-width: 900px) {
  .product-story__visual-identity {
    bottom: 96px;
  }
}


/* V0.3.3: equal Story split, frame-level navigation and shared gallery actions. */
.product-story__nav,
.product-gallery__arrow {
  position: absolute;
  z-index: 9;
  top: 50%;
  display: grid;
  width: 36px;
  height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.product-story__nav::before,
.product-gallery__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  content: "";
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.product-story__nav--previous,
.product-gallery__arrow--prev {
  left: 12px;
}

.product-story__nav--next,
.product-gallery__arrow--next {
  right: 12px;
}

.product-story__nav--previous::before,
.product-gallery__arrow--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.product-story__nav--next::before,
.product-gallery__arrow--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.product-story__nav:hover,
.product-story__nav:focus-visible,
.product-gallery__arrow:hover,
.product-gallery__arrow:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story__nav:disabled,
.product-gallery__arrow:disabled {
  opacity: 0.24;
  cursor: default;
}

.product-story__action.favorite-button,
.product-story__action.product-compare-button,
.product-story__action.add-button {
  position: relative;
  inset: auto;
  display: grid;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 15px;
  text-shadow: none;
}

.product-story__action.favorite-button:hover,
.product-story__action.favorite-button:focus-visible,
.product-story__action.product-compare-button:hover,
.product-story__action.product-compare-button:focus-visible,
.product-story__action.add-button:hover,
.product-story__action.add-button:focus-visible {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
  outline: none;
}

.product-story__action.favorite-button.is-favorite,
.product-story__action.product-compare-button.is-compared,
.product-story__action.add-button.is-added,
.product-story__action.add-button.is-subscribed {
  color: var(--accent-selection-text);
  background: var(--accent-selection-bg);
  border-color: var(--accent-selection-border);
}

.product-story__action .tm-state-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}

@media (max-width: 899px) {
  .product-story__nav {
    display: none;
  }
}


/* V0.3.6: compact mobile dock with inline counters and icon-led mobile sort control. */
.sort-menu__button-main {
  display: inline-flex;
  min-width: 0;
  gap: 9px;
  align-items: center;
}

.sort-menu__button-icon,
.sort-menu__option-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sort-menu__option-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.sort-menu[data-sort-selected="default"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="default"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-price.svg");
  mask-image: url("assets/ui/sort-price.svg");
}

.sort-menu[data-sort-selected="priceAsc"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="priceAsc"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-price-asc.svg");
  mask-image: url("assets/ui/sort-price-asc.svg");
}

.sort-menu[data-sort-selected="priceDesc"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="priceDesc"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-price-desc.svg");
  mask-image: url("assets/ui/sort-price-desc.svg");
}

.sort-menu[data-sort-selected="hit"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="hit"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-hit.svg");
  mask-image: url("assets/ui/sort-hit.svg");
}

.sort-menu[data-sort-selected="popular"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="popular"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-rating.svg");
  mask-image: url("assets/ui/sort-rating.svg");
}

.sort-menu[data-sort-selected="newest"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="newest"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-new.svg");
  mask-image: url("assets/ui/sort-new.svg");
}

.sort-menu[data-sort-selected="name"] .sort-menu__button-icon,
.sort-menu__list [data-sort-value="name"] .sort-menu__option-icon {
  -webkit-mask-image: url("assets/ui/sort-name.svg");
  mask-image: url("assets/ui/sort-name.svg");
}

.sort-menu__list button {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort-menu__option-label {
  min-width: 0;
}

@media (max-width: 899px) {
  .sort-menu,
  .sort-menu.is-open {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
  }

  .sort-menu__button {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    min-height: 40px;
    padding: 0 24px 0 11px;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .sort-menu__button-main {
    gap: 0;
    justify-content: flex-start;
  }

  .sort-menu__button-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .sort-menu__button-main #sortMenuLabel {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sort-menu__chevron {
    position: absolute;
    right: 10px;
    bottom: 12px;
    width: 6px;
    height: 6px;
    margin-top: 0;
  }

  .sort-menu.is-open .sort-menu__chevron {
    right: 10px;
    bottom: 14px;
    margin-top: 0;
  }

  .sort-menu__list {
    right: 0;
    width: min(214px, calc(100vw - 28px));
    min-width: min(214px, calc(100vw - 28px));
    max-width: min(214px, calc(100vw - 28px));
    padding: 8px;
  }

  .sort-menu__list button {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
  }
}

@media (max-width: 899px) {
  .mobile-nav {
    bottom: 0;
    min-height: 60px;
    padding: 0 4px calc(env(safe-area-inset-bottom) + 1px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  .mobile-nav button {
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    grid-template-rows: 22px auto;
    column-gap: 4px;
    row-gap: 3px;
    align-content: center;
    justify-content: center;
    justify-items: center;
    min-width: 0;
    min-height: 58px;
    padding: 6px 2px 4px;
    font-size: inherit;
    font-weight: 500;
  }

  .mobile-nav button.is-active {
    font-weight: 500;
    color: var(--accent-dark);
  }

  .mobile-nav__icon-slot,
  .mobile-profile-avatar {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
  }

  .mobile-nav small {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.05;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-counter {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    min-width: 0;
    max-width: 3ch;
    padding: 0;
    overflow: hidden;
    color: var(--accent-selection-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: none;
    box-shadow: none;
  }

  #mobileProfileButton {
    grid-template-columns: 1fr;
  }

  #mobileProfileButton small {
    grid-column: 1;
    justify-self: center;
  }

  .mobile-nav__icon-slot {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .mobile-nav__icon-slot > .mobile-nav__asset-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .mobile-profile-avatar {
    width: 28px;
    height: 28px;
  }

  body.product-story-active .product-story {
    height: calc(100dvh - var(--tm-product-top) - 60px);
  }
}

/* V0.3.8: calmer mobile sort geometry and compositor-stable chevron/hover fades. */
.sort-menu__button,
.sort-menu__list button,
.sort-menu__button-icon,
.sort-menu__option-icon {
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.sort-menu__option-icon {
  opacity: 0.82;
}

.sort-menu__list button:hover .sort-menu__option-icon,
.sort-menu__list button:focus-visible .sort-menu__option-icon,
.sort-menu__list button.is-selected .sort-menu__option-icon {
  opacity: 1;
}

@media (max-width: 899px) {
  .sort-menu,
  .sort-menu.is-open {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }

  .sort-menu__button {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 8px 0 11px;
    gap: 12px;
    align-items: center;
  }

  /* Mobile deliberately reuses the desktop chevron geometry and motion. */
  .sort-menu__chevron,
  .sort-menu.is-open .sort-menu__chevron {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transition: transform 220ms ease;
  }

  .sort-menu__chevron {
    margin-top: -3px;
    transform: rotate(45deg);
  }

  .sort-menu.is-open .sort-menu__chevron {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  .sort-menu__chevron::before,
  .sort-menu__chevron::after {
    content: none;
  }
}

/* V0.3.10: mobile root-overflow guard and larger bottom-dock glyphs. */
@media (max-width: 899px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .mobile-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav__icon-slot {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .mobile-nav__icon-slot > .mobile-nav__asset-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}

/* V0.3.15: Story edge controls, persistent popovers and phase-fill sliders. */
.product-story-mobile-bar {
  --story-control-side: 20px;
  --story-control-bottom: 20px;
  --story-control-height: 58px;
  right: var(--story-control-side);
  bottom: var(--story-control-bottom);
  left: var(--story-control-side);
  width: auto;
  max-width: none;
  grid-template-columns: minmax(0, 250px) 82px;
  gap: 0;
  justify-content: space-between;
  z-index: 50;
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu {
  height: var(--story-control-height);
  min-height: var(--story-control-height);
  max-height: var(--story-control-height);
}

/* These are quiet persistent glass controls, not hover surfaces. */
.product-story-mobile-bar__context:hover,
.product-story-mobile-bar__menu:hover,
.product-story-mobile-bar__context[aria-expanded="true"],
.product-story-mobile-bar__menu[aria-expanded="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-color: color-mix(in srgb, var(--border) 88%, transparent);
}

.product-story-mobile-bar__context:focus-visible,
.product-story-mobile-bar__menu:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-color: var(--accent-selection-border);
  outline: 1px solid var(--accent-selection-border);
  outline-offset: 2px;
}

.product-story-mobile-bar__context {
  padding: 7px 10px;
}

.product-story-mobile-bar__thumb {
  width: 40px;
  height: 40px;
}

.product-story-mobile-bar__copy {
  gap: 2px;
}

.product-story-mobile-bar__copy strong {
  max-width: 15ch;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
}

.product-story-mobile-bar__copy span {
  font-size: 9.5px;
  line-height: 1.25;
}

.product-story-mobile-bar__copy small {
  max-width: 18ch;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

/* Popovers live above the persistent controls; opening one never replaces them. */
.product-story-mobile-overlay {
  z-index: 47;
}

.product-story-mobile-panel {
  z-index: 49;
  bottom: calc(var(--story-control-bottom, 20px) + var(--story-control-height, 58px) + 12px);
}

.product-story-mobile-panel--context {
  left: var(--story-control-side, 20px);
}

.product-story-mobile-panel--actions {
  right: var(--story-control-side, 20px);
}

/* Inside popovers the sketch uses one frame with dividers, not hover cards. */
.product-story-mobile-panel__row:hover,
.product-story-mobile-actions button:hover {
  color: inherit;
  background: transparent;
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
}

.product-story-mobile-panel__row:focus-visible,
.product-story-mobile-actions button:focus-visible {
  color: inherit;
  background: transparent;
  outline: 1px solid var(--accent-selection-border);
  outline-offset: -1px;
}

/* Phase slider: a filled capsule with fixed phase dots; no large native thumb. */
.product-story-mobile-range {
  position: relative;
  height: 24px;
  padding: 0;
}

.product-story-mobile-range input[type="range"] {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 999px;
  outline: none;
  overflow: hidden;
}

.product-story-mobile-range input[type="range"]::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 24px;
  margin-top: 0;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-story-mobile-range input[type="range"]::-moz-range-track {
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-moz-range-progress {
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-story-mobile-range input[type="range"]:focus-visible {
  border-color: var(--accent-selection-border);
  box-shadow: 0 0 0 1px var(--accent-selection-border);
}

.product-story-mobile-range__ticks {
  z-index: 2;
  inset: 0 10px;
  height: 24px;
}

.product-story-mobile-range__ticks span {
  width: 5px;
  height: 5px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}

.product-story-mobile-range__ticks:has(span:only-child) {
  justify-content: center;
}

@media (max-width: 899px) {
  .product-story-mobile-bar {
    --story-control-side: 12px;
    --story-control-bottom: 20px;
    right: var(--story-control-side);
    left: var(--story-control-side);
    width: auto;
    max-width: none;
    grid-template-columns: minmax(0, 232px) 72px;
    gap: 0;
    justify-content: space-between;
  }

  .product-story-mobile-panel--context {
    left: var(--story-control-side);
    width: min(312px, calc(100% - 24px));
  }

  .product-story-mobile-panel--actions {
    right: var(--story-control-side);
    width: min(244px, calc(100% - 24px));
  }
}

@media (max-width: 460px) {
  .product-story-mobile-bar {
    --story-control-side: 10px;
    right: var(--story-control-side);
    left: var(--story-control-side);
    width: auto;
    max-width: none;
    grid-template-columns: minmax(0, 218px) 70px;
    gap: 0;
    justify-content: space-between;
  }

  .product-story-mobile-panel--context {
    left: var(--story-control-side);
    width: min(300px, calc(100% - 20px));
  }

  .product-story-mobile-panel--actions {
    right: var(--story-control-side);
    width: min(232px, calc(100% - 20px));
  }
}


/* V0.3.16: story capsules expand in-place, align to the same edge rhythm, and remove duplicate identity copy. */
.product-story__visual-identity {
  display: none !important;
}

.product-story-mobile-bar {
  --story-control-gap: 12px;
  --story-control-side: 16px;
  --story-control-bottom: 16px;
  --story-control-height: 58px;
  --story-context-width: 236px;
  --story-actions-width: 78px;
  --story-actions-panel-width: 238px;
  align-items: end;
  right: var(--story-control-side);
  bottom: var(--story-control-bottom);
  left: var(--story-control-side);
  grid-template-columns: minmax(0, var(--story-context-width)) var(--story-actions-width);
  justify-content: space-between;
  gap: var(--story-control-gap);
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu {
  width: 100%;
  height: var(--story-control-height);
  min-height: var(--story-control-height);
  max-height: var(--story-control-height);
  border-radius: 20px;
}

.product-story-mobile-bar__context {
  padding: 9px 12px;
  align-items: center;
}

.product-story-mobile-bar__menu {
  padding: 0 10px;
}

.product-story-mobile-bar__thumb {
  width: 42px;
  height: 42px;
}

.product-story-mobile-bar__copy {
  align-self: center;
  gap: 3px;
}

.product-story-mobile-bar__copy strong {
  max-width: 13ch;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.18;
}

.product-story-mobile-bar__copy span {
  font-size: 8.9px;
  line-height: 1.18;
}

.product-story-mobile-bar__copy small {
  max-width: 15ch;
  font-size: 10.2px;
  font-weight: 500;
  line-height: 1.25;
}

.product-story-mobile-bar__menu .tm-icon,
.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-actions .tm-icon,
.product-story-mobile-panel__copy .tm-icon {
  width: 22px;
  height: 22px;
}

.product-story-mobile-bar__menu-icons {
  gap: 10px;
}

.product-story-mobile-bar[data-panel="context"] .product-story-mobile-bar__context,
.product-story-mobile-bar[data-panel="actions"] .product-story-mobile-bar__menu {
  opacity: 0;
  pointer-events: none;
}

.product-story-mobile-overlay {
  z-index: 55;
}

.product-story-mobile-panel {
  z-index: 56;
  bottom: var(--story-control-bottom);
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.product-story-mobile-panel--context {
  left: var(--story-control-side);
  right: auto;
  width: min(var(--story-context-width), calc(100% - (var(--story-control-side) * 2)));
}

.product-story-mobile-panel--actions {
  left: auto;
  right: var(--story-control-side);
  width: min(var(--story-actions-panel-width), calc(100% - (var(--story-control-side) * 2)));
}

.product-story-mobile-panel__stack,
.product-story-mobile-actions {
  display: grid;
  gap: 0;
}

.product-story-mobile-panel__row,
.product-story-mobile-actions button,
.product-story-mobile-panel__range-block,
.product-story-mobile-panel__summary {
  min-height: 0;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-story-mobile-panel__stack > * + *,
.product-story-mobile-actions > * + * {
  border-top: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
}

.product-story-mobile-panel__row:hover,
.product-story-mobile-panel__row:focus-visible,
.product-story-mobile-actions button:hover,
.product-story-mobile-actions button:focus-visible,
.product-story-mobile-actions button.is-active {
  color: inherit;
  background: transparent;
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

.product-story-mobile-panel__row--link,
.product-story-mobile-panel__row--code,
.product-story-mobile-actions button {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-story-mobile-actions button > span:first-child {
  justify-self: start;
}

.product-story-mobile-actions button > span:last-child {
  text-align: left;
}

.product-story-mobile-panel__copy {
  width: 42px;
  height: 42px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  border-radius: 0;
}

.product-story-mobile-panel__summary {
  display: grid;
  gap: 4px;
}

.product-story-mobile-panel__summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.product-story-mobile-range {
  height: 28px;
}

.product-story-mobile-range input[type="range"],
.product-story-mobile-range input[type="range"]::-webkit-slider-runnable-track,
.product-story-mobile-range input[type="range"]::-moz-range-track,
.product-story-mobile-range input[type="range"]::-moz-range-progress {
  height: 28px;
  border-radius: 999px;
}

.product-story-mobile-range__ticks {
  inset: 0 12px;
  height: 28px;
}

.product-story-mobile-range__ticks span {
  width: 6px;
  height: 6px;
}

@media (min-width: 900px) {
  .product-story-mobile-bar {
    --story-control-side: 18px;
    --story-control-bottom: 18px;
    --story-context-width: 268px;
    --story-actions-width: 86px;
    --story-actions-panel-width: 256px;
  }

  .product-story-mobile-bar__menu .tm-icon,
  .product-story-mobile-panel__row .tm-icon,
  .product-story-mobile-actions .tm-icon,
  .product-story-mobile-panel__copy .tm-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 899px) {
  .product-story-mobile-bar {
    --story-control-side: 12px;
    --story-control-bottom: 12px;
    --story-context-width: 224px;
    --story-actions-width: 74px;
    --story-actions-panel-width: 228px;
  }
}

@media (max-width: 460px) {
  .product-story-mobile-bar {
    --story-control-side: 10px;
    --story-control-bottom: 10px;
    --story-context-width: 214px;
    --story-actions-width: 72px;
    --story-actions-panel-width: 220px;
  }

  .product-story-mobile-bar__copy strong {
    max-width: 12ch;
  }
}


/* V0.3.17: exact corner anchoring, stable dividers, centered phase dots, and two-line compact product identity. */
.product-story {
  --story-control-side: 18px;
  --story-control-bottom: 18px;
  --story-control-height: 58px;
  --story-context-width: 268px;
  --story-actions-width: 86px;
  --story-actions-panel-width: 256px;
}

.product-story-mobile-bar {
  right: var(--story-control-side);
  bottom: var(--story-control-bottom);
  left: var(--story-control-side);
  width: auto;
  max-width: none;
  grid-template-columns: minmax(0, var(--story-context-width)) var(--story-actions-width);
  justify-content: space-between;
  gap: 12px;
}

.product-story-mobile-panel {
  bottom: var(--story-control-bottom);
  transform-origin: bottom left;
  animation: story-panel-grow-left 180ms cubic-bezier(.2,.78,.22,1);
}

.product-story-mobile-panel--context {
  left: var(--story-control-side);
  right: auto;
  width: min(var(--story-context-width), calc(100% - (var(--story-control-side) * 2)));
  transform-origin: bottom left;
}

.product-story-mobile-panel--actions {
  left: auto;
  right: var(--story-control-side);
  width: min(var(--story-actions-panel-width), calc(100% - (var(--story-control-side) * 2)));
  transform-origin: bottom right;
  animation-name: story-panel-grow-right;
}

@keyframes story-panel-grow-left {
  from { opacity: 0; transform: translateY(4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes story-panel-grow-right {
  from { opacity: 0; transform: translateY(4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Compact product capsule is deliberately only two text levels. */
.product-story-mobile-bar__copy {
  width: 100%;
  min-width: 0;
  gap: 5px;
  align-content: center;
}

.product-story-mobile-bar__copy strong,
.product-story-mobile-bar__copy small {
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-story-mobile-bar__copy strong {
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.2;
}

.product-story-mobile-bar__copy > span {
  display: none !important;
}

.product-story-mobile-bar__copy small {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

/* Divider lines are independent static layers, so pointer/active/focus states cannot make them flicker. */
.product-story-mobile-panel__stack > *,
.product-story-mobile-actions > * {
  position: relative;
  border-top: 0 !important;
  transition: none !important;
}

.product-story-mobile-panel__stack > * + *::before,
.product-story-mobile-actions > * + *::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: color-mix(in srgb, var(--border) 74%, transparent);
  pointer-events: none;
}

.product-story-mobile-panel__row:hover,
.product-story-mobile-panel__row:focus-visible,
.product-story-mobile-actions button:hover,
.product-story-mobile-actions button:focus-visible,
.product-story-mobile-actions button.is-active,
.product-story-mobile-actions button[data-active-state="on"] {
  color: inherit !important;
  background: transparent !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Phase dots sit exactly on the vertical center line of the pill. */
.product-story-mobile-range {
  height: 28px;
}

.product-story-mobile-range__ticks {
  top: 50% !important;
  right: 12px !important;
  bottom: auto !important;
  left: 12px !important;
  height: 6px !important;
  transform: translateY(-50%);
  align-items: center;
}

.product-story-mobile-range__ticks span {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0;
  flex: 0 0 6px;
}

/* Helper icons share the same visual scale family as the mobile dock. */
.product-story-mobile-bar__menu .tm-icon,
.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-actions .tm-icon,
.product-story-mobile-panel__copy .tm-icon {
  width: 25px;
  height: 25px;
}

@media (max-width: 899px) {
  .product-story {
    --story-control-side: 12px;
    --story-control-bottom: 12px;
    --story-context-width: 224px;
    --story-actions-width: 74px;
    --story-actions-panel-width: 228px;
  }
}

@media (max-width: 460px) {
  .product-story {
    --story-control-side: 10px;
    --story-control-bottom: 10px;
    --story-context-width: 214px;
    --story-actions-width: 72px;
    --story-actions-panel-width: 220px;
  }

  .product-story-mobile-bar__copy strong,
  .product-story-mobile-bar__copy small {
    max-width: none;
  }
}

@media (min-width: 900px) {
  .product-story-mobile-bar__menu .tm-icon,
  .product-story-mobile-panel__row .tm-icon,
  .product-story-mobile-actions .tm-icon,
  .product-story-mobile-panel__copy .tm-icon {
    width: 27px;
    height: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-story-mobile-panel {
    animation: none;
  }
}


/* V0.3.18: compact Story capsule polish, icon sizing sync, and cleaner action-panel behavior. */
.product-story {
  --story-control-side: 18px;
  --story-control-bottom: 18px;
  --story-context-width: 274px;
  --story-actions-width: 92px;
  --story-actions-panel-width: 252px;
}

.product-story-mobile-bar {
  gap: 14px;
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu {
  border-radius: 22px;
}

.product-story-mobile-bar__context {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 14px;
}

.product-story-mobile-bar__thumb {
  width: 42px;
  height: 42px;
  justify-self: center;
  align-self: center;
}

.product-story-mobile-bar__copy {
  gap: 4px;
}

.product-story-mobile-bar__copy strong {
  font-size: 10.4px;
  line-height: 1.16;
}

.product-story-mobile-bar__copy small {
  font-size: 11.6px;
  font-weight: 600;
  line-height: 1.16;
}

.product-story-mobile-bar__menu {
  padding-inline: 12px;
}

.product-story-mobile-bar__menu-icons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
}

.product-story-mobile-bar__menu .tm-icon,
.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-actions .tm-icon,
.product-story-mobile-panel__copy .tm-icon {
  width: 24px;
  height: 24px;
}

.product-story-mobile-panel__row span,
.product-story-mobile-panel__range-head span,
.product-story-mobile-panel__summary span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.product-story-mobile-panel__copy {
  width: 42px;
  height: 42px;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0;
  justify-self: end;
}

.product-story-mobile-actions button {
  position: relative;
  gap: 12px;
}

.product-story-mobile-actions button .tm-icon {
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.product-story-mobile-actions button:hover,
.product-story-mobile-actions button:focus-visible,
.product-story-mobile-actions button.is-active,
.product-story-mobile-actions button[data-active-state="on"] {
  color: inherit !important;
  background: transparent !important;
}

.product-story-mobile-actions button:hover .tm-icon,
.product-story-mobile-actions button:focus-visible .tm-icon,
.product-story-mobile-actions button.is-active .tm-icon,
.product-story-mobile-actions button[data-active-state="on"] .tm-icon {
  opacity: 1;
  transform: scale(1.03);
  filter: brightness(1.08);
}

.product-story-mobile-range {
  padding-block: 0;
}

.product-story-mobile-range__ticks {
  top: 0 !important;
  right: 12px !important;
  bottom: 0 !important;
  left: 12px !important;
  height: auto !important;
  transform: none !important;
  display: flex;
  align-items: center !important;
  justify-content: space-between;
}

.product-story-mobile-range__ticks span {
  align-self: center;
}

@media (max-width: 899px) {
  .product-story {
    --story-control-side: 12px;
    --story-control-bottom: 12px;
    --story-context-width: 236px;
    --story-actions-width: 84px;
    --story-actions-panel-width: 234px;
  }
}

@media (max-width: 460px) {
  .product-story {
    --story-control-side: 10px;
    --story-control-bottom: 10px;
    --story-context-width: 230px;
    --story-actions-width: 82px;
    --story-actions-panel-width: 226px;
  }

  .product-story-mobile-bar__copy strong {
    font-size: 10.2px;
  }

  .product-story-mobile-bar__copy small {
    font-size: 11.4px;
  }
}

@media (min-width: 900px) {
  .product-story {
    --story-context-width: 286px;
    --story-actions-width: 96px;
    --story-actions-panel-width: 260px;
  }

  .product-story-mobile-bar__menu .tm-icon,
  .product-story-mobile-panel__row .tm-icon,
  .product-story-mobile-actions .tm-icon,
  .product-story-mobile-panel__copy .tm-icon {
    width: 26px;
    height: 26px;
  }
}


/* V0.3.19: row geometry sync, in-panel alignment polish, and story capsule balance. */
.product-story {
  --story-control-side: 18px;
  --story-control-bottom: 18px;
  --story-control-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  --story-control-radius: 22px;
  --story-control-height: 58px;
  --story-control-gap: 14px;
  --story-actions-width: 98px;
  --story-actions-panel-width: 252px;
}

.product-story-mobile-bar {
  grid-template-columns: minmax(0, 1fr) var(--story-actions-width);
  gap: var(--story-control-gap);
  align-items: end;
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu,
.product-story-mobile-panel {
  box-shadow: var(--story-control-shadow);
  border-radius: var(--story-control-radius);
}

.product-story-mobile-bar__context,
.product-story-mobile-bar__menu {
  min-height: var(--story-control-height);
  max-height: var(--story-control-height);
  height: var(--story-control-height);
}

.product-story-mobile-bar__context {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 14px;
}

.product-story-mobile-bar__thumb {
  width: 42px;
  height: 42px;
  margin: 0;
  justify-self: center;
  align-self: center;
}

.product-story-mobile-bar__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  gap: 3px;
}

.product-story-mobile-bar__copy strong,
.product-story-mobile-bar__copy small {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-story-mobile-bar__copy strong {
  font-size: 10.2px;
  line-height: 1.14;
}

.product-story-mobile-bar__copy small {
  font-size: 11.8px;
  line-height: 1.16;
}

.product-story-mobile-bar__menu {
  padding-inline: 12px;
}

.product-story-mobile-bar__menu-icons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.product-story-mobile-bar__menu .tm-icon,
.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-actions .tm-icon,
.product-story-mobile-panel__copy .tm-icon {
  width: 24px;
  height: 24px;
}

.product-story-mobile-panel--context {
  width: min(calc(100% - (var(--story-control-side) * 2) - var(--story-actions-width) - var(--story-control-gap)), 352px);
}

.product-story-mobile-panel--actions {
  width: min(var(--story-actions-panel-width), calc(100% - (var(--story-control-side) * 2)));
}

.product-story-mobile-panel__row,
.product-story-mobile-panel__range-block,
.product-story-mobile-panel__summary,
.product-story-mobile-actions button {
  min-height: 70px;
}

.product-story-mobile-panel__row--link,
.product-story-mobile-panel__row--code {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.product-story-mobile-panel__row,
.product-story-mobile-actions button {
  align-items: center;
  padding: 12px 14px;
}

.product-story-mobile-panel__row > div,
.product-story-mobile-panel__summary {
  align-self: center;
}

.product-story-mobile-panel__row span,
.product-story-mobile-panel__range-head span,
.product-story-mobile-panel__summary span {
  font-size: 11px;
  line-height: 1.2;
}

.product-story-mobile-panel__row strong,
.product-story-mobile-panel__summary strong,
.product-story-mobile-panel__range-head strong {
  line-height: 1.18;
}

.product-story-mobile-panel__row .tm-icon,
.product-story-mobile-panel__copy {
  justify-self: center;
  align-self: center;
}

.product-story-mobile-panel__copy {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
}

.product-story-mobile-panel__range-block {
  gap: 10px;
}

.product-story-mobile-range {
  position: relative;
  height: 28px;
}

.product-story-mobile-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-webkit-slider-runnable-track {
  height: 28px;
  border-radius: 999px;
  background: transparent;
}

.product-story-mobile-range input[type="range"]::-webkit-slider-thumb {
  width: 0;
  height: 0;
  margin-top: 14px;
  appearance: none;
  opacity: 0;
}

.product-story-mobile-range input[type="range"]::-moz-range-track,
.product-story-mobile-range input[type="range"]::-moz-range-progress {
  height: 28px;
  border: 0;
  border-radius: 999px;
}

.product-story-mobile-range input[type="range"]::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
  border: 0;
}

.product-story-mobile-range__ticks {
  position: absolute;
  inset: 0 12px;
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  height: auto !important;
  transform: none !important;
}

.product-story-mobile-range__ticks span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin: 0;
  align-self: center;
}

.product-story-mobile-actions button {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
}

.product-story-mobile-actions button .tm-icon {
  justify-self: center;
  align-self: center;
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease, color 160ms ease;
}

.product-story-mobile-actions button:hover,
.product-story-mobile-actions button:focus-visible,
.product-story-mobile-actions button.is-active,
.product-story-mobile-actions button[data-active-state="on"] {
  background: transparent !important;
  color: inherit !important;
}

.product-story-mobile-actions button:hover .tm-icon,
.product-story-mobile-actions button:focus-visible .tm-icon {
  opacity: 1;
  transform: scale(1.04);
  filter: brightness(1.08);
}

.product-story-mobile-actions button[data-active-state="on"] .tm-icon,
.product-story-mobile-actions button.is-active .tm-icon {
  opacity: 1;
  color: var(--accent-selection-text);
  transform: scale(1.04);
}

.product-story-mobile-actions button[data-active-state="on"] > span:last-child,
.product-story-mobile-actions button.is-active > span:last-child {
  color: var(--accent-selection-text);
}

@media (max-width: 899px) {
  .product-story {
    --story-control-side: 12px;
    --story-control-bottom: 12px;
    --story-actions-width: 92px;
    --story-actions-panel-width: 240px;
  }
}

@media (max-width: 460px) {
  .product-story {
    --story-control-side: 10px;
    --story-control-bottom: 10px;
    --story-actions-width: 90px;
    --story-actions-panel-width: 234px;
  }

  .product-story-mobile-bar__copy strong {
    font-size: 10px;
  }

  .product-story-mobile-bar__copy small {
    font-size: 11.4px;
  }
}

@media (min-width: 900px) {
  .product-story {
    --story-actions-width: 104px;
    --story-actions-panel-width: 264px;
  }

  .product-story-mobile-bar__menu .tm-icon,
  .product-story-mobile-panel__row .tm-icon,
  .product-story-mobile-actions .tm-icon,
  .product-story-mobile-panel__copy .tm-icon {
    width: 26px;
    height: 26px;
  }
}


/* V0.3.20: catalog-style right Story action states and compact product-capsule reset. */
.product-story {
  --story-context-width: 252px;
  --story-actions-width: 98px;
}

.product-story-mobile-bar {
  grid-template-columns: minmax(0, var(--story-context-width)) var(--story-actions-width);
  justify-content: space-between;
}

.product-story-mobile-bar__context {
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 7px 12px;
}

.product-story-mobile-bar__context:has(.product-story-mobile-bar__thumb[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.product-story-mobile-bar__copy {
  min-height: 0;
  gap: 4px;
  justify-content: center;
}

.product-story-mobile-bar__copy strong {
  font-size: 10.2px;
  font-weight: 400;
  line-height: 1.1;
}

.product-story-mobile-bar__copy small {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.12;
}

.product-story-mobile-actions button {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 54px;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text);
}

.story-action-icon-slot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  justify-self: center;
  align-self: center;
  color: var(--text);
}

.story-action-icon-slot > .tm-icon,
.story-action-icon-slot > .tm-state-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

/* Navigation rows: only the icon gets the accent hover. */
.story-action-link .story-action-icon-slot,
.story-action-note .story-action-icon-slot {
  transition: color 160ms ease, transform 160ms ease;
}

.story-action-link:hover .story-action-icon-slot,
.story-action-link:focus-visible .story-action-icon-slot,
.story-action-note:not(.is-note-added):hover .story-action-icon-slot,
.story-action-note:not(.is-note-added):focus-visible .story-action-icon-slot {
  color: var(--accent-selection-text);
}

.story-action-note.is-note-added .story-action-icon-slot {
  color: var(--accent-selection-text);
}

/* Compare / favorite / cart use the same four-layer assets as catalog cards. */
.story-action-state .tm-state-icon__layer--base {
  opacity: 1;
  transition-delay: 0ms;
}

.story-action-state .tm-state-icon__layer--hover,
.story-action-state .tm-state-icon__layer--active,
.story-action-state .tm-state-icon__layer--remove {
  opacity: 0.001;
  transition-delay: 30ms;
}

.story-action-state[data-active-state="off"]:not(.is-pointer-state-locked):hover .story-action-icon-slot,
.story-action-state[data-active-state="off"]:focus-visible .story-action-icon-slot,
.story-action-state[data-active-state="on"] .story-action-icon-slot {
  color: var(--accent-selection-text);
}

.story-action-state[data-active-state="off"]:not(.is-pointer-state-locked):hover .tm-state-icon__layer--base,
.story-action-state[data-active-state="off"]:focus-visible .tm-state-icon__layer--base {
  opacity: 0.001;
  transition-delay: 30ms;
}

.story-action-state[data-active-state="off"]:not(.is-pointer-state-locked):hover .tm-state-icon__layer--hover,
.story-action-state[data-active-state="off"]:focus-visible .tm-state-icon__layer--hover {
  opacity: 1;
  transition-delay: 0ms;
}

.story-action-state[data-active-state="on"] .tm-state-icon__layer--base {
  opacity: 0.001;
  transition-delay: 30ms;
}

.story-action-state[data-active-state="on"] .tm-state-icon__layer--active {
  opacity: 1;
  transition-delay: 0ms;
}

.story-action-state[data-active-state="on"]:not(.is-pointer-state-locked):hover .tm-state-icon__layer--active,
.story-action-state[data-active-state="on"]:focus-visible .tm-state-icon__layer--active {
  opacity: 0.001;
  transition-delay: 30ms;
}

.story-action-state[data-active-state="on"]:not(.is-pointer-state-locked):hover .tm-state-icon__layer--remove,
.story-action-state[data-active-state="on"]:focus-visible .tm-state-icon__layer--remove {
  opacity: 1;
  transition-delay: 0ms;
}

.story-action-state[data-active-state="off"].is-pointer-state-locked .story-action-icon-slot {
  color: var(--text);
}

.story-action-state[data-active-state="off"].is-pointer-state-locked .tm-state-icon__layer--base {
  opacity: 1 !important;
}

.story-action-state[data-active-state="off"].is-pointer-state-locked .tm-state-icon__layer--hover,
.story-action-state[data-active-state="off"].is-pointer-state-locked .tm-state-icon__layer--remove {
  opacity: 0.001 !important;
}

.story-action-state[data-active-state="on"].is-pointer-state-locked .story-action-icon-slot {
  color: var(--accent-selection-text);
}

.story-action-state[data-active-state="on"].is-pointer-state-locked .tm-state-icon__layer--active {
  opacity: 1 !important;
}

.story-action-state[data-active-state="on"].is-pointer-state-locked .tm-state-icon__layer--remove,
.story-action-state[data-active-state="on"].is-pointer-state-locked .tm-state-icon__layer--hover {
  opacity: 0.001 !important;
}

/* Text stays neutral; state is communicated by wording + the icon. */
.product-story-mobile-actions button[data-active-state="on"] > span:last-child,
.product-story-mobile-actions button.is-active > span:last-child {
  color: var(--text) !important;
}

@media (max-width: 899px) {
  .product-story {
    --story-context-width: 238px;
    --story-actions-width: 92px;
  }
}

@media (max-width: 460px) {
  .product-story {
    --story-context-width: 228px;
    --story-actions-width: 90px;
  }
}

@media (min-width: 900px) {
  .story-action-icon-slot > .tm-icon,
  .story-action-icon-slot > .tm-state-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
}


/* V0.3.21: temporary launch gate with theme-aware placeholder and local beta-code activation. */
.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;
}

body.is-launch-locked {
  overflow: hidden;
}

.launch-gate {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%),
    var(--background);
  isolation: isolate;
}

.launch-gate::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 60%, transparent), color-mix(in srgb, var(--background) 90%, transparent));
  opacity: 0.94;
}

.launch-gate.is-exiting {
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.launch-gate__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.launch-gate__visual-frame {
  position: relative;
  min-height: min(86vh, 860px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 34px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.14);
}

:root[data-theme="dark"] .launch-gate__visual-frame {
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.38);
}

.launch-gate__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-gate__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 22, 0.1) 0%, rgba(20, 24, 22, 0.34) 38%, rgba(20, 24, 22, 0.65) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 24%, transparent 64%, rgba(17, 17, 17, 0.24) 100%);
}

:root[data-theme="light"] .launch-gate__shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.06) 28%, rgba(18, 18, 18, 0.44) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 36%);
}

.launch-gate__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  min-height: inherit;
  padding: clamp(24px, 5vw, 34px);
}

.launch-gate__brand-lockup {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 2px;
}

.launch-gate__logo {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.launch-gate__brand-caption {
  margin: 0;
  color: #fff8f0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.launch-gate__message-wrap {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  width: min(100%, 300px);
  margin: 0 auto;
  padding-top: 4px;
  text-align: center;
}

.launch-gate__title {
  margin: 0;
  color: #fffaf5;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.82;
}

.launch-gate__message {
  min-height: 8.1em;
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.56;
  text-wrap: balance;
  opacity: 1;
  transition: opacity 260ms ease, transform 260ms ease;
}

.launch-gate__message.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.launch-gate__form {
  display: grid;
  gap: 10px;
  align-self: end;
  width: 100%;
}

.launch-gate__input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: stretch;
  min-height: 62px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border));
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .launch-gate__input-shell {
  background: color-mix(in srgb, #232826 76%, transparent);
  border-color: color-mix(in srgb, #ffffff 10%, var(--border));
}

.launch-gate__input {
  width: 100%;
  padding: 0 22px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.launch-gate__submit {
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  transition: background 160ms ease, color 160ms ease;
}

.launch-gate__submit span {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  transform: translateX(1px);
}

.launch-gate__submit:hover,
.launch-gate__submit:focus-visible {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.launch-gate__prompt,
.launch-gate__status {
  min-height: 1.25em;
  margin: 0;
  padding-inline: 14px;
  color: #fff8f0;
  text-align: center;
}

.launch-gate__prompt {
  font-size: 12px;
  opacity: 0.84;
}

.launch-gate__status {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.96;
}

.launch-gate__status[data-state="error"] {
  color: #ffd9d9;
}

.launch-gate__status[data-state="success"] {
  color: #d8ffe7;
}

@media (max-width: 640px) {
  .launch-gate {
    padding: 12px;
  }

  .launch-gate__panel {
    width: min(100%, 388px);
  }

  .launch-gate__visual-frame {
    min-height: min(100dvh - 24px, 820px);
    border-radius: 28px;
  }

  .launch-gate__content {
    gap: 18px;
    padding: 22px 18px 18px;
  }

  .launch-gate__logo {
    width: 56px;
    height: 56px;
  }

  .launch-gate__brand-caption {
    font-size: 24px;
  }

  .launch-gate__message {
    min-height: 8.8em;
    font-size: 15.5px;
  }

  .launch-gate__input-shell {
    grid-template-columns: minmax(0, 1fr) 64px;
    min-height: 58px;
  }

  .launch-gate__input {
    padding-inline: 18px;
    font-size: 15px;
  }
}


/* V0.3.22: launch gate uses final spa visual, fixed multilingual geometry, branded wordmark, and soft image hover scale. */
.launch-gate__content {
  grid-template-rows: auto 1fr auto;
}

.launch-gate__brand-lockup {
  gap: 10px;
}

.launch-gate__brand-caption {
  display: none;
}

.launch-gate__wordmark {
  width: min(100%, 236px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.14));
}

.launch-gate__visual {
  transition: transform 760ms ease;
  will-change: transform;
}

.launch-gate__visual-frame:hover .launch-gate__visual,
.launch-gate__visual-frame:focus-within .launch-gate__visual {
  transform: scale(1.035);
}

.launch-gate__message-wrap {
  min-height: 232px;
  max-height: 232px;
  align-content: start;
}

.launch-gate__title {
  min-height: 1.2em;
}

.launch-gate__message {
  min-height: 7.6em;
  max-height: 7.6em;
}

.launch-gate__prompt {
  min-height: 2.6em;
}

@media (max-width: 640px) {
  .launch-gate__wordmark {
    width: min(100%, 214px);
  }

  .launch-gate__message-wrap {
    min-height: 248px;
    max-height: 248px;
  }

  .launch-gate__message {
    min-height: 8.3em;
    max-height: 8.3em;
  }

  .launch-gate__prompt {
    min-height: 3.05em;
  }
}


/* V0.3.23: brand-color wordmark, flat launch frame, and access debug control. */
.launch-gate {
  --launch-brand-color: #97d2cf;
}

.launch-gate__wordmark {
  display: block;
  width: min(100%, 236px);
  height: 22px;
  background: var(--launch-brand-color);
  -webkit-mask: url("assets/ui/logo-wordmark.svg") center / contain no-repeat;
  mask: url("assets/ui/logo-wordmark.svg") center / contain no-repeat;
  filter: none;
}

.launch-gate__visual-frame,
:root[data-theme="dark"] .launch-gate__visual-frame {
  box-shadow: none;
}

@media (max-width: 640px) {
  .launch-gate__wordmark {
    width: min(100%, 214px);
    height: 20px;
  }
}


/* V0.3.24: cleaner launch-gate hierarchy, shorter helper copy, and non-interactive brand/text layer. */
.launch-gate__brand-lockup,
.launch-gate__message-wrap,
.launch-gate__visual,
.launch-gate__logo,
.launch-gate__wordmark,
.launch-gate__message,
.launch-gate__title,
.launch-gate__prompt {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.launch-gate__brand-lockup,
.launch-gate__message-wrap,
.launch-gate__visual,
.launch-gate__logo,
.launch-gate__wordmark,
.launch-gate__message,
.launch-gate__title {
  pointer-events: none;
}

.launch-gate__message-wrap {
  min-height: 216px;
  max-height: 216px;
}

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

.launch-gate__message {
  min-height: 7.9em;
  max-height: 7.9em;
}

.launch-gate__form {
  gap: 8px;
}

.launch-gate__prompt {
  order: -1;
  min-height: 1.3em;
  padding-inline: 8px;
  font-size: 11.5px;
  opacity: 0.86;
}

.launch-gate__status {
  min-height: 1.25em;
}

@media (max-width: 640px) {
  .launch-gate__message-wrap {
    min-height: 224px;
    max-height: 224px;
  }

  .launch-gate__message {
    min-height: 8.1em;
    max-height: 8.1em;
  }

  .launch-gate__prompt {
    min-height: 1.3em;
    font-size: 11px;
  }
}


/* V0.3.25: clear launch image, main copy closer to access field, helper below field, slower language cadence. */
.launch-gate__shade {
  display: none !important;
}

.launch-gate__message-wrap {
  min-height: 176px;
  max-height: 176px;
  align-self: end;
  align-content: end;
  margin-bottom: 26px;
  padding-top: 0;
}

.launch-gate__message {
  min-height: 6.9em;
  max-height: 6.9em;
  align-self: end;
}

.launch-gate__form {
  gap: 8px;
}

.launch-gate__prompt {
  order: initial;
  min-height: 1.3em;
  margin-top: 2px;
  padding-inline: 8px;
}

@media (max-width: 640px) {
  .launch-gate__message-wrap {
    min-height: 184px;
    max-height: 184px;
    margin-bottom: 24px;
  }

  .launch-gate__message {
    min-height: 7.4em;
    max-height: 7.4em;
  }
}


/* V0.3.26: inline launch-code feedback and slightly lower brand lockup. */
.launch-gate__brand-lockup {
  margin-top: 18px;
}

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

.launch-gate__prompt[data-state="error"] {
  color: #ffd9d9;
  opacity: 1;
}

.launch-gate__prompt[data-state="success"] {
  color: #d8ffe7;
  opacity: 1;
}

@media (max-width: 640px) {
  .launch-gate__brand-lockup {
    margin-top: 14px;
  }
}


/* V0.3.27: rejected-code persistence and lower launch brand lockup. */
.launch-gate__brand-lockup {
  margin-top: 30px;
}

@media (max-width: 640px) {
  .launch-gate__brand-lockup {
    margin-top: 24px;
  }
}
