/* Search results - product grid styling to match theme */
.search-results-page {
    padding: 2rem 0;
}

.search-results-page .search-title {
    margin-bottom: 30px;
    font-size: 26px;
    color: #222;
}

.search-results-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.search-results-page ul.products li.product {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results-page ul.products li.product a.woocommerce-LoopProduct-link,
.search-results-page ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.search-results-page ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.search-results-page .woocommerce-loop-product__title {
    font-size: 16px;
    color: #222;
    margin: 0;
    font-weight: 600;
    line-height: 1.25;
}

.search-results-page .price {
    color: #f99e00;
    font-weight: 700;
    font-size: 18px;
}

.search-results-page .button,
.search-results-page .add_to_cart_button {
    width: 100%;
    text-align: center;
}

@media (max-width: 991px) {
    .search-results-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .search-results-page ul.products {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .search-results-page .search-title {
        font-size: 1.25rem;
    }
}

/* Additional styles to match provided product card design */
.search-results-page ul.products li.product {
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.search-results-page .ws247-ea-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 6px;
    background: transparent;
}

.search-results-page .ws247-ea-img-wrapper img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.search-results-page .onsale {
    position: absolute;
    right: 16px;
    top: 12px;
    background: #22a447;
    color: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
}

.search-results-page .woocommerce-loop-product__title {
    color: #ff8c00;
    /* orange title */
    font-size: 18px;
    margin-top: 6px;
}

.search-results-page .star-rating {
    color: #fe9900;
    font-size: 14px;
}

.search-results-page .price {
    display: block;
    margin-top: 6px;
}

.search-results-page .price del {
    color: #9ca3af;
}

.search-results-page .price ins {
    color: #16a34a;
    font-weight: 700;
}

.search-results-page .ws247-ea-atc-wrapper {
    margin-top: 12px;
}

.search-results-page .ws247-ea-atc-wrapper .add_to_cart_button,
.search-results-page .ws247-ea-atc-wrapper .button {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(90deg, #ff9e00, #ff6b00);
    color: #fff !important;
    border-radius: 28px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.18);
}

.search-results-page ul.products li.product .ws247-ea-atc-wrapper .add_to_cart_button:hover {
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .search-results-page .ws247-ea-img-wrapper img {
        max-width: 220px;
    }
}