header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: white; /* Asegúrate de que tenga fondo */
}

/* Contenedor de sugerencias */
.suggestions-container {
    position: absolute;
    top: 100%; /* Debajo del campo de búsqueda */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000; /* Por encima de otros elementos */
    max-height: 200px;
    overflow-y: auto;
    pointer-events: auto;
}

.search-results-container {
    position: absolute;
    top: 100%; /* Debajo del header */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 999; /* Debajo del contenedor de sugerencias */
    padding: 10px;
    max-height: 400px;
    overflow-y: auto; /* Desplazamiento si hay muchos resultados */
}


.result-item {
    margin-bottom: 10px;
}

.selected-product-container {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-box {
    border-radius: 12px;
    transition: transform 0.3s;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box iconify-icon {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 50%;
    color: #fbcc05;
}

.map-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.map {
    width: 90%;
    max-width: 800px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .map {
        width: 95%;
        height: 300px;
    }
}

.rainbow-neon {
    border: 1px solid #FBFBFB;
    box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    text-align: center;
    padding: 60px 20px;
    margin: 20px 0;
    transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
    position: relative;
    background: black;
    color: white;
    border-image: linear-gradient(90deg,
        red, orange, yellow,
        green, blue, indigo, violet);
    border-image-slice: 1;
    animation: border-rainbow 3s linear infinite;
}

@keyframes border-rainbow {
    0% { border-image-source: linear-gradient(90deg, red, orange, yellow); }
    33% { border-image-source: linear-gradient(90deg, green, blue, indigo); }
    66% { border-image-source: linear-gradient(90deg, violet, red, orange); }
    100% { border-image-source: linear-gradient(90deg, yellow, green, blue); }
}



.back-color-header {
    background-color: #fbcc05;
    position: relative; /* Necesario para el pseudo-elemento */
    padding-bottom: 30px; /* Espacio para el difuminado */
}

.back-color-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px; /* Altura del difuminado */
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.back-color-footer {
    background-color: #fbcc05;
    position: relative; /* Necesario para el pseudo-elemento */
    padding-top: 30px; /* Espacio para el difuminado */
}

/* Efecto de difuminado SOLO en el top */
.back-color-footer::before {
    /* Usamos ::before para el difuminado superior */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px; /* Altura del difuminado */
    background: linear-gradient(
        to bottom,
        /* Dirección inversa (hacia abajo) */ rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        transparent 100%
    );
}

.product-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.back-button {
    margin-bottom: 20px;
}

.product-image {
  max-width: 100%; /* Máximo ancho permitido */
  max-height: 120px; /* Altura controlada (ajusta según necesidad) */
  width: auto;
  height: auto;
  object-fit: contain; /* Mantiene proporciones sin recortar */
  border-radius: 8px; /* Opcional: bordes redondeados */
}


/* Contenedor principal del carrusel */
.category-carousel {
  padding: 0 15px; /* Espacio a los lados */
}

/* Cada slide/item */
.category-item-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.category-title {
  font-size: 14px;
  text-align: center;
  margin-top: 8px !important;
  color: #333; /* Color personalizable */
}


.swiper-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
}



.product-item {
    /* Para pantallas web (>= 992px) */
    width: 280px; /* Ancho intermedio (entre 250-300px es ideal) */
    max-width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Efecto hover para web */
    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    /* Para móviles (ajuste automático) */
    @media (max-width: 991px) {
        width: 100%;
        padding: 15px;
    }

    /* Pantallas muy grandes (opcional) */
    @media (min-width: 1600px) {
        width: 320px;
    }
}

.product-item h3 {
    font-size: 15px;
    line-height: 1.4;
    height: 2.8em; /* 2 líneas (1.4 x 2) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0;
    margin-bottom: 5px;
}

.product-item .qty2 {
    font-size: 12px;
    line-height: 1.3;
    height: 2.6em; /* 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    margin: 2px 0;
}

/* Imagen - Altura fija */
.product-item figure {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item .price {
    font-weight: bold;
    color: #28a745;
    display: block;
    margin: 3px 0;
    font-size: 18px;
}


.product-item .qty {
    font-size: 11px !important; /* Texto más pequeño */
    line-height: 1.2;
    margin-bottom: -30px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Ajustes para la imagen */
.product-item figure img {
    max-height: 160px; /* Reduce un poco la imagen */
    width: auto;
    margin: 0 auto;
}

/* Contenedor de especificaciones */
.specs-container {
    margin: 8px 0;
}

/* Versión con dos puntos */
.product-item .spec-label {
    font-weight: 600;
    font-size: 11px;
    display: inline;
}

.product-item .spec-value {
    font-size: 11px;
    display: inline;
}

/* Botón de WhatsApp más compacto */
.product-item .btn {
    padding: 8px 12px;
    font-size: 13px;
    margin-top: auto; /* Lo ancla al fondo */
}

/* Estilos para la página individual del producto */
.product-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.product-details {
    padding: 1.5rem;
}

.product-description {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.back-button {
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .product-container {
        padding: 1rem;
        margin: 1rem;
    }

    .product-image {
        max-height: 300px;
    }
}
