/* ==========================================
   RESETEO GENERAL Y TIPOGRAFÍA
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================
   1. BARRA DE ANUNCIOS SUPERIOR
   ========================================== */
.top-banner {
    background-color: #f1908c;
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff; /* Fondo blanco para la parte superior */
    padding: 0px 0px;
    width: 100%;
    display: flex;
    flex-direction: column; /* Apila todo verticalmente */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}




.header-socials a, .header-user-cart a {
    color: #f1908c;
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.header-socials a:hover, .header-user-cart a:hover {
    color: #d84b6b;
}

.header-logo {
    text-align: center;
}

.header-logo h1 {
    color: #d84b6b;
    font-size: 40px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-logo h1 span {
    color: #f1908c;
}

.header-logo .subtitle {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}


/* Ajustes de la fila superior */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    box-sizing: border-box;
}

/* La Banda Rosa (Fija y unida) */
.nav-bar-pink {
    background-color: #f79696; /* Tu color rosa */
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Enlaces de la banda rosa */
.categories-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-menu li a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px;
    font-size: 14px;
}

/* Buscador en la banda rosa */
.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 5px;
    border: none;
    border-radius: 4px;


    
}


.header-socials a {
  font-size: 24px; /* tamaño del icono */
  margin-right: 15px;
  text-decoration: none;
}

.header-socials .fa-facebook {
  color: #1877F2; /* azul Facebook */
}

.header-socials .fa-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-socials .fa-tiktok {
  color: #000; /* negro TikTok */
  text-shadow: 1px 0 0 #25F4EE, -1px 0 0 #FE2C55; /* efecto característico */
}

/* ==========================================
   3. BARRA DE NAVEGACIÓN Y CATEGORÍAS
   ========================================== */
.nav-categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1908c;
    padding: 0 50px; /* Reducido para dar más espacio horizontal */
    width: 100%;
}

.categories-menu {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap; /* Evita que el menú se rompa en pantallas medianas */
}

.categories-menu > li {
    position: relative;
}

/* Enlaces principales del menú coral */
.categories-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px; /* Tamaño ideal para que quepan las 9 categorías */
    transition: background-color 0.2s;
    display: inline-block;
}

.categories-menu > li > a {
    padding: 15px 10px; /* Distribución equilibrada */
}

.categories-menu > li > a:hover {
    background-color: #d84b6b; /* Feedback visual elegante */
}

/* Flecha de los desplegables */
.arrow {
    font-size: 9px;
    margin-left: 3px;
    vertical-align: middle;
    opacity: 0.8;
}


/* Enlaces principales del menú coral (Día del Padre, Amor, etc.) */
.categories-menu > li > a {
    color: white;
    text-decoration: none;
    
    /* CAMBIO REQUERIDO: Aplicamos la tipografía elegante con serif */
    font-family: 'Playfair Display', 'Georgia', serif; 
    font-weight: 400;              /* Hace la letra un poquito más gruesa y legible */
    font-size: 15px;               /* Tamaño ideal para que destaque este estilo de letra */
    
    /* MODIFICACIÓN DE ESPACIOS: Aumentamos el padding para separarlos más como en tu foto */
    padding: 18px 10px;            /* 18px arriba/abajo y 25px a los lados */
    display: inline-block;
    
    /* Transición suave para cuando cambie de color en el hover */
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* ==========================================
   MENÚS DESPLEGABLES (LAS CAJITAS BLANCAS)
   ========================================== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 210px;
    list-style: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

/* Enlaces dentro de las cajitas blancas */
.dropdown-menu li a {
    color: #444444 !important;
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: #fce8e6;
    color: #d84b6b !important;
}

/* Acción de despliegue */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   BUSCADOR DE PRODUCTOS, barra de
   ========================================== */
.search-box {
    display: flex;
    align-items: center;
    margin-left:200px;
}

.search-box input {
    padding: 8px 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 13px;
    width: 170px;
}

.search-box button {
    padding: 8px 16px;
    border: none;
    background-color: #d84b6b;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #b33653;
}

/* Espacio inferior controlado */
.content-wrapper {
    padding: 5px 100px;
}


/* ==========================================
   4. ESTILOS PARA EL CONTENIDO PRINCIPAL Y BREADCRUMBS
   ========================================== */

/* Solo debe haber UNA definición de content-wrapper */
.content-wrapper {
    width: 100% !important; 
    max-width: 100% !important; 
    margin: 0 !important;          
    padding: 30px 50px !important; 
    background-color: #ffffff !important;
    display: block !important;
    box-sizing: border-box !important; 
}

.breadcrumbs {
    margin-bottom: 30px;        
    display: block;
}

.breadcrumbs ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.breadcrumbs li, 
.breadcrumbs li a {
    color: #555555 !important;           
    font-family: 'Poppins', 'Segoe UI', sans-serif; 
    font-size: 15px;          
    text-decoration: none !important;    
    font-weight: 400;        
}

.breadcrumbs .separator {
    margin: 0 10px !important;          
    color: #888888 !important;          
}

.breadcrumbs .active {
    color: #1e3a5f !important;           
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important;    
}

/* ==========================================
   BANNER PRINCIPAL (AJUSTADO Y LIMPIO)
   ========================================== */
.hero-banner-magic {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: block; /* Cambiado de flex a block para evitar conflictos */
}

.hero-full-img {
    width: 100%;
    height: auto;
    display: block;
    /* Usamos 'cover' para que la imagen llene el espacio sin dejar espacios blancos */
    object-fit: cover; 
}


:root {
    --rojo-principal: #b71c1c;
    --rojo-oscuro: #7f0000;
    --celeste-claro: #e3f2fd;
    --blanco: #ffffff;
    --sombra: 0 10px 25px rgba(0,0,0,0.1);
}

body { 
    background-color: var(--celeste-claro); 
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0; padding: 0; color: #333;
}

/* HEADER ÚNICO Y LIMPIO */
header {
    background: var(--blanco);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}




/* ==========================================
   AJUSTE DE NAVEGACIÓN Y BUSCADOR
   ========================================== */
.nav-categories {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #f1908c;
    padding: 0 0px !important;
    width: 100% !important;
}

/* ==========================================
   AJUSTE DE NAVEGACIÓN Y BUSCADOR.....
   ========================================== */
.search-box {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important; /* Empuja el buscador a la derecha automáticamente */
}

.search-box {
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
}

.search-box input{
    width: 100%;
}


.hero-banner-magic {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 10px !important; /* Esto separa el banner del menú coral */
    overflow: hidden !important;
}

.content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important; /* Quitamos el padding que empujaba el contenido */
    background-color: #ffffff !important;
}


/* =========================
   ESTILOS GENERALES
========================= */

.products-section {
    font-family: 'Poppins', sans-serif;
    padding: 10px 80px;
    background: #ffffff;
}

/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
    margin-bottom: 5px;
    color: #888;
    font-size: 0.9rem;
}

  /* Por letra de la A-z */
#ordenarProductos {
  appearance: none; /* quita el estilo por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  
  padding: 10px 40px 10px 15px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif; /* usa la misma fuente de tu web */
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  
  /* Flecha personalizada */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  
  transition: all 0.2s ease;
}

#ordenarProductos:hover {
  border-color: #ff69b4; /* rosa de tu tema */
  box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2);
}

#ordenarProductos:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
}

/* Estilo de las opciones del desplegable */
#ordenarProductos option {
  padding: 20px;
  font-size: 15px;
  background: #fff;
  color: #333;
}

#ordenarProductos option:hover {
  background: #ff69b4;
  color: #fff;
}

.breadcrumb a {
    color: #ff8a8a;
    text-decoration: none;
}

.breadcrumb span {
    color: #333;
    font-weight: bold;
}



/* =========================
   TITULO
========================= */

/* Ajusta el contenedor que los agrupa */
.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Elimina cualquier espacio extra entre elementos */
    margin-bottom: 20px;
}

/* Estilo del Título */
.category-title {
    font-size: 2.0rem;      /* Ajusta el tamaño según tu preferencia */
    color: #2c3e50;         /* Un color oscuro profesional */
    margin: 0;              /* Elimina margen para controlarlo mejor */
    padding: 0;
    font-family: 'Playfair Display', serif; /* Mantén tu fuente elegante */
    text-transform: uppercase;
}

/* Ajusta el contador */
.category-count {
    margin-top: 2px; /* Un margen superior mínimo solo para separar apenas */
    font-size: 1rem;
    color: #666;
    padding: auto;
}


/* =========================
   CABECERA
========================= */

.comparative-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 30px;
}

.order-by {
    padding: 0px 0px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
}


/* 1. Contenedor principal que envuelve al grid */
.catalog-container {
    width: 100%;
    max-width: 1200px; /* Ajusta según el diseño de tu web */
    margin: 0 auto;    /* Centra el catálogo en la pantalla */
}

/* Contenedor de la cuadrícula (para mostrar 4 por fila) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Esto fuerza las 4 columnas */
    gap: 20px;
    padding: 1px;
}

/* Tarjeta de producto estandarizada */
.product-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 0px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mantiene el botón al fondo */
    height: 100%;
}

.product-card h3 {
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 10px 0;
    text-transform: uppercase;
}

.product-card p {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.btn-add-cart {
    background: #f79696; /* Tu rosa corporativo */
    color: white;
    border: none;
    padding: 0px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
}



/* =========================
   GRID PRODUCTOS
========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    width: 100%; /* Asegura que ocupe todo el ancho */
    max-width: 1200px; /* Opcional: limita el ancho máximo para que no se estire demasiado */
    margin: 0 auto;    /* Esto centra todo el catálogo en la página */
}

/* =========================
   TARJETAS
========================= */

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.4s;
}

.product-card:hover {
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.product-card h3 {
    margin-top: 15px;
    color: #01475c; /* El azul que seleccionamos */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase; /* Para que luzca igual a la imagen */
    line-height: 1.3;          /* Mejora la separación entre líneas */
}



/* Definimos el color y la fuente para esos textos */
.titulo-producto {
    color: #005670; /* Este es el código de color aproximado al azul de tu imagen */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente limpia y moderna */
    font-weight: 600; /* Un grosor medio-alto para que resalte */
    text-transform: uppercase; /* Para que siempre esté en mayúsculas */
    letter-spacing: 0.5px; /* Un pequeño espacio entre letras para mayor elegancia */
}


/* ==========================================
   BOTÓN AGREGAR AL CARRITO
========================================== */

.btn-add-cart {
    background: #ff8a8a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: #ff6b6b;
    letter-spacing: 1px;
}

/* ==========================================
   ICONO CARRITO
========================================== */

.btn-carrito{
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.fa-cart-shopping{
    font-size: 22px;
    color: #f1908c;
}

/* Número del carrito */
#cart-count{
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d84b6b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ==========================================
   SIDEBAR CARRITO
========================================== */

.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
}

.sidebar.active {
    right: 0;
}

/* Header carrito */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f3f3f3;
    padding-bottom: 15px;
}

/* Productos */
#cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin: 20px 0;
}

/* Producto individual */
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item h4 {
    margin: 0;
    font-size: 14px;
}

.cart-item p {
    margin: 0;
    color: #d84b6b;
    font-weight: bold;
}

/* Botón eliminar */
.btn-remove{
    background:#ff6b6b;
    color:white;
    border:none;
    padding:5px 10px;
    border-radius:5px;
    cursor:pointer;
}

/* Footer carrito */
#cart-footer {
    border-top: 2px solid #f3f3f3;
    padding-top: 15px;
}

/* Total */
.total-container{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-weight:bold;
}

/* Botón pagar */
.btn-pagar {
    background: #ff7e8c;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Fondo oscuro */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .comparative-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .products-section h1 {
        font-size: 2rem;
    }

    .sidebar{
        width:100%;
    }
}

/*FORMULARIO*/
.modal-contenido {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-contenido input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px; /* Inputs redondeados */
    box-sizing: border-box;
}

.modal-contenido button {
    background: #ffb6c1; /* Tu tono rosado */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px; /* Botón tipo cápsula */
    cursor: pointer;
    font-weight: bold;
}

/* Fondo oscuro que cubre toda la pantalla */
.modal-fondo {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Oscurece el fondo */
    z-index: 10000; /* Asegura que esté por encima de todo */
    display: flex; justify-content: center; align-items: center;
}

/* La tarjeta blanca donde va el formulario */
.modal-contenido {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cerrar {
    position: absolute; top: 10px; right: 15px;
    cursor: pointer; font-size: 20px;
}

.modal-contenido {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ICONO DE CUENTA */
.fa-circle-user,
.fa-user,
.fa-regular.fa-user {
    font-size: 28px;
    color: #f1908c;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 15px;
}

.fa-circle-user:hover,
.fa-user:hover {
    color: #d84b6b;
    transform: scale(1.1);
}

/* ==========================================
   MODAL COMPRA EXITOSA
========================================== */

.modal-compra{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 2000;
}

.modal-compra-contenido{
    background: white;
    width: 350px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;

    animation: aparecer 0.3s ease;
}

.modal-compra-contenido h2{
    color: #d84b6b;
    margin-bottom: 10px;
}

.modal-compra-contenido p{
    margin-bottom: 20px;
    color: #555;
}

.modal-compra-contenido button{
    background: #ff7e8c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.modal-compra-contenido button:hover{
    background: #d84b6b;
    transform: scale(1.05);
}

@keyframes aparecer{
    from{
        transform: scale(0.7);
        opacity: 0;
    }

    to{
        transform: scale(1);
        opacity: 1;
    }
}


