/* =========================================
   BUSH BAGS PRODUCT SEARCH
========================================= */

.bb-product-search-page {
    background: #fff;
    color: #333;
}

.bb-search-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Search banner */

.bb-search-banner {
    padding: 65px 20px 60px;
    background: #f2eee6;
    text-align: center;
}

.bb-search-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #77705f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bb-search-banner h1 {
    margin: 0 0 14px;
    color: #35372c;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.bb-search-banner p {
    margin: 0 0 28px;
    color: #68665e;
    font-size: 16px;
}

/* Search form */

.bb-search-page-form {
    display: flex;
    width: min(600px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ded8cc;
    border-radius: 4px;
    background: #fff;
}

.bb-search-page-form input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border: 0;
    outline: none;
    background: transparent;
    color: #333;
    font: inherit;
}

.bb-search-page-form button {
    flex-shrink: 0;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    background: #454735;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-search-page-form button:hover {
    background: #65684e;
}

/* Results section */

.bb-search-results-section {
    padding: 50px 0 70px;
}

.bb-search-results-top {
    margin-bottom: 24px;
}

.bb-search-results-top p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* Product grid */

.bb-search-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 22px;
}

.bb-search-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eeeae3;
    background: #fff;
    transition: box-shadow 0.25s ease,
                transform 0.25s ease;
}

.bb-search-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

/* Product image */

.bb-search-product-image {
    position: relative;
    display: flex;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f5f0;
}

.bb-search-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bb-search-product-card:hover .bb-search-product-image img {
    transform: scale(1.04);
}

.bb-search-out-of-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: #fff;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product details */

.bb-search-product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.bb-search-product-details h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.bb-search-product-details h2 a {
    color: #35372c;
    text-decoration: none;
}

.bb-search-product-details h2 a:hover {
    color: #77785b;
}

.bb-search-product-price {
    margin-bottom: 18px;
    color: #555644;
    font-size: 16px;
}

.bb-search-product-price del {
    color: #999;
    font-size: 13px;
}

.bb-search-product-price ins {
    text-decoration: none;
}

/* Product button */

.bb-search-product-button {
    display: inline-block;
    margin-top: auto;
    padding: 11px 16px;
    border: 1px solid #454735;
    background: #454735;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.bb-search-product-button:hover {
    background: #fff;
    color: #454735;
}

/* No results */

.bb-search-no-results {
    max-width: 620px;
    margin: 30px auto;
    padding: 50px 25px;
    border: 1px solid #eeeae3;
    text-align: center;
}

.bb-search-no-results-icon {
    margin-bottom: 18px;
    font-size: 36px;
}

.bb-search-no-results h2 {
    margin: 0 0 14px;
    color: #35372c;
    font-size: 28px;
}

.bb-search-no-results p {
    margin: 0 0 25px;
    color: #777;
    line-height: 1.7;
}

.bb-search-back-to-shop {
    display: inline-block;
    padding: 13px 22px;
    background: #454735;
    color: #fff;
    text-decoration: none;
}

.bb-search-back-to-shop:hover {
    background: #65684e;
    color: #fff;
}

/* Pagination */

.bb-search-pagination {
    margin-top: 45px;
}

.bb-search-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-search-pagination a,
.bb-search-pagination span {
    display: flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #e5e0d7;
    color: #454735;
    text-decoration: none;
}

.bb-search-pagination .current {
    border-color: #454735;
    background: #454735;
    color: #fff;
}

.bb-search-pagination a:hover {
    background: #f2eee6;
}

/* Responsive */

@media (max-width: 1024px) {
    .bb-search-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 18px;
    }
}

@media (max-width: 700px) {
    .bb-search-banner {
        padding: 45px 0;
    }

    .bb-search-results-section {
        padding: 35px 0 50px;
    }

    .bb-search-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .bb-search-product-details {
        padding: 12px;
    }

    .bb-search-product-details h2 {
        font-size: 14px;
    }

    .bb-search-product-price {
        font-size: 14px;
    }

    .bb-search-product-button {
        width: 100%;
        padding: 10px 8px;
        font-size: 12px;
    }

    .bb-search-page-form input[type="search"] {
        padding: 13px 12px;
        font-size: 14px;
    }

    .bb-search-page-form button {
        padding: 0 18px;
    }
}