/* =========================================
   PÁGINA DE RESULTADOS - GRID DE PRODUCTOS
   ========================================= */

/* Contenedor principal de los resultados */
.container {
    position: relative; /* Necesario para posicionar el fondo */
    background-color: #ffffff; /* Fondo blanco base */
    max-width: 100%; /* Para que el fondo llegue a los bordes */
    margin: 0;
    padding: 60px 20px;
    overflow: hidden;
}

/* La capa de la textura (igual que en el Hero) */
.container::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('/img/arctic-tech-background.png'); /* Tu textura */
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Muy sutil */
    z-index: 0;
    pointer-events: none; /* Para que puedas hacer clic en los productos */
}

.results-inner {
    position: relative;
    z-index: 1; /* Por encima de la textura */
    max-width: 1300px; /* Ancho de lectura cómodo */
    margin: 0 auto;
}

/* Ajuste para el header de resultados */
.results-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.results-header h1 {
    color: #1e293b;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.results-header .subtitle {
    color: #00b4d8;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* La cuadrícula (Grid) de productos */
.grid-productos {
    display: grid;
    /* Crea columnas automáticas que no bajen de 320px de ancho */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================================
   ESTILO DE LA TARJETA DE PRODUCTO (CARD)
   ========================================= */
.product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.1);
}

/* Contenedor de la Imagen - ¡Aquí arreglamos la imagen gigante! */
.product-img {
    width: 100%;
    height: 280px; /* Alto fijo para todas las imágenes */
    padding: 30px;
    box-sizing: border-box;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Encaja la imagen sin deformarla ni cortarla */
    mix-blend-mode: multiply; /* Elimina fondos blancos puros de las fotos */
}

/* Información del producto */
.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que todas las tarjetas midan lo mismo */
}

.brand-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* =========================================
   LISTA DE VENDEDORES (AMAZON, MEDIAMARKT...)
   ========================================= */
.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* Empuja los vendedores al fondo de la tarjeta */
}

.vendor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.vendor-item:hover {
    background: #f1f5f9;
}

.vendor-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    width: 35%; /* Ajusta el espacio para el nombre de la tienda */
}

.vendor-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-buy {
    background: #00b4d8;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.btn-buy:hover {
    background: #0284c7;
}

/* Mensaje de "No hay resultados" */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    grid-column: 1 / -1; /* Ocupa todo el ancho */
}

.no-results h3 { color: #0f172a; margin-bottom: 10px; }
.no-results p { color: #64748b; margin-bottom: 25px; }
.btn-back {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-back:hover { background: #e2e8f0; }