/* PDP — Mi Mercado do Bem (identidade: preto, verde neon, amarelo, vermelho) */
:root {
  --pdp-preto: #0a0a0a;
  --pdp-neon: #00ff66;
  --pdp-amarelo: #ffde00;
  --pdp-vermelho: #e30613;
  --pdp-cinza: #767676;
  --pdp-cinza-bg: #f6f6f6;
}

body.pdp-page {
  margin: 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  color: var(--pdp-preto);
  background: #fff;
}

.pdp-topbar {
  background: var(--pdp-preto);
  border-bottom: 3px solid var(--pdp-amarelo);
  text-align: center;
  padding: 0.35rem 0;
  font-size: 0.75rem;
}
.pdp-topbar a {
  color: var(--pdp-amarelo);
  font-weight: 700;
  text-decoration: none;
}

.pdp-breadcrumbs {
  background: var(--pdp-cinza-bg);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pdp-cinza);
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8e8e8;
}
.pdp-breadcrumbs a {
  color: var(--pdp-preto);
  font-weight: 600;
  text-decoration: none;
}
.pdp-breadcrumbs a:hover {
  color: var(--pdp-neon);
}

.pdp-layout {
  padding: 1.75rem 0 3rem;
}
.pdp-gallery {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pdp-thumb-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}
.pdp-thumb-col button {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.pdp-thumb-col button.is-active {
  border-color: var(--pdp-neon);
  box-shadow: 0 0 0 1px var(--pdp-preto);
}
.pdp-thumb-col button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}
.pdp-thumb-col button.is-active img {
  opacity: 1;
}
.pdp-main-img-wrap {
  flex: 1;
  background: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-main-img-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.pdp-buy-col h1 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--pdp-preto);
}

.pdp-badge-pix {
  display: inline-block;
  background: var(--pdp-amarelo);
  color: var(--pdp-preto);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--pdp-preto);
}

.pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}
.pdp-price-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--pdp-neon);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.pdp-price-old {
  font-size: 0.95rem;
  color: var(--pdp-cinza);
  text-decoration: line-through;
}

.pdp-parcelas {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.35rem;
}
.pdp-parcelas b {
  color: var(--pdp-preto);
}
.pdp-assinatura {
  font-size: 0.82rem;
  color: var(--pdp-cinza);
  margin-bottom: 1.25rem;
}
.pdp-assinatura strong {
  color: var(--pdp-vermelho);
}

.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pdp-qty-row label {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}
.pdp-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pdp-qty-ctrl button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--pdp-cinza-bg);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--pdp-preto);
  line-height: 1;
}
.pdp-qty-ctrl button:hover {
  background: #e8e8e8;
}
.pdp-qty-ctrl input {
  width: 48px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.pdp-btn-comprar {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  background: var(--pdp-neon) !important;
  color: var(--pdp-preto) !important;
  font-weight: 800;
  border: 2px solid var(--pdp-preto) !important;
  border-radius: 999px;
  padding: 0.85rem 1.5rem !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.pdp-btn-comprar:hover {
  filter: brightness(1.06);
  color: var(--pdp-preto) !important;
}

.pdp-frete {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
.pdp-frete input {
  flex: 1;
  min-width: 140px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
.pdp-frete button {
  border: 2px solid var(--pdp-preto);
  background: #fff;
  color: var(--pdp-preto);
  font-weight: 800;
  border-radius: 10px;
  padding: 0 1.25rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}
.pdp-frete button:hover {
  background: var(--pdp-preto);
  color: #fff;
}

.pdp-pagamentos {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.pdp-pagamentos span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pdp-cinza);
  display: block;
  margin-bottom: 0.5rem;
}
.pdp-pagamentos img {
  height: 22px;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  object-fit: contain;
}

.pdp-conteudo-cesta {
  margin-top: 2.5rem;
  border-top: 3px solid var(--pdp-preto);
  padding-top: 1.25rem;
}
.pdp-conteudo-cesta h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.pdp-conteudo-cesta .card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.pdp-conteudo-details {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pdp-conteudo-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--pdp-preto);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.pdp-conteudo-summary::-webkit-details-marker {
  display: none;
}

.pdp-conteudo-details[open] .pdp-conteudo-summary {
  border-bottom: 1px solid #e5e5e5;
}

.pdp-conteudo-summary:hover {
  color: var(--pdp-vermelho);
}

.pdp-conteudo-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-size: 0.85rem;
  opacity: 0.85;
}

.pdp-conteudo-details[open] .pdp-conteudo-chevron {
  transform: rotate(180deg);
}

.pdp-conteudo-inner {
  padding: 0;
  background: #fafafa;
}

.pdp-itens-scroll {
  margin: 0;
}

.pdp-itens-table {
  margin-bottom: 0 !important;
  font-size: 0.82rem;
  background: #fff;
}

.pdp-itens-table th {
  vertical-align: bottom;
  white-space: nowrap;
  background: var(--pdp-cinza-bg);
  border-bottom: 2px solid var(--pdp-preto);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdp-preto);
}

.pdp-itens-table td {
  vertical-align: top;
}

.pdp-th-opcional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pdp-cinza);
  font-size: 0.92em;
}

.pdp-marca-empty {
  color: #bdbdbd;
}

.pdp-sem-itens {
  text-align: center;
  padding: 1rem !important;
}

.pdp-back-mobile {
  display: none;
}

@media (max-width: 767px) {
  .pdp-gallery {
    flex-direction: column;
  }
  .pdp-thumb-col {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .pdp-price-main {
    font-size: 1.75rem;
  }
  .pdp-back-mobile {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pdp-preto);
  }
}

/* ——— Páginas internas (design system Mi Mercado do Bem) ——— */
body.site-inner {
  margin: 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  color: var(--pdp-preto);
  background: #fff;
}

.site-masthead {
  background: #fff;
  border-bottom: 3px solid var(--pdp-preto);
  box-shadow: 0 2px 0 0 var(--pdp-amarelo);
}
.site-logo img {
  max-height: 44px;
  width: auto;
}
.site-search {
  max-width: 440px;
  margin: 0 auto;
}
.site-search input {
  border-radius: 40px;
  border: 1px solid var(--pdp-cinza-bg);
  padding: 0.5rem 2.5rem 0.5rem 0.9rem;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}
.site-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pdp-vermelho);
  color: #fff !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-cart img {
  filter: brightness(0) invert(1);
}
.site-cart:hover {
  filter: brightness(1.07);
  color: #fff !important;
}

.site-page-head {
  padding: 1.75rem 0 0.5rem;
}
.site-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.site-page-lead {
  color: var(--pdp-cinza);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 42rem;
}

.site-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.site-card--accent {
  border-color: var(--pdp-preto);
  border-width: 2px;
}
.site-card h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.site-form-group {
  margin-bottom: 1rem;
}
.site-form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--pdp-cinza);
}
.site-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  box-sizing: border-box;
  font-family: inherit;
}
.site-input:focus {
  outline: 2px solid var(--pdp-neon);
  outline-offset: 1px;
  border-color: var(--pdp-preto);
}

.site-btn-neon {
  display: inline-block;
  text-align: center;
  background: var(--pdp-neon) !important;
  color: var(--pdp-preto) !important;
  font-weight: 800;
  border: 2px solid var(--pdp-preto) !important;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.site-btn-neon:hover {
  filter: brightness(1.05);
  color: var(--pdp-preto) !important;
}

.site-btn-outline {
  display: inline-block;
  text-align: center;
  background: #fff !important;
  color: var(--pdp-preto) !important;
  font-weight: 800;
  border: 2px solid var(--pdp-preto) !important;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.site-btn-outline:hover {
  background: var(--pdp-preto) !important;
  color: #fff !important;
}

.site-link-neon {
  color: var(--pdp-neon);
  font-weight: 700;
  text-decoration: none;
}
.site-link-neon:hover {
  text-decoration: underline;
}

.site-divider-or {
  text-align: center;
  font-size: 0.75rem;
  color: var(--pdp-cinza);
  margin: 1rem 0;
  position: relative;
}
.site-divider-or span {
  background: #fff;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}
.site-divider-or::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e0e0e0;
}

.site-table-wrap {
  overflow-x: auto;
}
.site-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}
.site-table th,
.site-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.site-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pdp-cinza);
  font-weight: 700;
}

.site-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--pdp-cinza);
  font-size: 0.95rem;
}
.site-empty i {
  font-size: 2.5rem;
  color: var(--pdp-neon);
  opacity: 0.8;
  margin-bottom: 0.75rem;
  display: block;
}

.site-tag {
  display: inline-block;
  background: var(--pdp-amarelo);
  color: var(--pdp-preto);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.site-checkout-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}
.site-checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdp-cinza);
  flex: 0 0 auto;
}
.site-checkout-step.is-active {
  color: var(--pdp-preto);
}
.site-checkout-step .step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pdp-cinza-bg);
  border: 2px solid #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  flex-shrink: 0;
}
.site-checkout-step .step-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* ícone de entrega (viewBox 32) ligeiramente maior */
.site-checkout-step--delivery .step-icon svg {
  width: 20px;
  height: 20px;
}
.site-checkout-step.is-active .step-icon {
  background: var(--pdp-neon);
  border-color: var(--pdp-preto);
  color: var(--pdp-preto);
}
.site-checkout-connector {
  flex: 1 1 1.5rem;
  min-width: 1rem;
  max-width: 5rem;
  list-style: none;
  margin: 0;
  padding: 0 0.35rem;
  align-self: center;
  display: flex;
  align-items: center;
  height: 32px;
  box-sizing: border-box;
}
.site-checkout-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
}

.site-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.site-product-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.site-product-card:hover {
  border-color: var(--pdp-neon);
  box-shadow: 0 4px 14px rgba(0, 255, 102, 0.2);
}
.site-product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  box-sizing: border-box;
}
.site-product-card .body {
  padding: 0.85rem 1rem 1rem;
  background: #fff;
}
.site-product-card h3 {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.site-product-card .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pdp-neon);
}

.site-institu {
  max-width: 720px;
}
.site-institu h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.site-institu p {
  line-height: 1.65;
  color: #333;
  margin: 0 0 1rem;
}

.site-note-demo {
  background: #fffbeb;
  border: 1px solid var(--pdp-amarelo);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #5c4d00;
  margin-bottom: 1.25rem;
}

.site-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.site-alert-success {
  background: #e8fff0;
  border: 1px solid var(--pdp-neon);
  color: #0a3d24;
}
.site-alert-error {
  background: #fff0f0;
  border: 1px solid var(--pdp-vermelho);
  color: #5c0a0a;
}

@media (max-width: 767px) {
  .site-checkout-steps {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .site-checkout-connector {
    flex: 0 0 auto;
    width: 2px;
    min-width: 2px;
    max-width: 2px;
    height: 1rem;
    padding: 0;
    margin-left: 15px;
    align-self: flex-start;
  }
  .site-checkout-line {
    width: 2px;
    height: 100%;
    min-height: 0.75rem;
  }
  .site-page-title {
    font-size: 1.25rem;
  }
}
