.search-results-page {
    min-height: 60vh;
    background: #f8fafc;
}

.search-results-header {
    padding: clamp(1.75rem, 4vw, 3.25rem) 0 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #fff 0%, #f6fbff 100%);
}

.search-results-eyebrow {
    display: block;
    margin-bottom: .4rem;
    color: #0088cc;
    font-size: .78rem;
    font-weight: 900;
}

.search-results-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.45;
}

.search-results-header h1 span {
    color: #006da6;
}

.search-results-header p {
    margin: .45rem 0 0;
    color: #64748b;
    font-size: .9rem;
    font-weight: 700;
}

.search-results-section {
    padding: clamp(1.25rem, 3vw, 2.5rem) 0 3.5rem;
}

.search-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

.search-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    flex-direction: column;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-product-card:hover {
    border-color: #cfe9f7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.search-product-card__badge {
    position: absolute;
    z-index: 2;
    top: .8rem;
    right: .8rem;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    padding: .3rem .65rem;
    font-size: .7rem;
    font-weight: 900;
}

.search-product-card__image {
    display: grid;
    position: relative;
    z-index: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: .9rem;
    place-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.search-product-card__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: contain !important;
    object-position: center;
    transition: transform .25s ease;
}

.search-product-card:hover .search-product-card__image img {
    transform: scale(1.035);
}

.search-product-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: .35rem;
    padding: .85rem .9rem 1rem;
    background: #fff;
}

.search-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-product-card__title:hover {
    color: #007cb8;
}

.search-product-card__spec {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-product-card__price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: auto 0 .7rem;
    padding-top: .55rem;
}

.search-product-card__price strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.search-product-card__price del {
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 700;
}

.search-product-card__form {
    margin-top: auto;
}

.search-product-card .add-to-cart-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    direction: rtl;
}

.search-product-card .quantity-selector {
    flex: 0 0 auto;
}

.search-product-card .quantity-selector__input {
    width: 38px !important;
    margin: 0 !important;
}

.search-product-card .cart-submit {
    width: 100%;
    min-width: 0;
    height: 38px;
    border-radius: 10px;
    padding: 0 .75rem;
    font-size: .8rem;
    font-weight: 800;
}

.search-product-card__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 38px;
    margin-top: 0;
    border: 1px solid #cfe4f0;
    border-radius: 10px;
    background: #f4fafd;
    color: #006da6;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.search-product-card__details:hover {
    border-color: #0088cc;
    background: #0088cc;
    color: #fff;
}

@media (max-width: 1199px) {
    .search-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .search-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .search-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-product-card {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .search-product-card__image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 380px) {
    .search-product-card .add-to-cart-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-product-card .quantity-selector {
        width: 100%;
    }

    .search-product-card .quantity-selector__button,
    .search-product-card .quantity-selector__input {
        flex: 1;
    }
}
