/* ============================================================================
 * MMIX.SHOP — Página de Produto (estilo Mercado Livre / Amazon)
 * Identidade MMIX mantida: azul-marinho + laranja
 * Mobile-first, sem dependências externas
 * ============================================================================
 */

/* Paleta do briefing (alias dos tokens oficiais em shop.css) ----------------- */
:root {
    --prod-navy: var(--brand-navy, #1b3a5c);
    --prod-navy-dark: var(--brand-navy-dark, #0a2540);
    --prod-orange: var(--brand-orange, #ff6b35);
    --prod-orange-soft: #fff1ea;
    --prod-blue: var(--brand-blue, #2f63d6);
    --prod-green: #15803d;
    --prod-green-soft: #ecfdf5;
    --prod-surface: #ffffff;
    --prod-surface-alt: #f5f5f5;
    --prod-border: #e5e7eb;
    --prod-text: #102a43;
    --prod-text-soft: #5b6b7d;
    --prod-yellow: #fef9c3;
    --prod-shadow-sm: 0 1px 2px rgba(15, 37, 61, .06), 0 1px 3px rgba(15, 37, 61, .04);
    --prod-shadow-md: 0 4px 14px rgba(15, 37, 61, .08);
    --prod-shadow-lg: 0 12px 32px rgba(15, 37, 61, .12);
    --prod-radius-sm: 8px;
    --prod-radius-md: 12px;
    --prod-radius-lg: 16px;
}

/* ============================================================================
 * Layout base
 * ============================================================================ */
.product-page { background: var(--prod-surface-alt); padding-block: 24px 64px; }
.product-page .container { width: min(100% - 32px, 1240px); margin-inline: auto; }

/* Breadcrumb (já existe em shop.css, refinamos) */
.product-page .breadcrumb {
    background: #fff;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: .8125rem;
    position: sticky;
    top: 0;
    z-index: 5;
}
.product-page .breadcrumb a { color: var(--prod-blue); font-weight: 600; }
.product-page .breadcrumb a:hover { text-decoration: underline; }
.product-page .breadcrumb [aria-current] { color: var(--prod-text-soft); font-weight: 500; }

/* ============================================================================
 * Bloco principal — Galeria + Compra
 * ============================================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: #fff;
    border-radius: var(--prod-radius-md);
    padding: 20px;
    box-shadow: var(--prod-shadow-sm);
}
@media (min-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 36px;
        padding: 28px;
    }
}

/* ----- Galeria Estilo Mercado Livre ----- */
.product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
@media (min-width: 560px) {
    .product-gallery {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 16px;
    }
}
/* Quando nao ha miniaturas */
.product-gallery:not(:has(.product-gallery__thumbs)),
.product-gallery--no-thumbs {
    grid-template-columns: 1fr !important;
}
.product-gallery--no-thumbs .product-gallery__main {
    grid-column: 1 !important;
}

/* Miniaturas (Coluna 1 à esquerda no desktop, linha horizontal abaixo no mobile) */
.product-gallery__thumbs {
    order: 2;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 560px) {
    .product-gallery__thumbs {
        grid-column: 1 !important;
        grid-row: 1 !important;
        order: 1 !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        max-height: 560px !important;
        padding: 2px !important;
    }
}
.product-gallery__thumbs::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.product-gallery__thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-gallery__thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-gallery__thumb:hover {
    border-color: #2f63d6;
    transform: translateY(-1px);
}
.product-gallery__thumb.is-active {
    border-color: #2f63d6 !important;
    box-shadow: 0 0 0 1px #2f63d6;
}

/* Imagem Principal (Coluna 2 à direita no desktop, topo no mobile) */
.product-gallery__main {
    order: 1;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 440px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 560px) {
    .product-gallery__main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: 2 !important;
        min-height: 480px !important;
        max-height: 580px !important;
        border-radius: 14px;
    }
}
.product-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .25s ease-out;
}

/* Miniatura de Vídeo com ícone Play (Mercado Livre / Shopee) */
.product-gallery__thumb--video {
    position: relative;
}
.thumb-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .85;
}
.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: transform .15s ease, background .15s ease;
}
.product-gallery__thumb--video:hover .thumb-video-icon,
.product-gallery__thumb--video.is-active .thumb-video-icon {
    background: #2f63d6;
    transform: translate(-50%, -50%) scale(1.12);
}
.thumb-video-icon svg {
    margin-left: 2px;
}
.thumb-video-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #2f63d6;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Player de Vídeo embutido dentro de .product-gallery__main (Mercado Livre / Shopee) */
.product-gallery__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: inherit;
    z-index: 3;
}
.product-gallery__video-wrap video {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #000;
    border-radius: inherit;
}

/* Overlay convidativo para assistir o vídeo de apresentação */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, .38);
    cursor: pointer;
    z-index: 4;
    transition: background .2s ease;
    border-radius: inherit;
}
.video-play-overlay:hover {
    background: rgba(0, 0, 0, .48);
}
.video-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #2f63d6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(47, 99, 214, .55);
    transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), background .15s ease;
}
.video-play-overlay:hover .video-play-btn {
    transform: scale(1.12);
    background: #2554bd;
}
.video-play-btn svg {
    margin-left: 3px;
}
.video-play-text {
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
    background: rgba(15, 23, 42, .8);
    padding: 7px 16px;
    border-radius: 20px;
    letter-spacing: .01em;
}

/* Selo (NOVO / OFERTA) */
.product-gallery__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--prod-orange);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(255, 107, 53, .3);
    pointer-events: none;
}
.product-gallery__badge--novo { background: var(--prod-green); box-shadow: 0 4px 10px rgba(21, 128, 61, .3); }

/* ----- Coluna info ----- */
.product-info { display: flex; flex-direction: column; gap: 14px; }

.product-info__eyebrow {
    align-self: flex-start;
    padding: 4px 10px;
    background: var(--prod-blue);
    color: #fff;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-info__title {
    margin: 0;
    color: var(--prod-navy);
    font-size: clamp(1.4rem, 3.4vw, 1.85rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}

.product-info__sku {
    margin: -8px 0 0;
    color: var(--prod-text-soft);
    font-size: .78rem;
}

/* Avaliações (estrelas) */
.product-info__rating { display: inline-flex; align-items: center; gap: 8px; }
.product-info__stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.product-info__stars svg { width: 16px; height: 16px; fill: currentColor; }
.product-info__rating-text { font-size: .82rem; color: var(--prod-text-soft); }
.product-info__rating-text strong { color: var(--prod-blue); font-weight: 700; }

/* Preço */
.product-info__price { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.product-info__price-label { font-size: .72rem; color: var(--prod-text-soft); text-transform: uppercase; letter-spacing: .04em; }
.product-info__price-value {
    color: var(--prod-navy);
    font-size: clamp(1.85rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1;
}
.product-info__price-value--accent { color: var(--prod-orange); }
.product-info__installments {
    font-size: .92rem;
    color: var(--prod-text);
    font-weight: 500;
}
.product-info__installments strong { color: var(--prod-text); font-weight: 700; }
.product-info__pix {
    color: var(--prod-green);
    font-weight: 700;
    font-size: .9rem;
}
.product-info__pix-discount {
    display: inline-block;
    margin-left: 6px;
    background: var(--prod-green);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 800;
}

/* Disponibilidade */
.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    margin: 0;
}
.availability--available { color: var(--prod-green); }
.availability--consult { color: #b45309; }
.availability::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    flex: none;
}

/* Calculadora de frete por CEP */
.shipping-calc {
    background: var(--prod-surface-alt);
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shipping-calc__label { font-size: .85rem; font-weight: 600; color: var(--prod-navy); }
.shipping-calc__form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.shipping-calc__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    background: #fff;
    font-size: .95rem;
    color: var(--prod-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.shipping-calc__input:focus {
    outline: 0;
    border-color: var(--prod-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .15);
}
.shipping-calc__btn {
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--prod-radius-sm);
    background: var(--prod-orange);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
    min-width: 88px;
}
.shipping-calc__btn:hover { background: #e85a23; }
.shipping-calc__btn:disabled { opacity: .6; cursor: progress; }
.shipping-calc__result {
    font-size: .85rem;
    color: var(--prod-text-soft);
    display: none;
}
.shipping-calc__result.is-visible { display: block; }
.shipping-calc__result strong { color: var(--prod-navy); }
.shipping-calc__result--error { color: #b91c1c; }
.shipping-calc__free {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--prod-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: var(--prod-radius-sm);
    color: var(--prod-green);
    font-size: .82rem;
    font-weight: 600;
    display: none;
}
.shipping-calc__free.is-visible { display: block; }

/* Variações */
.product-variants { margin: 0; padding: 0; border: 0; }
.product-variants legend {
    font-size: .85rem;
    font-weight: 600;
    color: var(--prod-navy);
    margin-bottom: 8px;
    padding: 0;
}
.variants-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option {
    cursor: pointer;
    user-select: none;
}
.variant-option__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.variant-option__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    background: #fff;
    color: var(--prod-text);
    font-weight: 600;
    font-size: .9rem;
    transition: border-color .15s ease, background .15s ease;
}
.variant-option:hover .variant-option__label { border-color: var(--prod-orange); }
.variant-option__radio:checked + .variant-option__label {
    border-color: var(--prod-orange);
    background: var(--prod-orange-soft);
    color: var(--prod-orange);
}
.variant-option__radio:focus-visible + .variant-option__label {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .25);
}
.field-hint { margin: 6px 0 0; font-size: .78rem; color: var(--prod-text-soft); }

/* Quantidade */
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.quantity-selector { display: flex; align-items: center; gap: 12px; }
.quantity-selector__label { font-size: .85rem; font-weight: 600; color: var(--prod-navy); }
.quantity-selector__control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    overflow: hidden;
    background: #fff;
}
.quantity-selector__control button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--prod-navy);
    font-weight: 700;
    transition: background .15s ease;
}
.quantity-selector__control button:hover { background: var(--prod-surface-alt); }
.quantity-selector__control input {
    width: 56px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--prod-border);
    border-right: 1px solid var(--prod-border);
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    background: #fff;
    -moz-appearance: textfield;
}
.quantity-selector__control input::-webkit-outer-spin-button,
.quantity-selector__control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Botões de compra (regras de identidade: laranja = principal, azul = secundário) */
.btn-buy-primary,
.btn-buy-secondary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--prod-radius-md);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .01em;
}

.btn-buy-secondary {
    background: var(--prod-blue);
    color: #fff;
}
.btn-buy-secondary:hover { background: #1f4fc4; }
.btn-buy-secondary:disabled { background: #cbd5e1; cursor: not-allowed; }

.product-purchase__feedback { margin: 0; font-size: .85rem; min-height: 1.2em; }
.product-purchase__feedback.is-success { color: var(--prod-green); }
.product-purchase__feedback.has-error { color: #b91c1c; }

/* Selo compra protegida */
.product-sandbox-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--prod-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: var(--prod-radius-md);
    margin-top: 4px;
}
.product-sandbox-note svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--prod-green);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.product-sandbox-note strong { display: block; color: var(--prod-navy); font-size: .9rem; }
.product-sandbox-note span { color: var(--prod-text-soft); font-size: .8rem; line-height: 1.4; }

/* ============================================================================
 * Seções (largura total)
 * ============================================================================ */
.product-section {
    background: #fff;
    border-radius: var(--prod-radius-md);
    padding: 24px 20px;
    margin-top: 24px;
    box-shadow: var(--prod-shadow-sm);
}
@media (min-width: 720px) { .product-section { padding: 28px 28px; } }

.product-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.product-section__heading h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.6vw, 1.45rem);
    color: var(--prod-navy);
}
.product-section__heading .eyebrow {
    display: block;
    font-size: .72rem;
    color: var(--prod-orange);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.product-section__heading p { margin: 0; color: var(--prod-text-soft); font-size: .88rem; }

/* ----- Tabs (Descrição / Avaliações / Perguntas) ----- */
.product-tabs { padding: 0; overflow: hidden; }
.product-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--prod-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.product-tabs__nav::-webkit-scrollbar { display: none; }
.product-tabs__btn {
    flex: none;
    padding: 16px 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--prod-text-soft);
    font-weight: 600;
    font-size: .9rem;
    position: relative;
    white-space: nowrap;
    min-height: 48px;
    transition: color .15s ease;
}
.product-tabs__btn:hover { color: var(--prod-navy); }
.product-tabs__btn.is-active { color: var(--prod-navy); font-weight: 700; }
.product-tabs__btn.is-active::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 3px;
    background: var(--prod-orange);
    border-radius: 2px 2px 0 0;
}
.product-tabs__panel { padding: 20px; display: none; }
.product-tabs__panel.is-active { display: block; }

/* Descrição longa */
.product-description { font-size: .95rem; line-height: 1.65; color: var(--prod-text); }
.product-description p { margin: 0 0 12px; }
.product-description ul { padding-left: 20px; margin: 0 0 12px; }
.product-description li { margin-bottom: 6px; }

/* Lista de especificações */
.product-specs__list { margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.product-specs__list div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--prod-border); }
.product-specs__list div:last-child { border-bottom: 0; }
.product-specs__list dt { color: var(--prod-text-soft); font-size: .85rem; font-weight: 500; margin: 0; }
.product-specs__list dd { color: var(--prod-navy); font-size: .9rem; font-weight: 600; margin: 0; }
@media (max-width: 560px) {
    .product-specs__list div { grid-template-columns: 1fr; gap: 2px; }
    .product-specs__list dt { font-size: .78rem; }
    .product-specs__list dd { font-size: .88rem; }
}

/* ----- Avaliações ----- */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--prod-border);
}
@media (min-width: 560px) {
    .reviews-summary { grid-template-columns: 200px 1fr; }
}
.reviews-summary__score { text-align: center; }
.reviews-summary__score-value {
    display: block;
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: var(--prod-navy);
}
.reviews-summary__score-stars { color: #f59e0b; margin: 8px 0 4px; display: inline-flex; gap: 2px; }
.reviews-summary__score-stars svg { width: 18px; height: 18px; fill: currentColor; }
.reviews-summary__score-count { font-size: .85rem; color: var(--prod-text-soft); }

.reviews-bars { display: flex; flex-direction: column; gap: 6px; }
.reviews-bars__row { display: grid; grid-template-columns: 32px 1fr 44px; gap: 8px; align-items: center; font-size: .82rem; }
.reviews-bars__label { color: var(--prod-text-soft); font-weight: 600; }
.reviews-bars__track { height: 8px; background: var(--prod-surface-alt); border-radius: 999px; overflow: hidden; }
.reviews-bars__fill { height: 100%; background: #f59e0b; border-radius: 999px; transition: width .35s ease; }
.reviews-bars__value { color: var(--prod-text-soft); text-align: right; font-variant-numeric: tabular-nums; }

.reviews-list { display: flex; flex-direction: column; gap: 18px; }
.review-item {
    padding: 16px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    background: var(--prod-surface);
}
.review-item__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--prod-orange) 0%, var(--prod-blue) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
}
.review-item__name { font-weight: 700; color: var(--prod-navy); font-size: .9rem; }
.review-item__date { font-size: .78rem; color: var(--prod-text-soft); }
.review-item__stars { color: #f59e0b; margin-bottom: 6px; display: inline-flex; gap: 2px; }
.review-item__stars svg { width: 14px; height: 14px; fill: currentColor; }
.review-item__body { font-size: .9rem; color: var(--prod-text); line-height: 1.55; margin: 0; }

.reviews-cta {
    margin-top: 18px;
    text-align: center;
}
.reviews-cta button {
    border: 1.5px solid var(--prod-blue);
    background: #fff;
    color: var(--prod-blue);
    padding: 10px 22px;
    border-radius: var(--prod-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    min-height: 44px;
}
.reviews-cta button:hover { background: var(--prod-blue); color: #fff; }

.reviews-empty { text-align: center; padding: 24px; color: var(--prod-text-soft); }

/* ----- Perguntas ----- */
.qa-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    background: var(--prod-surface-alt);
    margin-bottom: 20px;
}
.qa-form label { font-size: .85rem; font-weight: 600; color: var(--prod-navy); }
.qa-form__input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    background: #fff;
    font-size: .92rem;
}
.qa-form__input:focus {
    outline: 0;
    border-color: var(--prod-blue);
    box-shadow: 0 0 0 3px rgba(47, 99, 214, .15);
}
.qa-form__btn {
    align-self: flex-start;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--prod-radius-sm);
    background: var(--prod-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.qa-form__btn:hover { background: #1f4fc4; }

.qa-list { display: flex; flex-direction: column; gap: 14px; }
.qa-item {
    padding: 14px 16px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    background: #fff;
}
.qa-item__q { color: var(--prod-navy); font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.qa-item__q::before { content: 'P: '; color: var(--prod-blue); font-weight: 800; }
.qa-item__a { color: var(--prod-text); font-size: .88rem; line-height: 1.5; margin: 0; }
.qa-item__a::before { content: 'R: '; color: var(--prod-green); font-weight: 800; }
.qa-item__meta { color: var(--prod-text-soft); font-size: .75rem; margin-top: 6px; }

.qa-empty { text-align: center; padding: 20px; color: var(--prod-text-soft); font-size: .88rem; }

/* ============================================================================
 * Cross-sell — "Complete seu setup"
 * ============================================================================ */
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.cross-sell-card {
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    min-height: 100%;
}
.cross-sell-card:hover { transform: translateY(-2px); box-shadow: var(--prod-shadow-md); }
.cross-sell-card__image {
    aspect-ratio: 1 / 1;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--prod-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cross-sell-card__image img { width: 100%; height: 100%; object-fit: cover; }
.cross-sell-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cross-sell-card__title {
    margin: 0;
    font-size: .92rem;
    color: var(--prod-navy);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.cross-sell-card__price { color: var(--prod-orange); font-weight: 800; font-size: 1.1rem; }
.cross-sell-card__installments { color: var(--prod-text-soft); font-size: .78rem; }
.cross-sell-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--prod-green);
    font-size: .78rem;
    font-weight: 600;
}
.cross-sell-card__stock::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 999px;
    background: currentColor;
}
.cross-sell-card__btn {
    margin-top: auto;
    min-height: 40px;
    border: 0;
    border-radius: var(--prod-radius-sm);
    background: var(--prod-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
    font-size: .88rem;
}
.cross-sell-card__btn:hover { background: var(--prod-blue); filter: brightness(0.92); }
.cross-sell-card__btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ============================================================================
 * Carrossel horizontal — Produtos relacionados
 * ============================================================================ */
.carousel {
    position: relative;
}
.carousel__track-wrap {
    overflow: hidden;
    margin-inline: -4px;
}
.carousel__track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--prod-border); border-radius: 999px; }

.carousel__item {
    flex: 0 0 calc(50% - 8px);
    scroll-snap-align: start;
}
@media (min-width: 560px) { .carousel__item { flex: 0 0 calc(33.333% - 11px); } }
@media (min-width: 900px) { .carousel__item { flex: 0 0 calc(25% - 12px); } }

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--prod-border);
    background: #fff;
    color: var(--prod-navy);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--prod-shadow-sm);
    transition: background .15s ease, transform .15s ease;
}
.carousel__btn:hover { background: var(--prod-surface-alt); }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
@media (min-width: 900px) { .carousel__btn { display: inline-flex; } }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.carousel__dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--prod-border);
    border: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.carousel__dot.is-active { background: var(--prod-orange); width: 22px; }

/* ============================================================================
 * Accordion — ficha técnica completa
 * ============================================================================ */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion__item {
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    background: #fff;
    overflow: hidden;
}
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: .95rem;
    font-weight: 600;
    color: var(--prod-navy);
    min-height: 48px;
}
.accordion__trigger:hover { background: var(--prod-surface-alt); }
.accordion__trigger svg {
    width: 18px; height: 18px;
    color: var(--prod-text-soft);
    transition: transform .2s ease;
}
.accordion__item.is-open .accordion__trigger svg { transform: rotate(180deg); }
.accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.accordion__panel-inner {
    padding: 0 16px 16px;
    font-size: .9rem;
    color: var(--prod-text);
    line-height: 1.55;
}
.accordion__panel-inner ul { margin: 0; padding-left: 18px; }
.accordion__panel-inner li { margin-bottom: 6px; }

/* ============================================================================
 * WhatsApp flutuante + Voltar ao topo
 * ============================================================================ */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 92px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .45);
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, background .15s ease;
    text-decoration: none;
}
.whatsapp-float.is-visible { opacity: 1; transform: translateY(0); }
.whatsapp-float:hover { background: #1ebe5d; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--prod-navy);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--prod-shadow-md);
    z-index: 89;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, background .15s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--prod-navy-dark); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================================
 * Sticky mobile — barra de compra fixa
 * ============================================================================ */
.mobile-buy-bar {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 95;
    background: #fff;
    border-top: 1px solid var(--prod-border);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: none;
    gap: 12px;
    align-items: center;
    box-shadow: 0 -4px 18px rgba(15, 37, 61, .08);
}
.mobile-buy-bar__price {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-buy-bar__price-label { font-size: .68rem; color: var(--prod-text-soft); }
.mobile-buy-bar__price-value {
    color: var(--prod-orange);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-buy-bar__btn {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--prod-radius-md);
    background: var(--prod-orange);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s ease;
    flex: none;
}
.mobile-buy-bar__btn:hover { background: #e85a23; }
@media (max-width: 720px) {
    .mobile-buy-bar { display: flex; }
    /* Compensa o espaço ocupado pela barra fixa */
    body.has-mobile-buy-bar { padding-bottom: 84px; }
}

/* ============================================================================
 * Modal/drawer — CEP no mobile
 * ============================================================================ */
.cep-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 37, 61, .55);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.cep-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cep-drawer {
    position: fixed;
    z-index: 111;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: min(100%, 480px);
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px rgba(15, 37, 61, .25);
    transition: transform .25s ease;
}
.cep-drawer.is-open { transform: translate(-50%, 0); }
.cep-drawer__handle {
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: var(--prod-border);
    margin: 0 auto 14px;
}
.cep-drawer__title { margin: 0 0 12px; font-size: 1.05rem; color: var(--prod-navy); font-weight: 700; }
.cep-drawer__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 0;
    background: var(--prod-surface-alt);
    color: var(--prod-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cep-drawer__close:hover { background: var(--prod-border); }
.cep-drawer__close svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
    /* No desktop o campo de CEP já é visível na compra box; drawer não é usado */
    .cep-drawer-backdrop,
    .cep-drawer { display: none; }
}

/* ============================================================================
 * Alert (revisão de cadastro)
 * ============================================================================ */
.product-alert {
    padding: 12px 14px;
    border-radius: var(--prod-radius-md);
    background: var(--prod-yellow);
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .88rem;
}
.product-alert strong { display: block; margin-bottom: 4px; color: #78350f; }

/* ============================================================================
 * Estado vazio
 * ============================================================================ */
.empty-state {
    text-align: center;
    padding: 28px 16px;
    color: var(--prod-text-soft);
}
.empty-state h3 { margin-bottom: 6px; color: var(--prod-navy); font-size: 1rem; }
.empty-state p { font-size: .88rem; margin: 0 0 12px; }

/* ============================================================================
 * FRETE — 2 opções estilo Mercado Livre
 * ============================================================================ */

/* Bloco "Informe seu CEP" + botão "Calcular" — inline */
.shipping-cep {
    background: var(--prod-surface);
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shipping-cep__label {
    font-size: .82rem;
    color: var(--prod-navy);
    font-weight: 600;
}
.shipping-cep__label strong { color: var(--prod-orange); }
.shipping-cep__form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.shipping-cep__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    background: #fff;
    font-size: .95rem;
    color: var(--prod-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.shipping-cep__input:focus {
    outline: 0;
    border-color: var(--prod-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .15);
}
.shipping-cep__btn {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--prod-radius-sm);
    background: var(--prod-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
    min-width: 100px;
    white-space: nowrap;
}
.shipping-cep__btn:hover { background: #1f4fc4; }
.shipping-cep__btn:disabled { opacity: .6; cursor: progress; }
.shipping-cep__hint { font-size: .76rem; color: var(--prod-text-soft); margin: 0; }
.shipping-cep__error {
    font-size: .82rem;
    color: #b91c1c;
    display: none;
}
.shipping-cep__error.is-visible { display: block; }

/* Banner "Frete grátis acima de X" (incentivo PIX/quantidade) */
.shipping-promo {
    background: var(--prod-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: var(--prod-radius-sm);
    padding: 10px 12px;
    color: var(--prod-green);
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.shipping-promo svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 2 cards de frete (grátis + expresso) — estilo ML */
.shipping-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4px;
}
.shipping-option {
    border: 1.5px solid var(--prod-border);
    border-radius: var(--prod-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
}
.shipping-option:hover { border-color: var(--prod-orange); }
.shipping-option__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--prod-surface-alt);
    color: var(--prod-text-soft);
}
.shipping-option__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shipping-option--free {
    border-color: #16a34a;
    background: linear-gradient(0deg, var(--prod-green-soft) 0%, #fff 70%);
}
.shipping-option--free .shipping-option__icon {
    background: #16a34a;
    color: #fff;
}
.shipping-option--express {
    border-color: var(--prod-orange);
    background: linear-gradient(0deg, var(--prod-orange-soft) 0%, #fff 70%);
}
.shipping-option--express .shipping-option__icon {
    background: var(--prod-orange);
    color: #fff;
}
.shipping-option__body { flex: 1; min-width: 0; }
.shipping-option__title {
    margin: 0;
    font-size: .9rem;
    font-weight: 800;
    color: var(--prod-navy);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.shipping-option__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--prod-orange);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.shipping-option--free .shipping-option__badge { background: #16a34a; }
.shipping-option__sub {
    margin: 2px 0 0;
    font-size: .78rem;
    color: var(--prod-text-soft);
    line-height: 1.4;
}
.shipping-option__sub strong { color: var(--prod-navy); }
.shipping-option__price {
    flex: none;
    font-size: .92rem;
    font-weight: 800;
    color: var(--prod-navy);
    text-align: right;
}
.shipping-option__price--free { color: #16a34a; }
.shipping-option__price--pay { color: var(--prod-orange); }
.shipping-option__price small {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--prod-text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Estado de carregamento do frete */
.shipping-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--prod-surface-alt);
    border-radius: var(--prod-radius-md);
    color: var(--prod-text-soft);
    font-size: .85rem;
}
.shipping-loading__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--prod-border);
    border-top-color: var(--prod-orange);
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
 * QUANTIDADE — dropdown estilo ML ("1 unidade (+50 disponíveis)")
 * ============================================================================ */
.qty-select {
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1.5px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    background: #fff
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")
        no-repeat right 14px center;
    background-size: 14px 14px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--prod-text);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 110px;
}
.qty-select:focus {
    outline: 0;
    border-color: var(--prod-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .15);
}
.qty-select optgroup { font-weight: 800; color: var(--prod-text-soft); }
.qty-select optgroup option { font-weight: 600; color: var(--prod-text); }

/* ============================================================================
 * PARCELAMENTO explícito
 * ============================================================================ */
.installments-box {
    background: var(--prod-surface-alt);
    border-radius: var(--prod-radius-sm);
    padding: 12px 14px;
    margin-top: 6px;
}
.installments-box__pix {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: var(--prod-green);
    font-size: .88rem;
    font-weight: 700;
}
.installments-box__pix svg { width: 18px; height: 18px; flex: none; }
.installments-box__pix strong { font-weight: 800; }
.installments-box__pix-discount {
    display: inline-block;
    margin-left: 4px;
    background: var(--prod-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.installments-box__card {
    margin: 0;
    color: var(--prod-text);
    font-size: .85rem;
    line-height: 1.5;
}
.installments-box__card strong { color: var(--prod-navy); font-weight: 700; }
.installments-box__details {
    margin: 6px 0 0;
    padding-top: 6px;
    border-top: 1px dashed var(--prod-border);
    font-size: .78rem;
    color: var(--prod-text-soft);
}
.installments-box__link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--prod-blue);
    font-weight: 700;
    cursor: pointer;
    font-size: .78rem;
    text-decoration: underline;
}
.installments-box__link:hover { color: #1f4fc4; }
.installments-table {
    margin: 8px 0 0;
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    color: var(--prod-text);
}
.installments-table th,
.installments-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--prod-border);
}
.installments-table th { color: var(--prod-text-soft); font-weight: 600; }
.installments-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.installments-table tr.is-nojuros td { color: var(--prod-green); font-weight: 700; }
.installments-table tr.is-juros td { color: var(--prod-text-soft); }
.installments-table.is-collapsed { display: none; }

/* Link "+ frete grátis pagando no PIX" — incentivo PIX perto do preço */
.pix-incentive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--prod-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: var(--prod-green);
    font-size: .78rem;
    font-weight: 700;
    cursor: default;
}
.pix-incentive svg { width: 14px; height: 14px; flex: none; fill: currentColor; }

/* ============================================================================
 * BOTÕES — ML style (azul forte Comprar / azul claro Adicionar)
 * ============================================================================ */
.btn-buy-primary,
.btn-buy-secondary {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--prod-radius-md);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .01em;
}
/* PRINCIPAL — Comprar agora: azul forte (Mercado Livre style) */
.btn-buy-primary {
    background: var(--prod-blue);
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 99, 214, .22);
}
.btn-buy-primary:hover { background: #1f4fc4; box-shadow: 0 8px 18px rgba(47, 99, 214, .32); }
.btn-buy-primary:active { transform: translateY(1px); }
.btn-buy-primary:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }

/* SECUNDÁRIO — Adicionar ao carrinho: azul claro */
.btn-buy-secondary {
    background: #eaf1ff;
    color: var(--prod-blue);
    border: 1.5px solid transparent;
}
.btn-buy-secondary:hover { background: #d6e4ff; }
.btn-buy-secondary:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

/* ============================================================================
 * PREÇO PROGRESSIVO por quantidade (atacado)
 * ============================================================================ */
.bulk-pricing {
    background: #f0f7ff;
    border: 1px solid #c7dcfb;
    border-radius: var(--prod-radius-md);
    padding: 12px 14px;
    margin-top: 6px;
}
.bulk-pricing__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--prod-blue);
    font-size: .85rem;
    font-weight: 800;
}
.bulk-pricing__title svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.bulk-pricing__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bulk-pricing__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d6e4ff;
    border-radius: var(--prod-radius-sm);
    font-size: .82rem;
    color: var(--prod-text);
    transition: border-color .15s ease, background .15s ease;
}
.bulk-pricing__item.is-current {
    border-color: var(--prod-blue);
    background: #eaf1ff;
}
.bulk-pricing__qty {
    font-weight: 800;
    color: var(--prod-navy);
    font-size: .92rem;
}
.bulk-pricing__item.is-current .bulk-pricing__qty { color: var(--prod-blue); }
.bulk-pricing__label {
    color: var(--prod-text-soft);
    font-size: .78rem;
}
.bulk-pricing__item.is-current .bulk-pricing__label { color: var(--prod-blue); font-weight: 600; }
.bulk-pricing__unit {
    font-weight: 800;
    color: var(--prod-green);
    text-align: right;
}
.bulk-pricing__discount {
    display: inline-block;
    margin-left: 4px;
    background: var(--prod-green);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 800;
}

/* ============================================================================
 * COUNTDOWN "Comprando nos próximos X min → chega amanhã"
 * ============================================================================ */
.delivery-cutoff {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: var(--prod-radius-md);
    padding: 12px 14px;
    color: var(--prod-green);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
}
.delivery-cutoff.is-tomorrow {
    background: #f0fdf4;
    border-color: #86efac;
}
.delivery-cutoff.is-late {
    background: var(--prod-surface-alt);
    border-color: var(--prod-border);
    color: var(--prod-text);
}
.delivery-cutoff__icon {
    flex: none;
    width: 24px;
    height: 24px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.delivery-cutoff__body { flex: 1; min-width: 0; }
.delivery-cutoff__title {
    display: block;
    margin: 0 0 2px;
    font-size: .92rem;
    font-weight: 800;
    color: var(--prod-navy);
}
.delivery-cutoff.is-tomorrow .delivery-cutoff__title { color: var(--prod-green); }
.delivery-cutoff__sub {
    margin: 0;
    font-size: .82rem;
    color: var(--prod-text-soft);
    font-weight: 500;
}
.delivery-cutoff__sub strong { color: var(--prod-navy); }
.delivery-cutoff__timer {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--prod-green);
    color: #fff;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   Home MMIX.SHOP - secoes (hero, categories-compact, featured, assistant, trust, cta-final)
   ============================================================================ */
* { margin:0; padding:0; box-sizing:border-box; }
    html, body { overflow-x:hidden; }
    body { font-family:'Inter',-apple-system,sans-serif; background:#fff; color:#1a1a2e; line-height:1.6; }

    /* ─ Hero ─ */
    .hero-v2 { background:linear-gradient(135deg, #1B3A5C 0%, #2563EB 50%, #1B3A5C 100%); color:#fff; padding:40px 16px 50px; text-align:center; }
    .hero-v2 h1 { font-size:28px; font-weight:800; letter-spacing:-0.5px; margin-bottom:12px; line-height:1.15; }
    @media (min-width:768px) { .hero-v2 h1 { font-size:42px; } }
    .hero-v2 p { font-size:15px; opacity:0.9; margin-bottom:24px; max-width:560px; margin-left:auto; margin-right:auto; line-height:1.5; }
    .hero-v2 .cta-buttons { display:flex; flex-direction:column; gap:10px; max-width:340px; margin:0 auto; }
    @media (min-width:640px) { .hero-v2 .cta-buttons { flex-direction:row; justify-content:center; max-width:none; } }
    .btn-hero { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:14px 28px; border-radius:12px; font-weight:700; font-size:15px; text-decoration:none; border:none; cursor:pointer; transition:all .2s; }
    .btn-hero-primary { background:#fff; color:#1B3A5C; }
    .btn-hero-primary:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }
    .btn-hero-secondary { background:rgba(255,255,255,0.15); backdrop-filter:blur(10px); color:#fff; border:2px solid rgba(255,255,255,0.3); }
    .btn-hero-secondary:hover { background:rgba(255,255,255,0.25); transform:translateY(-2px); }

    /* ─ Compact categories ─ */
    .categories-compact { max-width:1280px; margin:0 auto; padding:40px 16px 24px; }
    .categories-compact h2 { text-align:center; font-size:22px; font-weight:800; color:#1B3A5C; margin-bottom:24px; }
    @media (min-width:768px) { .categories-compact h2 { font-size:26px; } }
    .categories-compact-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
    @media (min-width:640px) { .categories-compact-grid { grid-template-columns:repeat(3,1fr); } }
    @media (min-width:1024px) { .categories-compact-grid { grid-template-columns:repeat(5,1fr); gap:16px; } }
    .cat-compact-card { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:120px; padding:20px 12px; background:#f8fafc; border:2px solid #e5e7eb; border-radius:14px; text-decoration:none; color:#1B3A5C; transition:all .2s; }
    .cat-compact-card:hover { border-color:#1B3A5C; background:#f1f5f9; transform:translateY(-3px); box-shadow:0 8px 24px rgba(27,58,92,0.08); }
    .cat-compact-card.is-active { border-color:#27ae60; background:#ecfdf5; }
    .cat-compact-card i { font-size:26px; margin-bottom:10px; color:#27ae60; }
    .cat-compact-card span { font-size:13px; font-weight:700; text-align:center; line-height:1.2; }

    /* ─ Active filter strip ─ */
    .filter-strip { max-width:1280px; margin:0 auto; padding:0 16px 16px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .filter-strip-label { font-size:13px; color:#64748b; font-weight:600; }
    .filter-strip-tag { display:inline-flex; align-items:center; gap:4px; background:#1B3A5C; color:#fff; padding:5px 12px; border-radius:16px; font-size:12px; font-weight:600; }
    .filter-strip-clear { font-size:12px; color:#e67e22; text-decoration:underline; font-weight:600; }

    /* ─ Products section ─ */
    .featured-v2 { max-width:1280px; margin:32px auto; padding:32px 16px; background:#f8fafc; border-radius:16px; }
    @media (max-width:1320px) { .featured-v2 { margin-left:16px; margin-right:16px; } }
    .featured-v2 h2 { font-size:20px; font-weight:800; color:#1B3A5C; margin-bottom:6px; }
    @media (min-width:768px) { .featured-v2 h2 { font-size:24px; } }
    .featured-v2 .subtitle { color:#64748b; font-size:13px; margin-bottom:20px; }
    .products-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
    @media (min-width:640px) { .products-grid { grid-template-columns:repeat(3,1fr); gap:16px; } }
    @media (min-width:900px) { .products-grid { grid-template-columns:repeat(4,1fr); } }
    @media (min-width:1180px) { .products-grid { grid-template-columns:repeat(5,1fr); } }
    .product-card-v2 { display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; transition:all .2s; height:100%; }
    .product-card-v2:hover { border-color:#1B3A5C; box-shadow:0 6px 20px rgba(27,58,92,0.10); transform:translateY(-2px); }
    .product-card-img { aspect-ratio:1/1; background:#f1f5f9; display:flex; align-items:center; justify-content:center; overflow:hidden; padding:10px; }
    .product-card-img img { width:100%; height:100%; object-fit:contain; display:block; }
    .product-card-body { padding:12px; display:flex; flex-direction:column; flex:1; }
    .product-card-name { font-size:12px; font-weight:700; color:#1B3A5C; line-height:1.3; margin-bottom:6px; min-height:32px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    @media (min-width:768px) { .product-card-name { font-size:13px; } }
    .product-card-price { font-size:16px; font-weight:900; color:#e67e22; margin-bottom:8px; }
    .product-card-url { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:100%; color:#fff; background:#1B3A5C; font-size:12px; font-weight:700; text-decoration:none; margin-top:auto; padding:10px 8px; border-radius:8px; }
    .product-card-url:hover { background:#16314d; }

    /* ─ Assistant ─ */
    .assistant-v2 { max-width:1280px; margin:0 auto; padding:40px 16px; }
    .assistant-card { background:linear-gradient(135deg,#1B3A5C 0%,#243f63 100%); border-radius:16px; padding:24px 20px; color:#fff; display:grid; gap:16px; align-items:center; }
    @media (min-width:768px) { .assistant-card { grid-template-columns:auto 1fr auto; padding:32px; } }
    .assistant-icon { width:52px; height:52px; border-radius:14px; background:#27ae60; display:flex; align-items:center; justify-content:center; font-size:24px; }
    .assistant-content h2 { font-size:20px; font-weight:800; margin-bottom:6px; }
    .assistant-content p { font-size:13px; opacity:0.9; line-height:1.5; max-width:600px; }
    .assistant-actions { display:flex; flex-direction:column; gap:8px; }
    @media (min-width:768px) { .assistant-actions { flex-direction:row; } }
    .assistant-actions a { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:12px 18px; border-radius:10px; font-weight:700; font-size:13px; text-decoration:none; transition:all .2s; }
    .assistant-primary { background:#27ae60; color:#fff; }
    .assistant-primary:hover { background:#1e8449; }
    .assistant-secondary { background:rgba(255,255,255,0.12); color:#fff; border:1px solid rgba(255,255,255,0.25); }
    .assistant-secondary:hover { background:rgba(255,255,255,0.20); }

    /* ─ Trust ─ */
    .trust-v2 { max-width:1280px; margin:0 auto; padding:40px 16px; }
    .trust-v2 h2 { text-align:center; font-size:22px; font-weight:800; color:#1B3A5C; margin-bottom:24px; }
    .trust-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
    @media (min-width:768px) { .trust-grid { grid-template-columns:repeat(4,1fr); gap:16px; } }
    .trust-item { display:flex; flex-direction:column; align-items:center; text-align:center; padding:20px 12px; background:#f8fafc; border-radius:12px; border:1px solid #e5e7eb; }
    .trust-item i { font-size:28px; color:#1B3A5C; margin-bottom:10px; }
    .trust-item h3 { font-size:13px; font-weight:700; color:#1B3A5C; margin-bottom:4px; }
    .trust-item p { font-size:11px; color:#666; line-height:1.4; }

    /* ─ CTA final ─ */
    .cta-final { max-width:1280px; margin:0 auto; padding:40px 16px; text-align:center; }
    .cta-final h2 { font-size:22px; font-weight:800; color:#1B3A5C; margin-bottom:12px; }
    .cta-final p { font-size:14px; color:#666; margin-bottom:20px; max-width:500px; margin-left:auto; margin-right:auto; }
    .cta-final a { display:inline-flex; align-items:center; gap:8px; background:#1B3A5C; color:#fff; padding:14px 32px; border-radius:12px; font-weight:700; text-decoration:none; transition:all .2s; }
    .cta-final a:hover { background:#16314d; transform:translateY(-2px); }

/* ── Frete Estilo Mercado Livre ── */
.shipping-card { margin-top: 18px; padding: 16px; border: 1px solid #dbe3ea; background: #f8fafc; border-radius: 14px; }
.shipping-card h2 { font-size: .94rem; margin: 0 0 12px; color: #1e293b; }
.ml-shipping-benefit { margin-bottom: 14px; padding: 12px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; }
.ml-shipping-benefit__header { display: flex; align-items: center; gap: 10px; }
.ml-shipping-benefit__icon { font-size: 1.4rem; line-height: 1; }
.ml-shipping-benefit__title { font-size: .98rem; font-weight: 800; color: #15803d; }
.ml-shipping-benefit__badge { display: inline-block; margin-left: 6px; font-size: .65rem; font-weight: 800; text-transform: uppercase; color: #15803d; background: #dcfce7; padding: 2px 7px; border-radius: 999px; }
.ml-shipping-benefit__sub { margin: 4px 0 0; font-size: .76rem; color: #166534; line-height: 1.35; }
.shipping-cep__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shipping-cep__input { min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: .92rem; font-family: inherit; outline: none; transition: border-color .15s; }
.shipping-cep__input:focus { border-color: #2f63d6; }
.shipping-cep__btn { height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #1b3a5c; color: #fff; font-weight: 800; cursor: pointer; font-size: .88rem; transition: background .15s; }
.shipping-cep__btn:hover { background: #0f243a; }
.shipping-options { display: grid; gap: 8px; margin-top: 12px; }
.shipping-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.shipping-option:hover { border-color: #2f63d6; box-shadow: 0 2px 8px rgba(47,99,214,.08); }
.shipping-option--free { border-color: #86efac; background: #fafdfb; }
.shipping-option__left { display: flex; align-items: center; gap: 10px; }
.shipping-option__icon { font-size: 1.25rem; line-height: 1; }
.shipping-option__details { display: flex; flex-direction: column; gap: 2px; }
.shipping-option__title { font-size: .86rem; font-weight: 700; color: #1e293b; }
.shipping-option--free .shipping-option__title { color: #15803d; font-weight: 800; }
.shipping-option__deadline { font-size: .76rem; color: #475569; }
.shipping-option__deadline strong { color: #0f172a; }
.shipping-deadline-fast { color: #2563eb; font-weight: 800; }
.shipping-price-free { font-size: .92rem; font-weight: 800; color: #15803d; }
.shipping-price-value { font-size: .88rem; font-weight: 700; color: #1e293b; }
.shipping-state, .shipping-config-warning { font-size: .76rem; color: #64748b; margin-top: 8px; }
.shipping-state--error { color: #b42318; font-weight: 600; }
.shipping-support-link { display: inline-flex; margin-top: 8px; color: #1b3a5c; font-weight: 800; text-decoration: none; }
