:root {
    --rosa-principal: #daa6aa;
    --rosa-oscuro: #bb5c5c;
    --dorado: #c5a059;
    --texto: #4a4a4a;
    --blanco-rosa: #f3cfee;
    --fondo-suave: #fffafb;
    --whatsapp-color: #25d366;
    --fuente-primaria: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: var(--fuente-primaria);
    background-color: var(--fondo-suave);
    color: var(--texto);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- NAVBAR SUPERIOR (LIMPIA) --- */
.navbar {
    display: flex;
    justify-content: flex-end; /* Mueve todo a la derecha */
    align-items: center;
    padding: 15px 5%;
    background: transparent; /* Fondo transparente */
    position: absolute; /* Para que no estorbe a la imagen */
    top: 0;
    width: 100%;
    z-index: 1001;
    box-sizing: border-box;
}

/* Eliminamos el logo del navbar para no repetir con la imagen */
.logo {
    display: none; 
}

/* Carrito minimalista arriba a la derecha */
.cart-icon-header {
    background: transparent; /* Sin cuadro blanco */
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--rosa-oscuro); /* Color del icono y número */
    font-weight: bold;
    box-shadow: none; /* Quitamos la sombra */
}

/* --- HEADER / HERO --- */
header {
    background: linear-gradient(rgba(218, 166, 170, 0.2), rgba(218, 166, 170, 0.2)),
        url("images/rosa2.png");
    background-attachment: scroll; /* Cambiado para mejor compatibilidad */
    background-position: center;
    background-size: cover;
    min-height: 80vh; /* Un poco más de altura */
    display: flex;
    flex-direction: column; /* Apila el contenido verticalmente */
    align-items: center;
    justify-content: flex-end; /* Empuja el contenido hacia abajo */
    text-align: center;
    padding-bottom: 60px; /* Espacio desde el fondo para los botones */
}

/* --- CATEGORÍAS (CENTRADAS Y BAJAS) --- */
.nav-categorias {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 250px; /* Empuja los botones hacia abajo para alinearlos con el logo de la foto */
}

.btn-categoria {
    background-color: var(--rosa-oscuro);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid var(--rosa-oscuro);
    min-width: 180px;
    text-transform: uppercase;
}

.btn-categoria:hover {
    background-color: white;
    color: var(--rosa-oscuro);
    border-color: white;
}

/* --- REDES SOCIALES --- */
.social-bar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* --- PRODUCTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 50px 5%;
}

.product-card {
    background: rgb(255, 229, 254);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* --- WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
}

/* --- MÓVILES --- */
@media (max-width: 768px) {
    header {
        background-position: 65% center; /* Ajusta la foto para que el logo no se tape en móvil */
        min-height: 70vh;
    }

    .nav-categorias {
        margin-top: 150px; /* Menos margen en móvil */
    }

    .btn-categoria {
        width: 80%;
        min-width: unset;
    }
}
