:root {
    --celeste: #00aaff;
    --blanco: #ffffff;
    --negro: #333333;
    --gris-claro: #f4f9ff;
}

html {
    background-color: var(--gris-fondo);
    display: flex;
    justify-content: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    justify-content: center;
}

body {
    background-color: var(--blanco);
    color: var(--negro);
    max-width: 1240px; 
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    overflow-x: hidden;
 }


.results-page {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h1 span {
    color: var(--celeste);
}


.product-row-card {
    display: flex;
    background: var(--blanco);
    border-radius: 30px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #eee;
    width: 100%; 
}

.product-row-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 174, 239, 0.15);
    border-color: var(--celeste);
}


.row-image {
    width: 250px;
    min-width: 250px;
    background: #0a9d000d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.row-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 15px;
}


.row-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.badge-stock {
    font-size: 0.75rem;
    background: #e8f8ff;
    color: var(--celeste);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.row-info h3 {
    font-size: 1.4rem;
    margin: 10px 0 5px 0;
}

.row-rating {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.row-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.row-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.row-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--negro);
}

.row-price small {
    font-size: 0.8rem;
    color: #888;
}

.btn-view {
    padding: 12px 25px;
    background: var(--celeste);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-view:hover {
    background: #008cc0;
}

@media (max-width: 768px) {
    .product-row-card {
        flex-direction: column; 
    }

    .row-image {
        width: 100%;
        height: 200px;
    }

    .row-info h3 {
        font-size: 1.2rem;
    }

    .row-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-view {
        width: 100%;
        text-align: center;
    }
    .results-header h1{
        
    font-size: 1.5rem;

    }
    .related-section h2{
        font-size: 1.2rem;
    }
}