/* Existing detail, brand selector and quantity rules. Modern overrides load after this file. */
.product-references {padding:8px;margin-bottom:12px;border-bottom:1px solid #373b3e;min-width:0;max-width:100%;color:#fff;user-select:text;-webkit-user-select:text;}
.product-references-title {display:block;margin-bottom:6px;font-size:.95rem;}
.product-reference-group + .product-reference-group {margin-top:7px;}
.product-reference-heading {display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:4px 8px;margin-bottom:3px;}
.product-reference-label {font-size:.8rem;color:#bec8d1;}
.product-reference-list {display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none;}
.product-reference-list li {border:1px solid #56616a;border-radius:5px;background:#30383e;padding:3px 7px;font-size:.85rem;overflow-wrap:anywhere;max-width:100%;color:#f1f3f5;}
.product-reference-oem .product-reference-list li {background:#263b4a;border-color:#45647b;}
.product-reference-code {font-weight:600;}
.product-reference-brand {color:#c4cdd5;}
.product-references-toggle {display:block;font-size:.8rem;color:#91c5ed;cursor:pointer;margin:0;padding:0;border:0;background:transparent;text-align:right;flex-shrink:0;}
.product-references-toggle::before {content:"·";color:#bec8d1;margin-right:8px;}
.product-reference-list li[hidden],.product-references-toggle[hidden] {display:none;}

.produto-visitante-acoes{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;}
.produto-visitante-acoes > a{flex:1 1 200px;}
.produto-visitante-carrito{flex:0 0 54px;min-width:0;}
.produto-visitante-carrito form,.produto-visitante-carrito button{width:100%;}
.produto-visitante-carrito form{height:100%;}
.produto-visitante-acoes > a,.produto-visitante-carrito button{min-height:56px;display:flex;align-items:center;justify-content:center;gap:6px;}

.produto-precos{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:6px;
    font-variant-numeric:tabular-nums;
}
.produto-preco{
    flex:1 1 145px;
    min-width:0;
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:6px;
    background:rgba(255,255,255,.04);
}
.produto-preco span{display:block;font-size:.85rem;margin-bottom:3px;}
.produto-preco strong{display:block;font-size:1.3rem;line-height:1.2;overflow-wrap:anywhere;}
.produto-preco-normal{color:#ced4da;}
.produto-preco-credito{color:#ffb454;}
.produto-preco-contado{color:#61df80;}
.produto-normal-acoes{display:flex;align-items:stretch;gap:8px;flex:1 1 207px;min-width:0;}
.produto-preco-carrito{display:flex;flex:0 0 54px;}
.produto-preco-carrito form{flex:1;}
.produto-preco-carrito button{width:100%;min-height:48px;}
.produto-visitante-carrito .carrito-botao-linhas,
.produto-preco-carrito .carrito-botao-linhas{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;}
.produto-visitante-carrito .carrito-botao-legenda,
.produto-preco-carrito .carrito-botao-legenda{font-size:11px;line-height:1.1;}

.produto-precos-internos{display:flex;flex-direction:column;gap:8px;margin-top:6px;font-variant-numeric:tabular-nums;}
.produto-precos-grupo{display:flex;align-items:stretch;gap:8px;min-width:0;}
.produto-precos-grupo .produto-preco{flex:1 1 0;padding:8px;}
.produto-precos-grupo .produto-preco-carrito,.produto-presupuesto-acao{flex:0 0 76px;min-width:0;}
.produto-presupuesto-acao{display:flex;flex-direction:column;}
.produto-presupuesto-acao button{flex:1;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;}
.produto-presupuesto-acao button span{font-size:10px;line-height:1.1;}
.produto-presupuesto-acao [data-presupuesto-message]{overflow-wrap:anywhere;}

.aviso-importante {
    background-color: #ff4d4d; /* vermelho chamativo */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
    cursor: default;
}

.imagem-principal-box{
    border:1px solid #e5e5e5;
    border-radius:14px;
    background:#ffffff;
    padding:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.imagem-principal-frame{
    position:relative;
    width:100%;
    aspect-ratio:1 / 1;
    background:#ffffff;
    border-radius:10px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.imagem-galeria-toggle{
    position:absolute;
    top:8px;
    right:8px;
    z-index:2;
    max-width:calc(100% - 16px);
}

.imagem-principal-frame::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(240,240,240,0.85) 0%,
        rgba(255,255,255,0.95) 50%,
        rgba(240,240,240,0.85) 100%
    );
    background-size:200% 100%;
    animation:imagemSkeleton 1.25s infinite linear;
    opacity:1;
    transition:opacity .25s ease;
}

.imagem-principal-frame.image-error::before{
    animation:none;
}

.imagem-principal-frame.loaded::before{
    opacity:0;
    pointer-events:none;
}

#imagem_principal_produto{
    position:relative;
    z-index:1;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    opacity:1;
    transition:opacity .25s ease;
    cursor:zoom-in;
}

.imagem-principal-frame.loaded #imagem_principal_produto{
    opacity:1;
}

#imagem_principal_produto.trocando{
    opacity:.25 !important;
}

@keyframes imagemSkeleton{
    0%{
        background-position:200% 0;
    }
    100%{
        background-position:-200% 0;
    }
}


/* ============================= */
/* CAIXA DA GALERIA */
/* ============================= */

.galeria-box{
    margin-top:18px;
    padding:12px;
    background:#f8f9fa;
    border:1px solid #e3e3e3;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
}


/* ============================= */
/* TITULO DA GALERIA */
/* ============================= */

.galeria-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.galeria-titulo{
    font-size:14px;
    font-weight:600;
    color:#444;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.galeria-contador{
    font-size:13px;
    font-weight:600;
    color:#0d6efd;
    background:#eaf2ff;
    padding:4px 10px;
    border-radius:20px;
}


/* ============================= */
/* CONTAINER DAS SETAS + GALERIA */
/* ============================= */

.galeria-container{
    display:flex;
    align-items:center;
    gap:8px;
}


/* ============================= */
/* FAIXA DAS MINIATURAS */
/* ============================= */

.galeria-thumbs{
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px;
    scroll-behavior:smooth;
}

/* esconde scrollbar */
.galeria-thumbs::-webkit-scrollbar{
    display:none;
}

.galeria-thumbs{
    -ms-overflow-style:none;
    scrollbar-width:none;
}


/* ============================= */
/* LINK DA MINIATURA */
/* ============================= */

.galeria-thumb-link{
    text-decoration:none;
    flex:0 0 auto;
}


/* ============================= */
/* MINIATURA */
/* ============================= */

.galeria-thumb{
    width:84px;
    height:84px;
    object-fit:contain;
    background:#ffffff;
    border:2px solid #ddd;
    border-radius:10px;
    padding:4px;
    box-shadow:0 1px 4px rgba(0,0,0,0.08);
    transition:all .18s ease;
    cursor:pointer;
    display:block;
}


/* ============================= */
/* HOVER MINIATURA */
/* ============================= */

@media (hover: hover) and (pointer: fine){
    .galeria-thumb:hover{
        border-color:#0d6efd;
        transform:translateY(-2px);
        box-shadow:0 4px 10px rgba(0,0,0,0.12);
    }
}

.galeria-thumb-link{
    text-decoration:none;
    flex:0 0 auto;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.galeria-thumb-link:focus,
.galeria-thumb-link:active,
.galeria-thumb-link:focus-visible{
    outline:none;
    box-shadow:none;
}


/* ============================= */
/* MINIATURA ATIVA */
/* ============================= */

.galeria-thumb.active{
    border-color:#0d6efd;
    box-shadow:0 0 0 3px rgba(13,110,253,0.15);
}


/* ============================= */
/* BOTÕES DE SETA */
/* ============================= */

.galeria-seta{
    border:none;
    background:#ffffff;
    border-radius:50%;
    width:36px;
    height:36px;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    transition:all .2s;
    display:flex;
    align-items:center;
    justify-content:center;
}


/* ============================= */
/* HOVER SETA */
/* ============================= */

.galeria-seta:hover{
    background:#0d6efd;
    color:#ffffff;
}

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lightbox.open{
    display:flex;
}

.lightbox-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.82);
    backdrop-filter: blur(2px);
}

.lightbox-content{
    position:relative;
    z-index:2;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 70px;
    box-sizing:border-box;
    pointer-events:none;
}

.lightbox-content img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
    background:#fff;
    pointer-events:auto;
}

.lightbox-close{
    position:absolute;
    top:18px;
    right:18px;
    z-index:3;
    border:none;
    background:#0d6efd;
    color:#fff;
    width:46px;
    height:46px;
    border-radius:50%;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .18s ease;
    box-shadow:0 4px 12px rgba(0,0,0,0.35);
}

.lightbox-close:hover{
    background:#0b5ed7;
}

.lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:3;
    border:none;
    background:#0d6efd;
    color:#fff;
    width:50px;
    height:50px;
    border-radius:50%;
    font-size:28px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .18s ease;
    box-shadow:0 4px 12px rgba(0,0,0,0.35);
}

.lightbox-nav:hover{
    background:#0b5ed7;
}

.lightbox-prev{
    left:18px;
}

.lightbox-next{
    right:18px;
}

.lightbox-content img.lightbox-fade{
    animation:lightboxFade .18s ease;
}

@keyframes lightboxFade{
    from{
        opacity:.45;
        transform:scale(.985);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@media (max-width: 768px){
    .lightbox-content{
        padding:20px 16px 26px 16px;
    }

    .lightbox-nav{
        width:42px;
        height:42px;
        font-size:24px;
    }

    .lightbox-prev{
        left:10px;
    }

    .lightbox-next{
        right:10px;
    }

    .lightbox-close{
        top:10px;
        right:10px;
        width:42px;
        height:42px;
        font-size:28px;
    }
}

#imagem_principal_produto{
    transition: opacity .22s ease;
}

#imagem_principal_produto.trocando{
    opacity: .25;
}

.lightbox-counter{
    position:absolute;
    top:18px;
    left:18px;
    z-index:3;
    background:rgba(13,110,253,0.92);
    color:#fff;
    padding:8px 12px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

@media (max-width: 768px){
    .lightbox-counter{
        top:10px;
        left:10px;
        font-size:13px;
        padding:7px 11px;
    }
}

.form-select.producto-marca-select {
    color: #f8f9fa;
    background-color: #32383e;
    border-color: #626970;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8f9fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select.producto-marca-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .25);
}
.producto-marca-select option { background-color: #32383e; color: #f8f9fa; }

.quantity-preview {margin-top:12px;border:1px solid #476279;border-radius:8px;overflow:hidden;background:#252c32;color:#eef2f5;}
.quantity-preview-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:10px 12px;background:#303e4a;}
.quantity-preview-heading h4 {font-size:1rem;margin:0;}
.quantity-preview-demo {font-size:.7rem;padding:2px 6px;border:1px solid #d7ac59;border-radius:4px;color:#ffe0a3;}
.quantity-preview-intro {font-size:.8rem;margin:0;padding:8px 12px;}
.quantity-preview table {width:100%;border-collapse:collapse;font-size:.85rem;}
.quantity-preview th,.quantity-preview td {padding:9px 10px;border-bottom:1px solid #43515c;text-align:right;white-space:nowrap;}
.quantity-preview th:first-child,.quantity-preview td:first-child {text-align:left;}
.quantity-preview th {font-size:.78rem;background:#20272d;}
.quantity-preview th small {display:block;font-weight:400;font-size:.7rem;opacity:.72;}
.quantity-preview-desktop thead th {padding-top:5px;padding-bottom:3px;line-height:1.2;}
.quantity-preview-desktop thead th:not(:first-child) {text-align:center;}
.quantity-preview-desktop tbody td {text-align:center;}
.quantity-preview-desktop .quantity-preview-normal {justify-content:center;}
.quantity-preview .quantity-preview-cash {color:#75d5a3;}
.quantity-preview .quantity-preview-credit {color:#ffb454;}
.quantity-preview .quantity-preview-neutral {background:#252f39;}
.quantity-preview .quantity-preview-alternate {background:#303b46;}
.quantity-preview .quantity-preview-best {background:#23443f;border-color:#4c8275;}
.quantity-preview-best-label {display:inline-block;border:1px solid #e4ba55;border-radius:4px;background:#f4ce73;color:#3b2c0e;font-size:.64rem;font-weight:600;padding:2px 5px;line-height:1.3;white-space:normal;}
.quantity-preview-desktop .quantity-preview-cash {position:relative;}
.quantity-preview-desktop .quantity-preview-best-label {position:absolute;right:8px;bottom:0;transform:translateY(50%);margin:0;white-space:nowrap;z-index:1;box-shadow:0 2px 4px #0003;}
.quantity-preview-desktop {padding-bottom:12px;}
.quantity-preview-desktop .quantity-preview-best > th,.quantity-preview-desktop .quantity-preview-best > td {padding-bottom:13px;}
.quantity-preview-mobile .quantity-preview-best-label {position:absolute;right:8px;top:0;transform:translateY(-50%);margin:0;max-width:calc(100% - 16px);box-shadow:0 2px 4px #0003;}
.quantity-preview-normal {display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:3px;}
.quantity-preview-saving {display:inline-block;padding:1px 3px;border-radius:3px;background:#304c3e;color:#a0e3bb;font-size:.6rem;font-weight:500;white-space:nowrap;}
.quantity-preview-credit .quantity-preview-saving {background:#483a2c;color:#ffcc92;}
.quantity-preview-note {font-size:.75rem;padding:8px 12px;margin:0;color:#c8d2dc;}
.quantity-preview-info {margin:8px;border:1px solid #425f76;border-radius:6px;background:#293e4f;color:#d9eaf6;}
.quantity-preview-mobile {display:none;}
@media(max-width:767.98px){
 .quantity-preview-desktop {display:none;}
 .quantity-preview-mobile {display:grid;gap:8px;padding:0 8px 4px;}
 .quantity-preview-tier {position:relative;border:1px solid #435b6c;border-radius:6px;padding:6px 8px;background:#20282f;min-width:0;}
 .quantity-preview-tier.quantity-preview-best {margin-top:7px;padding-top:10px;}
 .quantity-preview-tier-heading {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 8px;margin-bottom:3px;}
 .quantity-preview-tier-heading h5 {font-size:.9rem;font-weight:700;margin:0;}
 .quantity-preview-tier-heading small {font-size:.7rem;color:#9baab7;}
 .quantity-preview-tier dl {margin:0;}
 .quantity-preview-tier-price {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:0 8px;padding:1px 0;font-size:.85rem;line-height:1.25;}
 .quantity-preview-tier-price dt {font-weight:500;}
 .quantity-preview-tier-price dd {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;margin:0;min-width:0;}
 .quantity-preview-tier-price strong {white-space:nowrap;}
}
@media(max-width:575.98px){
 .quantity-preview th,.quantity-preview td {padding:8px 5px;font-size:.76rem;}
 .quantity-preview-heading,.quantity-preview-intro,.quantity-preview-note {padding-left:8px;padding-right:8px;}
}
