: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;
  --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);
  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);
}

.topbar-commerce {
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 720px) minmax(220px, 1fr);
  gap: 18px;
}

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

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

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

.brand-text {
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
}

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

.topbar-search {
  min-width: 0;
  width: 100%;
}

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

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

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

.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: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

body.catalog-page .brand-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: 18px 20px;
}

body.catalog-page .brand-rail {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 14px;
  overflow: visible;
  padding: 0;
}

body.catalog-page .brand-pill {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 88px;
  padding: 12px 14px;
  gap: 12px;
  justify-items: stretch;
  text-align: left;
}

body.catalog-page .brand-pill-thumb,
body.catalog-page .brand-pill-fallback {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  justify-self: start;
}

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

body.catalog-page .brand-pill-count {
  font-size: 15px;
  line-height: 1;
}

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

.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, 1fr);
  min-height: 78px;
  padding-inline: 16px;
}

body.catalog-page .brand-pill-all .brand-pill-copy,
body.catalog-page .brand-pill-all .brand-pill-copy-has-label {
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

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: 13px;
}

@media (max-width: 980px) {
  body.catalog-page .brand-strip {
    padding: 14px 16px;
  }

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

  body.catalog-page .brand-pill {
    min-height: 82px;
    padding: 10px 12px;
    gap: 10px;
  }

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

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

@media (max-width: 640px) {
  body.catalog-page .brand-strip {
    padding: 12px;
  }

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

  body.catalog-page .brand-pill {
    min-height: 74px;
    padding: 8px 10px;
    gap: 8px;
  }

  body.catalog-page .brand-pill-thumb,
  body.catalog-page .brand-pill-fallback {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

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

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

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

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

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

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

.searchbar-surface {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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-chip-muted {
  color: var(--muted);
  background: #f7f8fb;
}

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

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

.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-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;
  gap: 10px;
}

.card-price-wrap {
  display: grid;
  gap: 4px;
  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: 38px;
  padding: 0 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;
  white-space: nowrap;
}

.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;
  z-index: 50;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 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, 88vw);
  background: rgba(10, 14, 20, 0.94);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: 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;
}

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

.drawer-item {
  width: 100%;
  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-count {
  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);
}

/* 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;
}

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

.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,
.brand-tag,
.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-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 {
    /* Keep title visually centered regardless of left/right widths */
    grid-template-columns: 1fr auto 1fr;
  }
  .topbar-commerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .brand-text {
    display: none;
  }
  .topbar-title {
    font-size: 16px;
  }
  .topbar-search {
    order: 3;
  }
  .topbar-search-box {
    min-height: 44px;
  }
  .actions {
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .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 {
    justify-content: flex-start;
  }
  body.catalog-page .brand-strip,
  body.catalog-page .searchbar,
  body.catalog-page .catalog-shell {
    margin-top: 8px;
  }
  .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: 1fr;
  }
  .card-featured-lead {
    grid-column: span 1;
  }
  .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 {
    align-items: stretch;
    flex-direction: column;
  }
  .card-cta {
    width: 100%;
  }
}


/* 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;
}

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

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

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

@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"
    "desc attrs"
    "highlights highlights"
    "official official";
  gap: 20px 24px;
  align-items: start;
  overflow: visible;
}

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

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: desc;
}

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

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"
      "side"
      "desc"
      "attrs"
      "highlights"
      "official";
  }

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

.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-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-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: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    width: 56px;
    height: 56px;
  }
}
