@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Montserrat:wght@700&display=swap');

/* ==========================================================================
   ESTILOS GERAIS DO SITE (Para todas as páginas)
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #555;
    background-color: #f9f9f9;
    /* O padding-top foi REMOVIDO daqui para não afetar o catálogo */
}


body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-link {
    transition: color 0.2s ease-in-out;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
    color: #ffc107 !important;
}

footer {
    position: relative;
    z-index: 1000;
}

footer a.text-white {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a.text-white:hover {
    color: #ffc107 !important;
}

footer .fab {
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .fab:hover {
    color: #ffc107;
    transform: scale(1.2);
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DA PÁGINA INICIAL (index.html)
   ========================================================================== */

/* Aplica o padding SÓ na página inicial para o menu fixo */
body.home-page {
    padding-top: 80px;
}

/* Deixa o menu transparente SÓ na página inicial */
body.home-page .navbar {
    background-color: transparent !important;
    transition: background-color 0.4s ease-out;
}

/* Aplica fundo no menu ao rolar SÓ na página inicial */
body.home-page .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Estilo do Hero SÓ na página inicial */
body.home-page .hero-section {
    background-size: cover;
    background-position: center;
    /* GARANTA QUE A LINHA 'background-attachment: fixed;' NÃO ESTEJA AQUI */
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px; /* Compensa o padding do body */
}

body.home-page .hero-section h1 {
    color: #FFD700;
}

body.home-page .feature-section img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}
body.home-page .feature-section img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
body.home-page .feature-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.home-page .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
body.home-page .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   ESTILOS DAS OUTRAS PÁGINAS (Catálogo, Buffprime, etc.)
   ========================================================================== */
.product-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.product-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}
.product-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}
.product-title {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}
.product-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.product-popup-img {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: auto;
}
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

/* Estilo para os ícones de seta do carrossel (página BUFFPRIME) */
#livroCarousel .fas {
    color: #ffc107;
    font-size: 2rem;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}