:root {
    --primary-dark-red: #c30f45;
    --primary-light-red: #d6265b;
    --primary-pink: #c30f45;
    --dark-accent: #c30f45;
    --light-accent: #FBCFD2;
    --dark-background: #1a1a1a;
    --text-color-light: #FDFCFC;
    --text-color-dark: #231123;
    --section-background-dark: #2a2a2a;
    --border-color: var(--primary-dark-red);
    --primary-dark-red-rgb: 200, 15, 54;
    --transition-duration: 0.3s;
    --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --box-shadow: 0 10px 30px rgba(var(--primary-dark-red-rgb), 0.1);
    --box-shadow-hover: 0 15px 35px rgba(var(--primary-dark-red-rgb), 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
}

body {
    font-family: "Montserrat";
    background-color: #FDFCFC;
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.top-bar {
    background-color: var(--primary-dark-red);
    color: #FDFCFC;
    padding: 0.8rem 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.top-bar h3{
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.top-bar a {
    color: #FDFCFC;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}



.follow-text {
    font-weight: 600;
    color: #231123;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin-bottom: 0;
    width: 950px; /* Was 1200px */
}

.social-icons a {
    font-size: 1.7rem;
}

/* Animaciones para redes sociales del header */
.social-icons a {
    position: relative;
    transition: all 0.5s ease;
}

.social-icons a:nth-child(1) { animation: float 4s ease-in-out infinite; }
.social-icons a:nth-child(2) { animation: float 4s ease-in-out infinite 0.5s; }
.social-icons a:nth-child(3) { animation: float 4s ease-in-out infinite 1s; }

/* Asegúrate de que la animación float esté definida (si no la tienes ya) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Mejora los hover existentes */
.social-icons a:hover {
    color: #c30f45;
    transform: scale(1.1) translateY(-5px);
    animation: none; /* Detiene la animación al hacer hover para un efecto más controlado */
}



.social-icons .separator {
    opacity: 0.5;
    color: #231123;
}

.social-icons .social-links{
    text-decoration: none;
    font-size: 1rem;
    color: #231123;
    font-weight: 500;

}

.top-links {
    display: flex;
    gap: 1rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FDFCFC;
}

header {
    background-color: #FDFCFC;
    box-shadow: 0 4px 12px rgba(238, 12, 12, 0.152);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 250px;
    max-width: 1400px;
    margin: 0;
}


.nav-logo img {
    height: 200px;
    width: 950px;
    transition: transform 0.3s ease;
    padding: 0;
}

.nav-logo img:hover {
    transform: scale(1.05);
}


.icons-bar{
    display: flex;
    flex-direction: column;
    width: 80%;

}

.social-icons i {
    color: #231123;
        transition: transform 0.3s ease;
}


.social-icons i:hover {
    color: #c30f45;
    transform: scale(1.05);
}

/* Nuevo contenedor para la parte derecha del navbar si se reestructura el HTML */
/* .nav-right-content {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
} */

/* Ajuste para .icons-bar si ahora contiene .social-icons y .search-toggle-btn horizontalmente */
.icons-bar {
    display: flex; /* Asegurar que sea flex para alinear .social-icons y .search-interaction-area */
    align-items: flex-start; /* Centrar verticalmente los items */
    /* flex-direction: column; */ /* Quitar esto si ya no es una columna de social Y search */
    /* width: 80%; */ /* Revisar si este width sigue aplicando */
    margin-left: -5rem;
}

/* Estilos para el botón de activación de búsqueda (icono de lupa) */
.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem; 
    font-size: 1.2rem; 
    color: var(--text-color-dark); 
    display: flex; 
    align-items: center;
    justify-content: center;
    /* order: 2; Si es necesario para el ordenamiento flex dentro de .icons-bar */
}

.search-toggle-btn:hover {
    color: var(--primary-dark-red);
}

/* Stilos para la barra de búsqueda animada */
.search-container {
    position: relative;
    width: 650px;
    margin-right: 25rem;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 25px;
    border: 2px solid var(--primary-dark-red);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    width: 350px;
    box-shadow: 0 0 10px rgba(var(--primary-dark-red-rgb), 0.5);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-dark-red);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.2);
}

/* Estilos para los resultados de búsqueda */
.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none; /* Oculto por defecto */
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.search-result-item-info {
    flex-grow: 1;
}

.search-result-item-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color-dark);
}

.search-result-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.search-see-more {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #8A2BE2; 
    text-decoration: none;
    background-color: #f7f7f7;
    transition: background-color 0.2s;
}

.search-see-more:hover {
    background-color: #eee;
    text-decoration: underline;
}

.stock-label {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.stock-label.agotado {
    background-color: #d9534f;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #231123;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--transition-duration) var(--transition-timing);
    font-family: "Montserrat";
    font-size: 1.2rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light-red);
    transition: width var(--transition-duration) var(--transition-timing);
}

.nav-links a:hover {
    color: var(--primary-light-red);
    text-shadow: 0 0 8px rgba(var(--primary-dark-red-rgb), 0.5);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-cart {
    position: relative;
    background-color: transparent;
    border-radius: 4px;
    width: auto; /* Was 500px */
    transition: all 0.3s ease;
    margin-left: 1rem; /* Added to push cart to the right */
}

.nav-cart a {
    color: var(--text-color-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.nav-cart:hover {
    background-color: transparent;
    transform: scale(1.05);
}

.nav-cart #cart-count {
    color: var(--primary-dark-red);
    font-weight: bold;
}

main {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.6s var(--transition-timing);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#hero-section {
    position: relative;
    height: 65vh;
    overflow: hidden;
    margin-bottom: 3rem;
    background-color: #FDFCFC;
    /* Removed full-width viewport properties to rely on parent container */
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 50%; /* Centrar el bloque */
    transform: translateX(-50%); /* Ajuste para centrado con left: 50% */
    z-index: 2;
    text-align: center; /* Centrar el texto interno */
    max-width: 600px;
    background-color: rgba(var(--dark-background), 0.7);
    padding: 2rem;
    border-radius: 12px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-content h1 {
    font-family: "Montserrat";
    font-size: 3rem;
    color: var(--primary-light-red);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
    color: #FDFCFC;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing);
    box-shadow: 0 4px 15px rgba(var(--primary-dark-red-rgb), 0.3);
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-dark-red-rgb), 0.4);
    background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(var(--dark-background), 0.7);
    color: var(--text-color-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all var(--transition-duration) var(--transition-timing);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-50%) scale(1.1);
}

section {
    position: relative;
}

section h2 {
    font-family: "Montserrat";
    font-size: 2rem;
    text-align: left;
    margin: 3rem 1rem;
    color: #231123;
    position: relative;
    padding-left: 15px; /* Space for the marker */
    border-left: 5px solid var(--primary-dark-red); /* Vertical marker */
}


/* Sección de Categorías - ESTILOS ANTIGUOS ELIMINADOS */
/* Los estilos para .category-box, #categories-section, .category-carousel-container, etc., han sido eliminados. */

/* --- NUEVOS ESTILOS PARA EL MENÚ DE CATEGORÍAS HORIZONTAL --- */
#category-navbar-container {
    background-color: #231123; /* Usando un color oscuro del tema existente */
    padding: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sombra sutil */
    display: flex;
    justify-content: center;
    position: relative; /* Para el z-index si es necesario sobre otros elementos del header */
    z-index: 999; /* Un poco menos que el header principal si se superponen */
}

.category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que los items se ajusten en pantallas pequeñas */
    max-width: 1400px; /* Coincidir con el max-width del navbar */
    width: 100%;
}

.category-menu-item {
    position: relative;
    margin: 0;
}

.category-menu-item > a {
    display: block;
    padding: 12px 18px; /* Ajustar padding para un look más compacto */
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500; /* Un poco menos bold que los nav-links principales */
    font-size: 0.95rem; /* Ligeramente más pequeño */
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    font-family: "Montserrat";
}

.category-menu-item > a:hover,
.category-menu-item:hover > a {
    background-color: var(--primary-dark-red); /* Usar el color primario de acento */
    color: #fff;
}

/* Estilos para los submenús */
.category-submenu {
    list-style: none;
    padding: 5px 0; /* Padding vertical para el contenedor del submenú */
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #231123; /* Mismo color que la barra principal de categorías */
    border-top: 2px solid var(--primary-dark-red); /* Borde superior con color de acento */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 230px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    display: none;
    border-radius: 0 0 4px 4px; /* Bordes redondeados abajo */
}

.category-submenu .category-menu-item a {
    padding: 10px 18px; /* Padding para items de submenú */
    color: #e0e0e0; /* Color de texto para submenús */
    font-weight: normal;
    font-size: 0.9rem;
    white-space: normal; /* Permitir wrap en submenús */
}

.category-submenu .category-menu-item a .submenu-arrow {
    font-size: 0.75em;
    margin-left: 8px;
    transform: rotate(-90deg); /* Flecha hacia la derecha para sub-submenús */
}

.category-submenu .category-menu-item:hover > a {
    background-color: var(--primary-dark-red);
    color: #fff;
}

/* Submenús de niveles más profundos */
.category-submenu .category-submenu {
    top: -2px; /* Alinear con el borde superior del item padre (considerando el border-top del padre) */
    left: 100%;
    border-top: 2px solid var(--primary-dark-red); /* Mismo borde para consistencia */
    border-left: none; /* Quitar borde izquierdo si no es necesario */
}

/* Flecha para indicar submenús */
.submenu-arrow {
    font-size: 0.8em;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.category-menu-item.has-submenu:hover > a > .submenu-arrow {
     /* transform: rotate(180deg); /* Rotar flecha cuando el submenú está activo (opcional) */
}


/* Estilos del Botón Hamburguesa */
.hamburger-button {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Encima del menú de categorías pero debajo del header principal si es necesario */
}

.hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark-red); /* Cambiado a color rojo principal */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Estilos para el botón hamburguesa activo (transformación a X) */
.hamburger-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Responsividad del menú de categorías */
@media (max-width: 768px) {
    .hamburger-button {
        display: block; /* Mostrar en móvil */
        position: absolute; /* O relative, ajustar según el layout del header */
        top: 15px; /* Ajustar según sea necesario */
        right: 15px; /* Ajustar según sea necesario */
         /* Asegurarse de que el botón esté asociado visualmente al contenedor de categorías si se mueve el CSS */
    }

    #category-navbar-container {
        position: relative; /* Para que el botón hamburguesa pueda posicionarse absolutamente respecto a él si está dentro */
        /* background-color: transparent; Si el botón está fuera y el menú oculto */
    }

    .category-menu {
        display: none; /* Ocultar menú por defecto en móvil */
        flex-direction: column;
        align-items: stretch; /* Los items ocupan todo el ancho */
        width: 100%;
        background-color: #231123; /* Fondo del menú desplegado */
        position: absolute;
        top: 100%; /* Debajo del contenedor de la barra de categorías o del header */
        left: 0;
        right: 0;
        z-index: 1000; /* Encima de otro contenido */
        border-top: 1px solid var(--primary-dark-red);
        max-height: calc(100vh - 100px); /* Altura máxima, ej. 100px es la altura aprox del header */
        overflow-y: auto; /* Scroll si el menú es muy largo */
    }

    .category-menu.active {
        display: flex; /* Mostrar menú cuando está activo */
    }

    .category-menu-item {
        width: 100%;
        text-align: left; /* Alinear texto a la izquierda en móvil */
    }
    .category-menu-item > a {
        padding: 15px 20px; /* Más padding para facilitar el toque */
        border-bottom: 1px solid #444; /* Separador entre items en móvil */
        color: var(--text-color-light); /* Asegurar color de texto */
    }
    .category-menu-item:last-child > a {
        border-bottom: none;
    }
    .category-menu-item > a:hover,
    .category-menu-item:hover > a {
        background-color: var(--primary-dark-red); /* Mantener hover effect */
    }


    /* Submenús en móvil */
    .category-submenu {
        position: static; /* Se muestran en línea, no flotantes */
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: #2a2a2a; /* Fondo ligeramente diferente para submenús en móvil */
        padding-left: 0; /* Reset padding, se maneja en los items */
        border-radius: 0;
        display: none; /* Ocultos por defecto, se muestran con JS al hacer clic */
    }
    
    .category-menu-item.active > .category-submenu {
        display: block; /* Mostrar submenú si el item padre está activo */
    }

    .category-submenu .category-menu-item a {
        padding: 12px 20px 12px 35px; /* Indentación para subitems en móvil */
        color: #e0e0e0;
    }
    .category-submenu .category-submenu .category-menu-item a {
        padding-left: 50px; /* Mayor indentación para sub-subitems */
    }

    .category-menu-item > a > .submenu-arrow {
        float: right; /* Flecha a la derecha */
        transition: transform 0.3s ease;
    }
    
    .category-menu-item.active > a > .submenu-arrow {
        /* transform: rotate(180deg); /* Flecha hacia arriba cuando desplegado, si se usa la flecha correcta */
    }
}


/* Sección de Productos Destacados */
#featured-products-section {
    background-color: #FDFCFC;
    padding-bottom: 3rem; 
    display: flex; /* Cambiado a flex */
    flex-direction: column; /* Dirección columna */
    align-items: center; /* Centrar el grid y el botón si tienen un max-width */
    overflow: visible; 
    min-height: auto; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columnas iguales */
    gap: 1rem; /* Espacio entre elementos */

    margin: 0;
    padding: 0 20rem;
 /* Asegurar que el grid intente ocupar el espacio disponible si es necesario */
}


.product-card {
    /* From: background-color: #fff; */
    background-color: transparent;
    /* From: border: 1px solid #ddd; */
    border: none; /* Or border: 1px solid transparent; if a border is desired but invisible */
    border-radius: 8px; /* Mantener bordes redondeados si se desea */
    /* From: padding: 1rem; */
    padding: 0.5rem; /* Reduced padding */
    text-align: center; /* Cambiado de left a center */
    /* From: box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para que el botón quede abajo */
}

.product-card img {
    order: 1;
    /* height: 200px; Adjust if necessary for smaller card, e.g., 150px */
    height: 200px;

    /* border-bottom: 1px solid #eee; Consider removing or making transparent if no bg */
    /* From: margin-bottom: 1rem; */
    margin-bottom: 0.5rem; /* Adjust from 1rem */
    border-radius: 4px;
}

.product-card h3 { /* Title */
    order: 2;
    /* From: font-size: 1.1rem; */
    font-size: 1rem; /* Adjust from 1.1rem */
    /* From: margin-bottom: 0.5rem; */
    margin-bottom: 0.25rem; /* Adjust from 0.5rem */
    color: #231123;
}

.product-card .product-description {
    order: 5; /* Placed last as per decision */
    /* From: font-size: 0.9rem; */
    font-size: 0.8rem; /* Adjust from 0.9rem */
    color: #666;
    /* From: margin-bottom: 0.75rem; */
    margin-bottom: 0.5rem; /* Adjust from 0.75rem */
    flex-grow: 1; /* Permite que la descripción ocupe el espacio disponible */
    /* Consider display: none; if it's too cluttered */
    display: none;
    text-decoration: none;
}

.product-card h3,
.product-card .product-card-clickable-area h3 { /* Para asegurar especificidad */
    text-decoration: none !important; /* Quitar subrayado del nombre */
    color: #231123; /* Asegurar color original si un estilo de enlace lo cambió */
}

.product-card .product-price,
.product-card .product-card-clickable-area .product-price { /* Para asegurar especificidad */
    text-decoration: none !important; /* Quitar subrayado del precio */
    color: #c30f45; /* Asegurar color original si un estilo de enlace lo cambió */
}

.product-card .product-price {
    order: 3;
    /* From: font-size: 1.2rem; */
    font-size: 1.1rem; /* Adjust from 1.2rem */
    font-weight: bold;
    color: #c30f45; /* Azul para el precio */
    /* From: margin-bottom: 1rem; */
    margin-bottom: 0.5rem; /* Adjust from 1rem */
    margin-top: 2rem;
    text-decoration: none;
}

.product-card .add-to-cart-btn {
    order: 4;
    background-color: transparent;
    color: #231123;
    border: 1px solid #231123;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: 
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
    text-decoration: none;
}

.product-card .add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(var(--primary-dark-red-rgb), 0.3);
    color: #FDFCFC;
}

/* Footer Styles */
footer {
    background: #231123;
    color: var(--text-color-light);
    padding: 3rem 5% 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #FDFCFC;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--primary-light-red);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-light-red);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #FDFCFC;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-light-red);
}

.footer-column ul li a:hover {
    color: var(--primary-light-red);
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #FDFCFC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-light-red);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 0.8rem;
    background: var(--primary-light-red);
    color: #FDFCFC;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark-red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Modal Styles */
.footer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #231123;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-light-red);
}

.footer-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #FDFCFC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-light-red);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-light-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light-red);
    border-radius: 4px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.footer-social a:nth-child(1) { animation: float 4s ease-in-out infinite; }
.footer-social a:nth-child(2) { animation: float 4s ease-in-out infinite 0.5s; }
.footer-social a:nth-child(3) { animation: float 4s ease-in-out infinite 1s; }
.footer-social a:nth-child(4) { animation: float 4s ease-in-out infinite 1.5s; }

/* Responsive */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
    }
    
    .footer-column ul li a::before {
        display: none;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

.floating-action-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-cart-btn,
.floating-whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDFCFC;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.floating-cart-btn {
    background: var(--primary-dark-red);
}
.floating-whatsapp-btn {
    background: #25D366;
}

.floating-cart-btn:hover,
.floating-whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-light-red);
    color: #FDFCFC;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.cart-modal-content {
    background-color: var(--section-background-dark);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
}

.cart-modal.active .cart-modal-content {
    transform: translateY(0);
}

.cart-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.cart-modal-close:hover {
    color: var(--primary-light-red);
}

.cart-modal-body {
    text-align: center;
    padding: 1rem;
}

.cart-modal-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-pink);
}

.cart-modal-icon svg {
    width: 100%;
    height: 100%;
}

.cart-modal-title {
    font-family: "Montserrat";
    color: var(--primary-light-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cart-modal-message {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cart-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-modal-continue,
.cart-modal-checkout {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing);
    text-align: center;
}

.cart-modal-continue {
    background-color: transparent;
    border: 2px solid var(--primary-dark-red);
    color: var(--text-color-light);
}

.cart-modal-continue:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-dark-red-rgb), 0.3);
}

.cart-modal-checkout {
    background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
    color: #FDFCFC;
    text-decoration: none;
}

.cart-modal-checkout:hover {
    background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-dark-red-rgb), 0.3);
}

@media (max-width: 1024px) {
    .carousel-content {
        max-width: 500px;
        padding: 1.5rem;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 1rem; /* Changed from 5% to 1rem for less horizontal space */
        text-align: center;
    }
    .top-bar h3 {
        font-size: 0.8rem; /* Reducir tamaño de fuente para móviles */
    }

    .social-icons {
        /* display: none; ELIMINADO para que sean visibles */
        gap: 0.5rem; /* Reducir gap para móviles */
        justify-content: flex-start; /* Alinear al inicio del contenedor .icons-bar */
        margin-bottom: 0; /* Quitar margen inferior si ya no es necesario */
        flex-grow: 1; /* Para que ocupe el espacio disponible junto a la lupa */
        /* flex-wrap: wrap; */ /* Considerar si los elementos no caben */
    }
    .social-icons .follow-text {
        display: none; /* Ocultar "Síguenos" en móviles para ahorrar espacio */
    }
    .social-icons a { /* Iconos de redes y enlaces de texto */
        font-size: 1rem; /* Reducir tamaño de iconos y enlaces de texto */
    }
    .social-icons .social-links { /* Específicamente para "Regístrate", "Preguntas Frecuentes" */
        font-size: 0.8rem;
    }
    .social-icons .separator {
        margin: 0 0.25rem; /* Reducir margen del separador */
    }
    .nav-cart a { /* Ajustar el carrito dentro de social-icons */
        font-size: 0.9rem;
    }
    .nav-cart #cart-count {
        font-size: 0.7rem; /* Ajustar contador del carrito */
    }


    .nav-logo img {
        height: 75px; /* Aumentado de 60px para móviles */
        width: auto;  /* Ajustar width automáticamente a la nueva altura */
        margin-right: 1rem; /* Reducir margen derecho significativamente */
    }

    .icons-bar {
        /* width: 100%; */ /* Ya no es necesario si .social-icons y .search-toggle-btn se ajustan */
        /* align-items: center; */ /* El align-items:center global en .icons-bar debería bastar */
        /* flex-direction: row; */ /* Asegurar que sea fila si no lo es por defecto */
        justify-content: space-between; /* Para separar social icons del search toggle */
        width: 100%; /* Para que ocupe el ancho en el layout de columna del navbar */
        order: 2; /* Logo (1), luego esta barra (2), luego nav-links (si se mueven) */
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* .search-container original en móvil ya no aplica como estaba (order 3, etc.) */
    /* porque ahora está oculto y se muestra como 'absolute' con .active */
    /* Los estilos de .search-input, .search-button, .search-button i ya están ajustados arriba */
    /* para el tamaño móvil y se aplicarán cuando .search-container.active se muestre. */

    .search-toggle-btn {
        font-size: 1.1rem; /* Ligeramente más pequeño para móvil si es necesario */
        padding: 0.4rem; /* Ajustar padding si es necesario */
    }

    .search-container.active {
        /* Podría necesitar un top diferente si el header tiene varias filas en móvil */
        /* Si el <header> es el contexto, top: 100% lo pone debajo de todo el header. */
        /* Si el .navbar es el contexto, top: 100% lo pone debajo del .navbar. */
        /* Asumimos que <header> es el contexto y tiene position:sticky. */
        /* Si el menú de categorías está visible (aunque sea hamburguesa), la búsqueda podría necesitar un z-index mayor */
        /* o posicionarse de forma que no colisione con el menú de categorías desplegado. */
        /* Por ahora, mantenemos top: 100% del header. */
        padding: 0.8rem; /* Padding más pequeño para la barra de búsqueda activa en móvil */
    }
    .search-container.active .search-input,
    .search-container.active .search-button {
        font-size: 0.9rem; /* Heredado de la regla de 768px para input/button */
        padding: 0.5rem 0.8rem; /* Heredado */
    }
    
    .nav-logo {
        order: 1;
    }
    
    .nav-cart {
        order: 2;
    }

    .nav-links {
        margin: 1rem 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    #hero-section {
        height: 45vh; /* Reducido de 60vh */
    }

    .carousel-content {
        bottom: 10%;
    left: 50%; /* Asegurar centrado del bloque */
    /* transform: translateX(-50%); ya se hereda */
        max-width: 90%;
        padding: 1.2rem; /* Un poco menos que el de 1024px */
    }

    .carousel-content h1 {
        font-size: 1.8rem; /* Reducido de 2rem */
    }

    .carousel-content p {
        font-size: 0.9rem; /* Reducido de 1rem */
    }

    .carousel-prev {
        left: 1rem; /* Acercar botones al borde */
    }
    .carousel-next {
        right: 1rem; /* Acercar botones al borde */
    }

    section {
        padding: 3rem 1rem; /* Changed from 5% to 1rem for less horizontal space */
    }

    section h2 {
        font-size: 1.7rem; /* Reducido de 2rem */
        margin: 2rem 1rem; /* Changed from 5% to 1rem for less horizontal space */
    }

    .category-boxes {
        margin: 2rem 5%; /* Adjusted for medium screens */
    }

    .product-grid {
        max-width: 100%; /* Changed from 90% */
    }

    #add-to-cart-detail-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #hero-section { /* Ajuste adicional para pantallas muy pequeñas */
        height: 38vh; /* Reducido de 45vh (heredado de 768px) */
    }
    .carousel-content {
        padding: 1rem; /* Ya estaba bien */
    }

    .carousel-content h1 {
        font-size: 1.5rem; /* Reducido de 1.8rem */
    }
    .carousel-content p { /* Añadir regla para el párrafo */
        font-size: 0.8rem; /* Reducido de 0.9rem (heredado de 768px) */
        margin-bottom: 1rem; /* Ajustar margen si es necesario */
    }

    .carousel-prev, .carousel-next {
        width: 35px; /* Ligeramente más pequeño */
        height: 35px;
        font-size: 1rem; /* Ícono más pequeño */
        left: 0.5rem; /* Más cerca del borde */
    }
    .carousel-next { /* carousel-prev ya tiene left, necesita right para next */
        right: 0.5rem;
    }

    .product-card .add-to-cart-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    #add-to-cart-detail-btn { /* Ajuste adicional para pantallas muy pequeñas */
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .product-card h3 {
        font-size: 0.9rem; /* Reducir tamaño de fuente del nombre del producto */
    }
    .product-card .product-price {
        font-size: 1rem; /* Reducir tamaño de fuente del precio */
    }

    .category-boxes, .product-grid {
        grid-template-columns: 1fr; /* Stacks them on small screens */
        margin: 1.5rem 5%; /* Further reduced margin for small screens */
    }

    section h2 {
        font-size: 1.5rem; /* Reducido de 1.8rem */
        margin: 1.5rem 1rem; /* Changed from 5% to 1rem for less horizontal space */
    }

    .product-grid {
        max-width: 100%; /* Changed from 95% */
    }

    .cart-modal-content {
        padding: 1.5rem;
    }
    
    .cart-modal-title {
        font-size: 1.5rem;
    }
    
    .cart-modal-message {
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}
        /* Agrega esto a tu CSS */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.cart-modal-content {
    background-color: #231123;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
}

.cart-modal.active .cart-modal-content {
    transform: translateY(0);
}

.cart-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.cart-modal-close:hover {
    color: var(--primary-light-red);
}

.cart-modal-body {
    text-align: center;
    padding: 1rem;
}

.cart-modal-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-pink);
}

.cart-modal-icon svg {
    width: 100%;
    height: 100%;
}

.cart-modal-title {
    font-family: "Montserrat";
    color: var(--primary-light-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cart-modal-message {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cart-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-modal-continue,
.cart-modal-checkout {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing);
    text-align: center;
}

.cart-modal-continue {
    background-color: transparent;
    border: 2px solid var(--primary-dark-red);
    color: var(--text-color-light);
}

.cart-modal-continue:hover {
    background-color: var(--primary-dark-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-dark-red-rgb), 0.3);
}

.cart-modal-checkout {
    background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
    color: #FDFCFC;
    text-decoration: none;
}

.cart-modal-checkout:hover {
    background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-dark-red-rgb), 0.3);
}

@media (max-width: 480px) {
    .cart-modal-content {
        padding: 1.5rem;
    }
    
    .cart-modal-title {
        font-size: 1.5rem;
    }
    
    .cart-modal-message {
        font-size: 1rem;
    }

    /* Ajustes para los botones flotantes en pantallas pequeñas */
    .floating-action-buttons {
        bottom: 0.5rem; /* Reducido aún más */
        right: 0.5rem;  /* Reducido aún más */
        gap: 0.75rem; 
    }

    .floating-cart-btn,
    .floating-whatsapp-btn {
        width: 48px; /* Reducir tamaño del botón */
        height: 48px;
        font-size: 1.2rem; /* Ajustar tamaño del ícono */
    }

    #floating-cart-count {
        width: 20px; /* Ajustar tamaño del contador */
        height: 20px;
        font-size: 0.6rem;
        top: -4px;
        right: -4px;
    }
}

/* Cookie Consent Banner Styles *//* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #231123;
    color: #FDFCFC;
    padding: 1rem 5% 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Mayor que el z-index del header */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* Animación suave de aparición */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Para el botón de cerrar */
    padding-right: 3.5rem;
        height: 3.5rem;
}

.cookie-banner.active {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    width: 100%;
    gap: 1rem;
}

/* Resto del CSS se mantiene igual... */

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.accept-btn {
    background-color: transparent;
    color: #FDFCFC;
    border: solid 1px #FDFCFC;
    font-weight: 600;
}

.accept-btn:hover {
    transform: translateY(-2px);
}

.policy-btn {
    background-color: transparent;
    color: #FDFCFC;
    border: 1px solid #f5f1e6;
}

.policy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* New close button styles */
.cookie-close-btn {
    position: absolute;
    top: 0.6rem;
    right: 6rem;
    background: transparent;
    border: none;
    color: #f5f1e6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.cookie-close-btn:hover {
    color: #f0f0f0;
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner {
        padding: 1rem; /* Simplificar padding para móviles */
        height: auto; /* Permitir que la altura se ajuste al contenido */
        /* padding-right: 5%;  Eliminar este, el padding general de 1rem debería ser suficiente */
    }

    .cookie-close-btn { /* Reajustar posición del botón de cierre si es necesario */
        top: 0.5rem;
        right: 0.5rem; 
        /* El padding original del banner era: padding: 1rem 5% 1rem 5%; y padding-right: 3.5rem (global) */
        /* En móvil, @media (max-width: 768px) tenía .cookie-banner { padding-right: 5%; } */
        /* El botón de cierre original: top: 0.6rem; right: 6rem; */
        /* Con padding: 1rem; en el banner, una nueva posición más simple para el botón: */
    }
}

/* --- Styling for Category Products Page --- */

/* Adjust product grid for category page to match featured products grid */
#category-products-section .product-grid {
    grid-template-columns: repeat(6, 1fr); /* Match featured products: 6 columns */
    gap: 1rem; /* Ensure gap is consistent */
    max-width: 65%; /* Match featured products */
    margin: 0 auto; /* Center the grid */
    padding: 0 1rem; /* Match featured products padding */
    width: 100%; /* Ensure it tries to take available space up to max-width */
}

#category-products-section h2 {
    text-align: center; /* Center the category title */
    margin-bottom: 2rem; /* Add some space below the title */
}

/* --- DETALLE PRODUCTO--- */
.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #FDFCFC; /* Match body background */
    color: var(--text-color-dark); /* Default text color for this section */
}

.product-detail-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem; /* Space between image and info */
}

.product-detail-image-side {
    flex: 1 1 400px; /* Flex properties for responsiveness */
    max-width: 500px; /* Max width for the image container */
    margin-right: 5rem;
}

.product-detail-image {
    width: 100%;
    height: auto;


    background-color: transparent;

}

.product-detail-info-side {
    flex: 1 1 500px; /* Flex properties, allows info to take more space if available */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between info elements */
}

.product-detail-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}

.product-detail-category {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.product-detail-category a {
    color: var(--primary-dark-red);
    text-decoration: none;
}

.product-detail-category a:hover {
    text-decoration: underline;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark-red);
    margin-bottom: 1rem;
}

.product-detail-description h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color-dark);
}

.product-detail-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444; /* Slightly lighter than main text for description */
}

/* Quantity Selector Styling */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector button {
    background-color: #eee;
    border: 1px solid #ccc;
    color: var(--text-color-dark);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.quantity-selector button:hover {
    background-color: #ddd;
}

.quantity-selector input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ccc;
    margin: 0 0.5rem;
    font-size: 1.1rem;
    -moz-appearance: textfield; /* Firefox */
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button on Detail Page */
#add-to-cart-detail-btn {
    /* Can reuse .add-to-cart-btn styles or define new ones */
    /* For example, make it larger: */
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-dark-red);
    color: var(--text-color-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content; /* Button only as wide as its content */
}

#add-to-cart-detail-btn:hover {
    background-color: var(--dark-accent);
    transform: scale(1.03);
}

/* Responsive adjustments for product detail page */
@media (max-width: 768px) {
    .product-detail-wrapper {
        flex-direction: column; /* Stack image and info */
    }

    .product-detail-image-side,
    .product-detail-info-side {
        max-width: 100%; /* Allow full width when stacked */
        flex-basis: auto; /* Reset flex-basis */
    }

    .product-detail-name {
        font-size: 2rem;
    }

    .product-detail-price {
        font-size: 1.8rem;
    }

    #category-products-section .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* More flexible for smaller screens */
    }
}

@media (max-width: 480px) {
    #category-products-section .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Even more flexible for very small screens */
    }
    .product-detail-name {
        font-size: 1.8rem;
    }
}

/* Botón Ver Más - Genérico */
.ver-mas-btn,
.view-more-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 20px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-light);
    background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-dark-red-rgb), 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.ver-mas-btn:hover,
.ver-mas-btn:focus {
    background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
    box-shadow: 0 6px 20px rgba(var(--primary-dark-red-rgb), 0.3);
    transform: translateY(-2px);
    outline: none;
    color: var(--text-color-light);
}

.ver-mas-btn:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(var(--primary-dark-red-rgb), 0.2);
}

/* Estilos para productos sin stock */
.product-card.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.product-card.out-of-stock img {
    filter: grayscale(50%);
}

.out-of-stock-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-detail-wrapper.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.product-detail-wrapper.out-of-stock .product-detail-image {
    filter: grayscale(50%);
}

.product-detail-info-side .out-of-stock-label {
    display: inline-block; /* Para que esté en línea con otros elementos si es necesario */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem; /* Espacio arriba */
    margin-bottom: 1rem; /* Espacio abajo si hay elementos debajo */
}
/* --- NEW STYLES FOR PRODUCT DETAIL GALLERY --- */
.product-detail-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.product-gallery {
    flex: 1 1 45%; /* Takes about 45% of the width */
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

#main-product-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#main-product-image:hover {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center; /* Center thumbnails if they don't fill the space */
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail-image:hover {
    border-color: var(--primary-dark-red);
    transform: scale(1.08);
}

.thumbnail-image.active {
    border-color: var(--primary-dark-red);
    box-shadow: 0 0 8px rgba(var(--primary-dark-red-rgb), 0.5);
}

.product-info-container {
    flex: 1 1 50%; /* Takes about 50% of the width */
    color: var(--text-color-dark);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.search-result-item-info {
    flex-grow: 1;
}

.search-result-item-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.search-result-item-info .price {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #888;
}

.search-result-item-info .stock {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #5cb85c;
}

.search-result-item .stock-label {
    background-color: #d9534f;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: auto;
    white-space: nowrap;
}

.search-see-more:hover {
    background-color: #eee;
    text-decoration: underline;
}

#search-results-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

