/*
Theme Name: Nostalgic AC
Author: Lavack Design
Author URI: https://lavack.com
Template: macchina
*/

/* General Container for Search Results */
.custom-search-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
}

/* Set .search-results as a flex container for grid layout */
.search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 0;
    margin-top: 0;
}

.search-results .search-item {
    width: 250px;
    border: 1px solid #eaeaea;
    padding: 15px;
    background-color: #fff;
    text-align: center;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
}

.search-item {
    margin-left: 20px;
    margin-bottom: 20px;
}

.search-results .search-item:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Styling */
.product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Product Title */
.product-title {
    font-size: 15pt !important;
    font-weight: 300;
    margin: 10px 0 5px;
    color: #333;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

/* SKU Styling */
.sku {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

/* Price Styling */
.price {
    font-size: 1em;
    color: #0071a1;
    margin-bottom: 10px;
}

/* Add to Cart Button Styling */
.add-to-cart-button {
    display: inline-block;
    background-color: #0071a1;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.add-to-cart-button:hover {
    background-color: #005580;
}

/* Force full-width footer for search results page */
body.search .footer-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

