/**
 * WebMundi Vitrine — estilos baseados no protótipo Mais Promos
 * Cores via variáveis CSS (sem vermelho fixo obrigatório)
 */

.wm-vitrine-block {
    --wm-v-accent: var(--global-palette1, #2563eb);
    --wm-v-accent-hover: var(--global-palette2, #1d4ed8);
    --wm-v-surface: #ffffff;
    --wm-v-border: #e5e7eb;
    --wm-v-text: #111827;
    --wm-v-muted: #6b7280;
    --wm-v-light: #f9fafb;
    --wm-v-green: #16a34a;
    --wm-v-radius: 10px;
    --wm-v-gap: 14px;
    --wm-v-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --wm-v-shadow-h: 0 6px 20px rgba(0, 0, 0, 0.12);
    --wm-v-product-img-h: 200px;
    --wm-v-product-img-h-compact: 160px;
    --wm-v-product-img-h-hero: 240px;
    --wm-v-product-img-fit: contain;
    --wm-v-coupon-bg: #ecfdf5;
    --wm-v-coupon-border: #34d399;
    --wm-v-coupon-code-bg: #ffffff;
    --wm-v-coupon-text: #047857;
    --wm-v-coupon-accent: #059669;
    --wm-v-review-img-h: 200px;
    --wm-v-review-img-h-featured: 280px;
    --wm-v-hero-post-img-width: 50%;
    --wm-v-hero-post-min-h: 280px;
    --wm-v-hero2-product-img-width: 50%;
    --wm-v-hero2-product-img-min-h: 280px;
    --wm-v-secao-title-size: 17px;
    --wm-v-secao-title-weight: 600;
    --wm-v-secao-title-font: inherit;
    --wm-v-secao-title-line-height: 1.25;
    --wm-v-secao-title-accent: #f97316;
    --wm-v-secao-title-border: 4px;
    --wm-v-secao-title-gap: 10px;
    --wm-v-secao-link-size: 12px;
    --wm-v-secao-link-weight: 600;
    --wm-v-secao-link-padding-y: 4px;
    --wm-v-secao-link-padding-x: 12px;
    --wm-v-preco-sale-size: 21px;
    --wm-v-preco-sale-size-lg: 22px;
    --wm-v-preco-sale-color: var(--wm-v-green);
    --wm-v-preco-old-size: 13px;
    --wm-v-preco-old-color: #6b7280;
    --wm-v-preco-save-bg: #f97316;
    --wm-v-preco-save-text: #ffffff;
    --wm-v-badge-popular-bg: #f59e0b;
    --wm-v-badge-popular-text: #ffffff;
    --wm-v-cta-min-h: 40px;
    --wm-v-cta-padding-y: 10px;
    --wm-v-cta-padding-x: 16px;
    --wm-v-cta-radius: var(--wm-v-radius);
    --wm-v-cta-font-size: 13px;
    --wm-v-cta-font-weight: 600;
    --wm-v-post-cat-bg: #eff6ff;
    --wm-v-post-cat-color: var(--wm-v-accent);
    --wm-v-post-cat-border: #bfdbfe;
    --wm-v-post-cat-bg-hover: #dbeafe;
    --wm-v-scroll-btn-size: 40px;
    --wm-v-scroll-fade-width: 48px;
    --wm-v-scroll-scrollbar-h: 4px;
    margin: 2em 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wm-v-text);
}

.wm-vitrine-notice {
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #78350f;
}

/* ── Cabeçalho de seção ── */
.wm-vitrine-secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--wm-v-accent);
    padding-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.wm-vitrine-secao-titulo {
    font-family: var(--wm-v-secao-title-font, inherit);
    font-size: var(--wm-v-secao-title-size);
    font-weight: var(--wm-v-secao-title-weight);
    line-height: var(--wm-v-secao-title-line-height);
    margin: 0;
    letter-spacing: -0.02em;
    padding-left: var(--wm-v-secao-title-gap);
    border-left: var(--wm-v-secao-title-border) solid var(--wm-v-secao-title-accent);
    flex: 1 1 auto;
    min-width: 0;
}

.wm-vitrine-secao-titulo em {
    color: var(--wm-v-accent);
    font-style: normal;
}

.wm-vitrine-secao-link {
    font-size: var(--wm-v-secao-link-size);
    color: var(--wm-v-accent);
    font-weight: var(--wm-v-secao-link-weight);
    line-height: 1.25;
    border: 1px solid var(--wm-v-accent);
    padding: var(--wm-v-secao-link-padding-y) var(--wm-v-secao-link-padding-x);
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.wm-vitrine-secao-link:hover {
    background: var(--wm-v-accent);
    color: #fff;
}

/* ── Card base ── */
.wm-v-card {
    background: var(--wm-v-surface);
    border: 1px solid var(--wm-v-border);
    border-radius: var(--wm-v-radius);
    overflow: hidden;
    box-shadow: var(--wm-v-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wm-v-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wm-v-shadow-h);
}

.wm-v-card__badge {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    padding: 4px 9px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Badge sobre a foto — canto superior esquerdo */
.wm-v-card__img-wrap > .wm-v-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    max-width: calc(100% - 16px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.wm-v-card__badge--laranja {
    background: var(--wm-v-badge-popular-bg);
    color: var(--wm-v-badge-popular-text);
}

.wm-v-card__badge--verde {
    background: var(--wm-v-green);
    color: #fff;
}

.wm-v-card__badge--desconto {
    background: #1f2937;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.wm-v-card__img-wrap {
    display: block;
    position: relative;
    background: var(--wm-v-light);
    overflow: hidden;
    text-decoration: none;
}

/* Produto: área de imagem uniforme (contain = foto inteira, sem crop) */
.wm-v-card:not(.wm-v-card--review) .wm-v-card__img-wrap {
    height: var(--wm-v-product-img-h);
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-v-card:not(.wm-v-card--review) .wm-v-card__img-wrap img,
.wm-v-card:not(.wm-v-card--review) .wm-v-card__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: unset;
    object-fit: var(--wm-v-product-img-fit);
    object-position: center;
    padding: 0;
    display: block;
    transition: transform 0.3s;
}

.wm-v-card:not(.wm-v-card--review):hover .wm-v-card__img-wrap img {
    transform: scale(1.04);
}

.wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__img-wrap,
.wm-vitrine--duas4 > *:nth-child(1):not(.wm-v-card--review) .wm-v-card__img-wrap,
.wm-vitrine--duas4 > *:nth-child(2):not(.wm-v-card--review) .wm-v-card__img-wrap {
    height: var(--wm-v-product-img-h-hero);
}

.wm-v-card--compact:not(.wm-v-card--review) .wm-v-card__img-wrap {
    height: var(--wm-v-product-img-h-compact);
}

.wm-v-card__body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Produtos: categoria (product_cat) em pill — duas4, hero2, grade3, herofull produto, etc. */
.wm-vitrine-block .wm-v-card:not(.wm-v-card--review) .wm-v-card__body > .wm-v-card__loja,
.wm-vitrine-block .wm-v-card:not(.wm-v-card--review) .wm-v-card__body > a.wm-v-card__loja,
.wm-vitrine-block .wm-v-card:not(.wm-v-card--review) .wm-v-card__body > span.wm-v-card__loja,
.wm-vitrine-block .wm-v-herofull-body > .wm-v-card__loja,
.wm-vitrine-block .wm-v-herofull-body > a.wm-v-card__loja,
.wm-vitrine-block .wm-v-herofull-body > span.wm-v-card__loja {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wm-v-post-cat-color);
    background: var(--wm-v-post-cat-bg);
    border: 1px solid var(--wm-v-post-cat-border);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wm-vitrine-block .wm-v-card:not(.wm-v-card--review) .wm-v-card__body > a.wm-v-card__loja:hover,
.wm-vitrine-block .wm-v-herofull-body > a.wm-v-card__loja:hover {
    color: var(--wm-v-accent-hover);
    background: var(--wm-v-post-cat-bg-hover);
    border-color: var(--wm-v-accent);
    text-decoration: none;
}

.wm-v-card:not(.wm-v-card--review) .wm-v-card__nome {
    margin-top: 0;
}

/* Posts: .wm-v-card__cat — ver bloco review abaixo */

.wm-v-card__nome {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.4;
}

.wm-v-card__nome a {
    color: inherit;
    text-decoration: none;
}

.wm-v-card__nome a:hover {
    color: var(--wm-v-accent);
}

/* Produto: título no H3 — máx. 2 linhas (títulos longos AliExpress) */
.wm-v-card:not(.wm-v-card--review) .wm-v-card__nome {
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
}

.wm-v-card:not(.wm-v-card--review) .wm-v-card__nome a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.wm-v-card:not(.wm-v-card--review) .wm-v-card__nome--lg {
    min-height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
    line-height: 1.35;
}

.wm-v-card:not(.wm-v-card--review) .wm-v-card__nome--lg a {
    -webkit-line-clamp: 2;
}

.wm-v-card__nome--lg {
    font-size: 18px;
    font-weight: 600;
}

.wm-v-card__desc,
.wm-v-card__trecho {
    font-size: 12px;
    color: var(--wm-v-muted);
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wm-v-card--review .wm-v-card__nome {
    font-weight: 600;
}

.wm-v-card--review .wm-v-card__nome a {
    font-weight: 600;
}

.wm-v-card__precos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.wm-v-preco-linha {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.wm-v-preco-novo {
    font-size: var(--wm-v-preco-sale-size);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wm-v-preco-sale-color);
    letter-spacing: -0.02em;
}

.wm-v-preco-novo--lg {
    font-size: var(--wm-v-preco-sale-size-lg);
}

.wm-v-preco-novo--unico {
    color: var(--wm-v-text);
    font-size: 17px;
}

.wm-v-preco-antigo {
    font-size: var(--wm-v-preco-old-size);
    font-weight: 500;
    color: var(--wm-v-preco-old-color);
    text-decoration: line-through;
    line-height: 1.3;
}

.wm-v-preco-economia {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--wm-v-preco-save-text);
    background: var(--wm-v-preco-save-bg);
    padding: 4px 9px;
    border-radius: 4px;
}

.wm-v-card__cupom {
    background: var(--wm-v-coupon-bg);
    border: 1px solid var(--wm-v-coupon-border);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.wm-v-card__cupom--hero {
    max-width: 100%;
}

.wm-v-cupom-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--wm-v-coupon-accent);
    letter-spacing: 0.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.wm-v-cupom-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: var(--wm-v-coupon-code-bg);
    border: 1px dashed var(--wm-v-coupon-border);
    border-radius: 6px;
    padding: 6px 8px;
    position: relative;
}

.wm-v-cupom-code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--wm-v-coupon-text);
    letter-spacing: 0.06em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1.35;
}

.wm-v-cupom-copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px -4px -4px 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--wm-v-coupon-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.wm-v-cupom-copy:hover {
    background: var(--wm-v-coupon-text);
}

.wm-v-cupom-copy:focus-visible {
    outline: 2px solid var(--wm-v-accent);
    outline-offset: 2px;
}

.wm-v-cupom-copy-icon {
    display: block;
}

.wm-v-cupom-copied {
    display: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--wm-v-coupon-accent);
    width: 100%;
    text-align: center;
    padding-top: 2px;
}

.wm-v-cupom-chip.is-copied {
    border-color: var(--wm-v-coupon-accent);
    background: #d1fae5;
}

.wm-v-cupom-chip.is-copied .wm-v-cupom-copied {
    display: block;
}

.wm-v-cupom-chip.is-copied .wm-v-cupom-copy {
    background: var(--wm-v-coupon-text);
}

.wm-v-cupom-validade {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    font-size: 10px;
    color: var(--wm-v-muted);
    line-height: 1.4;
}

.wm-v-cupom-validade-data {
    white-space: nowrap;
    font-weight: 600;
    color: #4b5563;
}

/* Ficha do produto — variáveis locais (sem .wm-vitrine-block); ver também css/vitrine-coupon.css */
.wm-v-cupom-produto-wrap,
.woocommerce div.product .wm-v-cupom-produto-wrap,
.summary .wm-v-cupom-produto-wrap {
    --wm-v-coupon-bg: #ecfdf5;
    --wm-v-coupon-border: #34d399;
    --wm-v-coupon-code-bg: #ffffff;
    --wm-v-coupon-text: #047857;
    --wm-v-coupon-accent: #059669;
    --wm-v-muted: #6b7280;
    --wm-v-text: #111827;
    --wm-v-accent: #2563eb;
    --wm-v-green: #16a34a;
    margin: 0.75em 0 1.25em;
    max-width: 420px;
    width: 100%;
}

.wm-v-cupom-produto-wrap .wm-v-card__cupom.wm-v-cupom-produto,
.woocommerce .wm-v-cupom-produto-wrap .wm-v-card__cupom {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--wm-v-coupon-bg);
    border: 1px solid var(--wm-v-coupon-border);
    border-radius: 8px;
    padding: 10px 12px;
}

.wm-v-cupom-produto-wrap .wm-v-cupom-label {
    font-size: 10px;
}

.wm-v-cupom-produto-wrap .wm-v-cupom-chip,
.woocommerce .wm-v-cupom-produto-wrap .wm-v-cupom-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: var(--wm-v-coupon-code-bg);
    border: 1px dashed var(--wm-v-coupon-border);
    border-radius: 6px;
    padding: 8px 10px;
    position: relative;
}

.wm-v-cupom-produto-wrap .wm-v-cupom-code {
    font-size: 14px;
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 700;
    color: var(--wm-v-coupon-text);
}

.wm-v-cupom-produto-wrap .wm-v-cupom-copy,
.woocommerce .wm-v-cupom-produto-wrap .wm-v-cupom-copy {
    display: inline-flex !important;
    visibility: visible !important;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--wm-v-coupon-accent);
    color: #fff;
    cursor: pointer;
}

.wm-v-cupom-produto-wrap .wm-v-cupom-validade {
    font-size: 11px;
}

.wm-v-cupom-economia {
    font-size: 13px;
    color: var(--wm-v-text);
    line-height: 1.4;
}

.wm-v-cupom-economia-label {
    font-weight: 600;
    color: var(--wm-v-muted);
}

.wm-v-cupom-economia-valor {
    font-weight: 700;
    color: var(--wm-v-green);
}

.wm-v-card__cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--wm-v-cta-min-h);
    padding: var(--wm-v-cta-padding-y) var(--wm-v-cta-padding-x);
    background: var(--wm-v-accent);
    color: #fff !important;
    font-size: var(--wm-v-cta-font-size);
    font-weight: var(--wm-v-cta-font-weight);
    line-height: 1.25;
    border: 1.5px solid transparent;
    border-radius: var(--wm-v-cta-radius);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    width: 100%;
}

.wm-v-card__cta--inline {
    width: auto;
    min-width: 160px;
    align-self: flex-start;
}

/* Produtos: CTA no rodapé quando o card tem cupom/preço variável */
.wm-v-card:not(.wm-v-card--review) .wm-v-card__cta {
    margin-top: auto;
}

.wm-v-card__cta:hover {
    background: var(--wm-v-accent-hover);
    color: #fff !important;
}

/* Posts/reviews: mesmo tamanho, estilo contorno */
.wm-v-card__cta--outline {
    background: transparent;
    border-color: var(--wm-v-accent);
    color: var(--wm-v-accent) !important;
}

.wm-v-card__cta--outline:hover {
    background: var(--wm-v-accent);
    border-color: var(--wm-v-accent);
    color: #fff !important;
}

/* Posts/reviews — card compacto (herofull, grade3, mosaico, etc.) */
.wm-v-card--review {
    align-self: start;
    height: auto;
    display: flex;
    flex-direction: column;
}

.wm-v-card--review .wm-v-card__body {
    flex: 0 0 auto;
    padding-top: 12px;
}

/* Posts: pill da categoria acima do H3 (todos os layouts: duas4, grade3, scroll, mosaico, herofull-grid) */
.wm-vitrine-block .wm-v-card--review .wm-v-card__body > .wm-v-card__cat,
.wm-vitrine-block .wm-v-card--review .wm-v-card__body > a.wm-v-card__cat,
.wm-vitrine-block .wm-v-herofull-inner--post .wm-v-card__cat,
.wm-vitrine-block .wm-v-herofull-inner--post a.wm-v-card__cat {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wm-v-post-cat-color);
    background: var(--wm-v-post-cat-bg);
    border: 1px solid var(--wm-v-post-cat-border);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wm-vitrine-block .wm-v-card--review .wm-v-card__body > a.wm-v-card__cat:hover,
.wm-vitrine-block .wm-v-herofull-inner--post a.wm-v-card__cat:hover {
    color: var(--wm-v-accent-hover);
    background: var(--wm-v-post-cat-bg-hover);
    border-color: var(--wm-v-accent);
    text-decoration: none;
}

.wm-v-card--review .wm-v-card__nome {
    margin-top: 0;
}

.wm-v-card--review .wm-v-card__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    background: var(--wm-v-light);
}

.wm-v-card--review .wm-v-card__img-wrap img,
.wm-v-card--review .wm-v-card__img {
    object-fit: contain;
    object-position: center;
    padding: 0;
}

/* Grade: altura fixa na foto (evita esticar com % + altura intrínseca da imagem WP) */
.wm-vitrine-herofull-grid .wm-v-card--review .wm-v-card__img-wrap,
.wm-vitrine--grade3 .wm-v-card--review .wm-v-card__img-wrap,
.wm-vitrine--mosaico .wm-v-card--review .wm-v-card__img-wrap {
    flex: 0 0 auto;
    height: var(--wm-v-review-img-h);
    min-height: 0;
    overflow: hidden;
}

.wm-vitrine-herofull-grid .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine-herofull-grid .wm-v-card--review .wm-v-card__img,
.wm-vitrine--grade3 .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine--grade3 .wm-v-card--review .wm-v-card__img,
.wm-vitrine--mosaico .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine--mosaico .wm-v-card--review .wm-v-card__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: unset;
    display: block;
}

/* Scroll: proporção 16:10 pela largura, imagem inteira */
.wm-vitrine--scroll .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine--scroll .wm-v-card--review .wm-v-card__img,
.wm-v-card--review .wm-v-card__img-wrap img,
.wm-v-card--review .wm-v-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
}

.wm-vitrine-herofull-grid .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine-herofull-grid .wm-v-card--review .wm-v-card__img,
.wm-vitrine--grade3 .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine--grade3 .wm-v-card--review .wm-v-card__img,
.wm-vitrine--mosaico .wm-v-card--review .wm-v-card__img-wrap img,
.wm-vitrine--mosaico .wm-v-card--review .wm-v-card__img {
    aspect-ratio: unset;
}

.wm-vitrine--mosaico .wm-v-card--review-featured .wm-v-card__img-wrap {
    height: var(--wm-v-review-img-h-featured);
}

.wm-vitrine--mosaico .wm-v-card--review-featured .wm-v-card__img-wrap img {
    min-height: 0;
    aspect-ratio: unset;
    height: 100%;
}

.wm-v-card--review .wm-v-card__cta,
.wm-v-card--review .wm-v-card__cta--outline {
    margin-top: 10px;
}

/* ── Grids de layout (mobile-first) ── */
.wm-vitrine-grid {
    display: grid;
    gap: var(--wm-v-gap);
    width: 100%;
}

.wm-vitrine--duas4,
.wm-vitrine--hero2,
.wm-vitrine--grade3,
.wm-vitrine--mosaico {
    grid-template-columns: 1fr;
}

/* Scroll — faixa horizontal */
.wm-v-scroll {
    position: relative;
}

.wm-v-scroll::before,
.wm-v-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: var(--wm-v-scroll-scrollbar-h);
    width: var(--wm-v-scroll-fade-width);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.wm-v-scroll::before {
    left: 0;
    background: linear-gradient(to right, var(--wm-v-surface) 0%, transparent 100%);
}

.wm-v-scroll::after {
    right: 0;
    background: linear-gradient(to left, var(--wm-v-surface) 0%, transparent 100%);
}

.wm-v-scroll.is-scrollable.is-at-start::before,
.wm-v-scroll:not(.is-scrollable)::before,
.wm-v-scroll:not(.is-scrollable)::after {
    opacity: 0;
}

.wm-v-scroll.is-scrollable:not(.is-at-start)::before {
    opacity: 1;
}

.wm-v-scroll.is-scrollable:not(.is-at-end)::after {
    opacity: 1;
}

.wm-v-scroll.is-scrollable.is-at-end::after {
    opacity: 0;
}

.wm-v-scroll__btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: var(--wm-v-scroll-btn-size);
    height: var(--wm-v-scroll-btn-size);
    margin: 0;
    padding: 0;
    border: 1px solid var(--wm-v-border);
    border-radius: 50%;
    background: var(--wm-v-surface);
    color: var(--wm-v-text);
    box-shadow: var(--wm-v-shadow-h);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.wm-v-scroll__btn:hover:not(:disabled) {
    border-color: var(--wm-v-accent);
    color: var(--wm-v-accent);
    background: var(--wm-v-post-cat-bg);
}

.wm-v-scroll__btn:disabled,
.wm-v-scroll__btn[hidden] {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.wm-v-scroll__btn--prev {
    left: 8px;
}

.wm-v-scroll__btn--next {
    right: 8px;
}

.wm-v-scroll__btn-icon {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    margin-top: -2px;
}

.wm-vitrine-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--wm-v-border) transparent;
}

.wm-vitrine-scroll-wrap:focus {
    outline: 2px solid var(--wm-v-accent);
    outline-offset: 2px;
}

.wm-vitrine-scroll-wrap:focus:not(:focus-visible) {
    outline: none;
}

.wm-vitrine-scroll-wrap:focus-visible {
    outline: 2px solid var(--wm-v-accent);
    outline-offset: 2px;
}

.wm-vitrine-scroll-wrap::-webkit-scrollbar {
    height: var(--wm-v-scroll-scrollbar-h);
}

.wm-vitrine-scroll-wrap::-webkit-scrollbar-track {
    background: var(--wm-v-light);
    border-radius: 4px;
}

.wm-vitrine-scroll-wrap::-webkit-scrollbar-thumb {
    background: var(--wm-v-border);
    border-radius: 4px;
}

.wm-vitrine--scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--wm-v-gap);
    width: max-content;
}

.wm-vitrine--scroll > .wm-v-card {
    width: 232px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Hero full */
.wm-vitrine--herofull {
    display: grid;
    gap: var(--wm-v-gap);
}

.wm-v-herofull-inner {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wm-v-border);
    border-radius: var(--wm-v-radius);
    background: var(--wm-v-surface);
    box-shadow: var(--wm-v-shadow);
    overflow: hidden;
}

.wm-v-herofull-img {
    display: block;
    background: var(--wm-v-light);
    text-decoration: none;
}

.wm-v-herofull-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    padding: 0;
    display: block;
}

/* Hero herofull — produto: imagem inteira */
.wm-v-herofull-inner:not(.wm-v-herofull-inner--post) .wm-v-herofull-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-v-herofull-inner:not(.wm-v-herofull-inner--post) .wm-v-herofull-img img {
    object-fit: var(--wm-v-product-img-fit);
    max-width: 100%;
    max-height: 100%;
}

/* Hero herofull — primeiro post (banner maior; imagem inteira, sem crop) */
.wm-v-herofull-inner--post .wm-v-herofull-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--wm-v-hero-post-min-h);
}

.wm-v-herofull-inner--post .wm-v-herofull-img img {
    object-fit: contain;
    object-position: center;
    padding: 0;
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
}

.wm-v-herofull-inner--post .wm-v-herofull-body {
    padding: 16px 18px;
}

.wm-v-herofull-inner--post .wm-v-herofull-body .wm-v-card__cta {
    margin-top: 14px;
}

.wm-v-herofull-inner--post .wm-v-card__nome--lg {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.wm-v-herofull-body {
    padding: 20px;
}

.wm-v-herofull-body .wm-v-card__badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}

.wm-vitrine-herofull-grid {
    display: grid;
    gap: var(--wm-v-gap);
    grid-template-columns: 1fr;
    align-items: start;
}

.wm-vitrine-grid:has(.wm-v-card--review) {
    align-items: start;
}

/* Tablet */
@media (min-width: 601px) {
    .wm-vitrine-block {
        --wm-v-review-img-h: 220px;
        --wm-v-hero-post-min-h: 320px;
        --wm-v-secao-title-size: 20px;
        --wm-v-secao-link-size: 13px;
        --wm-v-secao-link-padding-y: 5px;
        --wm-v-secao-link-padding-x: 14px;
    }

    .wm-vitrine--duas4 {
        grid-template-columns: 1fr 1fr;
    }

    .wm-vitrine--grade3,
    .wm-vitrine-herofull-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wm-vitrine--hero2 {
        grid-template-columns: 1fr 1fr;
    }

    .wm-vitrine--hero2 > *:first-child {
        grid-column: 1 / -1;
    }

    /* hero2 — primeiro card: imagem lateral grande (contain sem faixa excessiva) */
    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: var(--wm-v-hero2-product-img-min-h);
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__img-wrap {
        width: var(--wm-v-hero2-product-img-width);
        flex: 0 0 var(--wm-v-hero2-product-img-width);
        height: auto;
        min-height: var(--wm-v-hero2-product-img-min-h);
        align-self: stretch;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__body {
        flex: 1;
        align-self: stretch;
        justify-content: center;
        min-height: var(--wm-v-hero2-product-img-min-h);
        padding: 18px 22px;
    }

    /* Bloco texto+preço+botão centralizado (sem margin-top:auto no CTA) */
    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__cta {
        margin-top: 14px;
        flex-shrink: 0;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__nome {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .wm-vitrine--mosaico {
        grid-template-columns: 1fr 1fr;
    }

    .wm-vitrine--mosaico > *:first-child {
        grid-column: 1 / -1;
    }

    .wm-v-herofull-inner {
        flex-direction: row;
    }

    .wm-v-herofull-img {
        width: 42%;
        flex-shrink: 0;
    }

    .wm-v-herofull-img {
        min-height: 220px;
    }

    .wm-v-herofull-img img {
        height: 100%;
        min-height: 220px;
        aspect-ratio: unset;
        object-fit: cover;
        padding: 0;
    }

    .wm-v-herofull-inner:not(.wm-v-herofull-inner--post) .wm-v-herofull-img img {
        object-fit: var(--wm-v-product-img-fit);
        max-width: 100%;
        max-height: 100%;
    }

    .wm-v-herofull-inner--post {
        align-items: flex-start;
    }

    .wm-v-herofull-inner--post .wm-v-herofull-img {
        width: var(--wm-v-hero-post-img-width);
        align-self: stretch;
        min-height: var(--wm-v-hero-post-min-h);
    }

    .wm-v-herofull-inner--post .wm-v-herofull-img img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: unset;
        object-fit: contain;
    }

    .wm-v-herofull-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .wm-v-herofull-inner--post .wm-v-herofull-body {
        min-height: 0;
        justify-content: flex-start;
        padding: 20px 22px;
    }

    .wm-v-herofull-inner--post .wm-v-card__nome--lg {
        font-size: 22px;
    }
}

/* Desktop */
@media (min-width: 901px) {
    .wm-vitrine-block {
        --wm-v-review-img-h: 240px;
        --wm-v-review-img-h-featured: 300px;
        --wm-v-hero-post-min-h: 360px;
        --wm-v-secao-title-size: 23px;
        --wm-v-secao-link-size: 15px;
        --wm-v-secao-link-padding-y: 7px;
        --wm-v-secao-link-padding-x: 18px;
        --wm-v-scroll-scrollbar-h: 10px;
        --wm-v-scroll-btn-size: 42px;
    }

    .wm-v-scroll__btn {
        display: inline-flex;
    }

    .wm-vitrine-scroll-wrap {
        scroll-padding-inline: 56px;
        scrollbar-color: color-mix(in srgb, var(--wm-v-accent) 35%, var(--wm-v-border)) var(--wm-v-light);
    }

    .wm-vitrine-scroll-wrap::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--wm-v-accent) 35%, var(--wm-v-border));
    }

    .wm-v-herofull-inner--post .wm-v-herofull-img {
        min-height: calc(
            var(--wm-v-review-img-h) + var(--wm-v-gap) + (var(--wm-v-review-img-h) * 0.55) + 4.5rem
        );
    }

    .wm-v-herofull-inner--post .wm-v-herofull-body {
        align-self: stretch;
        justify-content: center;
        padding: 28px 32px;
    }

    .wm-vitrine-block .wm-v-herofull-inner--post .wm-v-card__cat,
    .wm-vitrine-block .wm-v-herofull-inner--post a.wm-v-card__cat {
        font-size: 11px;
        margin-bottom: 12px;
        padding: 6px 12px;
    }

    .wm-vitrine-block .wm-v-card--review .wm-v-card__body > .wm-v-card__cat,
    .wm-vitrine-block .wm-v-card--review .wm-v-card__body > a.wm-v-card__cat {
        font-size: 10px;
    }

    .wm-vitrine-block .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__body > .wm-v-card__loja,
    .wm-vitrine-block .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__body > a.wm-v-card__loja,
    .wm-vitrine-block .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__body > span.wm-v-card__loja {
        font-size: 11px;
        margin-bottom: 12px;
        padding: 6px 12px;
    }

    .wm-v-herofull-inner--post .wm-v-card__nome--lg {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .wm-v-herofull-inner--post .wm-v-card__nome--lg a {
        font-weight: 700;
    }

    .wm-v-herofull-inner--post .wm-v-herofull-body .wm-v-card__cta {
        margin-top: 16px;
    }

    .wm-v-card--review .wm-v-card__nome {
        font-size: 15px;
        line-height: 1.35;
    }

    .wm-vitrine--duas4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .wm-vitrine--duas4 > *:nth-child(1),
    .wm-vitrine--duas4 > *:nth-child(2) {
        grid-column: span 2;
    }

    .wm-vitrine--hero2 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .wm-vitrine--hero2 > *:first-child {
        grid-row: 1 / 3;
        grid-column: auto;
    }

    .wm-vitrine-block {
        --wm-v-hero2-product-img-min-h: 380px;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) {
        min-height: 100%;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__img-wrap {
        min-height: 100%;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__body {
        min-height: 100%;
    }

    .wm-vitrine--hero2 > .wm-v-card--hero:not(.wm-v-card--review) .wm-v-card__nome {
        font-size: 22px;
    }

    .wm-vitrine--grade3,
    .wm-vitrine-herofull-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wm-vitrine--mosaico {
        grid-template-columns: 1.4fr 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .wm-vitrine--mosaico > *:first-child {
        grid-row: 1 / 3;
        grid-column: auto;
    }
}
