/* Frente C - produto. CSS que no tema vinha inline na seção main-product / blocos md_* / related-products,
   com os seletores trocados de #shopify-section-<id> / .mdpag-<bloco> / .mdent-<bloco> para os ids fixos "pd". */

/* main-product: padding_top 28 (21 no celular), padding_bottom 0 */
.pd-pad { padding-top: 21px; padding-bottom: 0; }
@media screen and (min-width: 750px) { .pd-pad { padding-top: 28px; padding-bottom: 0; } }
#price-pd .price--on-sale .price-item--sale { color: #F80202; }
#ProductSubmitButton-pd { --md-atc-raio: 6px; }
.pd-main .product__accordion summary { padding: 20px 0; }
@media screen and (max-width: 749px) { .pd-main .product__accordion summary { padding: 14px 0; } }
.pd-main [class^='mdpag-'] svg { height: 24px; }

/* fotos 400x400: sempre "contain" dentro da caixa da galeria */
.pd-main .product__media img { object-fit: contain; }
.pd-zoom .md-zoom__slide img { width: auto; height: auto; max-width: min(100%, 600px); max-height: 100%; }

/* tamanho obrigatório: destaque quando tenta comprar sem escolher */
.pd-main .pd-tamanhos.pd-erro input[type=radio] + label { border-color: #F80202; }
.pd-main .product-form__error-message-wrapper:not([hidden]) { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: #F80202; }
.pd-main .product-form__error-message-wrapper .svg-wrapper { display: inline-flex; width: 14px; height: 14px; }
.pd-main .product-form__error-message-wrapper svg { width: 14px; height: 14px; }
.pd-main .pd-perso { margin-top: 4px; }

/* md_pagamentos (margem_topo 0) */
.mdpag-pd { display: flex; flex-wrap: nowrap; justify-content: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.mdpag-pd li { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.mdpag-pd svg { width: 38px; max-width: 100%; height: auto; display: block; }
.pd-main .mdpag-pd svg { height: 24px; }

/* md_entrega (margem_topo 24, fundo #f9f9f9) */
.mdent-pd { margin-top: 24px; padding: 0; }
.mdent-pd .mdent__card { display: flex; align-items: center; gap: 12px; background: #f9f9f9; color: #0A1A33; padding: 10px 14px; border-radius: 6px; border: 1px solid #eaeaea; }
.mdent-pd .mdent__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; }
.mdent-pd .mdent__icon svg { width: 100%; height: 100%; display: block; }
.mdent-pd .mdent__conteudo { min-width: 0; }
.mdent-pd .mdent__titulo { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; margin-block-end: 4px; }
.mdent-pd .mdent__linha { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; color: #777777; }
.mdent-pd .mdent__ponto { position: relative; display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mdent-pd .mdent__ponto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: pd-mdent-pulso 2000ms cubic-bezier(0.4, 0, 0.6, 1) infinite; pointer-events: none; }
@keyframes pd-mdent-pulso { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mdent-pd .mdent__ponto::after { animation: none; opacity: 0; } }
.mdent-pd .mdent__datas { font-weight: 600; color: #0A1A33; white-space: nowrap; }

/* descrição do produto (texto dos dados) abaixo das abas */
.pd-main .pd-descricao { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: #1c1d1d; }
.pd-main .pd-descricao p { margin: 0 0 8px; }
.pd-main .pd-descricao p:last-child { margin-bottom: 0; }
@media screen and (max-width: 749px) { .pd-main .pd-descricao { font-size: 12px; margin-top: 20px; } }

/* related-products no formato md-vitrine (carrossel) */
.pd-rel .md-vitrine { padding-block: clamp(40px, 4.1667vw, 60px); }
.pd-rel .md-vitrine .md-carrossel { --md-car-margem: clamp(15px, 2.78vw, 40px); --md-car-vao: 5px; --md-car-por: 1.5; --md-car-extra: calc(var(--md-car-margem) * 2); --md-car-bolha: rgba(var(--color-foreground), 0.035); }
@media screen and (min-width: 768px) { .pd-rel .md-vitrine .md-carrossel { --md-car-por: 3.5; } }
@media screen and (min-width: 1024px) { .pd-rel .md-vitrine .md-carrossel { --md-car-por: 6.5; } }
.pd-rel { --md-card-preco-promo: #F80202; --md-card-selo-fundo: #F80202; --md-card-selo-cor: #FFFFFF; --md-card-selo-fonte: 12px; }
