.woocommerce mark { display: none; }

.product a:hover {
    color: #FF0000 !important;
}

.woocommerce ul.products li.product {
    text-align: center;
}


/* ============================================
   EMPIRE AUTOMOTIVE SOLUTIONS
   SIGNATURE SEARCH RESULTS DESIGN
   ============================================ */

/* 1. FULL-WIDTH SEARCH PAGE */

body.search-results .site-content {
    background: #f7f8fa !important;
}

body.search-results .site-content .ast-container {
    width: 100% !important;
    max-width: 2000px !important;
    padding: 45px 35px 80px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

body.search-results #primary,
body.search-results .content-area,
body.search-results main.site-main,
body.search-results .ast-woocommerce-container {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.search-results #secondary {
    display: none !important;
}


/* 2. ELEGANT PAGE TITLE */

body.search-results .page-title {
    text-align: center !important;
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.7px;
    color: #222831 !important;
    margin: 15px auto 45px !important;
    line-height: 1.3 !important;
}

body.search-results .page-title::after {
    content: "";
    display: block;
    width: 65px;
    height: 3px;
    background: #a62932;
    border-radius: 10px;
    margin: 20px auto 0;
}


/* 3. FIVE-COLUMN CENTERED GRID */

body.search-results ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    align-content: flex-start !important;

    width: 100% !important;
    max-width: 1900px !important;
    gap: 25px !important;

    margin: 35px auto 60px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.search-results ul.products::before,
body.search-results ul.products::after {
    display: none !important;
}


/* 4. PERFECTLY MATCHING PRODUCT CARDS */

body.search-results ul.products li.product {
    flex: 0 0 calc((100% - 100px) / 5) !important;
    width: calc((100% - 100px) / 5) !important;
    max-width: calc((100% - 100px) / 5) !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    position: relative !important;
    float: none !important;
    clear: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 20px !important;

    background: #ffffff !important;
    border: 1px solid #e7e9ee !important;
    border-radius: 18px !important;

    box-shadow:
        0 4px 12px rgba(25, 35, 50, 0.035),
        0 14px 34px rgba(25, 35, 50, 0.075) !important;

    box-sizing: border-box !important;
    text-align: center !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease !important;
}

/* Subtle premium hover effect */

body.search-results ul.products li.product:hover {
    transform: translateY(-5px) !important;
    border-color: #d8dce3 !important;

    box-shadow:
        0 10px 22px rgba(25, 35, 50, 0.07),
        0 22px 48px rgba(25, 35, 50, 0.13) !important;
}


/* 5. LARGE MATCHING IMAGE PANELS */

body.search-results ul.products li.product
.astra-shop-thumbnail-wrap {
    width: 100% !important;
    height: clamp(215px, 18vw, 300px) !important;

    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: relative !important;

    padding: 15px !important;
    margin: 0 0 22px !important;

    background: #ffffff !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 13px !important;

    box-shadow:
        0 5px 15px rgba(0,0,0,.035),
        0 12px 26px rgba(0,0,0,.075) !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Center the image link */

body.search-results ul.products li.product
.astra-shop-thumbnail-wrap > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Big photos - never crop products */

body.search-results ul.products li.product
.astra-shop-thumbnail-wrap img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    padding: 0 !important;
    margin: 0 auto !important;

    background: transparent !important;
    box-shadow: none !important;
    border: none !important;

    transition: transform .3s ease !important;
}

body.search-results ul.products li.product:hover
.astra-shop-thumbnail-wrap img {
    transform: scale(1.035) !important;
}


/* 6. IDENTICAL INFORMATION SECTIONS */

/* Each card gets matching title,
   price and button areas */

body.search-results ul.products li.product
.astra-shop-summary-wrap {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
        88px
        56px
        46px !important;

    row-gap: 12px !important;

    width: 100% !important;
    flex: 1 0 auto !important;

    padding: 0 !important;
    margin: 0 !important;

    text-align: center !important;
    box-sizing: border-box !important;
}


/* 7. REMOVE DESCRIPTIONS AND CLUTTER */

body.search-results ul.products li.product
.ast-woo-shop-product-description,
body.search-results ul.products li.product
.woocommerce-product-details__short-description,
body.search-results ul.products li.product
.product-description,
body.search-results ul.products li.product
.product-excerpt,
body.search-results ul.products li.product
.short-description,
body.search-results ul.products li.product
.ast-woo-product-category,
body.search-results ul.products li.product
.star-rating {
    display: none !important;
}


/* 8. MATCHING PRODUCT TITLE AREA */

body.search-results ul.products li.product
.ast-loop-product__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 88px !important;
    min-height: 88px !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

body.search-results ul.products li.product
.woocommerce-loop-product__title {
    width: 100% !important;

    color: #252b34 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    text-align: center !important;
    overflow-wrap: anywhere !important;

    margin: 0 !important;
    padding: 0 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    overflow: hidden !important;
}


/* 9. PERFECTLY ALIGNED PRICES */

body.search-results ul.products li.product
.astra-shop-summary-wrap .price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    width: 100% !important;
    height: 56px !important;

    color: #252b34 !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;

    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.search-results ul.products li.product .price del {
    color: #9299a3 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

body.search-results ul.products li.product .price ins {
    color: #a62932 !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}


/* 10. IDENTICAL EMPIRE PRODUCT BUTTONS */

body.search-results ul.products li.product
.astra-shop-summary-wrap .button,
body.search-results ul.products li.product
.astra-shop-summary-wrap .added_to_cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    background: #a62932 !important;
    color: #ffffff !important;

    border: 1px solid #a62932 !important;
    border-radius: 8px !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .15px !important;

    text-align: center !important;
    text-decoration: none !important;

    box-shadow: 0 5px 12px rgba(166,41,50,.16) !important;
    box-sizing: border-box !important;

    transition:
        background .2s ease,
        box-shadow .2s ease !important;
}

body.search-results ul.products li.product
.astra-shop-summary-wrap .button:hover,
body.search-results ul.products li.product
.astra-shop-summary-wrap .added_to_cart:hover {
    background: #811e26 !important;
    border-color: #811e26 !important;
    color: #ffffff !important;

    box-shadow: 0 7px 18px rgba(166,41,50,.24) !important;
}


/* 11. PROFESSIONAL SEARCH CONTROLS */

body.search-results .woocommerce-result-count {
    color: #66707c !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

body.search-results .woocommerce-ordering select {
    background: #ffffff !important;
    color: #303640 !important;

    border: 1px solid #dfe3e8 !important;
    border-radius: 9px !important;

    padding: 11px 15px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.035);
}

body.search-results .woocommerce-pagination {
    width: 100% !important;
    text-align: center !important;
    margin: 40px auto 50px !important;
}


/* 12. RESPONSIVE LAYOUT */

/* Smaller laptops: four products */

@media (max-width: 1199px) {
    body.search-results ul.products {
        gap: 22px !important;
    }

    body.search-results ul.products li.product {
        flex-basis: calc((100% - 66px) / 4) !important;
        width: calc((100% - 66px) / 4) !important;
        max-width: calc((100% - 66px) / 4) !important;
    }
}

/* Tablets: three products */

@media (max-width: 900px) {
    body.search-results ul.products {
        gap: 18px !important;
    }

    body.search-results ul.products li.product {
        flex-basis: calc((100% - 36px) / 3) !important;
        width: calc((100% - 36px) / 3) !important;
        max-width: calc((100% - 36px) / 3) !important;
        padding: 14px !important;
    }

    body.search-results ul.products li.product
    .astra-shop-thumbnail-wrap {
        height: 190px !important;
    }
}

/* Mobile: two products */

@media (max-width: 650px) {
    body.search-results .site-content .ast-container {
        padding: 25px 12px 50px !important;
    }

    body.search-results ul.products {
        gap: 12px !important;
    }

    body.search-results ul.products li.product {
        flex-basis: calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        max-width: calc((100% - 12px) / 2) !important;

        padding: 10px !important;
        border-radius: 12px !important;
    }

    body.search-results ul.products li.product
    .astra-shop-thumbnail-wrap {
        height: 155px !important;
        padding: 8px !important;
        margin-bottom: 12px !important;
    }

    body.search-results ul.products li.product
    .astra-shop-summary-wrap {
        grid-template-rows:
            90px
            52px
            44px !important;

        row-gap: 8px !important;
    }

    body.search-results ul.products li.product
    .ast-loop-product__link {
        height: 90px !important;
        min-height: 90px !important;
    }

    body.search-results ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 12px !important;
    }

    body.search-results ul.products li.product
    .astra-shop-summary-wrap .price {
        height: 52px !important;
        font-size: 13px !important;
    }

    body.search-results ul.products li.product
    .astra-shop-summary-wrap .button {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 10px !important;
        padding: 8px 5px !important;
    }
}

/* Reduce motion if requested */

@media (prefers-reduced-motion: reduce) {
    body.search-results ul.products li.product,
    body.search-results ul.products li.product img {
        transition: none !important;
    }

    body.search-results ul.products li.product:hover,
    body.search-results ul.products li.product:hover img {
        transform: none !important;
    }
}


/* EMPIRE - CORRECT SEARCH RESULTS ALIGNMENT */

@media (min-width: 1200px) {

    body.search-results .page-title,
    body.search-results .woocommerce-result-count,
    body.search-results .woocommerce-ordering,
    body.search-results ul.products {
        position: relative !important;
        left: -110px !important;
    }

}