/* =========================================================
   BADR STAR - SEARCH PAGE
   Requires the shared product/category styles already used
   across Badr Star pages.
   ========================================================= */

.bs-search-page {
    padding-bottom: 45px;
}


/* Search Hero */
.bs-search-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 25px 28px;
    border: 1px solid #e7edf2;
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 25%, rgba(7, 155, 120, .11), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%);
    box-shadow: 0 10px 30px rgba(6, 40, 70, .05);
}

.bs-search-hero-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #062846;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 9px 20px rgba(6, 40, 70, .15);
}

.bs-search-hero-content {
    min-width: 0;
}

.bs-search-hero h1 {
    margin: 0 0 7px;
    color: #062846;
    font-size: 29px;
    line-height: 1.35;
    font-weight: 800;
}

.bs-search-hero p {
    margin: 0;
    color: #71808e;
    font-size: 13px;
    line-height: 1.8;
}


/* Search Panel */
.bs-search-panel {
    margin-bottom: 34px;
    padding: 20px;
    border: 1px solid #e5ecf1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(6, 40, 70, .045);
}

.bs-search-panel-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(210px, .9fr) auto;
    align-items: end;
    gap: 13px;
}

.bs-search-field label {
    display: block;
    margin-bottom: 7px;
    color: #425466;
    font-size: 12px;
    font-weight: 800;
}

.bs-search-field label i {
    margin-left: 5px;
    color: #079b78;
}

.bs-search-field .form-control {
    height: 45px;
    border: 1px solid #dfe7ed;
    border-radius: 11px;
    box-shadow: none;
    color: #263747;
    font-size: 13px;
}

.bs-search-field .form-control:focus {
    border-color: #079b78;
    box-shadow: 0 0 0 3px rgba(7, 155, 120, .08);
}

.bs-search-submit {
    min-width: 126px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: #079b78;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 9px 18px rgba(7, 155, 120, .18);
    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.bs-search-submit:hover,
.bs-search-submit:focus {
    transform: translateY(-1px);
    background: #067b61;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(7, 155, 120, .23);
    outline: 0;
}

.bs-search-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #edf1f4;
}

.bs-search-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: #5d6d7c;
    font-size: 12px;
    font-weight: 700;
}

.bs-search-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bs-search-check-box {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd7df;
    border-radius: 6px;
    background: #ffffff;
    color: transparent;
    transition: .18s ease;
}

.bs-search-check input:checked + .bs-search-check-box {
    border-color: #079b78;
    background: #079b78;
    color: #ffffff;
}

.bs-search-check input:disabled + .bs-search-check-box {
    opacity: .45;
    cursor: not-allowed;
}

.bs-search-check input:disabled ~ span:last-child {
    opacity: .55;
}


/* Results */
.bs-search-results {
    margin-top: 8px;
}

.bs-search-results-heading {
    margin-bottom: 18px;
}


/* Empty Search */
.bs-search-empty {
    padding: 64px 20px;
    text-align: center;
    border: 1px solid #e5ecf1;
    border-radius: 20px;
    background:
        radial-gradient(circle at center top, rgba(7, 155, 120, .08), transparent 36%),
        #fbfcfd;
}

.bs-search-empty-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #eef9f6;
    color: #079b78;
    font-size: 28px;
}

.bs-search-empty h2 {
    margin: 0 0 10px;
    color: #062846;
    font-size: 23px;
    font-weight: 800;
}

.bs-search-empty p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #71808e;
    line-height: 1.8;
}

.bs-search-empty-focus {
    min-width: 135px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #062846;
    color: #ffffff;
    font-weight: 800;
}

.bs-search-empty-focus:hover,
.bs-search-empty-focus:focus {
    background: #041d34;
    color: #ffffff;
    outline: 0;
}


/* Tablet */
@media (max-width: 991px) {

    .bs-search-panel-main {
        grid-template-columns: 1fr 1fr;
    }

    .bs-search-submit-wrap {
        grid-column: 1 / -1;
    }

    .bs-search-submit {
        width: 100%;
    }

}


/* Mobile */
@media (max-width: 767px) {

    .bs-search-page {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 30px;
    }

    .bs-search-hero {
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
        border-radius: 17px;
    }

    .bs-search-hero-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 19px;
    }

    .bs-search-hero h1 {
        font-size: 23px;
    }

    .bs-search-hero p {
        font-size: 12px;
    }

    .bs-search-panel {
        padding: 15px;
        border-radius: 15px;
    }

    .bs-search-panel-main {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .bs-search-submit-wrap {
        grid-column: auto;
    }

    .bs-search-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bs-search-results-heading {
        align-items: center;
    }

}


/* Very small phones */
@media (max-width: 430px) {

    .bs-search-hero {
        display: block;
    }

    .bs-search-hero-icon {
        margin-bottom: 13px;
    }

    .bs-search-results-heading .bs-category-compare {
        padding: 7px 9px;
        font-size: 10px;
    }

}
