@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    /* --- Correção da rolagem lateral --- */
    overflow-x: hidden;
    /* ------------------------------------ */
}

.main-header {
    background-color: #000;
    border-bottom: 2px solid #e50914;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active-category {
    color: #e50914;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons a {
    color: #e50914;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: #c40810;
}

.main-content {
    padding: 40px;
}

.category-section {
    margin-bottom: 50px;
}

.category-title {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.category-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e50914;
    text-transform: uppercase;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.product-card {
    background-color: #1a1a1a;
    border: 2px solid #e50914;
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
}

.product-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid #e50914;
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-info p {
    margin: 0;
    font-size: 1.5rem;
    color: #e50914;
    font-weight: 700;
}

.pix-info {
    font-size: 0.8rem;
    font-style: italic;
    color: #bbb;
}

.buy-button {
    background-color: #e50914;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #c40810;
}

.main-footer {
    background-color: #000;
    border-top: 2px solid #e50914;
    padding: 30px;
    text-align: center;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-info img {
    height: 50px;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.motto {
    color: #e50914;
    font-weight: 600;
}

.social-media {
    margin: 20px 0;
}

.social-media h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
}

.social-media a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #e50914;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}


/* --- Design Responsivo --- */

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .header-icons {
        justify-content: center;
        width: 100%;
    }

    .category-title h2 {
        font-size: 2rem;
    }

    .product-grid {
        gap: 20px;
    }

    .product-card {
        width: 100%;
        max-width: 300px;
    }

    .main-footer {
        padding: 20px;
    }

    .footer-info, .social-media h3, .motto {
        margin-bottom: 10px;
    }
}

/* --- Estilos para a Modal --- */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fixa a posição na tela */
    z-index: 1000; /* Fica por cima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita rolagem se o conteúdo for muito grande */
    background-color: rgba(0,0,0,0.8); /* Fundo preto semi-transparente */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 30px;
    border: 2px solid #e50914;
    border-radius: 10px;
    width: 90%; /* Largura padrão */
    max-width: 600px; /* Largura máxima */
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
    position: relative;
    color: #fff;
    text-align: center;
    animation: fadeIn 0.3s ease-out; /* Animação de entrada */
}

.close-button {
    color: #e50914;
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#modalProductImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e50914;
    margin-bottom: 10px;
}

#modalProductName {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.modal-price {
    font-size: 1.8rem;
    color: #e50914;
    font-weight: 700;
}

#modalProductDescription {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    text-align: left; /* Garante que a descrição não fique centralizada */
    width: 100%; /* Ajusta a largura da descrição */
}

.modal-buy-button {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Animação para a modal */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsividade da modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    #modalProductName {
        font-size: 1.5rem;
    }
    .modal-price {
        font-size: 1.4rem;
    }
    #modalProductDescription {
        font-size: 0.9rem;
    }
    .close-button {
        font-size: 2rem;
        right: 15px;
    }
}