/* ==========================================================================
   TIGER TECH 3D - INDEX.CSS (Página Principal)
   ========================================================================== */

/* =========================================
   1. LAYOUT GLOBAL
   ========================================= */
section {
    width: 100%;
    position: relative;
}

/* =========================================
   2. WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 800;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   3. SECTION: HERO (100vh - 82px | Divisão 50/50)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 82px);
    margin-top: 82px;
    display: flex;
    flex-direction: column;
    background: url("../img/bg.png") no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.07);
}

/* LINHA 1 (Ocupa os primeiros 50%) */
.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    padding: 0 5%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

/* FONTES REDUZIDAS AQUI */
.hero-text h1 {
    font-size: clamp(32px, 3.5vw, 50px);
    /* Era 60px max */
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.hero-text h2 {
    font-size: clamp(22px, 2.5vw, 36px);
    /* Era 48px max */
    font-weight: 800;
    color: var(--text-white);
    margin-top: 10px;
    line-height: 1.2;
}

.btn-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 40px;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-images img {
    display: block;
    width: 100%;
    max-width: 650px;
    max-height: 40vh;
    object-fit: contain;
}

/* LINHA 2 (Ocupa os outros 50% - FUNDO BRANCO 100% DA LARGURA) */
.hero-bestseller {
    width: 100%; /* Ocupa a tela toda de ponta a ponta */
    max-width: none; /* Remove o limite anterior do fundo */
    margin: 0; /* Remove as margens para colar nas laterais e na base */
    background: #ffffff; /* Fundo branco contínuo */
    border-radius: 0; /* Remove o arredondamento */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15); /* Sombra suave para separar a parte clara da escura */
    flex: 1; 
    padding: 40px 5%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bestseller .bestseller-title {
    font-size: clamp(20px, 2vw, 30px); 
    font-weight: 900;
    color: #111111; 
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.hero-bestseller .bestseller-subtitle {
    font-size: clamp(13px, 1.2vw, 15px);
    color: #666666; 
    text-align: center;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
}

.bestseller-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1300px; /* Mantém os cards alinhados no centro, sem encostar nas bordas de monitores grandes */
    margin: 0 auto;
}

.bs-card {
    background: #ffffff;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 25px 20px;
    position: relative;
    border-radius: 12px;
    border: 1px solid #eeeeee;
    /* Borda leve para não sumir no fundo branco */
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.bs-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    margin-top: -15px;
}

.bs-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.bs-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bs-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 6px;
}

.bs-price-main {
    font-size: 22px;
    font-weight: 900;
    color: #000;
}

.bs-price-installments {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.bs-price-pix {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

/* =========================================
   4. SECTION: SHOWCASE (Slider das Impressoras)
   ========================================= */
.showcase {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg) no-repeat center;
    background-size: cover;
    opacity: 0;
    transition: 1s;
    z-index: 0;
}

.slide.active::before {
    opacity: 1;
}

.showcase-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 0 5%;
    z-index: 3;
    pointer-events: none;
}

.info-left,
.info-right,
.product {
    pointer-events: auto;
}

.product-title,
.product-desc,
.info-left .btn-primary,
.price {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active .product-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.slide.active .product-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide.active .info-left .btn-primary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .price {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.price {
    font-size: 22px;
    color: var(--primary-color, #ff6b00);
    font-weight: 700;
    letter-spacing: -1px;
}

.product {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-height: 65%;
    max-width: 70%;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    transition: 0.8s ease;
}

.slide.active .product {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* TEXTO DE FUNDO DO HERO (BG TEXT) */
#bgText {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 20vw;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: -10px;
    user-select: none;
    transition: opacity 0.5s ease;
}

#bgText.animating {
    animation: bgFadeSlide 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes bgFadeSlide {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.info-left {
    position: absolute;
    left: 5%;
    bottom: 15%;
    max-width: 450px;
    z-index: 3;
}

.info-right {
    position: absolute;
    right: 5%;
    bottom: 15%;
    z-index: 3;
    text-align: right;
}

.product-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.product-desc {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 25px;
    line-height: 1.4;
}

.nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav button {
    margin: 0 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.nav button:hover {
    background: var(--primary-color, #ff6b00);
    border-color: var(--primary-color, #ff6b00);
}

/* =========================================
   6. RESPONSIVIDADE (Tablets e Celulares)
   ========================================= */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }

    .hero-images {
        justify-content: center;
        margin-top: 30px;
    }

    .showcase .info-left {
        left: 50%;
        bottom: auto;
        top: 15%;
        transform: translateX(-50%);
        text-align: center;
        width: 90%;
    }

    .showcase .info-left .product-title {
        font-size: 36px;
    }

    .showcase .info-left .product-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .showcase .product {
        top: 55%;
        max-width: 60vw;
        max-height: 50vh;
    }

    .showcase .info-right {
        right: 50%;
        bottom: 120px;
        transform: translateX(50%);
        text-align: center;
        width: 100%;
    }

    .hero-bestseller {
        width: 95%;
        padding: 30px 5%;
        margin: 30px auto;
    }

    .bestseller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .hero-container {
        margin-top: -60px;
    }
    .showcase {
        min-height: 700px;
        height: 100vh;
    }

    .showcase .info-left {
        top: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .showcase .product-title {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .showcase .product-desc {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .slide.active .info-left .btn-primary {
        margin-top: 0;
        padding: 12px 30px;
        font-size: 14px;
        width: max-content;
    }

    .showcase .product {
        top: 55%;
        max-width: 85vw;
        max-height: 45vh;
    }

    .showcase .info-right {
        bottom: 110px;
    }

    .showcase .price {
        font-size: 14px;
        color: var(--primary-color);
    }

    .nav {
        bottom: 40px;
    }

    .nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 15px;
    }

    .bestseller-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 14px 30px;
        font-size: 14px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .showcase .product-title {
        font-size: 24px;
    }

    .showcase .product {
        max-width: 90vw;
    }

    #bgText {
        display: none;
    }
}