/* Container for the table */

.main-result-wrapper {
    width: 70%;
    margin: 0 auto;
}

.table-container {
    max-width: 600px;
    margin: 3em auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #FFD045; /* Header background color */
    color: #333;
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping for rows */
}

tr:hover {
    background-color: #ddd; /* Highlight row on hover */
}

img {
    border-radius: 5px; /* Optional: add rounded corners to images */
}

a {
    color: black; /* Link color */
    text-decoration: none;
}

/*a:hover {*/
/*    text-decoration: underline; !* Underline links on hover *!*/
/*}*/

/*.result-header {*/
/*    margin: 2em 0;*/
/*}*/
@media (max-width: 900px) {
    .result-header {
        margin: 0;
    }
    .result-header span {
        margin-bottom: 0.5em;
    }
}


.result-actions-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

img.result-image {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.product-link-container {
    transition: transform 0.5s ease;
    position: relative;
}

.product-link-container:hover {
    transform: scale(1.02);
}

/* Base styling for labels */
.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Different colors for each label */
.product-link-container:nth-child(1) .product-label {
    background: #28a745; /* Green - Cheapest */
}

.product-link-container:nth-child(2) .product-label {
    background: #007bff; /* Blue - Best price-performance */
}

.product-link-container:nth-child(3) .product-label {
    background: #dc3545; /* Red - Best option */
}

@media (max-width: 900px) {
    .result-header {
        flex-direction: column;
    }
}

.result-products {

}
@media (max-width: 900px) {
    .result-products {
        flex-direction: column;
        gap: 1.5em;
    }

    .result-products a{
        width: 100%;
    }
}
