/* ==========================================================================
   Base de Design • Tokens & Resets
   ========================================================================== */

:root {
    /* Cores */
    --c-bg-app: #101e2b;
    --c-bg-page: #292929;
    --c-brand: #f1cd1c;
    --c-brand-contrast: #101e2b;
    --c-text: #e5e5e5;
    --c-text-weak: #cfd3d8;
    --c-white: #fff;
    --c-black: #000;

    /* Shadows */
    --shadow-md: 0 8px 18px rgba(0, 0, 0, .30);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);

    /* Tipografia */
    --ff: 'Overpass', sans-serif;
    --fs-11: 11px;
    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-15: 15px;
    --fs-16: 16px;
    --fs-17: 17px;
    --fs-18: 18px;
    --fs-19: 19px;
    --fs-20: 20px;
    --fs-24: 24px;
    --fs-28: 28px;
    --fs-30: 30px;
    --fs-32: 32px;
    --fs-34: 34px;
    --fs-36: 36px;
    --fs-38: 38px;
    --fs-40: 40px;
    --fs-42: 42px;
    --fs-55: 55px;

    /* Dimensões comuns */
    --radius-3: 3px;
    --radius-8: 8px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-18: 18px;
    --space-20: 20px;
    --space-25: 25px;
    --space-30: 30px;
    --space-40: 40px;
    --space-70: 70px;

    /* Alturas chave */
    --h-hero: 355px;
    --h-hero-xl: 420px;
    --h-borex-banner: 470px;
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Reset básico e base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--c-bg-page);
    color: var(--c-text);
    font-family: var(--ff);
    line-height: 1.4;
}

/* ==========================================================================
   Banner Esteira (carrossel “esteira” de imagens)
   ========================================================================== */

#banner-esteira {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(0.25turn, var(--c-brand), var(--c-bg-app)) 1;
}

#banner-esteira img {
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   PDD (Produto do Dia) • Hero e Carrossel
   ========================================================================== */

/* Base do banner */
.pdd-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 330px;
    max-height: var(--h-hero);
    overflow: hidden;
    background: var(--c-black);
}

/* Fundo */
.pdd-bg,
.pdd-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pdd-bg img {
    object-fit: cover;
    z-index: 1;
}

/* Coluna esquerda (imagem grande/mascote) */
.pdd-left {
    flex: 0 0 42%;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    margin-right: var(--space-20);
    overflow: hidden;
}

.pdd-left img {
    display: block;
    width: 100%;
    height: 85%;
    object-fit: contain;
    object-position: left bottom;
}

/* Coluna direita (viewport do carrossel) */
.pdd-right {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 0 var(--space-6) 0 var(--space-12);
    overflow: hidden;
}

/* Trilho do carrossel */
.pdd-track {
    display: flex;
    height: 100%;
    backface-visibility: hidden;
    will-change: transform;
    transform: translate3d(0,0,0);
    transition: transform 600ms ease;
}

/* Slide (info + produto) */
.pdd-slide {
    flex: 0 0 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 44%);
    grid-auto-rows: auto;
    align-items: start;
    align-content: end;
    column-gap: var(--space-10);
    min-width: 0;
    overflow: hidden;
    contain: layout paint;
}

/* Bloco de informações (avisos, badge, termos) */
.pdd-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
    margin: 0;
    padding: 0;
    text-align: center;
    justify-self: center;
}

.promo-warning {
    display: block;
    width: 150px;
    margin: 0 auto var(--space-40);
    color: var(--c-text-weak);
    text-align: center;
    white-space: nowrap;
    font-style: italic;
    font-weight: 600;
    font-size: var(--fs-12);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Badge de desconto */
.discount-badge {
    width: 150px;
    height: 75px;
    gap: var(--space-6);
    padding: 0 var(--space-16);
    margin: 0 auto var(--space-30);
    background: #ffcc00;
    color: var(--c-black);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
}

.discount-value {
    font-weight: 800;
    font-style: italic;
    font-size: var(--fs-55);
    line-height: 1;
}

.discount-symbol {
    font-weight: 800;
    font-style: italic;
    font-size: var(--fs-18);
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    transform: translateY(3px);
}

/* Termos */
.promo-terms {
    max-width: 360px;
    margin: 0;
    color: #e9eef3;
    font-weight: 500;
    font-size: var(--fs-12);
    line-height: 1.4;
    text-shadow: var(--shadow-sm);
    text-align: center;
    white-space: nowrap;
}

.promo-terms p {
    text-align: justify;
}

.promo-terms b {
    color: var(--c-white);
    font-weight: 800;
}

/* Produto (título + imagem) */
.pdd-product {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: var(--space-10);
    align-content: end;
    justify-items: stretch;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.pdd-title {
    margin: 0;
    color: var(--c-white);
    font-family: var(--ff);
    font-style: italic;
    font-weight: 400;
    font-size: var(--fs-20);
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

.pdd-product img,
.pdd-slide img {
    display: block;
    align-self: end;
    justify-self: end;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Dots do carrossel */
.pdd-dots {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-8);
    z-index: 5;
}

.pdd-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}

.pdd-dot:hover {
    background: rgba(255, 255, 255, .7);
    transform: scale(1.2);
}

.pdd-dot.active {
    background: var(--c-brand);
    transform: scale(1.2);
}

/* Esconde dots se houver apenas 1 item */
.pdd-dots:has(.pdd-dot:nth-child(1):last-child) {
    display: none;
}

/* ==========================================================================
   “Sobre a Borex” (vídeo + conteúdo)
   ========================================================================== */

.banner-a-borex {
    position: relative;
    width: 100%;
    height: var(--h-borex-banner);
    overflow: hidden;
}

.banner-a-borex video {
    position: absolute;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-a-borex .content {
    position: relative;
    z-index: 1;
    height: var(--h-borex-banner);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    background: linear-gradient(129deg, var(--c-bg-app) 25%, transparent);
}

.banner-a-borex .content h1,
.banner-a-borex .content p {
    color: var(--c-text);
    margin-left: var(--space-20);
}

.banner-a-borex .content p {
    font-size: var(--fs-20);
}

.banner-a-borex .content a {
    display: inline-block;
    width: 110px;
    height: 40px;
    padding: 10px;
    margin-left: var(--space-20);
    text-align: center;
    font-size: var(--fs-17);
    font-weight: bold;
    color: var(--c-bg-app);
    background-color: var(--c-brand);
    border-radius: var(--radius-3);
}

/* ==========================================================================
   Produtos Borex (bandas/insumos)
   ========================================================================== */

.produtos-borex {
    background-color: var(--c-bg-app);
    height: 700px;
    background-image: linear-gradient(0deg, rgba(227,197,49,0.4291) 0%, var(--c-bg-app) 5%);
}

.produtos-borex .produtos-borex-header {
    padding: var(--space-25);
}

.produtos-borex .produtos-borex-header img {
    margin: 15px 0 0 25px;
    height: 130px;
    width: 180px;
}

.produtos-borex .produtos {
    display: flex;
    justify-content: space-evenly;
}

.produtos-borex .produtos h1 {
    color: var(--c-text);
    font-style: italic;
    font-size: var(--fs-30);
    text-align: center;
}

.produtos-borex .produtos .bandas,
.produtos-borex .produtos .insumos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.produtos-borex .produtos .bandas .content,
.produtos-borex .produtos .insumos .content {
    width: 410px;
    margin-bottom: var(--space-40);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-width: 4px;
    border-style: solid;
    border-image: linear-gradient(to top, var(--c-brand), rgba(0,0,0,0)) 1;
}

.produtos-borex .produtos .bandas .content p,
.produtos-borex .produtos .insumos .content p {
    color: var(--c-text);
    font-size: var(--fs-15);
    text-align: center;
}

.produtos-borex .produtos .bandas .content img {
    width: 400px;
}

.produtos-borex .produtos .insumos .content img {
    width: 402px;
    height: 132px;
}

.produtos-borex .produtos .bandas a,
.produtos-borex .produtos .insumos a {
    display: inline-block;
    padding: 10px;
    font-size: var(--fs-17);
    font-weight: bold;
    color: var(--c-bg-app);
    background-color: var(--c-brand);
    border-radius: var(--radius-3);
    text-align: center;
}

/* ==========================================================================
   Novidades Borex (YouTube/Instagram)
   ========================================================================== */

.novidades-borex {
    background-color: var(--c-bg-app);
    height: 700px;
    background-image: linear-gradient(180deg, rgba(227,197,49,0.4291) 0%, var(--c-bg-app) 5%);
}

.novidades-borex .novidades-borex-header {
    padding: var(--space-25);
}

.novidades-borex .novidades-borex-header img {
    margin: 30px 0 0 25px;
    height: 130px;
    width: 180px;
}

.novidades-borex .conteudo p {
    color: var(--c-text);
    font-size: var(--fs-20);
    text-align: center;
}

.novidades-borex .conteudo .redes-sociais {
    margin-top: var(--space-70);
    display: flex;
    justify-content: space-evenly;
}

.novidades-borex .conteudo .redes-sociais .youtube,
.novidades-borex .conteudo .redes-sociais .instagram {
    width: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.novidades-borex .conteudo .redes-sociais iframe {
    width: 410px;
    border: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--c-brand), rgba(0,0,0,0)) 1;
}

.novidades-borex .conteudo .redes-sociais .youtube h1,
.novidades-borex .conteudo .redes-sociais .instagram h1 {
    color: var(--c-text);
    font-style: italic;
    font-size: var(--fs-30);
}

/* ==========================================================================
   Contato (informações + formulário)
   ========================================================================== */

.contato {
    background-color: var(--c-bg-app);
    height: 550px;
    color: var(--c-text);
    display: flex;
    justify-content: space-evenly;
    background-image: linear-gradient(0deg, rgba(227,197,49,0.7232) -3%, var(--c-bg-app) 36%);
}

.contato .informacoes,
.contato .formulario {
    width: 410px;
    margin-top: 100px;
}

.contato .informacoes h1 {
    font-weight: bold;
    font-style: italic;
}

.contato .informacoes p {
    margin: -8px 0;
}

.contato .informacoes #telefone_email {
    font-weight: 600;
    font-style: normal;
    font-size: var(--fs-32);
}

.contato .informacoes #telefone_email #email {
    display: flex;
    margin-top: 5px;
    font-weight: 500;
    font-style: italic;
    font-size: var(--fs-28);
}

.contato .informacoes #telefone_email #email #icon {
    margin-right: 12px;
}

.contato .formulario {
    display: flex;
    flex-direction: column;
}

.contato .formulario input,
.contato .formulario select,
.contato .formulario textarea {
    margin-top: 10px;
    color: var(--c-text);
    background-color: transparent;
}

.contato .formulario input,
.contato .formulario select {
    padding: 10px;
    border: 1px solid var(--c-text);
    border-radius: 35px;
}

.contato .formulario textarea {
    padding: 10px;
    border: 1px solid var(--c-text);
    border-radius: 12px;
    resize: none;
}

.contato .formulario .localidade {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contato .formulario select {
    width: 48%;
}

.contato .formulario .termo_de_autorizacao label {
    color: var(--c-bg-app);
}

.contato .formulario .termo_de_autorizacao a {
    color: var(--c-brand);
    cursor: pointer;
    font-style: italic;
}

.contato .formulario #enviar-mensagem {
    width: 51%;
    padding: 10px;
    font-size: var(--fs-17);
    font-weight: bold;
    color: var(--c-bg-app);
    background-color: var(--c-brand);
    border: none;
    border-radius: var(--radius-3);
    text-align: center;
    cursor: pointer;
}

.contato .formulario select option {
    margin: 40px;
    color: var(--c-bg-app);
}

/* ==========================================================================
   Media Queries (mobile-first • agrupar por faixa)
   ========================================================================== */

/* <= 500px */
@media (max-width: 500px) {
    /* Esteira */
    #banner-esteira {
        display: none;
    }

    /* Sobre a Borex */
    .banner-a-borex,
    .banner-a-borex .content {
        height: 220px;
    }

    .banner-a-borex .content h1,
    .banner-a-borex .content p {
        font-size: var(--fs-20);
    }

    .banner-a-borex .content p {
        font-size: var(--fs-12);
    }

    .banner-a-borex .content a {
        width: 95px;
        height: 30px;
        padding: 5px;
        font-size: var(--fs-15);
    }

    /* Produtos Borex */
    .produtos-borex .produtos-borex-header img {
        margin: 0;
    }

    .produtos-borex .produtos {
        flex-direction: column;
    }

    .produtos-borex .produtos .insumos {
        margin-top: 15px;
    }

    .produtos-borex .produtos .bandas .content,
    .produtos-borex .produtos .insumos .content {
        width: 350px;
    }

    .produtos-borex .produtos h1 {
        font-size: var(--fs-24);
    }

    .produtos-borex .produtos .bandas .content p,
    .produtos-borex .produtos .insumos .content p {
        font-size: var(--fs-12);
    }

    .produtos-borex .produtos .bandas .content img,
    .produtos-borex .produtos .insumos .content img {
        width: 340px;
    }

    .produtos-borex {
        height: 985px;
    }

    /* Novidades Borex */
    .novidades-borex {
        height: 835px;
    }

    .novidades-borex .novidades-borex-header img {
        margin-left: 0;
    }

    .novidades-borex .conteudo p {
        font-size: var(--fs-12);
    }

    .novidades-borex .conteudo .redes-sociais {
        flex-direction: column;
        align-items: center;
        margin-top: 25px;
    }

    .novidades-borex .conteudo .redes-sociais iframe,
    .novidades-borex .conteudo .redes-sociais .youtube,
    .novidades-borex .conteudo .redes-sociais .instagram {
        width: 330px;
    }

    .novidades-borex .conteudo .redes-sociais .instagram {
        margin-top: 20px;
    }

    .novidades-borex .conteudo .redes-sociais .youtube h1,
    .novidades-borex .conteudo .redes-sociais .instagram h1 {
        margin-top: 7px !important;
        font-size: var(--fs-24);
    }

    /* Contato */
    .contato {
        flex-direction: column;
        align-items: center;
        height: 880px;
    }

    .contato .informacoes {
        width: 85%;
        margin-top: 20px;
        text-align: center;
    }

    .contato .informacoes h1,
    .contato .informacoes #telefone_email,
    .contato .informacoes #telefone_email #email {
        font-size: var(--fs-24);
    }

    .contato .informacoes #telefone_email #email {
        display: block;
    }

    .contato .informacoes p {
        font-size: var(--fs-12);
    }

    .contato .formulario {
        width: 85%;
        margin-top: 0;
    }

    .contato .formulario a#enviar-messagem {
        margin-top: 10px;
        width: 51%;
    }
}

/* <= 540px (PDD ajusta colunas) */
@media (max-width: 540px) {
    .pdd-hero {
        height: auto;
        max-height: none;
        flex-direction: column;
    }

    .pdd-left {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
    }

    .pdd-left img {
        width: auto;
        height: 200px;
        max-width: 100%;
        object-fit: contain;
        object-position: center bottom;
        margin: 0 auto;
        display: block;
    }

    .pdd-right {
        width: 100%;
        padding: 0 var(--space-12);
        margin: var(--space-12) auto 0;
        height: auto;
        overflow: visible;
    }

    .pdd-track {
        height: auto;
        border-radius: var(--radius-8);
    }

    .pdd-slide {
        overflow: visible;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: start;
    }

    .pdd-product {
        height: auto;
        row-gap: 12px;
    }

    .pdd-product img,
    .pdd-slide img {
        height: auto;
        max-height: 220px;
        width: 100%;
        object-fit: contain;
    }

    .promo-warning {
        width: auto !important;
        max-width: 100%;
        margin: 0 auto var(--space-18) !important;
        text-align: center !important;
        white-space: normal;
        margin-bottom: 16px;
    }

    .pdd-title {
        font-size: 17px;
    }

    .discount-badge {
        margin-bottom: 16px;
    }
}

/* <= 640px */
@media (max-width: 640px) {
    .pdd-left {
        flex: 0 0 52%;
        margin-right: var(--space-10);
    }

    .pdd-hero {
        height: 270px;
        max-height: 270px;
    }

    .discount-badge {
        width: 130px;
        height: 46px;
        padding: 0 var(--space-10);
    }

    .promo-warning {
        width: auto !important;
        max-width: 100%;
        margin: 0 auto 16px !important;
        white-space: normal;
    }

    .discount-value {
        font-size: var(--fs-32);
    }

    .discount-symbol {
        font-size: 13px;
    }

    .pdd-title {
        font-size: 17px;
    }

    .promo-terms {
        font-size: 10.6px;
    }
}

/* <= 768px */
@media (max-width: 768px) {
    .pdd-left {
        flex: 0 0 50%;
        margin-right: var(--space-12);
    }

    .pdd-hero {
        height: auto !important;
        max-height: none !important;
        flex-direction: column;
    }

    .discount-badge {
        width: 138px;
        height: 50px;
        padding: 0 var(--space-10);
    }

    .promo-warning {
        width: auto !important;
        max-width: 90%;
        margin: 0 auto var(--space-18) !important;
        text-align: center !important;
        white-space: normal;
        display: block;
        font-size: 11.5px;
    }

    .discount-value {
        font-size: 34px;
    }

    .discount-symbol {
        font-size: 14px;
    }

    .pdd-title {
        font-size: 17.5px;
    }

    .promo-terms {
        font-size: 10.8px;
    }
}

/* <= 900px */
@media (max-width: 900px) {
    .pdd-left {
        flex: 0 0 48%;
        margin-right: 14px;
    }

    .pdd-hero {
        height: 300px;
        max-height: 300px;
    }

    .discount-badge {
        width: 144px;
        height: 52px;
        padding: 0 var(--space-12);
    }

    .promo-warning {
        width: 144px;
    }

    .discount-value {
        font-size: var(--fs-36);
    }

    .discount-symbol {
        font-size: 15px;
    }

    .pdd-title {
        font-size: var(--fs-18);
    }

    .promo-terms {
        font-size: var(--fs-11);
    }
}

/* <= 1024px */
@media (max-width: 1024px) {
    .pdd-left {
        flex: 0 0 46%;
        margin-right: 16px;
    }

    .pdd-hero {
        height: 320px;
        max-height: 320px;
    }

    .discount-badge {
        width: 150px;
        height: 56px;
        padding: 0 14px;
    }

    .promo-warning {
        width: 150px;
    }

    .discount-value {
        font-size: var(--fs-38);
    }

    .discount-symbol {
        font-size: 16px;
        transform: translateY(3px);
    }

    .pdd-title {
        font-size: var(--fs-19);
        line-height: 1.1;
    }

    .promo-terms {
        font-size: 11.5px;
    }
}

/* <= 1200px */
@media (max-width: 1200px) {
    .pdd-left {
        flex: 0 0 44%;
        margin-right: 18px;
    }

    .pdd-hero {
        height: 340px;
        max-height: 340px;
    }

    .pdd-slide {
        column-gap: var(--space-10);
    }

    .pdd-product {
        row-gap: var(--space-10);
    }

    .discount-badge {
        width: 160px;
        height: 58px;
    }

    .promo-warning {
        width: 160px;
    }

    .discount-value {
        font-size: var(--fs-42);
    }

    .discount-symbol {
        font-size: 17px;
    }
}

/* <= 1280px */
@media (max-width: 1280px) {
    .pdd-left {
        flex: 0 0 44%;
        margin-right: 14px;
    }

    .discount-badge {
        width: 170px;
        height: 56px;
    }

    .promo-warning {
        width: 170px;
    }

    .discount-value {
        font-size: var(--fs-40);
    }

    .discount-symbol {
        font-size: 16px;
    }
}

/* >= 1200px (ajustes legados) */
@media (min-width: 1200px) {
    .promo-diferentes .descricao {
        margin-top: 10%;
    }
}

/* >= 1450px */
@media (min-width: 1450px) {
    .promo-diferentes .descricao {
        margin-top: 12%;
    }
}

/* >= 1500px */
@media (min-width: 1500px) {
    .pdd-hero {
        height: var(--h-hero-xl);
        max-height: var(--h-hero-xl);
    }

    .pdd-left img {
        height: 100%;
        object-fit: contain;
    }

    .pdd-slide {
        column-gap: 80px;
    }

    .pdd-info {
        justify-self: end;
        width: auto;
        max-width: none;
    }

    .pdd-product img {
        max-height: 100%;
    }

    .promo-warning {
        font-size: var(--fs-14);
    }

    .promo-terms {
        font-size: var(--fs-14);
        line-height: 1.6;
    }

    /* Legados */
    .produtos .descricao p {
        width: 65% !important;
        font-size: var(--fs-13) !important;
    }
}

/* >= 1600px */
@media (min-width: 1600px) {
    .promo-diferentes .descricao {
        margin-top: 11%;
    }
}

/* >= 1700px */
@media (min-width: 1700px) {
    .promo-diferentes .descricao {
        margin-top: 9%;
    }

    .banner-produto-do-dia .promo-info {
        margin-left: 100px;
    }
}

/* <= 1499px (ajustes legados) */
@media (max-width: 1499px) {
    .produtos .descricao p {
        font-size: 10px;
    }

    .produtos .produtos-info .produto p {
        font-size: 1.5rem;
    }
}