﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Estructura base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fbf9f8; /* Fondo cálido y luminoso */
    font-family: 'Inter', sans-serif;
    color: #3d3d3d; /* Gris oscuro suave, menos rígido que el negro */
}

/* Encabezados de la tienda (Estilo alegre y acogedor) */
h1 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #2b2d42;
    margin-top: 40px;
    font-size: 2.2rem;
    font-weight: 700;
}

hr {
    border: none;
    height: 3px;
    background: #ff6b6b; /* Línea de acento alegre */
    width: 60px;
    margin: 15px auto 30px;
    border-radius: 2px;
}

/* --- CONTENEDOR DE LA TIENDA --- */
.productos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    padding: 20px 15px 60px;
}

/* --- CARDS (Alegre, moderna y con volumen) --- */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    /* Sombra suave y ligeramente coloreada */
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    max-width: 340px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 107, 107, 0.08); /* Borde sutil con tono de la paleta */
}

    /* Efecto hover interactivo */
    .product-card:hover {
        transform: translateY(-8px);
        /* Sombra más pronunciada con un sutil resplandor coral */
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.12);
    }

/* --- IMAGEN --- */
.product-image {
    width: 100%;
    overflow: hidden;
    background-color: #fbf8f3; /* Fondo cálido para resaltar el producto */
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 107, 107, 0.05);
}

    .product-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

.product-card:hover .product-image img {
    transform: scale(1.05); /* Efecto zoom amigable */
}

/* --- CONTENEDOR DE INFORMACIÓN --- */
.product-info {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    flex: 1;
}

/* --- TÍTULO --- */
.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b2d42;
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin: 0 0 2px 0;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #ff6b6b; /* El título se ilumina al pasar el mouse */
}

/* --- DESCRIPCIÓN (sutil y legible) --- */
.product-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: #7d8597;
    line-height: 1.6;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- PRECIO (Llamativo y alegre) --- */
.product-price {
    font-family: 'Inter', sans-serif; /* Cambiado a Inter para verse más moderno y directo */
    font-size: 1.45rem;
    font-weight: 600;
    color: #ff6b6b; /* Coral brillante */
    letter-spacing: -0.01em;
    margin-top: auto; /* Empuja el precio siempre al fondo si el texto es corto */
    padding-top: 12px;
    border-top: 2px dotted #ffebd9; /* Divisor amigable punteado */
    display: inline-block;
    width: 100%;
}

/* --- RESPONSIVE: TABLET (2 columnas) --- */
@media (max-width: 820px) {
    .product-card {
        flex: 0 0 calc(50% - 28px);
        max-width: 340px;
    }
}

/* --- RESPONSIVE: CELULAR (1 columna) --- */
@media (max-width: 520px) {
    .productos-grid {
        gap: 20px;
        padding: 10px 15px 40px;
    }

    .product-card {
        flex: 0 0 100%;
        max-width: 100%;
        border-radius: 18px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 18px 20px 22px;
    }

    .product-title {
        font-size: 1.15rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.3rem;
        padding-top: 10px;
    }
}

/* --- Ajuste para pantallas muy grandes (4 columnas) --- */
@media (min-width: 1400px) {
    .product-card {
        flex: 0 0 calc(25% - 28px);
        max-width: 320px;
    }
}

/* --- Botón flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    z-index: 1000;
    text-decoration: none;
}

    .whatsapp-float:hover {
        background-color: #1ebe5c;
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
        fill: white;
    }