/* =========================================================
   PRODUTOE — PÁGINA DE TESTE
   Visual exclusivo da página de detalhes do produto.
   O arquivo deve ser carregado depois de css.css.
   ========================================================= */
:root {
    --produto-amarelo: #ffd500;
    --produto-amarelo-hover: #e9c200;
    --produto-preto: #111111;
    --produto-cinza-900: #1d1d1f;
    --produto-cinza-700: #4c4c50;
    --produto-cinza-500: #74747a;
    --produto-cinza-300: #d9d9dd;
    --produto-cinza-200: #e8e8eb;
    --produto-cinza-100: #f3f3f5;
    --produto-fundo: #e7e7e7;
    --produto-branco: #ffffff;
    --produto-verde: #168544;
    --produto-vermelho: #b42318;
    --produto-raio-xl: 22px;
    --produto-raio-lg: 18px;
    --produto-raio-md: 13px;
    --produto-sombra: 0 10px 30px rgba(0, 0, 0, 0.08);
    --produto-sombra-hover: 0 24px 60px rgba(0, 0, 0, 0.14);
}

html {
    scroll-behavior: smooth;
}

body.produtoe-page {
    min-width: 280px;
    overflow-x: hidden;
    color: var(--produto-cinza-900);
    background: var(--produto-fundo);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.produtoe-page button,
body.produtoe-page input {
    font: inherit;
}

body.produtoe-page button:focus-visible,
body.produtoe-page a:focus-visible,
body.produtoe-page input:focus-visible {
    outline: 3px solid rgba(255, 209, 0, 0.5);
    outline-offset: 3px;
}

/* ---------- Estrutura principal ---------- */
.produtoe-main#central {
    min-height: 0;
    position: relative;
    padding: clamp(22px, 3vw, 44px) clamp(16px, 3vw, 46px) clamp(48px, 6vw, 76px);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 209, 0, 0.12), transparent 25%),
        var(--produto-fundo);
}

.produtoe-container {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.produto-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 14px;
    color: var(--produto-cinza-500);
    font-size: 0.9rem;
}

.produto-breadcrumb a {
    color: var(--produto-cinza-700);
    text-decoration: none;
    transition: color 180ms ease;
}

.produto-breadcrumb a:hover {
    color: var(--produto-preto);
}

.produto-breadcrumb span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--produto-preto);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.produto-card {
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(390px, 0.82fr);
    align-items: start;
    gap: clamp(22px, 3vw, 42px);
    padding: clamp(16px, 2vw, 28px);
    border: 1px solid rgba(0, 0, 0, 0.055);
    border-top: 6px solid var(--produto-amarelo);
    border-radius: var(--produto-raio-xl);
    background: var(--produto-branco);
    box-shadow: var(--produto-sombra);
}

/* ---------- Galeria ---------- */
.produto-galeria {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.miniaturas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.miniatura-btn {
    position: relative;
    width: 92px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--produto-branco);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.miniatura-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.miniatura-btn.is-active {
    border-color: var(--produto-amarelo);
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.2), 0 10px 24px rgba(0, 0, 0, 0.1);
}

.miniatura-btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 220ms ease, transform 240ms ease;
}

.miniatura-btn.is-loaded img,
.miniatura-btn.is-error img {
    opacity: 1;
}

.miniatura-btn:hover img {
    transform: scale(1.04);
}

.imagem-principal {
    position: relative;
    min-width: 0;
    min-height: 590px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(18px, 2vw, 32px);
    border: 1px solid rgba(0, 0, 0, 0.055);
    border-radius: 16px;
    background: var(--produto-cinza-100);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    isolation: isolate;
    touch-action: pan-y;
}

.imagem-principal::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 16%;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    filter: blur(24px);
    pointer-events: none;
}

#principal {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 540px;
    display: block;
    margin: 0;
    border-radius: 12px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 260ms ease, transform 320ms ease;
    cursor: zoom-in;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.imagem-principal.is-loaded #principal,
.imagem-principal.is-error #principal {
    opacity: 1;
    transform: scale(1);
}

#principal.is-changing {
    opacity: 0;
    transform: scale(0.975);
}

body.produtoe-page .produto-zoom-controles {
    display: none;
}

body.produtoe-page .imagem-principal:focus-visible {
    outline: 3px solid rgba(255, 209, 0, 0.72);
    outline-offset: 4px;
}

.produto-zoom-controles {
    position: absolute;
    z-index: 7;
    right: 12px;
    bottom: 12px;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
}

.produto-zoom-controles button {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: var(--produto-preto);
    background: var(--produto-cinza-100);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.produto-zoom-controles button:active {
    background: var(--produto-amarelo);
    transform: scale(0.96);
}

.produto-zoom-controles output {
    min-width: 48px;
    color: var(--produto-cinza-700);
    font-size: 0.76rem;
    font-weight: 850;
    text-align: center;
}

.produto-zoom-controles .produto-zoom-restaurar {
    font-size: 0.72rem;
}

.imagem-principal.is-touch-zoomed {
    touch-action: none;
}

.imagem-principal.is-touch-zoomed #principal {
    cursor: grab;
    transition: transform 120ms ease-out;
}

.imagem-principal.is-pinching #principal {
    cursor: grabbing;
    transition: none;
}

.imagem-principal.is-mouse-dragging #principal {
    cursor: grabbing;
    transition: none;
}

/* loaders independentes para cada imagem */
.image-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    pointer-events: none;
}

.is-loading>.image-loader {
    display: flex;
}

.image-loader::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 4px solid #e8e8e8;
    border-top-color: var(--produto-amarelo);
    border-right-color: var(--produto-amarelo);
    border-radius: 50%;
    animation: produto-spinner 760ms linear infinite;
}

.image-loader-small::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-width: 3px;
}

@keyframes produto-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Detalhes ---------- */
.detalhes-produto {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding: clamp(6px, 0.9vw, 12px) clamp(2px, 0.8vw, 10px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.produto-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.produto-tag {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--produto-amarelo);
    background: var(--produto-preto);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estoque-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 133, 68, 0.14);
}

.estoque-disponivel {
    color: var(--produto-verde);
    background: rgba(22, 133, 68, 0.07);
}

.estoque-indisponivel {
    color: var(--produto-vermelho);
    background: rgba(180, 35, 24, 0.06);
}

.estoque-indisponivel .status-dot {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.13);
}

body.produtoe-page .detalhes-produto h1 {
    margin: 0;
    color: var(--produto-preto);
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(1.65rem, 2.45vw, 2.55rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.preco-bloco {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 20px 22px;
    border: 0;
    border-radius: 16px;
    background: var(--produto-preto);
}

.preco-bloco::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -36px;
    width: 110px;
    height: 110px;
    border: 18px solid rgba(255, 213, 0, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.preco-label {
    display: block;
    margin-bottom: 3px;
    color: var(--produto-amarelo);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.produtoe-page .preco {
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--produto-branco);
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.parcelamento {
    margin: 6px 0 0;
    position: relative;
    z-index: 1;
    color: #c8c8c8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.info-entrega {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 18px 0 0;
    padding: 15px;
    border: 1px solid rgba(139, 115, 0, 0.2);
    border-radius: var(--produto-raio-md);
    color: inherit;
    background: #fff9d9;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.info-entrega:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 115, 0, 0.38);
    background: #fff6bd;
    box-shadow: 0 10px 24px rgba(95, 79, 0, 0.11);
}

.info-entrega:focus-visible {
    outline: 3px solid rgba(255, 209, 0, 0.48);
    outline-offset: 3px;
}

.info-entrega-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--produto-preto);
    background: var(--produto-amarelo);
}

.info-entrega-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.info-entrega-conteudo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}

.info-entrega strong {
    color: var(--produto-preto);
    font-size: 0.95rem;
}

.info-entrega small {
    color: var(--produto-cinza-700);
    font-size: 0.78rem;
    line-height: 1.4;
}

.info-entrega-acao {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f5d00;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.info-entrega-acao > span {
    font-size: 1.08rem;
    transition: transform 180ms ease;
}

.info-entrega:hover .info-entrega-acao > span {
    transform: translateX(3px);
}

.info-pagamento {
    margin-top: 10px;
    border-color: var(--produto-cinza-200);
    background: #fafafa;
}

.info-pagamento:hover {
    border-color: rgba(139, 115, 0, 0.3);
    background: #fffdf0;
}

.info-pagamento .info-pagamento-icon {
    color: var(--produto-amarelo);
    background: var(--produto-preto);
}

.info-pagamento .info-entrega-acao {
    color: #6f5d00;
}

.descricao-bloco {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--produto-cinza-200);
    border-radius: 14px;
    background: #fafafa;
}

.descricao-bloco h2 {
    margin: 0 0 9px;
    color: var(--produto-preto);
    font-size: 0.95rem;
    font-weight: 850;
}

.descricao-simples {
    max-height: 170px;
    overflow: auto;
    margin: 0;
    padding: 0 8px 0 0;
    color: var(--produto-cinza-700);
    font-size: 0.94rem;
    line-height: 1.68;
    white-space: normal;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: var(--produto-amarelo) transparent;
}

.descricao-simples strong {
    color: var(--produto-preto);
    font-weight: 850;
}

.descricao-simples::-webkit-scrollbar {
    width: 7px;
}

.descricao-simples::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--produto-amarelo);
}

.politica-devolucao-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1px solid var(--produto-cinza-200);
    border-radius: 12px;
    color: var(--produto-cinza-900);
    background: var(--produto-branco);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.politica-devolucao-link:hover {
    border-color: #d7b600;
    background: #fffdf2;
    transform: translateY(-1px);
}

.politica-devolucao-link__icone {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--produto-preto);
    background: var(--produto-amarelo);
    font-size: 1.1rem;
    font-weight: 900;
}

.politica-devolucao-link__texto {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.politica-devolucao-link__texto strong {
    color: var(--produto-preto);
    font-size: 0.9rem;
    font-weight: 850;
}

.politica-devolucao-link__texto small {
    color: var(--produto-cinza-700);
    font-size: 0.75rem;
    line-height: 1.35;
}

.politica-devolucao-link__seta {
    flex: 0 0 auto;
    color: #6f5d00;
    font-size: 1.08rem;
    font-weight: 850;
    transition: transform 180ms ease;
}

.politica-devolucao-link:hover .politica-devolucao-link__seta {
    transform: translateX(3px);
}

.compra-bloco {
    padding-top: 18px;
}

.estoque-destaque {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(22, 133, 68, 0.22);
    border-left: 5px solid var(--produto-verde);
    border-radius: 13px;
    color: var(--produto-verde);
    background: rgba(22, 133, 68, 0.06);
}

.estoque-destaque-icone {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--produto-branco);
    background: var(--produto-verde);
    font-size: 1rem;
    font-weight: 900;
}

.estoque-destaque-conteudo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.estoque-destaque-conteudo small {
    color: #4f6558;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.estoque-destaque-conteudo strong {
    color: #174b2c;
    font-size: 0.92rem;
    line-height: 1.25;
}

.estoque-destaque-conteudo b {
    margin-right: 3px;
    color: var(--produto-verde);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1.25rem;
}

.quantidade-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.quantidade-cabecalho label {
    color: var(--produto-preto);
    font-size: 0.92rem;
    font-weight: 850;
}

.dispon {
    color: var(--produto-cinza-700);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.quantidade-controle {
    width: 150px;
    height: 48px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    overflow: hidden;
    border: 1px solid var(--produto-cinza-300);
    border-radius: 12px;
    background: var(--produto-branco);
}

.qtd-btn {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--produto-preto);
    background: var(--produto-cinza-100);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.qtd-btn:hover:not(:disabled) {
    background: var(--produto-amarelo);
}

.qtd-btn:disabled {
    color: #a7a7aa;
    cursor: not-allowed;
}

#input-qtd {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--produto-preto);
    background: var(--produto-branco);
    font-weight: 800;
    text-align: center;
    appearance: textfield;
}

#input-qtd::-webkit-inner-spin-button,
#input-qtd::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.botao-comprar {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    color: var(--produto-preto);
    background: var(--produto-amarelo);
    box-shadow: 0 10px 24px rgba(255, 209, 0, 0.26);
    font-size: 0.97rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.botao-comprar:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--produto-amarelo-hover);
    box-shadow: 0 14px 30px rgba(255, 209, 0, 0.34);
}

.botao-comprar:active:not(:disabled) {
    transform: translateY(0);
}

.botao-comprar svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.botao-comprar.is-disabled,
.botao-comprar:disabled {
    color: #77777b;
    background: #d7d7da;
    box-shadow: none;
    cursor: not-allowed;
}

.produto-indisponivel-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(180, 35, 24, 0.14);
    border-radius: var(--produto-raio-md);
    color: var(--produto-vermelho);
    background: rgba(180, 35, 24, 0.06);
}

.produto-indisponivel-box span {
    color: var(--produto-cinza-700);
    font-size: 0.82rem;
    line-height: 1.45;
}

.compra-segura {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 14px 0 0;
    color: var(--produto-cinza-500);
    font-size: 0.74rem;
    line-height: 1.4;
    text-align: center;
}

.compra-segura svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: var(--produto-verde);
}

/* ---------- Modal de alerta ---------- */
.modal-alert[hidden] {
    display: none !important;
}

.modal-alert {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: grid;
    place-items: center;
    padding: 20px;
}

.produto-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(9px);
    cursor: default;
}

.modal-card {
    position: relative;
    z-index: 2;
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    color: var(--produto-cinza-900);
    background: var(--produto-branco);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    animation: modal-entrada 220ms ease both;
}

@keyframes modal-entrada {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--produto-cinza-700);
    background: var(--produto-cinza-100);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.modal-close:hover {
    transform: rotate(7deg) scale(1.05);
    color: var(--produto-preto);
    background: var(--produto-amarelo);
}

.modal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 17px;
    color: var(--produto-preto);
    background: var(--produto-amarelo);
    box-shadow: 0 10px 26px rgba(255, 209, 0, 0.28);
}

.modal-icon svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.modal-title {
    margin: 0 0 8px;
    color: var(--produto-preto);
    font-size: 1.32rem;
    font-weight: 900;
}

.modal-text {
    margin: 0;
    color: var(--produto-cinza-700);
    font-size: 0.94rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.modal-actions[hidden] {
    display: none;
}

.modal-ok,
.modal-actions button {
    min-width: 120px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 11px;
    color: var(--produto-preto);
    background: var(--produto-amarelo);
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.modal-ok:hover,
.modal-actions button:hover {
    transform: translateY(-1px);
    background: var(--produto-amarelo-hover);
}

body.produtoe-page .modal-actions .secondary {
    border: 1px solid var(--produto-cinza-200);
    color: var(--produto-cinza-700);
    background: var(--produto-cinza-100);
}

body.produtoe-page .modal-actions .secondary:hover {
    background: var(--produto-cinza-200);
}

body.modal-open-produto {
    overflow: hidden;
}

/* ---------- Modal de frete ---------- */
body.produtoe-page .produto-frete-modal .rodape-modal__content {
    width: min(720px, calc(100vw - 32px));
    max-height: min(820px, calc(100dvh - 40px));
    overflow: hidden;
    border-top: 5px solid var(--produto-amarelo);
}

body.produtoe-page .produto-frete-modal .rodape-modal__tag {
    color: #8b7300;
}

body.produtoe-page .produto-frete-modal h2 {
    max-width: 580px;
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

body.produtoe-page .produto-frete-modal__body {
    max-height: min(610px, calc(100dvh - 205px));
    padding-right: 10px;
}

.produto-frete-modal__introducao {
    margin: 0 0 18px !important;
    padding: 14px 16px;
    border-left: 5px solid var(--produto-amarelo);
    border-radius: 0 12px 12px 0;
    color: #373737 !important;
    background: #fff8cf;
    font-weight: 650;
}

.produto-frete-modal__opcoes {
    display: grid;
    gap: 10px;
}

.produto-frete-modal__opcoes section {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 13px;
    background: #fafafa;
}

.produto-frete-modal__numero {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--produto-amarelo);
    background: var(--produto-preto);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 850;
}

body.produtoe-page .produto-frete-modal__opcoes h3 {
    margin: 1px 0 5px;
    color: var(--produto-preto);
    font-size: 0.96rem;
    font-weight: 900;
}

body.produtoe-page .produto-frete-modal__opcoes p {
    margin: 0;
    color: #5d5d5d;
    font-size: 0.86rem;
    line-height: 1.58;
}

.produto-frete-modal__final {
    margin-top: 14px;
    padding: 17px 18px;
    border-radius: 14px;
    color: var(--produto-branco);
    background: var(--produto-preto);
}

.produto-frete-modal__final strong {
    display: block;
    margin-bottom: 5px;
    color: var(--produto-amarelo);
    font-size: 0.92rem;
}

body.produtoe-page .produto-frete-modal__final p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.86rem;
    line-height: 1.58;
}

/* ---------- Modal de formas de pagamento ---------- */
body.produtoe-page .produto-payment-modal .rodape-modal__content {
    width: min(650px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 40px));
    overflow: hidden;
    border-top: 5px solid var(--produto-amarelo);
}

body.produtoe-page .produto-payment-modal .rodape-modal__tag {
    color: #8b7300;
}

body.produtoe-page .produto-payment-modal h2 {
    max-width: 520px;
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

body.produtoe-page .produto-payment-modal__body {
    max-height: min(550px, calc(100dvh - 205px));
    padding-right: 10px;
}

.produto-payment-modal__introducao {
    margin: 0 0 18px !important;
    padding: 14px 16px;
    border-left: 5px solid var(--produto-amarelo);
    border-radius: 0 12px 12px 0;
    color: #373737 !important;
    background: #fff8cf;
    font-weight: 650;
}

.produto-payment-modal__opcoes {
    display: grid;
    gap: 10px;
}

.produto-payment-modal__opcoes section {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 13px;
    background: #fafafa;
}

.produto-payment-modal__icon {
    width: 48px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--produto-amarelo);
    background: var(--produto-preto);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.035em;
}

body.produtoe-page .produto-payment-modal__opcoes h3 {
    margin: 0 0 5px;
    color: var(--produto-preto);
    font-size: 0.96rem;
    font-weight: 900;
}

body.produtoe-page .produto-payment-modal__opcoes p {
    margin: 0;
    color: #5d5d5d;
    font-size: 0.86rem;
    line-height: 1.58;
}

.produto-payment-modal__final {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    color: var(--produto-branco);
    background: var(--produto-preto);
}

.produto-payment-modal__final strong {
    display: block;
    margin-bottom: 5px;
    color: var(--produto-amarelo);
    font-size: 0.92rem;
}

body.produtoe-page .produto-payment-modal__final p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.86rem;
    line-height: 1.58;
}

/* ---------- Responsividade ---------- */
@media (max-width: 1120px) {
    .produto-card {
        grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    }

    .produto-galeria {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .miniatura-btn {
        width: 78px;
    }

    .imagem-principal {
        min-height: 500px;
    }
}

@media (max-width: 900px) {
    .produto-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .imagem-principal {
        min-height: 520px;
    }

    .detalhes-produto {
        padding: 2px 4px 8px;
    }

    .descricao-simples {
        max-height: none;
    }

    body.produtoe-page .produto-zoom-controles {
        display: flex;
    }

    #principal {
        cursor: grab;
    }
}

@media (max-width: 680px) {
    .produtoe-main#central {
        padding: 18px 12px 44px;
    }

    .produto-breadcrumb {
        margin-bottom: 13px;
        font-size: 0.8rem;
    }

    .produto-card {
        padding: 13px;
        border-radius: 18px;
    }

    .produto-galeria {
        display: flex;
        flex-direction: column-reverse;
        gap: 11px;
    }

    .miniaturas {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        padding: 3px 2px;
    }

    .miniatura-btn {
        width: 68px;
    }

    .imagem-principal {
        min-height: 390px;
        padding: 14px;
        border-radius: 15px;
    }

    #principal {
        max-height: 365px;
    }

    .produto-status-row {
        margin-top: 4px;
        margin-bottom: 14px;
    }

    .detalhes-produto h1 {
        font-size: clamp(1.42rem, 7vw, 1.95rem);
    }

    .preco-bloco {
        padding: 20px clamp(18px, 5.5vw, 24px);
    }

    .preco-label {
        margin-bottom: 5px;
    }

    .parcelamento {
        margin-top: 10px;
    }

    .info-entrega {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .info-entrega-acao {
        width: calc(100% - 55px);
        margin-left: 55px;
    }

    .quantidade-cabecalho {
        align-items: flex-end;
    }

    body.produtoe-page .produto-frete-modal .rodape-modal__content {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
    }

    body.produtoe-page .produto-payment-modal .rodape-modal__content {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
    }

    body.produtoe-page .produto-frete-modal__body {
        max-height: calc(100dvh - 185px);
    }

    body.produtoe-page .produto-payment-modal__body {
        max-height: calc(100dvh - 185px);
    }

}

@media (max-width: 430px) {
    .produtoe-main#central {
        padding-inline: 8px;
    }

    .produto-card {
        padding: 9px;
        border-radius: 15px;
    }

    .imagem-principal {
        min-height: 330px;
    }

    #principal {
        max-height: 305px;
    }

    .produto-zoom-controles {
        right: 8px;
        bottom: 8px;
        gap: 4px;
        padding: 5px;
    }

    .produto-zoom-controles button {
        min-width: 44px;
        min-height: 44px;
        height: 44px;
        padding-inline: 8px;
    }

    .detalhes-produto {
        padding: 7px 5px 5px;
    }

    .produto-status-row {
        align-items: flex-start;
    }

    .estoque-status {
        font-size: 0.76rem;
    }

    .info-entrega-icon {
        width: 38px;
        height: 38px;
    }

    .info-entrega-acao {
        width: calc(100% - 51px);
        margin-left: 51px;
    }

    .estoque-destaque {
        padding: 12px;
    }

    .produto-frete-modal__opcoes section {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .produto-frete-modal__numero {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .produto-frete-modal__introducao,
    .produto-frete-modal__final {
        padding: 13px;
    }

    .produto-payment-modal__opcoes section {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .produto-payment-modal__icon {
        width: 42px;
        height: 38px;
        border-radius: 9px;
        font-size: 0.58rem;
    }

    .produto-payment-modal__introducao,
    .produto-payment-modal__final {
        padding: 13px;
    }

    .quantidade-cabecalho {
        gap: 8px;
    }

    .dispon {
        max-width: 150px;
    }

    .quantidade-controle {
        width: 140px;
    }

    .modal-card {
        padding: 25px 20px 20px;
    }

    .modal-actions {
        justify-content: stretch;
    }

    .modal-ok,
    .modal-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   CORREÇÃO DE CONFLITOS COM O CSS.CSS ANTIGO
   Mantém a página produtoe isolada dos estilos globais.
   ========================================================= */

body.produtoe-page #central.produtoe-main {
    width: 100%;
    height: auto !important;
    min-height: 0;
    position: relative;
    overflow: visible;
}

/*
  O css.css possui .produto-card com height: 160px.
  Aqui removemos essa altura fixa.
*/
body.produtoe-page .produto-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    align-items: start;
    overflow: visible;
    box-sizing: border-box;
}

/* Faz as duas colunas participarem normalmente da altura do card */
body.produtoe-page .produto-galeria,
body.produtoe-page .detalhes-produto {
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
}

/*
  Remove o height: 539px herdado do css.css.
  O tamanho continuará sendo controlado pelo min-height
  definido no produtoe.css.
*/
body.produtoe-page .imagem-principal {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 590px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(18px, 2vw, 32px);
    margin: 0;
    border-radius: var(--produto-raio-lg);
    background: var(--produto-cinza-100);
    isolation: isolate;
    touch-action: pan-y;
    box-sizing: border-box;
}

@media (max-width: 1120px) {
    body.produtoe-page .imagem-principal {
        min-height: 500px;
    }
}

@media (max-width: 900px) {
    body.produtoe-page .imagem-principal {
        min-height: 520px;
    }
}

/* Mantem a experiencia de pinca tambem em tablets touch mais largos. */
@media (hover: none) and (pointer: coarse) {
    body.produtoe-page .produto-zoom-controles {
        display: flex;
    }

    body.produtoe-page #principal {
        cursor: grab;
    }
}

@media (max-width: 680px) {
    body.produtoe-page .imagem-principal {
        min-height: 390px;
        padding: 14px;
        border-radius: 15px;
    }
}

@media (max-width: 430px) {
    body.produtoe-page .imagem-principal {
        min-height: 330px;
    }
}

/* Remove margens e alturas antigas das miniaturas */
body.produtoe-page .miniaturas {
    width: 100%;
    height: auto !important;
    margin: 0;
    box-sizing: border-box;
}

/* Neutraliza as alturas fixas das miniaturas no css.css antigo. */
body.produtoe-page .miniatura-btn {
    height: auto !important;
    min-height: 0;
    box-sizing: border-box;
}

/* Remove borda, margem e arredondamento herdados da imagem antiga */
body.produtoe-page .miniatura-btn img {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* Garante que a imagem principal não herde medidas antigas */
body.produtoe-page #principal {
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0;
    border: 0;
}

/* O rodapé deve aparecer somente depois de todo o conteúdo */
body.produtoe-page #rodape {
    position: relative;
    z-index: 1;
    clear: both;
}

/* =========================================================
   APROXIMAR O CONTEÚDO DO CABEÇALHO
   ========================================================= */

body.produtoe-page #central.produtoe-main {
    padding-top: clamp(18px, 2vw, 32px);
}

body.produtoe-page .produto-breadcrumb {
    margin-bottom: 12px;
}

/* =========================================================
   CORREÇÃO DE POSICIONAMENTO DO MODAL
   ========================================================= */

body.produtoe-page .modal-alert {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
}

/*
  Centraliza o card mesmo que algum JS antigo altere
  o modal para display:block.
*/
body.produtoe-page .modal-alert .modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;

    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);

    margin: 0;
    overflow-y: auto;
}

/* O fundo deve sempre cobrir a tela inteira */
body.produtoe-page .produto-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

/* Garante que modal oculto não bloqueie nenhum clique */
body.produtoe-page .modal-alert[hidden],
body.produtoe-page .modal-alert.is-closed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================================
   FAIXA RESPONSIVA DE MINIATURAS
   ========================================================= */

body.produtoe-page .produto-galeria {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
}

body.produtoe-page .miniaturas-faixa {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
}

body.produtoe-page .miniaturas-faixa.tem-carrossel {
    max-width: 610px;
}

body.produtoe-page .miniaturas {
    --miniaturas-gap: 10px;
    --miniatura-coluna: 92px;
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--miniatura-coluna);
    justify-content: center;
    gap: var(--miniaturas-gap);
    max-height: none;
    overflow: hidden;
    padding: 4px;
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="1"] {
    --miniatura-coluna: min(92px, 100%);
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="2"] {
    --miniatura-coluna: min(92px, calc((100% - 10px) / 2));
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="3"] {
    --miniatura-coluna: min(92px, calc((100% - 20px) / 3));
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="4"] {
    --miniatura-coluna: min(92px, calc((100% - 30px) / 4));
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="5"] {
    --miniatura-coluna: min(92px, calc((100% - 40px) / 5));
}

body.produtoe-page .miniaturas[data-miniaturas-visiveis="6"] {
    --miniatura-coluna: min(92px, calc((100% - 50px) / 6));
}

body.produtoe-page .tem-carrossel .miniaturas {
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

body.produtoe-page .tem-carrossel .miniaturas::-webkit-scrollbar {
    display: none;
}

body.produtoe-page .miniaturas .miniatura-btn {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

body.produtoe-page .miniaturas-controle {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    background: rgba(17, 17, 17, 0.82);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.produtoe-page .miniaturas-controle span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

body.produtoe-page .miniaturas-controle--anterior span {
    transform: translate(0.5px, 3.5px);
}

body.produtoe-page .miniaturas-controle--proximo span {
    transform: translate(-0.5px, 3.5px);
}

body.produtoe-page .miniaturas-controle span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    box-sizing: border-box;
}

body.produtoe-page .miniaturas-controle--anterior span::before {
    transform: rotate(45deg);
}

body.produtoe-page .miniaturas-controle--proximo span::before {
    transform: rotate(225deg);
}

body.produtoe-page .miniaturas-controle--anterior {
    left: 3px;
}

body.produtoe-page .miniaturas-controle--proximo {
    right: 3px;
}

body.produtoe-page .miniaturas-controle:hover:not(:disabled) {
    background: rgba(17, 17, 17, 0.96);
    transform: translateY(-50%) scale(1.06);
}

body.produtoe-page .miniaturas-controle:focus-visible {
    outline: 3px solid var(--produto-amarelo);
    outline-offset: 2px;
}

body.produtoe-page .miniaturas-controle:disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 680px) {
    body.produtoe-page .produto-galeria {
        gap: 10px;
    }

    body.produtoe-page .miniaturas-faixa.tem-carrossel {
        max-width: none;
    }

    body.produtoe-page .miniaturas {
        --miniaturas-gap: 8px;
        padding: 4px 2px 7px;
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="1"] {
        --miniatura-coluna: min(68px, 100%);
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="2"] {
        --miniatura-coluna: min(68px, calc((100% - 8px) / 2));
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="3"] {
        --miniatura-coluna: min(68px, calc((100% - 16px) / 3));
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="4"] {
        --miniatura-coluna: min(68px, calc((100% - 24px) / 4));
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="5"] {
        --miniatura-coluna: min(68px, calc((100% - 32px) / 5));
    }

    body.produtoe-page .miniaturas[data-miniaturas-visiveis="6"] {
        --miniatura-coluna: min(68px, calc((100% - 40px) / 6));
    }

    body.produtoe-page .miniaturas-controle {
        width: 24px;
        height: 24px;
    }

    body.produtoe-page .miniaturas-controle span::before {
        width: 6px;
        height: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.produtoe-page .tem-carrossel .miniaturas {
        scroll-behavior: auto;
    }
}
