@import url('https://fonts.googleapis.com/css2?family=Mea+Culpa&family=Molle&family=Rouge+Script&display=swap');
/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Molle", cursive;
}
body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;    
    background: #fffbfb;
}
/* Header */
header {
   width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background-color: white;
    border-bottom: 1px solid #E6E9ED;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.brand .logo {
    width: 60px;
}
.name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #053D4E;
}
.right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.right img {
    width: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}
.right img:hover {
    transform: scale(1.2);
}
/* Sidebar */
.sidebar {
    margin-top: 4rem;
    width: 4rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.1rem 0;
    border-right: 1px solid #E6E9ED;
    overflow-y: auto;
    background-color: white;
    transition: width 0.3s ease;
}
.sidebar.menu-toggle {
    width: 18.75rem;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 0.9rem 0.7rem;
    text-decoration: none;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    color: #32363B;
}
.sidebar a:hover {
    background-color: #F7F9FA;
}
.sidebar a.selected {
    color: #355CC0;
    background-color: #EBF0FF;
}
.sidebar a.search {
    padding: 1rem 0.7rem;
    border-bottom: 1px solid #E6E9ED;
    margin-bottom: 0.2rem;
}
.sidebar img {
    width: 1.6rem;
}
/* Botón menú */
.menu-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.menu-container span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FF69B4;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================

   CARRUSEL PEQUEÑO (RESET)

   ========================================= */
/* Contenedor que centra todo y da espacio a las flechas */

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 50px; /* Espacio para que las flechas no tapen el contenido */
    box-sizing: border-box;
}
/* La ventana que recorta el contenido extra */
.carousel {
    width: 100%;
    overflow: hidden;
    /* Agregamos un padding horizontal al CONTENEDOR VISIBLE */
    padding: 0 10px;
}
/* La cinta larga que contiene las tarjetas */

.track {
    display: flex;
    width: 100%;
    gap: 0;
    transition: transform 0.4s ease-in-out;
}
/* Cada tarjeta individual */

.card {

    /* ESTO ES OBLIGATORIO:

       - flex-shrink: 0 impide que se aplasten.

       - width: 33.333% asegura que quepan 3 exactas. */

    flex: 0 0 33.3333%;

    max-width: 33.3333%;
    /* Diseño interno de la tarjeta */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer
}
/* Círculo de la imagen */

.card .avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden; /* Recorta la imagen en círculo */
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    background-color: #fff; /* Fondo blanco por si la imagen falla */
}
/* La imagen dentro del círculo */

.card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
    display: block;
}
/* Texto de la categoría */
.card h3 {
    color: #e91e63;
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}
/* Flechas de navegación */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #e91e63;
    cursor: pointer;
    z-index: 999;
    padding: 0;
    line-height: 1;
}
.arrow:hover {
    transform: translateY(-50%) scale(1.2);
}
.arrow-left { left: 65px; }

.arrow-right { right: 10px; }
.arrow:disabled {
    opacity: 0.3;
    cursor: default;
}
/* RESPONSIVE: En celular se ve 1 sola tarjeta */
@media (max-width: 768px) {
    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* =========================================

   CARRUSEL PRINCIPAL - HERO BANNERS

   ========================================= */
.hero-carousel {
    position: relative;
    width: 100%;         /* Ocupa toda la pantalla */
    max-width: 100%;     /* Sin límite */
    height: 0;       /* Ajusta el alto del banner */
    padding-bottom: 30%;    /* Relación de aspecto 5:2 (ajusta según necesidad) */
    margin: 0 auto;      /* Centrado */
    overflow: hidden;
}
.hero-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: transform 0.5s ease;
}
/* Cada slide debe ocupar 100% del carrusel */

.hero-item {
    min-width: 100%;
    height: 100%;
}
.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Botones */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
}
.hero-prev { left: 10px; }

.hero-next { right: 10px; }
/*carrito de compras*/
/* Bloquea el scroll del fondo y congela la posición */
body.cart-open {
    overflow: hidden; /* Evita que el usuario pueda hacer scroll en el contenido de atrás */
    position: fixed; /* Congela la página en la posición actual */
    width: 100%;     /* Asegura que el body ocupe todo el viewport */
    height: 100%;    /* Opcional, pero recomendado */
}
/* --- SOLUCIÓN DE CAPAS (Z-INDEX) --- */
/* 1. Contenedor Principal del Carrito */

.shopping-cart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    width: 380px;  /* O el ancho que prefieras */
    background-color: white; /* Fondo blanco (CRUCIAL para que no se vea doble) */
    /* ESTO ES LO NUEVO PARA EL SCROLL: */
    display: flex;
    flex-direction: column; /* Organiza: Cabecera -> Lista -> Pie */
    /* Mantenemos tu arreglo de capas */
    z-index: 99999 !important;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.shopping-cart.is-open {
    transform: translateX(0);
}
/* 2. Contenedor de la Lista de Productos (EL QUE HACE SCROLL) */
.cart-items-container {
    /* Esto le dice: "Ocupa todo el espacio disponible en el medio" */
    flex: 1;
    /* Esto activa el scroll si los productos no caben */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    min-height: 0; /* Truco para evitar desbordamientos en flexbox */
}

/* Estilo opcional para que la barra de scroll sea rosa y bonita */
.cart-items-container::-webkit-scrollbar {
    width: 6px;
}
.cart-items-container::-webkit-scrollbar-thumb {
    background-color: #e91e63;
    border-radius: 10px;
}

/* 3. Cabecera y Pie del Carrito (FIJOS) */
.cart-header,
.cart-actions-footer {
    flex-shrink: 0; /* Evita que se aplasten si hay muchos productos */
    background-color: white; /* Asegura que el fondo tape el contenido al deslizar */
    position: relative;
    z-index: 2;
}
/* 2. Aseguramos que el Header quede debajo del carrito cuando este se abre */
header {

    z-index: 100; /* Menor que el carrito */

}

/* 3. Aseguramos que los corazones y tarjetas queden debajo */
.product-card, .favorite-button {
    z-index: 1; /* Muy bajo */
    position: relative;
}
/* 4. Asegurar que el botón de cerrar sea clicable y visible */
.close-button {
    cursor: pointer;
    z-index: 100000; /* Más alto que el propio panel por si acaso */
    position: relative;
}
/* Para móvil */
@media (max-width: 600px) {
    .shopping-cart {
        width: 100%;
        right: -100%; /* Oculta completamente fuera de la vista */
    }
    .shopping-cart.is-open {
        right: 0;
    }
}
/*encabezado*/
.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    flex-shrink: 0; /* IMPORTANTE: Evita que el header se reduzca */
}
.cart title {
     color: #e91e63;
    font-size: 1.2rem;
    font-weight: bold;
}
/* Asegura que el botón de cerrar esté por encima y sea clicable */
.close-button {
    position: relative; /* O absolute, dependiendo de tu diseño */
    z-index: 1001; /* Mayor que el resto del header */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    padding: 0 10px; /* Dale un área de clic decente */
}
/* Contenedor de items (La parte que debe hacer scroll) */
.cart-items-container {
    flex-grow: 1; /* IMPORTANTE: Ocupa todo el espacio disponible entre el header y el footer */
    overflow-y: auto; /* IMPORTANTE: Habilita el scroll vertical si el contenido es muy largo */
    overflow-x: hidden; /* Evita scroll horizontal */
    padding: 15px;
    /* Opcional: Para que el scroll sea suave */
    scroll-behavior: smooth;
    /* Asegúrate de que NO tenga una altura fija como 'height: 500px' */
    height: auto;
}
/* La imagen - La hace pequeña y la deja a la izquierda */
.cart-item-image { /* <-- Correcto: usado en JS */
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
/* Contenedor de los detalles */
.cart-item-details { /* <-- Correcto: usado en JS */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* 🆕 AÑADE ESTOS ESTILOS QUE SE PERDIERON DEL BLOQUE GRID */
.item-name {
    font-size: 1em;
    margin: 0 0 5px 0;
    font-weight: bold; /* Asegura que el nombre sea legible */
    color: #333;
}
.item-color {
    font-size: 0.8rem;
    color: #888;
}
/* --- (El resto de tus estilos .item-price-current, .quantity-control-compact, etc., ya están correctos) --- */
.item-image {
width: 100%;
height: 80px;
object-fit: cover;
border-radius: 4px;
}
.item-details {
grid-area: 1 / 2 / 2 / 3;
}
.item-name {
font-size: 0.95rem;
color: #333;
margin-bottom: 5px;
font-weight: bold;
}
.item-color {
font-size: 0.8rem;
color: #888;
}
.item-price-current {
font-weight: bold;
color: #e91e63;
}
.item-actions {
grid-area: 1 / 3 / 2 / 4;
align-self: start;
}
.delete-item-button {
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
/* Control de Cantidad */
.quantity-control {
grid-area: 2 / 2 / 3 / 4;
display: flex;
justify-content: space-between;
align-items: center;
}
.quantity-label {
font-size: 0.85rem;
color: #555;
}
.quantity-input-group {
display: flex;
align-items: center;
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
}
/* Estilo para los botones (+ y -) */
.quantity-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FF007F; /* Color rosa de tu tema */
    padding: 0 10px;
    height: 100%; /* Ocupa toda la altura del contenedor Flex */
    display: flex; /* Para centrar el signo dentro del botón si es necesario */
    align-items: center;
    justify-content: center;
}
.quantity-button:hover {
background: #eee;
}
.quantity-input {
    flex-grow: 1;
    text-align: center;
    border: none;
    outline: none;
    height: 100%;
    margin: 0;
    padding: 0;
    /* Hide number input arrows across browsers */
    appearance: textfield;
    -moz-appearance: textfield; /* Firefox fallback */
    -webkit-appearance: textfield; /* Safari/Chrome fallback */
}
/* Resumen y Footer */
.cart-actions-footer {
padding: 10px 15px;
border-top: 1px solid #eee;
flex-shrink: 0; /* IMPORTANTE: Evita que el footer se reduzca */
}
.empty-cart-button {
width: 100%;
background: none;
border: 1px solid #ff90f0;
color: #ff8fd4;
padding: 8px;
border-radius: 5px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background 0.2s;
}
.empty-cart-button:hover {
background: #f9f9f9;
}
.empty-cart-button img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.cart-summary {
    padding: 15px;
    background-color: #fffbfb; /* Fondo ligeramente diferente al blanco puro */
    border-top: 2px solid #e91e63; /* Línea de separación rosa */
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1rem; /* Aumenta el tamaño del texto del resumen */
    color: #333;
}
.total-line span {
    font-weight: 900;
    color: #e91e63; /* El monto total en rosa fuerte */
}
.shipping-info {
font-size: 0.8rem;
color: #888;
text-align: center;
margin-top: 5px;
margin-bottom: 15px;
}
/* Botón IR A PAGAR */
.checkout-button {
    /* Mantenemos el fondo y el color de texto */
    background-color: #e91e63; /* Rosa fuerte */
    color: white;
    
    /* Quitamos la línea de texto que lo hace ver como un link */
    text-decoration: none; /* ¡CRUCIAL PARA QUITAR EL SUBRAYADO BLANCO! */
    
    /* Aumentamos el tamaño y el padding para que sea más grande */
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    
    /* Aseguramos que ocupe todo el ancho disponible del contenedor */
    display: block;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.checkout-button:hover {
    background-color: #d81b60; /* Un poco más oscuro al pasar el mouse */
}
.quantity-button:disabled {
    background: #f0f0f0;
    color: #ccc; /* Gris tenue */
    cursor: not-allowed;
}
/* Contenedor del ítem del carrito (hace que todo se alinee en una fila) */
.cart-item {
    display: flex; /* Alinea los elementos internos (imagen, detalles, botón) en línea */
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px; /* Espacio entre la imagen y los detalles */
}
/* La imagen - La hace pequeña y la deja a la izquierda */
.cart-item-image {
    width: 70px; /* Tamaño de la imagen pequeña */
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0; /* Evita que la imagen se reduzca si no hay espacio */
}
/* Contenedor de los detalles */
.cart-item-details {
    flex-grow: 1; /* Permite que los detalles ocupen el espacio central */
    display: flex;
    flex-direction: column;
}
.item-name {
    font-size: 1em;
    margin: 0 0 5px 0;
}
.item-price-current {
    font-weight: bold;
    color: #e91e63;
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* Botón de Eliminar - Empujado a la esquina superior derecha */
.cart-item-remove {
    margin-left: auto; /* Empuja el botón a la derecha */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1; /* Alineación del ícono */
}
/* --- CONTROLES DE CANTIDAD COMPACTOS EN EL CARRITO --- */
.quantity-control-compact {
    /* CLAVE: Usar Flexbox para la alineación horizontal */
    display: flex;
    align-items: center; /* Alinea verticalmente los items */
    justify-content: space-between; /* Distribuye el espacio (opcional, pero ayuda a centrar) */
    /* Apariencia General */
    border: 1px solid #f8bbd0;
    border-radius: 30px;
    width: 100px; /* Define el ancho total del control */
    height: 30px; /* Asegura una altura consistente */
    overflow: hidden; /* Evita que los hijos desborden el borde redondeado */
}
.quantity-control-compact .quantity-button {
    /* Los signos + y - */
    color: #e91e63;
    font-weight: 600;
    padding: 0 10px; /* CLAVE: Define el ancho lateral del botón */
    height: 100%; /* Ocupa toda la altura del contenedor Flex */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.1s;
    font-size: 1.2em;
}
.quantity-control-compact .quantity-button:hover {
    background-color: #fce4ec;
}
.quantity-control-compact .quantity-input {
    background-color: #fffbfb; /* Centro muy blanco */
}
/* Botón de eliminar ítem */
.delete-item-button {
    color: #e91e63; /* El ícono de basura en rosa */
    font-size: 1.2em;
}
/* Oculta las flechas del input number en Chrome, Safari y Edge */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Asegura que no haya margen residual */
}
/* Oculta las flechas del input number en Firefox */
.quantity-input {
    /* La propiedad estándar (aún parcialmente soportada) */
    appearance: none;
    /* Esta es la clave para Firefox en lugar de -moz-appearance: textfield; */
    -moz-appearance: textfield;
}
/* --- BOTÓN 'AGREGAR AL CARRITO' (PRODUCTOS) --- */
.agregar-carrito.btn {
    /* Sobre escribe los estilos base de .btn y .agregar-carrito */
    display: block;
    width: 100%;
    background: none;
    border: 2px solid #e91e63; /* Borde rosa fuerte */
    color: #e91e63; /* Texto rosa */
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 30px; /* Bordes súper redondeados (Pill shape) */
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
    margin-top: 10px;
}
.agregar-carrito.btn:hover {
    background-color: #ffebee; /* Rosa pálido en hover */
    color: #c2185b;
}
/* --- TARJETAS DE PRODUCTO (.product) --- */
.product {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Sombra suave */
    transition: transform 0.3s;
    text-align: center;
}
.product .precio {
    color: #e91e63; /* Precio en rosa fuerte */
    font-size: 1.2em;
    font-weight: 800;
    margin: 5px 0 15px 0;
}
/*codigo cuadricula de productos*/
/* --- ESTILOS DE TÍTULOS DE SECCIÓN --- */
.section-description {
    text-align: center;
    font-size: 1.1em;
    color: #e91e63;
    margin-bottom: 30px;
}
h1{
    text-align: center;
    font-size: 1.8em;
    color: #e91e63;
    margin-top: 50px;
    margin-bottom: 30px;
    
    /* ✅ FUERZA EL USO DE Rouge Script y AUMENTA EL TAMAÑO */
    font-size: 3em; /* Aumentamos el tamaño para que se note el cambio de fuente */
}
/* --- CONTENEDOR DE LA CUADRÍCULA (GRID) --- */
.product-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
max-width: 1400px;
margin: 0 auto; /* CLAVE para centrar las tarjetas */
padding: 20px;
}

/* Estilo del separador: Fuerza un salto de línea cubriendo las 5 columnas */
/* --- Media Queries (Ajustes para que se vea bien en otros dispositivos) --- */
/* En tablets grandes o escritorios medianos, volvemos a 4 o 3 columnas */
@media (max-width: 1280px) {
    .product-grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 productos por fila */
    }
}
/* En tablets o escritorios más pequeños, usamos 3 columnas */
@media (max-width: 992px) {
    .product-grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 productos por fila en tablet */
    }
}
/* En tablets pequeñas o móviles grandes, usamos 2 columnas */
@media (max-width: 768px) {
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila */
    }
}
/* En móviles, volvemos a 1 columna */
@media (max-width: 600px) {
    .product-grid-container {
        grid-template-columns: 1fr; /* 1 producto por fila en móvil */
    }
}
/* --- ESTILO DE CADA TARJETA DE PRODUCTO --- */
.product-card {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra suave */
    transition: transform 0.3s ease;
    position: relative; /* Clave para posicionar etiquetas y corazón */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-image-container {
    width: 100%;
    height: 200px; /* Altura fija para la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}
.product-info {
    width: 100%;
    padding-top: 10px;
}
.product-name {
    /* AJUSTES CLAVE PARA EVITAR EL RECORTE */
    font-size: 0.85em; /* Tamaño pequeño para que quepa en 5 columnas */
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    /* Propiedades para forzar el límite a dos líneas: */
    line-height: 1.2;
    height: 2.8em; /* Esto equivale a 2 líneas (2 * 1.2 = 2.4) */
    overflow: hidden; /* Oculta cualquier texto que se desborde */
    /* El texto no se recortará, pero podría no mostrar los puntos suspensivos (...)
       en todos los navegadores sin el -webkit-line-clamp. */
    white-space: normal; /* Asegura que el texto pueda envolverse en varias líneas */
}
.current-price {
    font-size: 1.1em; /* <--- AJUSTADO: También reducimos ligeramente el precio */
    font-weight: 800;
    color: #e91e63;
    margin-bottom: 15px;
}
/* --- ETIQUETAS (NUEVO, TRENDYLOCURA) --- */
.product-label-nuevo,
.product-label-trendylocura {
    position: absolute;
    top: 10px;
    left: -20px;
    background-color: #00bcd4; /* Color de ejemplo */
    color: white;
    padding: 5px 25px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    transform: rotate(-45deg);
    transform-origin: 0% 100%;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.product-label-trendylocura {
    background-color: #ff69b4; /* Rosa intenso */
}
/* --- BOTÓN DE FAVORITOS (CORAZÓN) --- */
.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}
.favorite-button img {
    width: 20px;
    height: 20px;
    /* Asume que el corazón es un SVG o PNG que necesita teñirse de rosa */
}
/* --- BOTÓN 'AGREGAR AL CARRITO' (ROSA CON BORDE) --- */
.agregar-carrito.btn-border-pink {
    display: block;
    width: 100%;
    background: none;
    border: 2px solid #e91e63;
    color: #e91e63;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 30px; /* Súper redondeado */
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
    margin-top: 10px;
}
.agregar-carrito.btn-border-pink:hover {
    background-color: #ffebee;
    color: #c2185b;
}
/* --- CONTENEDOR DE LA CUADRÍCULA (GRID) --- */
.product-grid-container {
    display: grid;
    /* AJUSTE CLAVE: Iniciamos en 4 columnas por defecto, para un mejor balance en la mayoría de escritorios */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
/* --- Media Queries --- */
/* En tablets grandes o escritorios medianos, mantenemos 3 columnas (tu regla existente) */
@media (max-width: 992px) {

    .product-grid-container {

        grid-template-columns: repeat(3, 1fr); /* 3 productos por fila */

    }

}
/* --- POSICIONAMIENTO DEL CONTENIDO PRINCIPAL (MAIN) --- */
main {
    /* La sidebar cerrada tiene 4rem de ancho */
    width: calc(100% - 4rem);
    margin-left: 4rem; /* Empuja el main a la derecha */
    margin-top: 60px; /* Para dejar espacio al header fijo */
    padding: 0 20px;
    text-align: center; /* Centra los elementos de bloque (como los títulos) */
}
.sidebar.menu-toggle ~ main {
    width: calc(100% - 18.75rem);
    margin-left: 18.75rem;
}
/* --- CONTENEDOR DE LA CUADRÍCULA (GRID) --- */
/* Asegúrate de que esta regla exista y sea la correcta */
.product-grid-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
    /* Max-width es importante para que las tarjetas no se extiendan demasiado */
max-width: 1400px;
    /* ESTO ES LO QUE CENTRA el bloque de tarjetas dentro del espacio de main */
margin: 0 auto;
padding: 20px;
}
/* --- NUEVA CLASE PARA ALINEAR PRECIO Y CANTIDAD --- */
.price-and-quantity-row {
    display: flex;
    /* Distribuye el espacio para que el precio esté a la izquierda y la cantidad a la derecha */
    justify-content: space-between;
    /* Alinea los elementos verticalmente en el centro de la fila */
    align-items: center;
    width: 100%; /* Ocupa todo el ancho disponible */
    margin-top: 5px; /* Pequeño espacio debajo del nombre del producto */
}
/* Asegura que el precio no tenga márgenes que puedan desalinear */
.price-and-quantity-row .item-price-current {
    margin-bottom: 0;
}
/* ===================================================
   ESTILOS DE ITEM INDIVIDUAL DEL CARRITO (FINAL)
   =================================================== */

.cart-item {
    /* Contenedor Flex principal: Imagen a la izquierda, Detalles a la derecha */
    display: flex; 
    align-items: flex-start; /* Alinea los items en la parte superior */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

/* 1. Imagen */
.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: contain; /* Usamos 'contain' para que la imagen completa se vea bien */
    border-radius: 5px;
    flex-shrink: 0;
}

/* 2. Detalles del Producto (Nombre, Precio, Cantidad) */
.cart-item-details {
    flex-grow: 1; /* Ocupa el espacio central restante */
    display: flex;
    flex-direction: column; /* Apila el contenido verticalmente */
    gap: 5px; /* Pequeña separación entre los elementos apilados */
}

/* 2.1 Fila de Nombre y Eliminar */
.name-and-remove {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.item-name {
    font-size: 1em;
    margin: 0;
    font-weight: bold;
    color: #333;
    /* Permite que el nombre se corte si es muy largo, si es necesario */
    max-width: 80%; 
}
/* Mueve el botón de eliminar a su posición final */
.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* 2.2 Precio */
.item-price-current {
    font-weight: bold;
    color: #e91e63;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* 2.3 Fila de Cantidad (Cantidad: [ - 1 + ]) */
.quantity-row-compact {
    display: flex;
    justify-content: space-between; /* CLAVE: Empuja "Cantidad" a la izquierda y el control a la derecha */
    align-items: center;
    width: 100%;
    margin-top: 5px;
}
.quantity-label {
    font-size: 0.9em;
    color: #555;
    font-weight: 600;
}

/* --- CONTROL DE CANTIDAD COMPACTO --- */
.quantity-control-compact {
    display: flex;
    align-items: stretch; /* Estira botones/input a la altura */
    border: 1px solid #f8bbd0;
    border-radius: 20px; /* Bordes menos exagerados para ser compacto */
    overflow: hidden;
    height: 30px; 
    width: 100px; /* Ancho fijo para todo el control */
    flex-shrink: 0;
}

.quantity-control-compact .quantity-button {
    color: #e91e63;
    padding: 0 10px;
    font-size: 1.2em;
    /* ... (asegura que el resto de los estilos del botón sean como los tienes) ... */
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.quantity-control-compact .quantity-input {
    width: 30px; /* Ancho fijo para el número */
    text-align: center;
    font-weight: bold;
    /* ... (asegura que los estilos de input number sean como los tienes) ... */
    border: none;
    background-color: #fffbfb;

    /* appearance for compatibility */
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

/* Ocultar flechas (scope to compact control) */
.quantity-control-compact .quantity-input::-webkit-outer-spin-button,
.quantity-control-compact .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Estilo para las estrellas */
.star {
    position: absolute; 
    color: #9370DB; /* ⬅️ ¡CAMBIA ESTE VALOR! (Este es el código hexadecimal para el color "Medium Purple") */
    font-size: 20px; 
    pointer-events: none; 
    opacity: 1;
    transition: all 0.5s ease-out; 
    transform: scale(1);
    animation: fadeOut 0.5s forwards; 
    z-index: 9999; 
}
/* ... el resto del código CSS se mantiene igual ... */

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -50px) scale(0.2); /* Sube ligeramente y se encoge */
    }
}
/* ======================================= */
/* 💖 ESTILOS DEL FOOTER (PIE DE PÁGINA) 💖 */
/* ======================================= */

footer {
    background-color: #fce4ec; /* Un rosa muy suave, casi blanco con toque de rosa */
    color: #333;
    padding: 60px 20px 20px;
    border-top: 3px solid #e91e63; /* Borde rosa brillante para separar del contenido */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 99% !important;
    max-width: 99% !important;
}

.footer-container {
    width: 95%;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    /* Por defecto, en móviles, las secciones se apilan (1 columna) */
   .footer-container {
    /* ... */
    grid-template-columns: 1fr !important; /* Una sola columna para que se apilen */
    text-align: center !important; /* Contenido centrado */
}
}

/* Media Query para Escritorio/Tabletas (4 columnas) */
@media (min-width: 768px) {
    .footer-container {
        /* En pantallas grandes, 4 columnas con proporciones ajustadas */
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr !important; 
        text-align: left !important; /* Contenido alineado a la izquierda */
    }
}

.footer-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #e91e63; /* Color de acento rosa */
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-section p {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Estilos para los enlaces (Navegación y Ayuda) */
.footer-links ul, .footer-help ul {
    list-style: none;
    padding: 0;
}

.footer-links li a, .footer-help li a, .brand-info a {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1.8;
    transition: color 0.3s;
}

.footer-links li a:hover, .footer-help li a:hover, .brand-info a:hover {
    color: #9370DB; /* Lila al pasar el mouse */
}

/* Estilos para los iconos sociales */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    /* Esto es crucial si usas imágenes SVG/PNG: le da un tono morado/lila */
    filter: invert(44%) sepia(35%) saturate(3033%) hue-rotate(240deg) brightness(80%) contrast(90%);
    transition: filter 0.3s;
}

.social-icons a:hover img {
    /* Cambia a rosa al pasar el mouse */
    filter: invert(19%) sepia(85%) saturate(3942%) hue-rotate(320deg) brightness(96%) contrast(96%);
}

/* Parte inferior del footer */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 30px;
    font-size: 0.85em;
    color: #777;
}