:root {
  --bg: #f7f8fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f4f6fb;
  --img-scrim: rgba(255, 255, 255, 0.52);
  --line: rgba(15, 23, 42, 0.10);
  --text: #172033;
  --muted: rgba(23, 32, 51, 0.72);
  --muted2: rgba(23, 32, 51, 0.58);
  --brand: #ff5a1f;
  --brand2: #ff8c42;
  --ok: #0f766e;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius2: 14px;
  --catalog-header-height: 76px;
  --catalog-sticky-side-pad: max(14px, calc((100vw - 1280px) / 2 + 14px));
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(1200px 620px at 20% 0%, rgba(255, 90, 31, 0.10), transparent 70%),
    radial-gradient(920px 520px at 85% 0%, rgba(15, 118, 110, 0.08), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

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

.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;
}

.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: padding 180ms ease, gap 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topbar-commerce {
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 760px) auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  transition: width 180ms ease, height 180ms ease;
}

.brand-lockup {
  display: block;
  width: auto;
  max-width: min(318px, 30vw);
  height: clamp(42px, 4vw, 56px);
  object-fit: contain;
  object-position: left center;
  transition: height 180ms ease, max-width 180ms ease;
}

.brand-isotype {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.brand-compact {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-title {
  justify-self: center;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 18px;
}

.brand-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.10));
}

.brand-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-name {
  max-width: 22ch;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  margin-top: 2px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.72);
  color: rgba(23, 32, 51, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.44em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-partner {
  margin-top: 3px;
  color: rgba(23, 32, 51, 0.82);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 10px;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-search {
  min-width: 0;
  width: 100%;
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  width: 100%;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topbar-search-box > input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.topbar-search-box > input[type="search"]::placeholder {
  color: var(--muted2);
}

.search-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.search-icon-btn:hover {
  background: #f5f7fb;
  color: var(--text);
}

.search-toggle-btn {
  appearance: none;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #ffffff;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.search-toggle-btn:hover,
.search-toggle-btn:focus-visible {
  border-color: rgba(255, 90, 31, 0.34);
  color: var(--brand);
  outline: none;
}

.search-toggle-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.search-toggle-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

body.catalog-page.catalog-header-compact .topbar {
  padding: 7px var(--catalog-sticky-side-pad);
  border-bottom-color: rgba(23, 32, 51, 0.08);
  box-shadow: none;
}

body.catalog-page.catalog-header-compact .topbar-commerce {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
}

body.catalog-page.catalog-header-compact .brand-link {
  width: 42px;
  height: 42px;
  justify-content: center;
  overflow: visible;
}

body.catalog-page.catalog-header-compact .brand-lockup {
  display: none;
}

body.catalog-page.catalog-header-compact .brand-isotype {
  display: block;
  width: 38px;
  height: 38px;
}

body.catalog-page.catalog-header-compact .topbar-search {
  width: 42px;
  justify-self: center;
}

body.catalog-page.catalog-header-compact .search-toggle-btn {
  display: inline-flex;
}

body.catalog-page.catalog-header-compact .topbar-search-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 31;
  width: min(560px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

body.catalog-page.catalog-header-compact.catalog-search-expanded .topbar-search-box {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.catalog-page.catalog-header-compact .menu-btn {
  height: 38px;
  min-height: 38px;
  padding: 8px 12px;
}

body.catalog-page.catalog-header-compact .menu-btn span:last-child {
  max-width: min(28ch, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-search-static {
  pointer-events: none;
}

.topbar-search-box-static {
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.topbar-search-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-link-btn {
  min-height: 42px;
  padding-inline: 14px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  max-width: 240px;
}

.ghost-btn,
.primary-btn {
  appearance: none;
  border: 1px solid rgba(23, 32, 51, 0.14);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 32, 51, 0.22);
  background: #f7f9fd;
}

.primary-btn {
  border-color: rgba(255, 90, 31, 0.58);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.96), rgba(255, 90, 31, 0.72));
  box-shadow: 0 14px 35px rgba(255, 90, 31, 0.24);
  color: #ffffff;
}

.primary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 66, 0.8);
}

.back {
  margin-right: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  color: var(--muted);
  font-weight: 700;
}

.back:hover {
  border-color: rgba(23, 32, 51, 0.22);
  color: var(--text);
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  flex: 1;
}

body.catalog-page .main {
  padding-top: 10px;
}

body.catalog-page .main,
body.product-page .main {
  padding-bottom: 94px;
}

.wa-fab {
  position: fixed;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 18;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(13, 122, 72, 0.42);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.98), rgba(22, 163, 74, 0.94));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 38px rgba(22, 163, 74, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.wa-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(22, 163, 74, 0.33);
}

.wa-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.25);
  outline-offset: 3px;
}

.wa-fab[hidden] {
  display: none !important;
}

.wa-fab-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
}

.wa-fab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 2px 0 4px;
  font-size: 32px;
  letter-spacing: 0.01em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.35;
}

.hero-badge {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-inner {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(49, 208, 170, 0.25);
  background: radial-gradient(120px 80px at 30% 20%, rgba(49, 208, 170, 0.22), rgba(255, 255, 255, 0.03));
  padding: 14px 16px;
}

.hero-badge-title {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-badge-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.home-hero {
  margin-top: 4px;
  align-items: center;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-eyebrow,
.section-kicker,
.catalog-section-kicker,
.empty-state-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-eyebrow::before,
.section-kicker::before,
.catalog-section-kicker::before,
.empty-state-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.55);
}

.hero-copy h1 {
  margin-top: 12px;
  margin-bottom: 10px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  flex: 0 0 320px;
}

.hero-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 4px;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.family-strip,
.catalog-section,
.searchbar-surface {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.family-strip {
  margin-top: 14px;
  padding: 16px 18px 18px;
}

.section-lead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-lead h2,
.catalog-section-title,
.empty-state h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-lead p,
.catalog-section-desc,
.empty-state p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.45;
}

.family-nav {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.family-tile {
  appearance: none;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 251, 0.92));
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.family-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, 0.28);
  box-shadow: 0 14px 34px rgba(255, 90, 31, 0.10);
}

.family-tile.active {
  border-color: rgba(255, 90, 31, 0.48);
  background: linear-gradient(180deg, rgba(255, 244, 239, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 16px 36px rgba(255, 90, 31, 0.14);
}

.family-tile-kicker,
.family-tile-meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-tile-kicker {
  color: var(--brand);
}

.family-tile-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.family-tile-desc {
  color: var(--muted);
  line-height: 1.35;
  min-height: 54px;
}

.family-tile-meta {
  color: var(--text);
}

.searchbar {
  margin-top: 12px;
}

.brand-strip {
  margin-top: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-strip[hidden],
.category-strip[hidden],
.hierarchy-filter-strip[hidden] {
  display: none !important;
}

.hierarchy-filter-strip {
  position: sticky;
  top: var(--catalog-header-height, 76px);
  z-index: 19;
  margin-top: 6px;
  width: 100%;
  padding: 7px 0 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  transition: top 160ms ease, padding 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hierarchy-filter {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hierarchy-level {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 7px;
  min-width: 0;
}

.hierarchy-level-1 {
  padding-left: 10px;
  border-left: 2px solid rgba(0, 130, 148, 0.22);
}

.hierarchy-level-2,
.hierarchy-level-3 {
  padding-left: 20px;
  border-left: 2px solid rgba(255, 90, 31, 0.18);
}

.hierarchy-node {
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.hierarchy-node.active {
  border-color: rgba(255, 90, 31, 0.50);
  background: #fff8f4;
  box-shadow: 0 8px 18px rgba(255, 90, 31, 0.12);
}

.hierarchy-node-commercial_tag {
  border-color: rgba(0, 130, 148, 0.28);
  background: #f4fbfc;
}

.hierarchy-node-commercial_tag.active {
  border-color: rgba(0, 130, 148, 0.56);
  background: #ecf8fa;
}

.hierarchy-node-body,
.hierarchy-node-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.hierarchy-node-body {
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.hierarchy-node-label {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.12;
  font-size: 12.5px;
  font-weight: 850;
}

.hierarchy-level-0 .hierarchy-node-label {
  text-transform: uppercase;
  font-size: 12px;
}

.hierarchy-node-count {
  flex: 0 0 auto;
  min-width: 25px;
  min-height: 20px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.hierarchy-node.active .hierarchy-node-count {
  background: rgba(255, 90, 31, 0.16);
  color: var(--brand);
}

.hierarchy-node-toggle {
  width: 38px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(23, 32, 51, 0.10);
  color: var(--muted);
  font-size: 19px;
  font-weight: 900;
}

.hierarchy-node-body:hover,
.hierarchy-node-toggle:hover {
  background: rgba(23, 32, 51, 0.04);
}

.hierarchy-node-body:focus-visible,
.hierarchy-node-toggle:focus-visible {
  outline: 2px solid rgba(0, 130, 148, 0.55);
  outline-offset: -2px;
}

.category-strip {
  position: sticky;
  top: var(--catalog-header-height, 76px);
  z-index: 19;
  margin-top: 6px;
  width: 100%;
  padding: 5px 0 7px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.07);
  transition: top 160ms ease, padding 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-strip-head {
  display: none;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}

.category-strip-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

.category-strip-status {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.category-carousel {
  --category-card-gap: 8px;
  --category-card-all-width: 76px;
  --category-card-width: clamp(124px, 10.5vw, 150px);
  --category-card-image-height: 66px;
  display: grid;
  grid-template-columns: var(--category-card-all-width) minmax(0, 1fr);
  gap: var(--category-card-gap);
  overflow: hidden;
  align-items: stretch;
  padding: 1px 2px 6px;
}

.category-card-track {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: var(--category-card-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  padding: 0 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

.category-card-track.is-auto-scrolling {
  scroll-snap-type: none;
}

.category-card-track::-webkit-scrollbar,
body.catalog-page .brand-rail::-webkit-scrollbar,
body.catalog-page .brand-carousel-rail::-webkit-scrollbar {
  height: 4px;
}

.category-card-track::-webkit-scrollbar-track,
body.catalog-page .brand-rail::-webkit-scrollbar-track,
body.catalog-page .brand-carousel-rail::-webkit-scrollbar-track {
  background: transparent;
}

.category-card-track::-webkit-scrollbar-thumb,
body.catalog-page .brand-rail::-webkit-scrollbar-thumb,
body.catalog-page .brand-carousel-rail::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.20);
  border-radius: 999px;
}

.category-card-track:hover::-webkit-scrollbar-thumb,
body.catalog-page .brand-rail:hover::-webkit-scrollbar-thumb,
body.catalog-page .brand-carousel-rail:hover::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.30);
}

.category-card {
  appearance: none;
  flex: 0 0 var(--category-card-width);
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: #ffffff;
  color: var(--text);
  border-radius: 12px;
  min-height: 116px;
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 6px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.category-card-all {
  z-index: 2;
  width: var(--category-card-all-width);
  flex-basis: auto;
  min-height: 94px;
  grid-template-rows: auto 1fr;
  padding: 7px 6px;
}

.category-card-all .category-card-media {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  justify-self: center;
}

.category-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.30);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.category-card.active {
  border-color: rgba(255, 90, 31, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 246, 241, 0.98));
  box-shadow: 0 14px 34px rgba(255, 90, 31, 0.14);
}

.category-card:disabled {
  cursor: default;
  opacity: 0.78;
  transform: none;
}

.category-card-media {
  width: 100%;
  height: var(--category-card-image-height);
  border-radius: 10px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: #f6f8fb;
  object-fit: contain;
  object-position: center;
}

.category-card-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12), rgba(0, 130, 148, 0.14));
  color: var(--brand2);
  font-size: 24px;
  font-weight: 900;
}

.category-card-placeholder-all {
  color: var(--brand);
  font-size: 22px;
}

.category-card-copy {
  min-width: 0;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}

.category-card-parent {
  min-width: 0;
  color: var(--muted);
  font-size: 8.6px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.08;
  overflow: visible;
  text-transform: uppercase;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.category-card-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  overflow: visible;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
}

.category-card-text-sm .category-card-name {
  font-size: 11px;
}

.category-card-text-xs .category-card-parent {
  font-size: 7.9px;
}

.category-card-text-xs .category-card-name {
  font-size: 10px;
  line-height: 1.08;
}

.category-card-text-xxs .category-card-parent {
  font-size: 7.3px;
  letter-spacing: 0.02em;
}

.category-card-text-xxs .category-card-name {
  font-size: 9px;
  line-height: 1.06;
}

body.catalog-page.catalog-header-compact .category-strip,
body.catalog-page.catalog-header-compact .hierarchy-filter-strip {
  top: calc(var(--catalog-header-height, 76px) - 1px);
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  padding: 5px var(--catalog-sticky-side-pad) 6px;
  border-top: 1px solid rgba(23, 32, 51, 0.07);
  padding-top: 4px;
  padding-bottom: 5px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

body.catalog-page.catalog-header-compact .category-carousel {
  padding: 0;
}

.category-card-count {
  align-self: center;
  display: inline-flex;
  min-width: 28px;
  max-width: 100%;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(246, 248, 251, 0.92);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

body.catalog-page .brand-strip,
body.catalog-page .brand-carousel-strip,
body.catalog-page .category-strip,
body.catalog-page .hierarchy-filter-strip,
body.catalog-page .searchbar,
body.catalog-page .catalog-shell {
  margin-top: 10px;
}

.brand-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 108px);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.brand-pill {
  appearance: none;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 18px;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: center;
  align-items: center;
  min-height: 84px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

body.catalog-page .brand-strip {
  padding: 10px 14px;
}

body.catalog-page .brand-rail {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

body.catalog-page .brand-rail.is-auto-scrolling {
  scroll-snap-type: none;
}

body.catalog-page .brand-pill {
  flex: 0 0 clamp(88px, 7vw, 104px);
  grid-template-columns: minmax(0, 42px) minmax(26px, 1fr);
  min-height: 40px;
  max-width: 104px;
  padding: 4px 6px;
  gap: 6px;
  justify-items: center;
  text-align: center;
  border-radius: 999px;
  scroll-snap-align: start;
}

body.catalog-page .brand-pill-thumb,
body.catalog-page .brand-pill-fallback {
  width: 42px;
  height: 32px;
  border-radius: 10px;
  justify-self: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.96);
}

body.catalog-page .brand-pill-thumb-wide {
  object-fit: contain;
}

body.catalog-page .brand-pill-thumb-dark {
  background: linear-gradient(135deg, rgba(9, 13, 24, 0.96), rgba(34, 42, 57, 0.92));
  border-color: rgba(15, 23, 42, 0.22);
}

body.catalog-page .brand-pill-copy {
  min-width: 0;
  width: auto;
  justify-self: stretch;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

body.catalog-page .brand-pill-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.catalog-page .brand-pill-count {
  min-width: 24px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  font-weight: 900;
}

.brand-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.28);
  box-shadow: 0 14px 28px rgba(255, 90, 31, 0.10);
}

.brand-pill.active {
  border-color: rgba(255, 90, 31, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 236, 0.96));
  box-shadow: 0 14px 34px rgba(255, 90, 31, 0.14);
}

body.catalog-page .brand-pill.active .brand-pill-count {
  background: rgba(255, 90, 31, 0.14);
  color: #9a3412;
}

.brand-pill-thumb,
.brand-pill-fallback {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  object-fit: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--brand2);
}

.brand-pill-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-pill-copy-has-label {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
}

.brand-pill-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-pill-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-pill-count {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1;
}

.brand-pill-utility {
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(240, 246, 250, 0.92));
}

.brand-pill-utility .brand-pill-fallback {
  color: var(--brand);
  background: rgba(255, 245, 240, 0.96);
  border-color: rgba(255, 90, 31, 0.16);
}

.brand-pill-utility.active .brand-pill-label {
  color: var(--brand2);
}

body.catalog-page .brand-pill-all {
  grid-template-columns: minmax(0, 34px) minmax(28px, 1fr);
  min-height: 40px;
  padding-inline: 6px;
}

body.catalog-page .brand-pill-all .brand-pill-copy,
body.catalog-page .brand-pill-all .brand-pill-copy-has-label {
  justify-content: center;
  width: auto;
  gap: 0;
}

body.catalog-page .brand-pill-all .brand-pill-label {
  flex: 1 1 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

body.catalog-page .brand-pill-all .brand-pill-count {
  flex: 0 0 auto;
  font-size: 12px;
}

body.catalog-page .root-pillar-strip {
  padding: 14px 14px 8px;
}

body.catalog-page .root-pillar-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(164px, 232px));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 2vw, 18px);
  overflow: visible;
  scroll-snap-type: none;
  padding: 2px 2px 6px;
}

body.catalog-page .root-pillar-button {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 216px;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 14px 13px 13px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    #ffffff;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.catalog-page .root-pillar-button:hover {
  border-color: rgba(255, 90, 31, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.92)),
    #ffffff;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

body.catalog-page .root-pillar-button.active {
  border-color: rgba(255, 90, 31, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 237, 213, 0.88)),
    #fff7ed;
  box-shadow:
    0 16px 34px rgba(217, 45, 32, 0.13),
    inset 0 0 0 1px rgba(255, 90, 31, 0.10);
}

body.catalog-page .root-pillar-visual {
  position: relative;
  width: min(100%, 154px);
  height: 152px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body.catalog-page .root-pillar-visual[data-pillar-asset]::before {
  content: "";
  display: none;
}

body.catalog-page .root-pillar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

body.catalog-page .root-pillar-img-broken {
  display: none;
}

body.catalog-page .root-pillar-icon-fallback-hidden {
  display: none;
}

body.catalog-page .root-pillar-img-broken + .root-pillar-icon-fallback-hidden {
  display: inline-flex;
}

body.catalog-page .root-pillar-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e24a1a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.catalog-page .root-pillar-icon.root-pillar-icon-fallback-hidden {
  display: none;
}

body.catalog-page .root-pillar-img-broken + .root-pillar-icon.root-pillar-icon-fallback-hidden {
  display: inline-flex;
}

body.catalog-page .root-pillar-icon::after {
  content: none;
}

body.catalog-page .root-pillar-svg {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

body.catalog-page .root-pillar-copy {
  width: 100%;
  min-width: 0;
  display: contents;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.catalog-page .root-pillar-label {
  display: none;
}

body.catalog-page .root-pillar-count {
  position: absolute;
  top: 9px;
  right: 9px;
  flex: 0 0 auto;
  min-width: 30px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.055);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

body.catalog-page .root-pillar-button.active .root-pillar-label {
  display: none;
}

body.catalog-page .root-pillar-button.active .root-pillar-count {
  background: rgba(255, 90, 31, 0.16);
  color: #9a3412;
}

body.catalog-page .root-pillar-button:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 2px;
}

body.catalog-page .brand-carousel-strip {
  padding: 2px 14px 0;
}

body.catalog-page .catalog-stock-signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #167447;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body.catalog-page .catalog-stock-signal > span {
  color: #20a464;
  font-size: 10px;
}

body.catalog-page .brand-carousel-rail {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.20) transparent;
}

body.catalog-page .brand-carousel-chip {
  flex: 0 0 clamp(70px, 5vw, 82px);
  max-width: 82px;
  min-height: 40px;
  padding: 4px 6px;
  grid-template-columns: minmax(0, 42px) minmax(23px, auto);
  gap: 6px;
  align-items: center;
  justify-items: center;
  text-align: center;
  border-radius: 999px;
  scroll-snap-align: start;
}

body.catalog-page .brand-carousel-chip:hover {
  border-color: rgba(255, 90, 31, 0.25);
  box-shadow: 0 12px 24px rgba(255, 90, 31, 0.10);
  transform: translateY(-1px);
}

body.catalog-page .brand-carousel-chip.active {
  border-color: rgba(255, 90, 31, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 237, 213, 0.84)),
    #fff7ed;
  box-shadow: 0 12px 26px rgba(217, 45, 32, 0.11);
}

body.catalog-page .brand-carousel-chip-paused {
  border-style: dashed;
  opacity: 0.82;
}

body.catalog-page .brand-carousel-logo-wrap,
body.catalog-page .brand-carousel-fallback,
body.catalog-page .brand-carousel-clear-mark {
  width: 42px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body.catalog-page .brand-carousel-logo-wrap {
  position: relative;
  overflow: hidden;
}

body.catalog-page .brand-carousel-logo {
  max-width: 34px;
  max-height: 22px;
  object-fit: contain;
  display: block;
}

body.catalog-page .brand-carousel-logo-wrap .brand-carousel-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: none;
}

body.catalog-page .brand-carousel-logo-broken .brand-carousel-logo {
  display: none;
}

body.catalog-page .brand-carousel-logo-broken .brand-carousel-fallback {
  display: inline-flex;
}

body.catalog-page .brand-carousel-fallback,
body.catalog-page .brand-carousel-clear-mark {
  color: #e24a1a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body.catalog-page .brand-carousel-clear-mark {
  background: rgba(255, 245, 240, 0.96);
  border-color: rgba(255, 90, 31, 0.18);
  font-size: 22px;
  line-height: 1;
}

body.catalog-page .brand-carousel-copy {
  min-width: 0;
  width: auto;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

body.catalog-page .brand-carousel-label {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
}

body.catalog-page .brand-carousel-count {
  min-width: 23px;
  min-height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.055);
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

body.catalog-page .brand-carousel-chip.active .brand-carousel-label {
  color: #9a3412;
}

body.catalog-page .brand-carousel-chip.active .brand-carousel-count {
  background: rgba(255, 90, 31, 0.16);
  color: #9a3412;
}

body.catalog-page .brand-carousel-chip-clear {
  flex-basis: 46px;
  min-width: 46px;
  max-width: 46px;
  grid-template-columns: 1fr;
}

body.catalog-page .brand-carousel-chip-clear .brand-carousel-copy {
  display: none;
  justify-content: center;
  gap: 0;
}

body.catalog-page .brand-carousel-sub {
  display: none;
}

body.catalog-page .brand-carousel-chip:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.26);
  outline-offset: 2px;
}

.compound-detail {
  display: grid;
  gap: 24px;
}

.compound-detail h3,
.compound-detail h4 {
  margin: 0;
}

.compound-summary,
.compound-components,
.compound-compatibility {
  display: grid;
  gap: 12px;
}

.compound-attr-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line, #dfe4ea);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.compound-attr-group > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.compound-attr-group > header div,
.compound-attr-surface {
  display: grid;
  gap: 6px;
}

.compound-attr-group > header span {
  color: var(--muted, #65717f);
  font-size: 0.9rem;
}

.compound-attr-group code {
  overflow-wrap: anywhere;
  text-align: right;
}

.compound-compatibility ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compound-compatibility li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 4px solid #7a8794;
  background: rgba(122, 135, 148, 0.08);
}

.compound-compatibility li[data-status="pass"] {
  border-left-color: #198754;
  background: rgba(25, 135, 84, 0.08);
}

@media (max-width: 980px) {
  .hierarchy-level {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .hierarchy-node-label {
    font-size: 12px;
  }

  .category-card {
    min-height: 118px;
  }

  .category-card-media {
    height: var(--category-card-image-height);
  }

  body.catalog-page .brand-strip {
    padding: 9px 12px;
  }

  body.catalog-page .brand-rail {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  body.catalog-page .brand-pill {
    flex-basis: 86px;
    min-height: 40px;
    max-width: 98px;
    padding: 4px 6px;
    gap: 5px;
  }

  body.catalog-page .brand-pill-thumb,
  body.catalog-page .brand-pill-fallback {
    width: 40px;
    height: 30px;
  }

  body.catalog-page .brand-pill-all {
    min-height: 40px;
    padding-inline: 7px;
  }

  body.catalog-page .root-pillar-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body.catalog-page .root-pillar-button {
    max-width: none;
    min-height: 184px;
    padding: 12px 9px 11px;
  }

  body.catalog-page .root-pillar-visual {
    width: min(100%, 126px);
    height: 122px;
    border-radius: 10px;
  }

  body.catalog-page .root-pillar-icon {
    width: 42px;
    height: 42px;
  }

  body.catalog-page .root-pillar-svg {
    width: 27px;
    height: 27px;
  }

  body.catalog-page .brand-carousel-strip {
    padding-inline: 12px;
  }

  body.catalog-page .brand-carousel-chip {
    flex-basis: 76px;
    min-width: 76px;
    max-width: 82px;
    min-height: 40px;
    padding: 4px 6px;
    grid-template-columns: 40px minmax(21px, auto);
    gap: 6px;
    border-radius: 999px;
  }

  body.catalog-page .brand-carousel-logo-wrap,
  body.catalog-page .brand-carousel-fallback,
  body.catalog-page .brand-carousel-clear-mark {
    width: 40px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .compound-attr-group > header {
    flex-direction: column;
  }

  .compound-attr-group code {
    text-align: left;
  }

  .hierarchy-filter-strip {
    margin-top: 4px;
    padding-top: 4px;
    padding-bottom: 5px;
  }

  .hierarchy-filter {
    gap: 6px;
  }

  .hierarchy-level {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 1px;
  }

  .hierarchy-level::-webkit-scrollbar {
    display: none;
  }

  .hierarchy-level-1,
  .hierarchy-level-2,
  .hierarchy-level-3 {
    padding-left: 0;
    border-left: 0;
  }

  .hierarchy-node {
    flex: 0 0 clamp(128px, 44vw, 176px);
    scroll-snap-align: start;
    min-height: 38px;
  }

  .hierarchy-node-body {
    min-height: 38px;
    padding: 7px 8px;
    gap: 6px;
  }

  .hierarchy-node-label {
    font-size: 11.5px;
  }

  .hierarchy-level-0 .hierarchy-node-label {
    font-size: 11px;
  }

  .hierarchy-node-toggle {
    width: 36px;
    min-height: 38px;
  }

  .hierarchy-node-count {
    min-width: 23px;
    min-height: 19px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .category-strip {
    margin-top: 4px;
    padding-top: 3px;
    padding-bottom: 4px;
  }

  .category-carousel {
    --category-card-gap: 7px;
    --category-card-all-width: 58px;
    --category-card-width: clamp(84px, 23.5vw, 92px);
    --category-card-image-height: 42px;
    padding: 0 0 4px;
  }

  .category-card-track {
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .category-card-track::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex-basis: var(--category-card-width);
  }

  .category-card:not(.category-card-all) {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    border-radius: 10px;
    gap: 4px;
    padding: 5px;
  }

  .category-card-all {
    width: var(--category-card-all-width);
    flex-basis: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    justify-items: center;
    min-height: 88px;
    padding: 5px 4px;
    text-align: center;
  }

  .category-card:not(.category-card-all) .category-card-media {
    width: 100%;
    height: var(--category-card-image-height);
    border-radius: 9px;
  }

  .category-card-all .category-card-media {
    display: inline-flex;
    width: 32px;
    height: 32px;
  }

  .category-card-copy {
    gap: 3px;
  }

  .category-card-parent {
    font-size: 6.9px;
    letter-spacing: 0.02em;
    line-height: 1.06;
  }

  .category-card-name {
    display: block;
    min-height: 0;
    font-size: 8.7px;
    line-height: 1.05;
    white-space: normal;
  }

  .category-card-count {
    min-width: 22px;
    min-height: 15px;
    padding: 1px 5px;
    font-size: 8px;
  }

  .category-card-all .category-card-name {
    min-height: auto;
    font-size: 9px;
  }

  .category-card-text-sm .category-card-name,
  .category-card-text-xs .category-card-name {
    font-size: 8.1px;
  }

  .category-card-text-xxs .category-card-parent {
    font-size: 6.2px;
  }

  .category-card-text-xxs .category-card-name {
    font-size: 7.4px;
    line-height: 1.04;
  }

  body.catalog-page .brand-strip {
    padding: 8px 10px;
  }

  body.catalog-page .brand-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.catalog-page .brand-pill {
    flex-basis: 78px;
    min-height: 38px;
    max-width: 90px;
    padding: 4px 6px;
    gap: 5px;
  }

  body.catalog-page .brand-pill-thumb,
  body.catalog-page .brand-pill-fallback {
    width: 36px;
    height: 28px;
    border-radius: 9px;
  }

  body.catalog-page .brand-pill-count {
    min-width: 22px;
    min-height: 20px;
    padding-inline: 5px;
    font-size: 11px;
  }

  body.catalog-page .brand-pill-label {
    font-size: 13px;
  }

  body.catalog-page .brand-pill-all {
    min-height: 38px;
    padding-inline: 7px;
  }

  body.catalog-page .brand-pill-all .brand-pill-copy,
  body.catalog-page .brand-pill-all .brand-pill-copy-has-label {
    gap: 0;
  }

  body.catalog-page .brand-pill-all .brand-pill-label {
    font-size: 14px;
  }

  body.catalog-page .root-pillar-strip {
    padding: 8px 8px 7px;
  }

  body.catalog-page .root-pillar-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.catalog-page .root-pillar-button {
    max-width: none;
    min-height: 180px;
    padding: 11px 8px 10px;
    border-radius: 12px;
  }

  body.catalog-page .root-pillar-visual {
    width: min(100%, 126px);
    height: 118px;
    border-radius: 9px;
  }

  body.catalog-page .root-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  body.catalog-page .root-pillar-svg {
    width: 24px;
    height: 24px;
  }

  body.catalog-page .root-pillar-label {
    font-size: 12px;
    text-align: center;
  }

  body.catalog-page .root-pillar-count {
    min-width: 24px;
    min-height: 18px;
    padding: 0 6px;
    font-size: 9.5px;
  }

  body.catalog-page .brand-carousel-strip {
    padding: 2px 8px 0;
  }

  body.catalog-page .brand-carousel-rail {
    gap: 7px;
    padding-bottom: 6px;
  }

  body.catalog-page .brand-carousel-chip {
    flex-basis: 68px;
    min-width: 68px;
    max-width: 74px;
    min-height: 38px;
    padding: 4px 6px;
    grid-template-columns: 36px minmax(21px, auto);
    gap: 6px;
    border-radius: 999px;
  }

  body.catalog-page .brand-carousel-logo-wrap,
  body.catalog-page .brand-carousel-fallback,
  body.catalog-page .brand-carousel-clear-mark {
    width: 36px;
    height: 28px;
    border-radius: 9px;
  }

  body.catalog-page .brand-carousel-logo {
    max-width: 30px;
    max-height: 19px;
  }

  body.catalog-page .brand-carousel-label {
    font-size: 11.5px;
  }

  body.catalog-page .brand-carousel-count {
    min-width: 21px;
    min-height: 18px;
    padding-inline: 5px;
    font-size: 9.5px;
  }

  body.catalog-page .brand-carousel-chip-clear {
    flex-basis: 40px;
    min-width: 40px;
    max-width: 40px;
  }
}

.campaign-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.searchbar-surface {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-summary {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.catalog-view-controls {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.catalog-view-label,
.catalog-sort-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.catalog-view-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #f7f8fb;
}

.catalog-view-btn {
  appearance: none;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.catalog-view-btn[aria-pressed="true"] {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

.catalog-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.catalog-sort-select {
  min-height: 34px;
  max-width: min(45vw, 172px);
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0 30px 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 360px);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.summary-reset-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.38);
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 90, 31, 0.18);
}

.summary-reset-btn:hover,
.summary-reset-btn:focus-visible {
  background: #e24d1d;
  outline: none;
}

.summary-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-chip-active {
  border-color: rgba(255, 90, 31, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

.summary-chip-global {
  border-color: rgba(255, 90, 31, 0.30);
  background: rgba(255, 248, 242, 0.96);
  color: #9a3412;
}

.summary-chip-paused {
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
}

.summary-chip-clear {
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.summary-chip-clear:hover,
.summary-chip-clear:focus-visible {
  background: rgba(255, 90, 31, 0.14);
  color: var(--brand);
  outline: none;
}

.summary-chip-action {
  cursor: pointer;
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--ok);
  background: rgba(240, 253, 250, 0.88);
}

.summary-chip-action:hover,
.summary-chip-action:focus-visible {
  border-color: rgba(15, 118, 110, 0.32);
  outline: none;
}

.summary-chip-muted {
  color: var(--muted);
  background: #f7f8fb;
}

@media (max-width: 720px) {
  .searchbar-surface {
    align-items: stretch;
  }

  .filter-summary,
  .catalog-controls {
    flex: 1 1 100%;
  }

  .catalog-controls {
    justify-content: space-between;
  }
}

.searchbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchbar-row > input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}

.clear-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.pager {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  opacity: 0.9;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type="search"],
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

input[type="search"]:focus,
select:focus {
  border-color: rgba(255, 140, 66, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  border-color: rgba(255, 140, 66, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.status {
  color: var(--muted);
  font-weight: 700;
}

.spacer {
  flex: 1;
}

.catalog-shell {
  margin-top: 14px;
}

.catalog-sections {
  display: grid;
  gap: 16px;
}

.catalog-grid-direct {
  margin-top: 0;
}

.catalog-section {
  padding: 18px;
}

.catalog-section-featured {
  background:
    radial-gradient(620px 240px at 10% 0%, rgba(255, 90, 31, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 248, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.catalog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.catalog-section-copy {
  min-width: 0;
}

.catalog-section-action.active {
  border-color: rgba(255, 90, 31, 0.38);
  background: #fff7f2;
}

.catalog-section-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-count-accent {
  background: rgba(255, 90, 31, 0.10);
  color: var(--brand);
}

.section-count-muted {
  background: rgba(15, 118, 110, 0.08);
  color: var(--ok);
}

.product-grid,
.grid-inner {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.card-featured-lead {
  grid-column: span 2;
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: 200px auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 252, 0.98));
  border: 1px solid rgba(23, 32, 51, 0.10);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, 0.34);
  box-shadow: 0 18px 40px rgba(255, 90, 31, 0.12);
}

.catalog-touch-preview-lock {
  overscroll-behavior: none;
}

body.catalog-touch-preview-open {
  overflow: hidden;
  touch-action: none;
}

body.catalog-quick-view-open {
  overflow: hidden;
}

.catalog-quick-view-lock {
  overscroll-behavior: none;
}

body.catalog-touch-preview-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.card.card-touch-preview-active {
  position: fixed;
  z-index: 120;
  top: 50%;
  left: 50%;
  width: min(92vw, 430px);
  max-height: min(86vh, 680px);
  grid-template-rows: minmax(210px, min(42vh, 300px)) auto;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: none;
  transform: translate3d(-50%, -50%, 0) scale(1.04);
  border-color: rgba(255, 90, 31, 0.54);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34), 0 18px 46px rgba(255, 90, 31, 0.18);
}

.card.card-touch-preview-active:hover {
  transform: translate3d(-50%, -50%, 0) scale(1.04);
}

.card.card-touch-preview-active .card-media {
  min-height: 210px;
}

.card.card-touch-preview-active .card-body {
  min-height: auto;
}

.card.card-touch-preview-active .card-gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.catalog-quick-view {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
  -webkit-tap-highlight-color: transparent;
}

.catalog-quick-view.is-open {
  display: flex;
}

.catalog-quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(3px);
}

.catalog-quick-view-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(88vh, 760px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34), 0 20px 54px rgba(255, 90, 31, 0.12);
  outline: none;
}

.catalog-quick-view-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.catalog-quick-view-close:hover,
.catalog-quick-view-close:focus-visible {
  border-color: rgba(255, 90, 31, 0.32);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.catalog-quick-view-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  max-height: inherit;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.catalog-quick-view-media {
  position: relative;
  min-height: 460px;
  background:
    radial-gradient(320px 220px at 18% 16%, rgba(255, 90, 31, 0.14), transparent 62%),
    radial-gradient(260px 200px at 82% 18%, rgba(15, 118, 110, 0.10), transparent 60%),
    #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.catalog-quick-view-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-scrim);
  pointer-events: none;
}

.catalog-quick-view-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 410px;
  object-fit: contain;
  object-position: center;
}

.catalog-quick-view-ph {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.catalog-quick-view-fallback {
  display: none;
}

.catalog-quick-view-media-broken .catalog-quick-view-img {
  display: none;
}

.catalog-quick-view-media-broken .catalog-quick-view-fallback {
  display: flex;
}

.catalog-quick-view-gallery {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.catalog-quick-view-gallery-prev {
  left: 14px;
}

.catalog-quick-view-gallery-next {
  right: 14px;
}

.catalog-quick-view-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.catalog-quick-view-copy {
  min-width: 0;
  padding: 34px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-quick-view-kickers,
.catalog-quick-view-signals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-quick-view-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-quick-view-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.catalog-quick-view-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.catalog-quick-view-shipping {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.18);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.catalog-quick-view-price-panel {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.catalog-quick-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.catalog-quick-view-full-link {
  justify-content: center;
  min-height: 44px;
  padding-inline: 18px;
}

.card-featured {
  grid-template-rows: 220px auto;
}

.card-featured-lead .card-media {
  padding: 18px;
}

.card-media {
  position: relative;
  background:
    radial-gradient(200px 140px at 18% 18%, rgba(255, 90, 31, 0.14), transparent 60%),
    radial-gradient(180px 140px at 82% 16%, rgba(15, 118, 110, 0.08), transparent 58%),
    #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-scrim);
  pointer-events: none;
}

.card-gallery-nav,
.gallery-nav-btn {
  appearance: none;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.card-gallery-nav:hover,
.gallery-nav-btn:hover {
  border-color: rgba(255, 90, 31, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.card-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.card-gallery-nav:hover {
  transform: translateY(calc(-50% - 1px));
}

.card-gallery-nav-prev {
  left: 10px;
}

.card-gallery-nav-next {
  right: 10px;
}

.card[data-card-gallery="1"]:hover .card-gallery-nav,
.card[data-card-gallery="1"]:focus-within .card-gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.card-gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-width: 46px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.card-img {
  width: 100%;
  height: 100%;
  max-width: 98%;
  max-height: 98%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 160ms ease;
}

.card-img.card-img-rotating {
  opacity: 0.68;
}

@media (prefers-reduced-motion: reduce) {
  .card-img {
    transition: none;
  }
}

.card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  min-height: 198px;
}

.card-title {
  display: grid;
  gap: 8px;
  line-height: 1.15;
  min-width: 0;
}

.card-code {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-desc {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  max-height: calc(3 * 1.25em);
  display: -webkit-box;
  line-height: 1.25;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-featured-lead .card-desc {
  font-size: 19px;
  max-height: calc(3 * 1.3em);
}

.card-kickers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-ref {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-commercial-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
}

.card-shipping-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.18);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-signal {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.card-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.card-price-wrap {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.card-price-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mini-pill-muted {
  color: var(--ok);
  border-color: rgba(49, 208, 170, 0.24);
  background: rgba(49, 208, 170, 0.08);
}

.mini-pill-accent {
  color: var(--brand);
  border-color: rgba(255, 90, 31, 0.18);
  background: rgba(255, 90, 31, 0.10);
}

.mini-pill-outline {
  color: #7c2d12;
  border-color: rgba(124, 45, 18, 0.14);
  background: rgba(255, 237, 213, 0.72);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-card-shell {
  display: grid;
  gap: 10px;
}

.catalog-card-main {
  display: grid;
  min-width: 0;
}

.card-quick-view-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  -webkit-tap-highlight-color: transparent;
}

.card-quick-view-btn:hover,
.card-quick-view-btn:focus-visible {
  border-color: rgba(255, 90, 31, 0.34);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.22);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-buy-btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  padding-inline: 14px;
}

.card-buy-btn[disabled],
.buy-online-btn[disabled] {
  cursor: wait;
  opacity: 0.82;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  justify-items: start;
}

.price-manual {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--brand2);
}

.price-prefix {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
}

.price-int {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand2);
}

.price-dec {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.68);
}

.footer {
  padding: 16px 18px 18px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 90, 31, 0.9);
  box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.18);
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Mobile drawer (subcategorías) */
.drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 50;
  display: none;
  overflow: hidden;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 100vw);
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 1;
  background: rgba(10, 14, 20, 0.94);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 160ms ease;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.drawer-title {
  font-weight: 900;
  letter-spacing: 0.03em;
}

.drawer-close {
  padding: 8px 12px;
}

.drawer-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.drawer-category {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.drawer-hierarchy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: stretch;
  min-width: 0;
}

.drawer-hierarchy-action {
  min-width: 0;
}

.drawer-hierarchy-depth-1 .drawer-hierarchy-row {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.drawer-hierarchy-depth-2 .drawer-hierarchy-row {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.drawer-sublist {
  position: relative;
  display: grid;
  gap: 7px;
  margin-left: 14px;
  padding-left: 16px;
  min-width: 0;
}

.drawer-sublist::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 21px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.28);
}

.drawer-sublist[hidden] {
  display: none;
}

.drawer-item {
  width: 100%;
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.drawer-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.drawer-item.active {
  border-color: rgba(255, 140, 66, 0.78);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.drawer-item-category {
  background: rgba(255, 255, 255, 0.045);
}

.drawer-item-subcategory {
  position: relative;
  min-height: 42px;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.025);
}

.drawer-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.drawer-category-chevron {
  appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1;
}

.drawer-hierarchy-toggle {
  width: auto;
  height: auto;
  min-height: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.drawer-hierarchy-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.32);
}

.drawer-hierarchy-toggle:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 2px;
}

.drawer-item-branch {
  position: absolute;
  left: -16px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.34);
}

.drawer-item-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .drawer-sublist {
    margin-left: 10px;
    padding-left: 10px;
  }

  .drawer-hierarchy-depth-1 > .drawer-sublist {
    margin-left: 8px;
    padding-left: 8px;
  }

  .drawer-hierarchy-depth-2 > .drawer-sublist {
    margin-left: 6px;
    padding-left: 6px;
  }
}

/* Product detail */
.product {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.gallery {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.gallery-hero {
  position: relative;
  height: 420px;
  touch-action: pan-y;
  background:
    radial-gradient(220px 160px at 30% 20%, rgba(255, 90, 31, 0.18), transparent 60%),
    radial-gradient(220px 160px at 80% 20%, rgba(49, 208, 170, 0.10), transparent 60%),
    rgba(0, 0, 0, 0.22);
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-scrim);
  pointer-events: none;
}

.gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.gallery-hero-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  z-index: 1;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav-btn:hover {
  transform: translateY(calc(-50% - 1px));
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.gallery-nav-btn[hidden] {
  display: none;
}

.ph-title {
  font-weight: 900;
}

.ph-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.gallery-thumbs {
  /* Fixed-size thumbs centered; avoids "offset" feel when images count < N */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-btn {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  height: 62px;
  width: 62px;
  flex: 0 0 62px;
  transition: transform 120ms ease, border-color 120ms ease;
}

.thumb-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.26);
}

.thumb-btn.active {
  border-color: rgba(255, 140, 66, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.thumb-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img-scrim);
  pointer-events: none;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.product-header {
  padding: 4px 2px 2px;
}

.product-lead {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-lead-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-lead-chip-accent {
  border-color: rgba(255, 90, 31, 0.18);
  background: rgba(255, 90, 31, 0.10);
  color: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-header h1 {
  margin: 10px 0 6px;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.product-code {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.72);
}

.product-code-secondary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.buybox {
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.10), rgba(255, 255, 255, 0.03));
  padding: 14px;
}

.buybox-price {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.shipping-box {
  display: grid;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 999px;
  background: rgba(255, 111, 54, 0.08);
  border: 1px solid rgba(255, 111, 54, 0.22);
}

.shipping-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff6f36;
}

.installments-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid rgba(255, 111, 54, 0.32);
  box-shadow: 0 18px 36px rgba(24, 32, 51, 0.08);
  display: grid;
  gap: 14px;
}

.installments-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.installments-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.installments-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6f36;
}

.installments-title {
  font-size: 20px;
  font-weight: 900;
  color: #182033;
}

.payment-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.payment-brand {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  border: 1px solid rgba(24, 32, 51, 0.10);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 32, 51, 0.08);
}

.payment-brand-visa {
  color: #1434cb;
  font-style: italic;
}

.payment-brand-mastercard {
  position: relative;
  gap: 6px;
  color: #182033;
}

.mc-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
}

.mc-dot-left {
  background: #eb001b;
  margin-right: -11px;
}

.mc-dot-right {
  background: #f79e1b;
}

.payment-brand-text {
  margin-left: 2px;
}

.installments-meta {
  font-size: 13px;
  line-height: 1.45;
  color: #5b6374;
}

.installments-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.installments-stat {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(24, 32, 51, 0.12);
  display: grid;
  gap: 4px;
}

.installments-stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737b8d;
}

.installments-stat-value {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  color: #182033;
}

@media (max-width: 640px) {
  .installments-head {
    flex-direction: column;
  }

  .installments-summary {
    grid-template-columns: 1fr;
  }
}

.price-label {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-big {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand2);
}

.wa-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
}

.buy-online-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
}

.buy-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.32);
}

.buy-feedback[data-tone="success"] {
  color: #d7ffea;
  border-color: rgba(49, 208, 170, 0.28);
}

.buy-feedback[data-tone="warn"] {
  color: #ffe6d9;
  border-color: rgba(255, 140, 66, 0.28);
}

.buy-feedback[data-tone="error"] {
  color: #ffd7d7;
  border-color: rgba(255, 122, 122, 0.28);
}

.muted {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.panel-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel-body {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

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

.summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.summary-k {
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-v {
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.attrs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.official-gallery-card {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.official-gallery-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.official-gallery-card.active {
  border-color: rgba(255, 90, 31, 0.34);
  box-shadow: 0 14px 34px rgba(255, 90, 31, 0.12);
}

.official-gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
}

.attr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.10);
}

.attr:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.attr-k {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 900;
}

.attr-v {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-align: right;
}

/* Light theme overrides */
.hero,
.card,
.panel,
.gallery,
.drawer-panel,
.buybox {
  background: #ffffff;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.10), rgba(255, 255, 255, 0.98));
  border-color: var(--line);
}

.hero-copy h1,
.topbar-title,
.brand-name,
.product-header h1,
.price-label,
.panel-head h2,
.ph-title,
.drawer-title,
.card-code {
  color: var(--text);
}

.campaign-note,
.status,
.footer,
.footer-link,
.product-code,
.ph-sub,
.muted,
.attr-k,
.panel-body,
.card-ref {
  color: var(--muted);
}

.card,
.panel,
.gallery,
.buybox {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.card-media,
.gallery-hero {
  background:
    radial-gradient(220px 160px at 30% 20%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(220px 160px at 80% 20%, rgba(15, 118, 110, 0.06), transparent 60%),
    #f8fafc;
}

.mini-pill {
  background: #f5f7fb;
  border-color: rgba(23, 32, 51, 0.10);
  color: #334155;
}

.mini-pill-muted {
  color: var(--ok);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
}

.price-prefix,
.price-dec {
  color: var(--muted);
}

.drawer-panel {
  border-left: 1px solid var(--line);
}

.drawer-backdrop {
  background: rgba(15, 23, 42, 0.24);
}

.drawer-item {
  border-color: rgba(23, 32, 51, 0.12);
  background: #ffffff;
}

.drawer-item:hover {
  background: #fff7f2;
}

.drawer-hierarchy-toggle {
  border-color: rgba(23, 32, 51, 0.12);
  background: #ffffff;
  color: var(--text);
}

.drawer-hierarchy-toggle:hover {
  background: #fff7f2;
}

.drawer-item-count,
.thumb-btn,
.pill {
  border-color: rgba(23, 32, 51, 0.12);
}

.drawer-item-count {
  background: #f8fafc;
  color: var(--text);
}

.thumb-btn {
  background: #ffffff;
}

.gallery-thumbs,
.panel-head {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

.pill {
  background: #fff7f2;
  color: var(--brand);
}

.panel-body,
.card-desc,
.attr-v,
.gallery-hero-ph {
  color: var(--text);
}

.attr {
  border-bottom-color: rgba(23, 32, 51, 0.12);
}

@media (max-width: 980px) {
  .home-hero,
  .section-lead,
  .catalog-section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-badge {
    flex-basis: auto;
    width: 100%;
  }
  .family-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-grid,
  .grid-inner,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-featured-lead {
    grid-column: span 2;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .gallery-hero {
    height: 360px;
  }

  .card-gallery-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .official-gallery-grid {
    grid-template-columns: 1fr;
  }
  .main {
    width: min(100%, calc(100% - 20px));
    padding-top: 14px;
  }
  body.catalog-page .main {
    padding-top: 10px;
  }
  .topbar {
    padding: 8px 10px 9px;
  }
  .topbar-commerce {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 8px 10px;
  }
  .brand {
    grid-area: brand;
    min-width: 0;
  }
  .brand-lockup {
    display: block;
    width: auto;
    max-width: min(172px, 48vw);
    height: 40px;
  }
  .brand-isotype {
    width: 36px;
    height: 36px;
  }
  .brand-compact {
    display: none;
  }
  .brand-text {
    display: grid;
  }
  .brand-link {
    gap: 8px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    max-width: 13ch;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1;
  }
  .brand-tag {
    margin-top: 1px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 8px;
    letter-spacing: 0.28em;
  }
  .brand-partner {
    display: none;
  }
  .topbar-title {
    font-size: 16px;
  }
  .topbar-search {
    grid-area: search;
    min-width: 0;
  }
  .topbar-search-box {
    min-height: 40px;
    padding-inline: 11px;
  }
  .topbar-search-box > input[type="search"] {
    font-size: 15px;
  }
  .search-icon-btn {
    width: 30px;
    height: 30px;
  }
  .actions {
    grid-area: actions;
    justify-self: stretch;
    justify-content: flex-end;
    align-self: center;
    min-width: 0;
  }
  .menu-btn,
  .topbar-link-btn {
    min-height: 36px;
    height: 36px;
    padding: 8px 10px;
  }
  body.catalog-page.catalog-header-compact .topbar {
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px));
  }
  body.catalog-page.catalog-header-compact .topbar-commerce {
    grid-template-columns: minmax(42px, 1fr) 40px auto;
    grid-template-areas: "brand search actions";
    gap: 6px;
  }
  body.catalog-page.catalog-header-compact .brand {
    justify-self: start;
  }
  body.catalog-page.catalog-header-compact .brand-link {
    width: 40px;
    height: 40px;
  }
  body.catalog-page.catalog-header-compact .brand-lockup {
    display: none;
  }
  body.catalog-page.catalog-header-compact .brand-isotype {
    display: block;
    width: 36px;
    height: 36px;
  }
  body.catalog-page.catalog-header-compact .topbar-search {
    grid-area: search;
    width: 40px;
    justify-self: center;
  }
  body.catalog-page.catalog-header-compact .search-toggle-btn {
    width: 38px;
    height: 38px;
  }
  body.catalog-page.catalog-header-compact .topbar-search-box {
    left: auto;
    right: -4px;
    width: min(336px, calc(100vw - 18px));
    transform: translateY(-5px);
  }
  body.catalog-page.catalog-header-compact.catalog-search-expanded .topbar-search-box {
    transform: translateY(0);
  }
  body.catalog-page.catalog-header-compact .menu-btn {
    height: 36px;
    min-height: 36px;
    padding: 7px 9px;
    gap: 7px;
  }
  body.catalog-page.catalog-header-compact .menu-btn span:last-child {
    max-width: 10ch;
  }
  .hamburger {
    width: 16px;
  }
  .family-strip,
  .catalog-section,
  .searchbar-surface {
    padding: 14px;
  }
  .home-hero {
    gap: 12px;
    padding: 14px;
  }
  .section-lead h2,
  .catalog-section-title,
  .empty-state h2 {
    font-size: 21px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  .hero-copy p,
  .section-lead p,
  .hero-badge-sub {
    display: none;
  }
  .hero-actions {
    margin-top: 12px;
  }
  .hero-badge-inner {
    padding: 12px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
    gap: 8px;
  }
  .family-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .family-tile {
    padding: 14px;
  }
  .family-tile-desc {
    display: none;
  }
  .family-tile-meta {
    margin-top: 4px;
  }
  .filter-summary {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .searchbar-surface {
    padding: 0;
    gap: 6px;
  }
  .campaign-note {
    font-size: 12px;
  }
  .catalog-view-controls {
    display: inline-flex;
  }
  .catalog-controls {
    flex: 1 1 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .catalog-view-label {
    display: none;
  }
  .catalog-view-toggle {
    padding: 2px;
  }
  .catalog-view-btn {
    width: 30px;
    height: 28px;
  }
  .catalog-sort-control {
    gap: 5px;
    min-width: 0;
  }
  .catalog-sort-select {
    max-width: 152px;
    min-height: 32px;
    padding-left: 10px;
    font-size: 11.5px;
  }
  body.catalog-page .brand-strip,
  body.catalog-page .category-strip,
  body.catalog-page .hierarchy-filter-strip,
  body.catalog-page .searchbar,
  body.catalog-page .catalog-shell {
    margin-top: 8px;
  }
  body.catalog-page.catalog-header-compact .category-strip,
  body.catalog-page.catalog-header-compact .hierarchy-filter-strip {
    margin-top: 0;
    padding-top: 2px;
    padding-bottom: 3px;
  }
  body.catalog-page.catalog-header-compact .category-carousel {
    --category-card-width: clamp(80px, 22.5vw, 88px);
    --category-card-image-height: 38px;
    padding-bottom: 2px;
  }
  body.catalog-page.catalog-header-compact .category-card:not(.category-card-all) {
    min-height: 94px;
    padding: 4px;
    gap: 3px;
  }
  body.catalog-page.catalog-header-compact .category-card-all {
    min-height: 78px;
  }
  body.catalog-page.catalog-header-compact .category-card-all .category-card-media {
    width: 30px;
    height: 30px;
  }
  .menu-btn span:last-child {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-grid,
  .grid-inner,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.catalog-grid-cols-1 .product-grid,
  body.catalog-grid-cols-1 .grid-inner,
  body.catalog-grid-cols-1 .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-featured-lead {
    grid-column: span 1;
  }
  .card {
    grid-template-rows: clamp(118px, 35vw, 148px) auto;
    border-radius: 14px;
  }
  body.catalog-grid-cols-1 .card {
    grid-template-rows: clamp(180px, 54vw, 220px) auto;
  }
  .card-media {
    padding: 8px;
  }
  .card-body {
    min-height: 0;
    padding: 10px;
  }
  .card-kickers {
    gap: 4px;
    margin-bottom: 8px;
  }
  .card-kickers .mini-pill:nth-child(n+3) {
    display: none;
  }
  .mini-pill {
    padding: 4px 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .card-title {
    gap: 5px;
  }
  .card-code {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .card-desc {
    max-height: calc(2 * 1.2em);
    font-size: 13px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }
  .card-commercial-note,
  .card-signals {
    display: none;
  }
  .card-shipping-note {
    display: -webkit-box;
    margin-top: 8px;
    padding: 7px 8px;
    max-height: calc(2 * 1.25em + 14px);
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .card-gallery-count {
    right: 8px;
    bottom: 8px;
    min-width: 42px;
    padding: 5px 7px;
  }
  .thumb-btn {
    height: 56px;
    width: 56px;
    flex-basis: 56px;
  }
  .price-big {
    font-size: 32px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .card-bottom {
    padding-top: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .card-price-label {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }
  .price {
    gap: 3px;
  }
  .price-int {
    font-size: 18px;
  }
  .price-dec {
    font-size: 10px;
  }
  .price-manual {
    font-size: 16px;
  }
  .card-cta {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .card-quick-view-btn {
    width: 100%;
    margin-left: 0;
  }
  .catalog-quick-view {
    align-items: stretch;
    padding: 10px;
  }
  .catalog-quick-view-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .catalog-quick-view-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-quick-view-media {
    min-height: clamp(210px, 46dvh, 330px);
    padding: 18px;
  }
  .catalog-quick-view-img {
    max-height: clamp(190px, 42dvh, 300px);
  }
  .catalog-quick-view-copy {
    padding: 18px;
    gap: 11px;
  }
  .catalog-quick-view-copy h2 {
    font-size: 21px;
    line-height: 1.12;
  }
  .catalog-quick-view-note {
    font-size: 13px;
  }
  .catalog-quick-view-price-panel {
    margin-top: 0;
    padding: 12px;
  }
  .catalog-quick-view-actions {
    display: grid;
  }
  .catalog-quick-view-full-link {
    width: 100%;
  }
  .card-actions {
    gap: 8px;
  }
  .card-buy-btn {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 12px;
  }
}


/* Product detail layout refresh */
.main {
  width: min(1280px, calc(100% - 24px));
}

.product {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  grid-template-areas:
    "gallery side"
    "desc attrs"
    "official official";
  gap: 18px;
  align-items: start;
}

.product-left {
  grid-area: gallery;
  min-width: 0;
}

.product-right {
  grid-area: side;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-facts {
  grid-area: facts;
}

.panel-desc {
  grid-area: desc;
}

.panel-attrs {
  grid-area: attrs;
}

.panel-gallery {
  grid-area: official;
}

.buybox,
.panel-facts,
.panel-desc,
.panel-attrs,
.panel-gallery,
.gallery {
  margin-top: 0;
}

.gallery-hero {
  height: 500px;
}

.product-header {
  padding: 0;
}

.product-header h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.product-code {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
}

.product-code-secondary {
  margin-top: 6px;
  font-size: 14px;
}

.buybox {
  padding: 18px;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.price-big {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 0.95;
}

.price-tax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.12);
  color: var(--brand);
  border: 1px solid rgba(255, 90, 31, 0.18);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.summary-card {
  min-height: 100%;
  min-width: 0;
  padding: 14px;
}

.summary-v {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.panel-body {
  font-size: 16px;
}

.attrs-grid {
  gap: 12px;
}

body.product-page .panel-attrs .attrs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}

.attr {
  align-items: flex-start;
}

body.product-page .panel-attrs .attr {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  gap: 8px 12px;
  padding: 10px 0;
}

.attr-k {
  flex: 0 0 42%;
}

body.product-page .panel-attrs .attr-k,
body.product-page .panel-attrs .attr-v {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.product-page .panel-attrs .attr-v {
  text-align: left;
}

.attr-v {
  flex: 1 1 auto;
}

.official-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .main {
    width: calc(100% - 20px);
  }

  .product {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "gallery"
      "desc"
      "attrs"
      "official";
  }

  .gallery-hero {
    height: min(72vw, 420px);
  }

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

  body.product-page .panel-attrs .attrs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main {
    width: calc(100% - 16px);
    padding-top: 12px;
  }
  body.catalog-page .main {
    padding-top: 10px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .back,
  .ghost-btn {
    padding-inline: 10px;
  }

  .product {
    gap: 14px;
  }

  .product-header h1 {
    font-size: 24px;
    line-height: 1.08;
    margin-top: 8px;
  }

  .product-code {
    font-size: 16px;
  }

  .price-row {
    align-items: flex-start;
    gap: 10px;
  }

  .price-big {
    font-size: 28px;
  }

  .price-tax {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .buybox,
  .panel-body,
  .panel-head {
    padding-inline: 12px;
  }

  .summary-grid,
  .official-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero {
    height: 280px;
  }

  .gallery-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .thumb-btn {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }

  .attr {
    flex-direction: column;
    gap: 4px;
  }

  .attr-k,
  .attr-v {
    flex: 1 1 auto;
    text-align: left;
  }
}


.official-sections {
  display: grid;
  gap: 18px;
}

.official-section {
  display: grid;
  gap: 12px;
}

.official-section h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.official-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.official-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.official-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #f8fafc;
}

.official-card-copy {
  padding: 0 14px 14px;
}

.official-card-copy h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.official-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.official-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.official-pairs {
  display: grid;
  gap: 10px;
}

.official-pair {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(23, 32, 51, 0.12);
}

.official-pair:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.official-pair-k {
  font-weight: 800;
  color: var(--text);
}

.official-pair-v {
  color: var(--muted);
}

@media (max-width: 640px) {
  .official-cards {
    grid-template-columns: 1fr;
  }

  .official-pair {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* Product detail stage 2026-03-20 */
body.product-page {
  background:
    radial-gradient(1200px 620px at 12% 0%, rgba(255, 90, 31, 0.10), transparent 70%),
    radial-gradient(960px 560px at 88% 0%, rgba(15, 118, 110, 0.08), transparent 68%),
    linear-gradient(180deg, #fdfefe, #f4f7fb);
}

body.product-page::before,
body.product-page::after {
  content: "";
  position: fixed;
  top: 72px;
  bottom: 0;
  width: min(32vw, 500px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: var(--product-ambient-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.02);
}

body.product-page::before {
  left: 0;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent 92%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent 92%);
}

body.product-page::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent 92%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent 92%);
}

body.product-page .shell,
body.product-page .main,
body.product-page .product {
  position: relative;
  z-index: 1;
}

body.product-page .main {
  width: min(1520px, calc(100% - 20px));
  padding-bottom: 40px;
}

body.product-page .product {
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  grid-template-areas:
    "gallery side"
    "attrs attrs"
    "highlights highlights"
    "official official";
  gap: 20px 24px;
  align-items: start;
  overflow: visible;
}

body.product-page .product-left {
  grid-area: gallery;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.product-page .product-right {
  grid-area: side;
  gap: 18px;
}

body.product-page .product-right .panel-facts {
  margin-top: 0;
}

body.product-page .panel-desc {
  grid-area: auto;
}

body.product-page .panel-attrs {
  grid-area: attrs;
  width: 100%;
}

body.product-page .panel-facts {
  grid-area: facts;
}

body.product-page .panel-sections {
  grid-area: highlights;
}

body.product-page .panel-gallery {
  grid-area: official;
}

body.product-page .gallery,
body.product-page .panel,
body.product-page .buybox {
  backdrop-filter: blur(10px);
}

body.product-page .gallery-hero {
  min-height: 540px;
  height: clamp(500px, 50vw, 640px);
}

body.product-page .panel-head,
body.product-page .panel-body,
body.product-page .buybox {
  padding-inline: 18px;
}

body.product-page .official-sections {
  gap: 18px;
}

body.product-page .official-section {
  gap: 14px;
}

body.product-page .official-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 16px;
  align-items: start;
}

body.product-page .official-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
  gap: 0;
  min-height: 0;
  align-items: stretch;
}

body.product-page .official-card-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.product-page .official-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 18px 18px;
}

body.product-page .official-card-copy h4 {
  margin: 0;
}

body.product-page .official-card-copy p,
body.product-page .panel-desc .panel-body {
  max-width: 72ch;
}

body.product-page .official-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

body.product-page .summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(164px, 100%), 1fr));
  gap: 12px;
}

body.product-page .price-row {
  gap: 14px;
}

body.product-page .price-tax {
  align-self: center;
}

@media (max-width: 1180px) {
  body.product-page .main {
    width: calc(100% - 18px);
  }

  body.product-page .product {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 18px;
  }

  body.product-page .gallery-hero {
    height: clamp(460px, 48vw, 580px);
    min-height: 460px;
  }

  body.product-page .official-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.product-page::before,
  body.product-page::after {
    display: none;
  }

  body.product-page .main {
    width: calc(100% - 16px);
  }

  body.product-page .product {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "header"
      "buybox"
      "desc"
      "facts"
      "attrs"
      "highlights"
      "official";
  }

  body.product-page .product-left,
  body.product-page .product-right {
    display: contents;
  }

  body.product-page .gallery {
    grid-area: gallery;
  }

  body.product-page .product-header {
    grid-area: header;
  }

  body.product-page .buybox {
    grid-area: buybox;
  }

  body.product-page .panel-desc {
    grid-area: desc;
  }

  body.product-page .panel-facts {
    grid-area: facts;
  }

  body.product-page .panel-attrs {
    grid-area: attrs;
  }

  body.product-page .gallery-hero {
    min-height: 360px;
    height: min(78vw, 500px);
  }

  body.product-page .gallery-nav-btn {
    display: none;
  }

  body.product-page .official-card {
    grid-template-columns: minmax(180px, 34vw) minmax(0, 1fr);
  }

  body.product-page .official-card-img {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  body.product-page .main {
    width: calc(100% - 14px);
    padding-top: 10px;
    padding-bottom: 24px;
  }

  body.product-page .product {
    gap: 14px;
  }

  body.product-page .gallery-hero {
    min-height: 0;
    height: min(86vw, 420px);
  }

  body.product-page .buybox,
  body.product-page .panel-head,
  body.product-page .panel-body {
    padding-inline: 14px;
  }

  body.product-page .official-card {
    grid-template-columns: 1fr;
  }

  body.product-page .official-card-img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.product-page .official-gallery-grid {
    grid-template-columns: 1fr;
  }

  body.product-page .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(146px, 100%), 1fr));
    gap: 10px;
  }

  body.product-page .price-row {
    align-items: flex-start;
    gap: 10px;
  }

  body.product-page .price-tax {
    margin-top: 2px;
  }
}

/* Admin */
body.admin-page {
  background:
    radial-gradient(960px 520px at 10% 0%, rgba(255, 90, 31, 0.08), transparent 72%),
    radial-gradient(900px 520px at 90% 0%, rgba(15, 118, 110, 0.06), transparent 70%),
    linear-gradient(180deg, #f9fbff, #f2f5fb);
}

.admin-main {
  width: min(1520px, calc(100% - 24px));
}

.admin-app {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-login-panel {
  max-width: 520px;
  margin: 32px auto 0;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-list-body,
.admin-editor-body {
  display: grid;
  gap: 14px;
}

.admin-product-list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow: auto;
}

.admin-product-item {
  appearance: none;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 4px;
}

.admin-product-item.active {
  border-color: rgba(255, 90, 31, 0.44);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.admin-product-item-code,
.admin-product-code {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.admin-product-item-title,
.admin-product-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.admin-product-item-meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-product-item-price {
  color: var(--brand2);
  font-weight: 900;
}

.admin-product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-product-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

body.admin-page select,
body.admin-page textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

body.admin-page select:focus,
body.admin-page textarea:focus {
  border-color: rgba(255, 140, 66, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

body.admin-page textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-toggle-field {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.admin-check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-price-preview {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand2);
}

.admin-commercial-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-commercial-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
}

.admin-commercial-row strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
}

.admin-commercial-row span {
  text-align: right;
}

.admin-commercial-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-issue-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

.admin-commercial-ok {
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.admin-gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-image-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-image-frame {
  position: relative;
  aspect-ratio: 1;
  background: #f8fafc;
}

.admin-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.admin-image-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.92);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.admin-image-copy {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-image-code {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-image-actions {
  display: flex;
  gap: 10px;
}

.admin-move-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Web preview/editor */
body.web-preview-page {
  background:
    radial-gradient(960px 520px at 0% 0%, rgba(255, 90, 31, 0.1), transparent 72%),
    radial-gradient(920px 520px at 100% 0%, rgba(22, 163, 74, 0.08), transparent 72%),
    linear-gradient(180deg, #f8fbff, #eef3fb);
}

.web-preview-app {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.web-preview-sidebar-body,
.web-preview-summary-body,
.web-preview-editor-body {
  display: grid;
  gap: 14px;
}

.web-preview-workspace {
  display: grid;
  gap: 18px;
}

.web-preview-toggle,
.web-preview-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.web-preview-toggle input,
.web-preview-inline-toggle input {
  accent-color: var(--brand);
}

.web-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.web-preview-badges,
.web-preview-item-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.web-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.web-preview-badge-default,
.web-preview-badge-muted {
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.2);
}

.web-preview-badge-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.22);
}

.web-preview-badge-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.24);
}

.web-preview-badge-accent {
  background: rgba(255, 90, 31, 0.12);
  color: #b93815;
  border-color: rgba(255, 90, 31, 0.2);
}

.web-preview-note {
  border: 1px solid rgba(255, 90, 31, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  color: #334155;
}

.web-preview-render-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
}

.web-preview-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.web-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.web-preview-gallery-item {
  margin: 0;
  display: grid;
  gap: 8px;
}

.web-preview-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.web-preview-gallery-item figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.web-preview-short,
.web-preview-long,
.web-preview-managed-html,
.web-preview-traceability {
  display: grid;
  gap: 12px;
}

.web-preview-copy {
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.web-preview-copy-long {
  min-height: 120px;
}

.web-preview-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.web-preview-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.web-preview-managed-html-frame {
  display: grid;
  gap: 14px;
  color: var(--text);
  line-height: 1.65;
}

.web-preview-managed-html-frame section {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.web-preview-managed-html-frame h2,
.web-preview-managed-html-frame h3,
.web-preview-managed-html-frame h4,
.web-preview-managed-html-frame p {
  margin: 0;
}

.web-preview-trace-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.web-preview-field {
  display: grid;
  gap: 10px;
}

.web-preview-field-wide {
  grid-column: 1 / -1;
}

.web-preview-field textarea {
  min-height: 110px;
  resize: vertical;
}

.web-preview-editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .web-preview-app,
  .web-preview-render-grid,
  .web-preview-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-list {
    max-height: none;
  }

  .brand-rail {
    grid-auto-columns: minmax(88px, 102px);
  }
}

@media (max-width: 640px) {
  .admin-main {
    width: calc(100% - 16px);
  }

  .admin-product-head,
  .admin-gallery-head,
  .web-preview-head,
  .web-preview-trace-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-editor-grid,
  .admin-images-grid {
    grid-template-columns: 1fr;
  }

  .admin-commercial-row {
    flex-direction: column;
  }

  .admin-commercial-row span {
    text-align: left;
  }

  .admin-image-actions {
    flex-direction: column;
  }

  .web-preview-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .brand-rail {
    grid-auto-columns: minmax(82px, 94px);
    gap: 8px;
  }

  .brand-pill {
    min-height: 76px;
    padding: 8px 6px;
  }

  .brand-pill-thumb,
  .brand-pill-fallback {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .wa-fab {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: 52px;
    height: 52px;
  }
}
