/* Storefront shell compact v1: shared native cascade for catalog and PDP.
 * Account and checkout retain their dedicated DOM/CSS but use the same 126px
 * desktop / 108px mobile lockup geometry documented by their visual receipts. */

html:has(body.catalog-page),
html:has(body.product-page) { overflow-x: clip; }
body.catalog-page,
body.product-page { overflow-x: clip; }

body.catalog-page .topbar,
html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar {
  grid-template-columns: 142px minmax(280px, 680px) minmax(260px, auto);
  gap: 8px 14px;
  min-height: 62px;
  padding: 4px max(14px, calc((100vw - 1280px) / 2)) 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

/* STOREFRONT-HOME-FOUR-EDITORIAL-RAILS-V1
 * Four ordered selling shelves reuse the canonical commercial card. Each row
 * owns its query and horizontal motion; the complete catalog remains intact. */
body.catalog-page .home-editorial-product-rails[hidden] {
  display: none !important;
}

[data-storefront-cart-entry][hidden],
[data-customer-portal-account][hidden] {
  display: none !important;
}

body.catalog-page .home-editorial-product-rails {
  position: relative;
  min-width: 0;
  margin-top: 8px;
  padding: 13px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fbfcfe 76%, #fff8f4 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}

body.catalog-page .home-editorial-product-rails-intro {
  margin: 0 0 4px;
}

body.catalog-page .home-editorial-product-rails-intro h2 {
  margin: 0;
  color: #172033;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

body.catalog-page .home-editorial-product-rails-list {
  display: grid;
  min-width: 0;
}

body.catalog-page .home-editorial-product-rail {
  position: relative;
  min-width: 0;
  padding: 13px 0 12px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

body.catalog-page .home-editorial-product-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding-inline: 1px;
}

body.catalog-page .home-editorial-product-rail-copy {
  min-width: 0;
}

body.catalog-page .home-editorial-product-rail-eyebrow {
  margin: 0 0 2px;
  color: #ea4c22;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.catalog-page .home-editorial-product-rail-copy h3 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

body.catalog-page .home-editorial-product-rail-copy p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.25;
}

body.catalog-page .home-editorial-product-rail-arrow,
body.catalog-page .home-editorial-product-rail-view-all {
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 9px;
  color: #172033;
  background: rgba(255, 255, 255, .94);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

body.catalog-page .home-editorial-product-rail-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 32px;
  min-height: 46px;
  padding: 0;
  color: #334155;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 18px rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
  font-size: 21px;
  opacity: .58;
  transform: translateY(-50%);
}

body.catalog-page .home-editorial-product-rail-arrow[hidden] {
  display: none !important;
}

body.catalog-page .home-editorial-product-rail-arrow-prev {
  left: 5px;
}

body.catalog-page .home-editorial-product-rail-arrow-next {
  right: 5px;
}

body.catalog-page .home-editorial-product-rail-view-all {
  padding: 0 11px;
  border-color: rgba(234, 76, 34, .24);
  color: #d9431c;
}

body.catalog-page .home-editorial-product-rail-arrow:hover,
body.catalog-page .home-editorial-product-rail-arrow:focus-visible,
body.catalog-page .home-editorial-product-rail-view-all:hover,
body.catalog-page .home-editorial-product-rail-view-all:focus-visible {
  border-color: rgba(234, 76, 34, .5);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(234, 76, 34, .12);
}

body.catalog-page .home-editorial-product-rail-arrow:hover,
body.catalog-page .home-editorial-product-rail-arrow:focus-visible {
  opacity: .96;
}

body.catalog-page .home-editorial-product-rail-track::-webkit-scrollbar {
  display: none;
}

body.catalog-page .home-editorial-product-rail-viewport {
  position: relative;
  min-width: 0;
  margin-top: 7px;
}

body.catalog-page .home-editorial-product-rail-status {
  min-height: 14px;
  margin: 4px 1px 0;
  color: #64748b;
  font-size: 9.5px;
  line-height: 1.25;
}

body.catalog-page .home-editorial-product-rail-track {
  display: flex;
  min-width: 0;
  gap: 10px;
  padding: 2px 1px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.catalog-page .home-editorial-product-rail-track > .catalog-card-shell {
  flex: 0 0 clamp(248px, 22.4vw, 280px);
  width: clamp(248px, 22.4vw, 280px);
  scroll-snap-align: start;
}

body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact {
  max-height: none;
  grid-template-rows: 108px auto;
}

body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact .card-media {
  max-height: 108px;
  padding: 7px;
}

body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact .card-body {
  min-height: 162px;
  padding: 8px 9px;
  gap: 3px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-identity {
  font-size: 9px;
}

body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact .card-desc {
  min-height: calc(2 * 1.18em);
  max-height: calc(2 * 1.18em);
  font-size: 13px;
  line-height: 1.18;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-specs {
  display: none;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-discount {
  padding: 3px 6px;
  font-size: 10px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-price-block {
  padding-top: 3px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-price {
  font-size: 20px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-list-price {
  font-size: 10px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-installments {
  gap: 4px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-installment {
  min-height: 30px;
  padding: 4px 3px;
  font-size: 9px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-main .card-actions {
  gap: 6px;
  padding: 0 8px 8px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-main .card-actions > * {
  min-height: 36px;
  font-size: 11px;
}

body.catalog-page .home-editorial-product-rail-track .catalog-card-commercial-stock {
  top: 7px;
  right: 7px;
  padding: 4px 6px;
  font-size: 9px;
}

body.catalog-page .home-editorial-product-rail-loading {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.catalog-page .home-editorial-product-rail-loading span {
  min-height: 340px;
  border-radius: 13px;
  background: linear-gradient(100deg, #f3f5f7 15%, #fff 40%, #f3f5f7 65%);
  background-size: 200% 100%;
  animation: home-editorial-product-rail-loading 1.3s linear infinite;
}

@keyframes home-editorial-product-rail-loading {
  to { background-position-x: -200%; }
}

@media (max-width: 720px) {
  body.catalog-page .home-editorial-product-rails {
    margin-top: 6px;
    padding: 9px 7px 8px;
    border-radius: 12px;
  }

  body.catalog-page .home-editorial-product-rails-intro h2 {
    font-size: 16px;
  }

  body.catalog-page .home-editorial-product-rail {
    padding: 11px 0 10px;
  }

  body.catalog-page .home-editorial-product-rail-copy h3 {
    font-size: 15px;
  }

  body.catalog-page .home-editorial-product-rail-arrow {
    display: none;
  }

  body.catalog-page .home-editorial-product-rail-view-all {
    min-height: 32px;
    padding: 0 9px;
    white-space: nowrap;
  }

  body.catalog-page .home-editorial-product-rail-status {
    display: none;
  }

  body.catalog-page .home-editorial-product-rail-track {
    gap: 8px;
    margin-inline: -1px;
    scroll-padding-inline: 1px;
  }

  body.catalog-page .home-editorial-product-rail-track > .catalog-card-shell {
    flex-basis: min(78vw, 286px);
    width: min(78vw, 286px);
  }

  body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact {
    grid-template-rows: 104px auto;
  }

  body.catalog-page.catalog-card-commercial-compact-enabled .home-editorial-product-rail-track .catalog-card-commercial-compact .card-body {
    min-height: 164px;
  }

  body.catalog-page .home-editorial-product-rail-loading {
    display: flex;
  }

  body.catalog-page .home-editorial-product-rail-loading span {
    min-width: min(78vw, 286px);
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.catalog-page .home-editorial-product-rail-track {
    scroll-behavior: auto;
  }

  body.catalog-page .home-editorial-product-rail-loading span {
    animation: none;
  }
}

/* Home dynamic campaigns v1: native, compact and deliberately bounded. */
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaigns {
  margin: 8px 0 6px;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel {
  position: relative;
  overflow: clip;
  min-height: 230px;
  border-radius: 14px;
  background: #10233e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel:focus-visible {
  outline: 3px solid #ff6a3d;
  outline-offset: 3px;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slides { min-height: 230px; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(260px, 1.08fr);
  min-height: 230px;
  overflow: hidden;
  background: var(--campaign-background, #10233e);
  color: #fff;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 220ms ease;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-copy {
  align-self: center;
  max-width: 520px;
  padding: 27px 28px 38px;
  position: relative;
  z-index: 2;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-copy::after {
  background: linear-gradient(90deg, var(--campaign-background, #10233e) 68%, transparent);
  content: "";
  inset: 0 -120px 0 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-eyebrow {
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  letter-spacing: .08em;
  margin: 0 0 7px;
  text-transform: uppercase;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-title {
  color: #fff;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.05;
  margin: 0;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-summary {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.38;
  margin: 9px 0 15px;
  max-width: 43ch;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-commercial {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-price {
  display: grid;
  gap: 1px;
  line-height: 1;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-price span {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-price strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: -.025em;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-primary {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: #172033;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: none;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-primary:focus-visible {
  outline: 3px solid #ffbf57;
  outline-offset: 3px;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] { background: #fff; color: #172033; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-campaign-copy::after { background: linear-gradient(90deg, #fff 68%, transparent); }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-hero-eyebrow,
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-hero-title,
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-hero-summary { color: #172033; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-campaign-price span { color: #68738a; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-campaign-price strong { color: #172033; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-hero-primary { background: #172033; color: #fff; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-image {
  align-self: stretch;
  height: 230px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="light"] .catalog-home-campaign-image {
  background: #fff;
  object-fit: contain;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-controls {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow,
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dot {
  border: 0;
  cursor: pointer;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: rgba(255, 255, 255, .84);
  display: inline-flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  opacity: .42;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 140ms ease, opacity 140ms ease;
  width: 32px;
}
body.catalog-page.catalog-home-visual-enabled #catalogHomeCampaignPrev { left: 8px; }
body.catalog-page.catalog-home-visual-enabled #catalogHomeCampaignNext { right: 8px; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow:hover,
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow:focus-visible { opacity: .9; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dots {
  bottom: 10px;
  display: flex;
  gap: 5px;
  left: 50%;
  pointer-events: auto;
  position: absolute;
  transform: translateX(-50%);
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dot {
  background: rgba(255, 255, 255, .52);
  border-radius: 999px;
  height: 8px;
  padding: 0;
  width: 8px;
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dot.is-active { background: #fff; width: 20px; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel:has(.catalog-home-campaign-slide[data-campaign-theme="light"].is-active) .catalog-home-campaign-arrow {
  background: rgba(23, 32, 51, .08);
  border-color: rgba(23, 32, 51, .1);
  color: rgba(23, 32, 51, .76);
}
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel:has(.catalog-home-campaign-slide[data-campaign-theme="light"].is-active) .catalog-home-campaign-dot { background: rgba(23, 32, 51, .28); }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel:has(.catalog-home-campaign-slide[data-campaign-theme="light"].is-active) .catalog-home-campaign-dot.is-active { background: #172033; }
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow:focus-visible,
body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide { transition: none; }
}
@media (max-width: 640px) {
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaigns { margin-top: 6px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-carousel,
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slides,
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide { min-height: 202px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide { grid-template-columns: 1fr; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-copy { max-width: 63%; padding: 19px 16px 39px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-copy::after { background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, .82) 82%, transparent); inset: 0 -24px 0 0; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide[data-campaign-theme="dark"] .catalog-home-campaign-copy::after { background: linear-gradient(90deg, var(--campaign-background, #0c0f14) 70%, rgba(12, 15, 20, .8) 82%, transparent); }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-title { font-size: 25px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-slide .catalog-home-hero-summary { display: none; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-commercial { align-items: flex-end; gap: 8px 10px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-price strong { font-size: 17px; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-image { height: 202px; opacity: .9; position: absolute; inset: 0; transform: translateX(24%) scale(.94); transform-origin: center right; z-index: 0; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-arrow { display: none; }
  body.catalog-page.catalog-home-visual-enabled .catalog-home-campaign-dots { bottom: 8px; }
}

body.catalog-page .brand-lockup,
html[data-catalog-product-detail-v2="enabled"] body.product-page .brand-lockup {
  width: 126px;
  max-width: 126px;
  height: 53px;
  object-fit: contain;
}

body.catalog-page .topbar-search-box,
html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar-search-box {
  min-height: 42px;
  padding-inline: 12px;
  box-shadow: none;
}

body.catalog-page .actions,
html[data-catalog-product-detail-v2="enabled"] body.product-page .actions { gap: 4px; }

body.catalog-page .catalog-shell-action,
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-action.product-detail-v2-only {
  min-height: 40px;
  padding: 5px 7px;
  font-size: 12px;
}

.catalog-shell-help {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 5px 7px;
  color: #536176;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.catalog-shell-help:hover,
.catalog-shell-help:focus-visible { color: #ea4c22; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-help.product-detail-v2-only {
  display: inline-flex !important;
}

body.catalog-page .catalog-home-nav,
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-home-nav.product-detail-v2-only {
  min-height: 32px;
  overflow-x: auto;
  scrollbar-width: thin;
}
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-home-nav.product-detail-v2-only { display: none !important; }
body.catalog-page .catalog-home-nav > a,
body.catalog-page .catalog-home-nav > button,
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-home-nav > a,
html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-home-nav > button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}

body.catalog-home-visual-enabled .catalog-home-hero { min-height: 248px; }
body.catalog-home-visual-enabled .catalog-home-hero-copy { padding: 24px 24px 34px 34px; }
body.catalog-home-visual-enabled .catalog-home-hero-title { font-size: clamp(28px, 2.5vw, 34px); }
body.catalog-home-visual-enabled .catalog-home-hero-summary { margin-top: 8px; font-size: 14px; }
body.catalog-home-visual-enabled .catalog-home-hero-actions { margin-top: 14px; }
body.catalog-home-visual-enabled .catalog-home-trust-item { min-height: 58px; padding-block: 7px; }
body.catalog-home-visual-enabled .catalog-home-trust-item small { display: none; }
body.catalog-home-visual-enabled .brand-strip { margin-top: 10px; }
body.catalog-home-visual-enabled .brand-carousel-strip { margin-top: 10px; }
body.catalog-home-visual-enabled .catalog-products-heading { margin-top: 10px; }

body.catalog-page .main { width: min(1280px, calc(100% - 24px)); }
body.catalog-page .product-grid,
body.catalog-page .grid-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.catalog-page .catalog-card-commercial-compact { max-height: 485px; }
body.catalog-page .catalog-card-commercial-compact .card-media { max-height: 185px; }
body.catalog-page .catalog-card-main .card-actions > * { min-height: 40px; }

html[data-catalog-product-detail-v2="enabled"] body.product-page .main {
  width: min(1280px, calc(100% - 24px));
  padding-top: 8px;
}
html[data-catalog-product-detail-v2="enabled"] body.product-page .product {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 10px 20px;
}
html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-hero {
  height: clamp(320px, 27vw, 370px);
  min-height: 320px;
}
html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-thumbs { padding-block: 7px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .thumb-btn { width: 54px; height: 54px; flex-basis: 54px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .product-header h1 { font-size: clamp(30px, 2.7vw, 38px); line-height: 1.05; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .product-lead { margin-top: 8px; gap: 6px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .product-lead-chip { min-height: 30px; padding: 6px 9px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .buybox { padding: 14px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .price-big { font-size: clamp(32px, 3.2vw, 42px); }
html[data-catalog-product-detail-v2="enabled"] body.product-page .primary-btn { min-height: 44px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .panel { margin-top: 0; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .panel-head { padding-block: 10px; }
html[data-catalog-product-detail-v2="enabled"] body.product-page .panel-body { padding-block: 10px; }

@media (max-width: 640px) {
  body.catalog-page .topbar,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar {
    grid-template-columns: 108px minmax(0, 1fr) auto;
    min-height: 56px;
    gap: 5px;
    padding: 3px 8px;
  }
  body.catalog-page .brand-lockup,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .brand-lockup {
    width: 108px;
    max-width: 108px;
    height: 46px;
  }
  body.catalog-page .topbar-search-box,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar-search-box { min-height: 38px; padding-inline: 8px; }
  body.catalog-page .topbar-search,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar-search { display: none; }
  body.catalog-page .topbar,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar { grid-template-columns: 108px 1fr; }
  body.catalog-page .topbar-search-box > input,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .topbar-search-box > input { font-size: 13px; }
  body.catalog-page .catalog-shell-account,
  body.catalog-page .catalog-shell-help,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-account,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-help { display: none !important; }
  body.catalog-page .catalog-shell-cart,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-cart { width: 40px; min-height: 40px; justify-content: center; padding: 0; }
  body.catalog-page .catalog-shell-cart .catalog-shell-action-copy,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-shell-cart .catalog-shell-action-copy { display: none; }
  body.catalog-page .catalog-home-nav,
  html[data-catalog-product-detail-v2="enabled"] body.product-page .catalog-home-nav.product-detail-v2-only { display: none !important; }
  body.catalog-page .catalog-home-nav { display: none !important; }

  body.catalog-home-visual-enabled .catalog-home-hero { min-height: 218px; grid-template-columns: 1fr; }
  body.catalog-home-visual-enabled .catalog-home-hero-copy { padding: 20px 18px 28px; }
  body.catalog-home-visual-enabled .catalog-home-hero-title { max-width: 18ch; font-size: 27px; }
  body.catalog-home-visual-enabled .catalog-home-hero-summary,
  body.catalog-home-visual-enabled .catalog-home-hero-secondary { display: none; }
  body.catalog-home-visual-enabled .catalog-home-hero-media { opacity: .38; position: absolute; inset: 0; }
  body.catalog-home-visual-enabled .catalog-home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.catalog-home-visual-enabled .catalog-home-trust-item { min-height: 44px; grid-template-columns: 25px minmax(0, 1fr); padding: 6px 8px; }
  body.catalog-home-visual-enabled .catalog-home-trust-icon { width: 24px; height: 24px; }
  body.catalog-home-visual-enabled .catalog-home-trust-item strong { font-size: 10px; }
  body.catalog-page .product-grid,
  body.catalog-page .grid-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.catalog-page .catalog-card-commercial-compact { max-height: 470px; }
body.catalog-page .catalog-card-commercial-compact .card-media { max-height: 160px; }

  html[data-catalog-product-detail-v2="enabled"] body.product-page .main { width: calc(100% - 16px); padding-top: 6px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .product { gap: 10px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-hero { height: min(50vw, 196px); min-height: 184px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-hero-img { padding: 10px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .product-header h1 { font-size: 28px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .buybox { padding: 12px; }
  html[data-catalog-product-detail-v2="enabled"] body.product-page .price-big { font-size: 34px; }
}

/* The legacy 1180px two-column rule is later in simuladores.css than its
 * 980px single-column rule. Keep the compact PDP explicitly one-column below
 * that breakpoint so gallery and buybox share the available mobile width. */
@media (max-width: 980px) {
  html[data-catalog-product-detail-v2="enabled"] body.product-page .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "gallery"
      "commercial"
      "summary"
      "desc"
      "attrs"
      "highlights"
      "official";
  }
}

/* Catalog mobile keeps the same actionable shell as the PDP: compact lockup,
 * search trigger, account and cart. The full search field remains available
 * only after its explicit trigger, so it cannot consume the first viewport. */
@media (max-width: 640px) {
  body.catalog-page.catalog-home-visual-enabled .topbar,
  body.catalog-page.catalog-home-visual-enabled.catalog-header-compact .topbar {
    grid-template-columns: 108px 40px minmax(0, 1fr);
    grid-template-areas: "brand search actions";
    min-height: 56px;
    gap: 5px;
    padding: 3px 8px;
  }

  body.catalog-page.catalog-home-visual-enabled .brand {
    grid-area: brand;
    justify-self: start;
  }

  body.catalog-page.catalog-home-visual-enabled .topbar-search,
  body.catalog-page.catalog-home-visual-enabled.catalog-header-compact .topbar-search {
    display: flex;
    grid-area: search;
    width: 40px;
    min-width: 40px;
    justify-self: center;
  }

  body.catalog-page.catalog-home-visual-enabled .search-toggle-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

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

  body.catalog-page.catalog-home-visual-enabled.catalog-search-expanded .topbar-search-box {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.catalog-page.catalog-home-visual-enabled .actions {
    position: static;
    display: flex;
    grid-area: actions;
    width: auto;
    min-width: 0;
    justify-self: end;
    justify-content: end;
    gap: 2px;
    pointer-events: auto;
  }

  body.catalog-page.catalog-home-visual-enabled .actions .menu-btn,
  body.catalog-page.catalog-home-visual-enabled .catalog-shell-help {
    display: none !important;
  }

  body.catalog-page.catalog-home-visual-enabled .catalog-shell-account,
  body.catalog-page.catalog-home-visual-enabled .catalog-shell-cart {
    display: inline-flex !important;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  body.catalog-page.catalog-home-visual-enabled .catalog-shell-account .catalog-shell-action-copy,
  body.catalog-page.catalog-home-visual-enabled .catalog-shell-cart .catalog-shell-action-copy {
    display: none;
  }
}

/* Catalog above-the-fold + facet drawer v1.
 * Campaigns are a compact, optional discovery aid. The grid and every filter
 * retain their own contract: a filtered result hides this region completely. */
body.catalog-page.catalog-home-visual-enabled .catalog-home-visual:not([hidden]) {
  display: block !important;
}

body.catalog-page.catalog-home-visual-enabled .main {
  padding-top: 7px;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-strip,
body.catalog-page.catalog-home-visual-enabled.catalog-results-mode .root-pillar-strip {
  display: block !important;
  margin-top: 0;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-strip .catalog-section-heading,
body.catalog-page.catalog-home-visual-enabled .brand-carousel-strip .catalog-section-heading {
  display: none;
}

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

body.catalog-page.catalog-home-visual-enabled .root-pillar-button,
body.catalog-page.catalog-home-visual-enabled .catalog-home-visual:not([hidden]) + .root-pillar-strip .root-pillar-button {
  min-height: 54px;
  grid-template-columns: 48px minmax(0, 1fr) 13px;
  gap: 8px;
  padding-right: 9px;
  border-color: rgba(15, 23, 42, .1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .045);
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-visual,
body.catalog-page.catalog-home-visual-enabled .catalog-home-visual:not([hidden]) + .root-pillar-strip .root-pillar-visual {
  --root-pillar-crop-size: 36px;
  width: 48px;
  min-height: 54px;
  border-radius: 9px 999px 999px 9px;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-svg {
  width: 25px;
  height: 25px;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-copy {
  gap: 1px;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-label,
body.catalog-page.catalog-home-visual-enabled .root-pillar-button.active .root-pillar-label {
  font-size: 12px;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-description {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.catalog-page.catalog-home-visual-enabled .root-pillar-chevron {
  font-size: 18px;
}

body.catalog-page.catalog-home-visual-enabled .brand-carousel-strip,
body.catalog-page.catalog-home-visual-enabled.catalog-results-mode .brand-carousel-strip {
  display: block;
  margin-top: 6px;
  padding: 0;
}

body.catalog-page.catalog-home-visual-enabled .brand-carousel-rail {
  gap: 6px;
  padding: 0 1px 3px;
}

body.catalog-page.catalog-home-visual-enabled .brand-carousel-chip {
  flex-basis: 84px;
  min-width: 84px;
  max-width: 90px;
  min-height: 30px;
  padding: 2px 7px;
  border-radius: 8px;
}

body.catalog-page.catalog-home-visual-enabled .brand-carousel-logo-wrap,
body.catalog-page.catalog-home-visual-enabled .brand-carousel-fallback,
body.catalog-page.catalog-home-visual-enabled .brand-carousel-clear-mark {
  width: 68px;
  height: 24px;
}

body.catalog-page.catalog-home-visual-enabled .brand-carousel-logo {
  max-width: 64px;
  max-height: 17px;
}

body.catalog-page.catalog-home-visual-enabled .catalog-products-heading,
body.catalog-page.catalog-home-visual-enabled.catalog-results-mode .catalog-products-heading {
  display: flex;
  min-height: 25px;
  margin-top: 4px;
  scroll-margin-top: 94px;
}

body.catalog-page.catalog-home-visual-enabled .catalog-products-heading h2 {
  font-size: 15px;
}

body.catalog-page.catalog-home-visual-enabled .searchbar {
  margin-top: 1px;
}

body.catalog-page.catalog-home-visual-enabled .searchbar-surface {
  min-height: 38px;
  padding: 3px 5px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

body.catalog-page.catalog-home-visual-enabled .catalog-filter-button {
  display: inline-flex;
  min-height: 32px;
  border-color: rgba(234, 76, 34, .22);
  color: #d9431c;
}

body.catalog-page.catalog-home-visual-enabled .catalog-shell {
  margin-top: 7px;
}

/* The drawer is part of the shopping UI, not an admin overlay. */
body.catalog-page .drawer-panel {
  width: min(420px, 100vw);
  padding: 0;
  border-right: 1px solid #dce3eb;
  background: #f7f9fc;
  box-shadow: 18px 0 50px rgba(15, 23, 42, .16);
}

body.catalog-page .drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 72px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

body.catalog-page .drawer-title {
  color: #0f172a;
  font-size: 20px;
  letter-spacing: -.02em;
}

body.catalog-page .catalog-filter-drawer-lead {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}

body.catalog-page .drawer-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  color: #334155;
  font-size: 24px;
}

body.catalog-page .catalog-filter-drawer-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

body.catalog-page .catalog-filter-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

body.catalog-page .catalog-filter-group[hidden] {
  display: none !important;
}

body.catalog-page .catalog-filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.catalog-page .catalog-filter-group h3 {
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
}

body.catalog-page .catalog-filter-context {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.catalog-page .catalog-filter-group-note {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

body.catalog-page .catalog-filter-group .drawer-list {
  gap: 6px;
  margin-top: 9px;
}

body.catalog-page .catalog-filter-group .drawer-category {
  gap: 5px;
}

body.catalog-page .catalog-filter-group .drawer-hierarchy-row {
  gap: 5px;
}

body.catalog-page .catalog-filter-group .drawer-item {
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
}

body.catalog-page .catalog-brand-filter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

body.catalog-page .catalog-brand-filter-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

body.catalog-page .catalog-brand-filter-button:hover,
body.catalog-page .catalog-brand-filter-button:focus-visible {
  border-color: rgba(255, 82, 30, .5);
  background: #fff7f2;
}

body.catalog-page .catalog-brand-filter-button.active {
  border-color: #ff521e;
  background: #fff1ea;
  color: #c93413;
  box-shadow: 0 0 0 2px rgba(255, 82, 30, .1);
}

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

body.catalog-page .catalog-brand-filter-count {
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

body.catalog-page .catalog-canonical-filter-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

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

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

  body.catalog-page.catalog-home-visual-enabled .root-pillar-button,
  body.catalog-page.catalog-home-visual-enabled .catalog-home-visual:not([hidden]) + .root-pillar-strip .root-pillar-button {
    min-height: 45px;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 6px;
    padding-right: 6px;
  }

  body.catalog-page.catalog-home-visual-enabled .root-pillar-visual,
  body.catalog-page.catalog-home-visual-enabled .catalog-home-visual:not([hidden]) + .root-pillar-strip .root-pillar-visual {
    --root-pillar-crop-size: 30px;
    width: 39px;
    min-height: 45px;
  }

  body.catalog-page.catalog-home-visual-enabled .root-pillar-label,
  body.catalog-page.catalog-home-visual-enabled .root-pillar-button.active .root-pillar-label {
    font-size: 10px;
  }

  body.catalog-page.catalog-home-visual-enabled .root-pillar-description,
  body.catalog-page.catalog-home-visual-enabled .root-pillar-chevron {
    display: none;
  }

  body.catalog-page.catalog-home-visual-enabled .brand-carousel-strip {
    margin-top: 4px;
  }

  body.catalog-page.catalog-home-visual-enabled .brand-carousel-chip {
    flex-basis: 72px;
    min-width: 72px;
    min-height: 28px;
  }

  body.catalog-page.catalog-home-visual-enabled .brand-carousel-logo-wrap,
  body.catalog-page.catalog-home-visual-enabled .brand-carousel-fallback {
    width: 58px;
    height: 22px;
  }

  body.catalog-page.catalog-home-visual-enabled .catalog-products-heading {
    min-height: 22px;
    margin-top: 2px;
  }

  body.catalog-page.catalog-home-visual-enabled .catalog-products-heading h2 {
    font-size: 13px;
  }

  body.catalog-page.catalog-home-visual-enabled .searchbar-surface {
    min-height: 36px;
    padding: 2px 4px;
  }

  body.catalog-page.catalog-home-visual-enabled .catalog-shell {
    margin-top: 5px;
  }

  body.catalog-page .drawer-panel {
    width: min(360px, calc(100vw - 18px));
  }

  body.catalog-page .catalog-filter-drawer-body {
    padding: 9px;
  }

  body.catalog-page .catalog-filter-group {
    padding: 10px;
  }
}
