.woocommerce mark { display: none; }

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

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


/* EMPIRE - SEARCH RESULTS LAYOUT */

/* Give search results full available width */
body.search-results #primary,
body.search-results .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove sidebar from search results */
body.search-results #secondary {
    display: none !important;
}

/* Fix product grid */
body.search-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
}

/* Remove WooCommerce clearfix elements */
body.search-results ul.products::before,
body.search-results ul.products::after {
    display: none !important;
}

/* Stop product cards from stretching */
body.search-results ul.products li.product {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    align-self: start !important;
}

/* Keep product images uniform */
body.search-results ul.products li.product img {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
}

/* Large desktops - 5 columns */
@media (min-width: 1280px) {
    body.search-results ul.products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Mobile - 2 columns */
@media (max-width: 767px) {
    body.search-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.search-results ul.products li.product img {
        height: 150px !important;
    }
}

/* =========================================
   EMPIRE PREMIUM SEARCH UPGRADE
   CENTERED PRODUCT SHOWCASE
   ========================================= */

/* CENTER THE ENTIRE SEARCH PAGE */
body.search-results .site-content .ast-container,
body.search-results .site-content > .container,
body.search-results .site-content > .col-full {
    max-width: 1550px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box;
}

body.search-results #primary,
body.search-results .content-area {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ELEGANT SEARCH HEADING */
body.search-results .page-title {
    text-align: center !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.6px;
    color: #24282e !important;
    margin: 25px auto 35px !important;
    line-height: 1.25;
}

/* CENTERED FLEX GRID
   Centers incomplete final rows automatically */
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;
    gap: 24px !important;

    width: 100% !important;
    max-width: 1450px !important;
    margin: 30px auto 55px !important;
    padding: 0 !important;
}

/* FIVE PRODUCTS PER ROW */
body.search-results ul.products li.product {
    flex: 0 0 calc((100% - 96px) / 5) !important;
    width: calc((100% - 96px) / 5) !important;
    max-width: calc((100% - 96px) / 5) !important;

    position: relative !important;
    overflow: hidden !important;
    padding: 22px 18px !important;

    background: #ffffff !important;
    border: 1px solid #e7e9ed !important;
    border-radius: 16px !important;

    box-shadow:
      0 3px 8px rgba(20, 30, 45, 0.035),
      0 10px 28px rgba(20, 30, 45, 0.065) !important;

    text-align: center !important;

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

/* SUBTLE RED ACCENT AT TOP OF CARDS */
body.search-results ul.products li.product::before {
    content: "" !important;
    position: absolute !important;
    top: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #ac2930;
    border-radius: 0 0 5px 5px;
    opacity: 0;
    transition: opacity .25s ease;
}

/* PREMIUM HOVER EFFECT */
body.search-results ul.products li.product:hover {
    transform: translateY(-5px) !important;
    border-color: #ded1d2 !important;
    box-shadow:
      0 8px 18px rgba(20, 30, 45, 0.07),
      0 20px 40px rgba(20, 30, 45, 0.10) !important;
}

body.search-results ul.products li.product:hover::before {
    opacity: 1;
}

/* CLEAN, CONSISTENT IMAGE PRESENTATION */
body.search-results ul.products li.product img {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fafbfc !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin: 0 auto 20px !important;
    box-sizing: border-box !important;
}

/* REFINED PRODUCT TITLES */
body.search-results ul.products li.product
.woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
    color: #262b33 !important;
    text-align: center !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

/* PRODUCT PRICE */
body.search-results ul.products li.product .price {
    color: #252b32 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 0 18px !important;
}

/* ELEGANT RED PRODUCT BUTTONS */
body.search-results ul.products li.product .button,
body.search-results ul.products li.product .added_to_cart {
    background: #a9252d !important;
    color: #ffffff !important;
    border: 1px solid #a9252d !important;
    border-radius: 8px !important;

    width: 100% !important;
    padding: 13px 10px !important;

    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.2px;
    text-align: center !important;

    margin-top: auto !important;
    box-shadow: 0 3px 8px rgba(169, 37, 45, .12);
    transition: background .2s ease,
                box-shadow .2s ease !important;
}

body.search-results ul.products li.product .button:hover,
body.search-results ul.products li.product .added_to_cart:hover {
    background: #831b22 !important;
    border-color: #831b22 !important;
    box-shadow: 0 5px 14px rgba(169,37,45,.18);
}

/* POLISHED RESULT COUNT AND SORT MENU */
body.search-results .woocommerce-result-count {
    font-size: 13px !important;
    color: #6d7380 !important;
}

body.search-results .woocommerce-ordering select {
    border: 1px solid #e2e5e9 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    color: #303640 !important;
}

/* RESPONSIVE: 4 PRODUCTS */
@media (max-width: 1150px) {
    body.search-results ul.products {
        gap: 18px !important;
    }

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

/* RESPONSIVE: 3 PRODUCTS */
@media (max-width: 900px) {
    body.search-results ul.products {
        gap: 16px !important;
    }

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

    body.search-results ul.products li.product img {
        height: 150px !important;
    }
}

/* RESPONSIVE: MOBILE */
@media (max-width: 600px) {
    body.search-results .site-content .ast-container {
        padding-left: 12px !important;
        padding-right: 12px !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: 12px !important;
    }

    body.search-results ul.products li.product img {
        height: 120px !important;
        padding: 7px !important;
    }

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

/* RESPECT REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    body.search-results ul.products li.product {
        transition: none !important;
    }

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