/* ======================================
    1. CONFIGURAÇÕES E FUNDO
   ====================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
    --primary-gradient: linear-gradient(135deg, #4583f7 0%, #764ba2 100%);
    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a2e;
    --bg-deep: #ffffff;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* ======================================
    2. NAVBAR FIXA
   ====================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navigation {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem 8%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 10px; 
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-item a:visited,
.nav-item a:link {
    color: #1a1a2e;
    text-decoration: none;
}

.nav-item a:hover {
    color: #4583f7;
}

/* ======================================
    3. ESTRUTURA DAS COLEÇÕES
   ====================================== */
.section-container {
    padding-top: 140px;
    padding-bottom: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-container + .section-container {
    padding-top: 60px;
}

.title {
    text-align: center;
    margin-bottom: 40px;
}

.title h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #1a1a2e, #4583f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
}

/* ======================================
    4. GRID DE PRODUTOS (3 COLUNAS)
   ====================================== */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 35px;
    padding: 0 20px;
    width: 100%;
}

/* ======================================
    5. DESIGN DOS CARDS E FAVORITOS
   ====================================== */
.card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    border-color: #4583f7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ÍCONE DE CORAÇÃO (FAVORITOS) */
.fav-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-variation-settings: 'FILL' 0, 'wght' 400; /* Ícone vazio */
    transition: 0.3s ease;
}

.fav-icon.active {
    color: #ff4757;
    font-variation-settings: 'FILL' 1, 'wght' 400; /* Ícone preenchido */
    transform: scale(1.2);
}

.fav-icon:hover {
    color: #ff4757;
}

.card-img {
    height: 180px;
    background: rgba(0,0,0,0.05);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-descricao {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-descricao h4 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.card-descricao h5 {
    font-size: 1.6rem;
    color: #4583f7;
    margin-bottom: 20px;
    font-weight: 700;
}

/* BOTÃO COMPRAR */
.btn-comprar {
    background: var(--primary-gradient);
    color: #1a1a2e;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-comprar:hover {
    filter: brightness(1.2);
    box-shadow: 0 8px 20px rgba(69, 131, 247, 0.3);
}

/* ======================================
    6. CARRINHO (CONTADOR)
   ====================================== */
.carrinho-icon a {
    position: relative;
}

.contador-carrinho {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4757;
    color: #1a1a2e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--bg-deep);
}

/* ======================================
    7. RESPONSIVIDADE
   ====================================== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    .container {
        grid-template-columns: 1fr;
    }
    .card-img {
        height: 300px;
    }
}


