/* O catálogo começa no banner, sem compensações do cabeçalho antigo. */
html.vx-public-catalog { scroll-padding-top:0; }
/* Apresentação baseada no catálogo original VX; funções atuais preservadas. */
body:has(.public-main) {
  background: #f5f4f1;
  color: #171717;
  font-family:var(--vx-font);
  -webkit-font-smoothing: antialiased;
}
.public-main {
  max-width: 1480px;
  padding: 0 28px 48px;
}
.public-main > section:not(.hero) {
  padding: 20px 0;
  scroll-margin-top:0;
}
.public-main .hero {
  display: block;
  min-height: 205px;
  padding: 32px 38px;
  border: 1px solid #dfd7c9;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, #b88b351c, transparent 40%),
    linear-gradient(135deg, #fff, #f7f2e8);
  margin-bottom: 32px;
}
.public-main .hero .eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid #ddc89f;
  border-radius: 24px;
  background: #fff8e9;
  color: #7d5c1e;
  font-size: 11px;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.public-main .hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin: 14px 0 10px;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: none;
}
.public-main .hero p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #77736d;
}
.public-main .hero-visual,
.public-main .hero .button,
.public-main .trust-strip {
  display: none;
}
.public-main .section-heading {
  margin-bottom: 18px;
  align-items: center;
}
.public-main .section-heading h2 {
  font-size: clamp(24px, 3vw, 29px);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.public-main .eyebrow {
  color: #98702f;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.public-main .grid {
  gap: 20px;
}
.public-main .card {
  border: 1px solid #e7e3dc;
  border-radius: 20px;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.public-main .card:hover {
  border-color: #d8c9aa;
  box-shadow: 0 12px 30px #1a161610;
}
.public-main .card .content {
  padding: 16px 18px 18px;
}
.public-main .promo-card .offer-label {
  align-self: flex-start;
  position: static;
  display: table;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #ddc89f;
  border-radius: 16px;
  background: #fff3d6;
  color: #6b4b15;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.public-main #promo-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 3px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: #d8c9aa transparent;
  overscroll-behavior-x: contain;
}
.public-main #promo-grid .promo-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: block;
}
.public-main #promo-grid .image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: white;
}
.public-main #promo-grid .content {
  display: block;
}
.public-main #promo-grid .product-image-button,
.public-main #promo-grid .content > * {
  flex-shrink: 0;
}
.public-main #promo-grid h3 {
  margin: 0 0 14px;
  min-height: 2.8em;
}
.public-main #promo-grid .old-price {
  font-size: 13px;
  margin-top: 14px;
}
.public-main #promo-grid .price {
  margin-top: 5px;
  font-size: 23px;
}
.public-main .promo-carousel-actions {
  display: flex !important;
  flex-shrink: 0;
}
.public-main .promo-carousel-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.public-main .card h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.public-main .card .image {
  background: #eeece7;
  object-fit: contain;
}
.public-main #grid .image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: white;
}
.public-main #grid .content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  padding: 12px 14px 8px;
  align-items: center;
}
.public-main #grid h3 {
  grid-column: 1 / -1;
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-main #grid .price {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.public-main #grid .secondary {
  width: auto;
  margin: 0;
  padding: 0 4px;
  min-height: 44px;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 500;
  color: #77736d;
}
.public-main .price {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.public-main .card .secondary {
  border: 1px solid #e1d9cc;
  border-radius: 11px;
  background: #faf8f3;
  color: #34312c;
  font-weight: 600;
  font-size: 12px;
}
.public-main .toolbar input,
.public-main .toolbar select {
  border: 1px solid #ddd9d1;
  border-radius: 14px;
  min-height: 50px;
  background: white;
  font-size: 14px;
}
.public-main .chips button {
  border: 1px solid #ddd9d1;
  border-radius: 24px;
  font-weight: 600;
}
.public-main .chips button.active {
  border-color: #171717;
}
.public-main .feedback-card {
  flex: 0 0 310px;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: transparent;
  padding: 0;
}
.public-main .feedback-media {
  height: 100%;
  background: transparent;
}
.public-main .feedback-media img {
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: white;
}
.public-main .feedback-caption {
  padding: 0;
  margin: 8px 10px 10px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  color: #77736d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-main .feedback-media .play-overlay {
  width: 44px;
  height: 44px;
}
.public-main .feedback-media .video-tag {
  font-size: 9px;
  letter-spacing: 0;
  padding: 3px 6px;
}
@media (max-width: 650px) {
  .public-main {
    padding: 0 16px 30px;
  }
  .public-main .hero {
    padding: 24px 22px;
    border-radius: 20px;
    min-height: 190px;
    margin-bottom: 26px;
  }
  .public-main .hero h1 {
    font-size: 34px;
  }
  .public-main .hero p {
    font-size: 13px;
  }
  .public-main .grid {
    gap: 12px;
  }
  .public-main .card {
    border-radius: 15px;
  }
  .public-main .card .content {
    padding: 12px;
  }
  .public-main .card h3 {
    font-size: 14px;
  }
  .public-main .price {
    font-size: 17px;
  }
  .public-main #promo-grid .promo-card {
    flex-basis: min(78vw, 290px);
  }
  .public-main #grid .content {
    padding: 10px 10px 5px;
    column-gap: 4px;
  }
  .public-main #grid h3 {
    font-size: 12px;
  }
  .public-main #grid .price {
    font-size: 14px;
  }
  .public-main .feedback-card {
    flex-basis: min(82vw, 310px);
  }
}

/* Compact currency rows shared by public cards and product details. */
@media (max-width: 840px) {
  .public-main #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .public-main #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-main #grid h3 { font-size: 14px; }
}
.public-main #grid .content,
.public-main #promo-grid .content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  container-type: inline-size;
}
.public-main #grid h3,
.public-main #promo-grid h3 {
  height: 2.7em;
  min-height: 2.7em;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-prices {
  display: grid;
  gap: 3px;
  margin: 0;
  text-align: left;
}
.product-price-line {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow-wrap: normal;
}
.product-price-label {
  color: #65615b;
  font-size: 13px;
  font-weight: 400;
}
.product-price-value {
  color: #302d28;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.price-label-short { display: none; }
@container (max-width: 280px) {
  .price-label-long { display: none; }
  .price-label-short { display: inline; }
}
.public-main #grid .content > .secondary {
  justify-self: start;
  margin-top: 8px;
  padding: 0;
}
.public-main #promo-grid .content > .secondary { margin-top: 12px; }
#modal .detail-info { container-type: inline-size; }
#modal .detail-info .product-prices { margin: 10px 0 8px; }
#modal .detail-info .product-price-value { font-size: 15px; }

.public-main #promo-grid .offer-label {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* VX: texto compacto nos cartões mobile */
@media (max-width: 560px) {
  .public-main #grid .content {
    padding-left: 8px;
    padding-right: 8px;
    min-width: 0;
  }
  .public-main #grid h3 {
    font-size: 12px;
  }
  .public-main #grid .product-price-line {
    gap: 4px;
    line-height: 1.45;
  }
  .public-main #grid .product-price-label {
    font-size: 11px;
  }
  .public-main #grid .product-price-value {
    font-size: 12px;
  }
}

/* VX: cartões compactos e etiqueta de cores */
.public-main #grid .content,
.public-main #promo-grid .content {
  row-gap: 0;
  padding-top: 8px;
  padding-bottom: 10px;
}
.public-main #grid h3,
.public-main #promo-grid h3 {
  margin-bottom: 4px;
}
.public-main #grid .product-prices,
.public-main #promo-grid .product-prices {
  gap: 1px;
}
.public-main .card .product-image-button {
  position: relative;
}
/* Active offer marker; the offer-label below the photo keeps its campaign copy. */
.public-main .card .offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid #ddc89f;
  border-radius: 6px;
  background: #fff3d6;
  color: #6b4b15;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .035em;
  white-space: nowrap;
  pointer-events: none;
}
.public-main .card .vx-more-colors {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #504b44;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.public-main .card .product-image-button:hover .vx-more-colors {
  background: #fff;
  color: #24211d;
}
.public-main .card .product-image-button:focus-visible {
  outline: 2px solid #a87b32;
  outline-offset: 2px;
}

/* VX: preços originais e ofertas */
.product-price-amounts {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.product-price-original {
  color: #817c74;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration-thickness: 1px;
}
.product-price-line.product-price-promotion {
  flex-wrap: wrap;
  gap: 1px 6px;
}
.product-price-promotion > .product-price-label {
  flex-basis: 100%;
}
.product-price-promotion .product-price-amounts {
  flex-wrap: wrap;
  row-gap: 1px;
}
.product-price-promotion .product-price-value {
  color: #302d28;
  font-weight: 600;
}
.product-prices:has(.product-price-promotion) {
  gap: 6px;
}

/* VX: linha discreta do produto; categoria e linha são filtros independentes. */
.public-main .card .product-line-label { display:block; color:#77736d; font-size:10px; line-height:1.3; margin:0 0 4px; }

/* Neutral emphasis for public notices and selected filters. */
.public-main .hero {border-color:transparent;background:rgba(237,242,246,.68)}
.public-main .hero .eyebrow,.public-main .card .offer-badge,.public-main .promo-card .offer-label {border-color:transparent;background:rgba(225,232,238,.76);color:#26323a}
.public-main .chips button.active {background:#e3e8ed;color:#20262d;border-color:#77838c}
.public-main .card .secondary {background:#f3f5f6;color:#20262d;border-color:#a3adb5}

/* Catalogue card shells: keep product images, offers and controls unchanged. */
.public-main :is(#grid,#promo-grid) > .card {
  background:rgba(228,233,240,.62);
  border-color:rgba(103,118,139,.16);
  box-shadow:0 1px 4px rgba(28,40,54,.045);
}
.public-main :is(#grid,#promo-grid) > .card:hover {
  border-color:rgba(103,118,139,.28);
  box-shadow:0 3px 10px rgba(28,40,54,.08);
}
.public-main .card :is(.product-line-label,.product-price-original,.product-price-label,.grade,.content .muted) {color:#515a64}
/* Only the first four cards per list use backdrop filtering; long lists stay light. */
@supports ((backdrop-filter:blur(4px)) or (-webkit-backdrop-filter:blur(4px))) {
  .public-main :is(#grid,#promo-grid) > .card:nth-child(-n+4) {
    -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  }
}
@media(forced-colors:active){.public-main :is(#grid,#promo-grid) > .card {-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Public catalog: search and line share one compact row; category buttons follow. */
.public-main #catalog > .toolbar {display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,260px);gap:12px;margin-bottom:12px;}
.public-main #catalog > .toolbar > :is(input,.vx-combobox) {width:100%;min-width:0;}
@media(max-width:650px){.public-main #catalog > .toolbar {grid-template-columns:minmax(0,1fr);gap:8px;}}
