/* =========================================================
   BADR STAR - CATEGORY PAGE
   ========================================================= */

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

.bs-category-breadcrumb {
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
}

.bs-category-breadcrumb > li + li:before {
    color: #9ba6b2;
}

.bs-category-breadcrumb a {
    color: #667788;
    font-size: 13px;
}

.bs-category-breadcrumb a:hover {
    color: #079b78;
    text-decoration: none;
}


/* Hero */
.bs-category-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 210px;
    margin-bottom: 34px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid #e7edf2;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 20%, rgba(7, 155, 120, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%);
    box-shadow: 0 12px 35px rgba(6, 40, 70, .06);
}

.bs-category-hero:after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(6, 40, 70, .035);
}

.bs-category-hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
}

.bs-category-kicker,
.bs-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #079b78;
    font-size: 12px;
    font-weight: 800;
}

.bs-category-kicker i {
    color: #f06423;
}

.bs-category-hero h1 {
    margin: 0 0 12px;
    color: #062846;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
}

.bs-category-description {
    max-width: 760px;
    color: #657281;
    font-size: 14px;
    line-height: 1.9;
}

.bs-category-description p:last-child {
    margin-bottom: 0;
}

.bs-category-hero-image {
    position: relative;
    z-index: 2;
    flex: 0 0 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-category-hero-image img {
    max-height: 165px;
    width: auto;
    border-radius: 16px;
    object-fit: contain;
}


/* Section Heading */
.bs-category-section-heading,
.bs-category-products-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.bs-category-section-heading h2,
.bs-category-products-heading h2 {
    margin: 0;
    color: #062846;
    font-size: 22px;
    font-weight: 800;
}


/* Sub Categories */
.bs-subcategories {
    margin-bottom: 35px;
}

.bs-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bs-subcategory-card {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #e5ebf0;
    border-radius: 14px;
    background: #ffffff;
    color: #14213d;
    font-weight: 700;
    box-shadow: 0 7px 20px rgba(6, 40, 70, .04);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.bs-subcategory-card:hover,
.bs-subcategory-card:focus {
    transform: translateY(-2px);
    border-color: rgba(7, 155, 120, .35);
    box-shadow: 0 12px 25px rgba(6, 40, 70, .08);
    color: #079b78;
    text-decoration: none;
}

.bs-subcategory-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef9f6;
    color: #079b78;
}

.bs-subcategory-name {
    min-width: 0;
}


/* Product heading */
.bs-category-products {
    margin-top: 10px;
}

.bs-category-compare {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: #f5f8fa;
    color: #536474;
    font-size: 13px;
    font-weight: 700;
}

.bs-category-compare:hover,
.bs-category-compare:focus {
    background: #eaf6f3;
    color: #079b78;
    text-decoration: none;
}


/* Toolbar */
.bs-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 13px 15px;
    border: 1px solid #e7edf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 40, 70, .04);
}

.bs-category-view-switch {
    display: flex;
    gap: 6px;
}

.bs-view-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    background: #ffffff;
    color: #657281;
    transition: .18s ease;
}

.bs-view-btn:hover,
.bs-view-btn:focus,
.bs-view-btn.active {
    border-color: #079b78;
    background: #079b78;
    color: #ffffff;
}

.bs-category-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.bs-category-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-category-select-wrap label {
    margin: 0;
    white-space: nowrap;
    color: #667788;
    font-size: 12px;
    font-weight: 700;
}

.bs-category-select-wrap label i {
    margin-left: 4px;
    color: #079b78;
}

.bs-category-select-wrap .form-control {
    min-width: 150px;
    height: 38px;
    border-color: #dfe7ed;
    border-radius: 9px;
    box-shadow: none;
    font-size: 12px;
}


/* Products */
.bs-category-products-row {
    display: flex;
    flex-wrap: wrap;
}

.bs-category-products-row .product-layout {
    margin-bottom: 24px;
}

.bs-category-products-row .product-grid {
    display: flex;
}

.bs-category-products-row .product-grid .bs-product-card {
    width: 100%;
}

.bs-category-product-description {
    display: none;
}


/* Grid columns */
@media (min-width: 1200px) {
    .bs-category-products-row .product-grid {
        width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .bs-category-products-row .product-grid {
        width: 33.333333%;
    }
}


/* List View */
.bs-category-products-row .product-list {
    width: 100%;
}

.bs-category-products-row .product-list .bs-product-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 175px;
    align-items: stretch;
    min-height: 230px;
}

.bs-category-products-row .product-list .bs-product-image-wrap {
    min-height: 230px;
    border-radius: 16px 0 0 16px;
}

.bs-category-products-row .product-list .bs-product-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.bs-category-products-row .product-list .bs-product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.bs-category-products-row .product-list .bs-category-product-description {
    display: block;
    margin: 10px 0 13px;
    color: #697787;
    font-size: 13px;
    line-height: 1.8;
}

.bs-category-products-row .product-list .bs-product-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-top: 0;
    border-right: 1px solid #eef2f5;
}

.bs-category-products-row .product-list .bs-add-cart-btn {
    width: 100%;
}


/* Pagination */
.bs-category-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #edf1f4;
}

.bs-category-pagination .pagination {
    margin: 0;
}

.bs-category-pagination .pagination > li > a,
.bs-category-pagination .pagination > li > span {
    margin: 0 2px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    color: #536474;
}

.bs-category-pagination .pagination > .active > span,
.bs-category-pagination .pagination > .active > a {
    border-color: #079b78;
    background: #079b78;
    color: #ffffff;
}

.bs-category-results {
    color: #7b8793;
    font-size: 12px;
}


/* Empty State */
.bs-category-empty {
    padding: 65px 20px;
    text-align: center;
    border: 1px solid #e6edf2;
    border-radius: 20px;
    background: #fbfcfd;
}

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

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

.bs-category-empty p {
    margin-bottom: 20px;
    color: #71808e;
}

.bs-category-empty-btn {
    min-width: 145px;
    border-color: #079b78;
    background: #079b78;
}


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

    .bs-category-hero {
        padding: 28px;
    }

    .bs-category-hero h1 {
        font-size: 27px;
    }

    .bs-category-hero-image {
        flex-basis: 150px;
    }

    .bs-subcategory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bs-category-toolbar {
        align-items: flex-start;
    }

    .bs-category-toolbar-controls {
        flex-wrap: wrap;
    }

    .bs-category-products-row .product-list .bs-product-card {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .bs-category-products-row .product-list .bs-product-footer {
        grid-column: 1 / -1;
        border-right: 0;
        border-top: 1px solid #eef2f5;
        padding: 14px 20px;
    }

}


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

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

    .bs-category-breadcrumb {
        margin-top: 10px;
        margin-bottom: 12px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bs-category-hero {
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-bottom: 25px;
        padding: 22px 20px;
        border-radius: 17px;
    }

    .bs-category-hero h1 {
        font-size: 25px;
    }

    .bs-category-description {
        font-size: 13px;
        line-height: 1.8;
    }

    .bs-category-hero-image {
        flex: none;
    }

    .bs-category-hero-image img {
        max-height: 145px;
        margin: 0 auto;
    }

    .bs-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .bs-subcategory-card {
        min-height: 58px;
        padding: 10px 11px;
        font-size: 12px;
    }

    .bs-subcategory-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .bs-category-products-heading {
        align-items: center;
    }

    .bs-category-products-heading h2,
    .bs-category-section-heading h2 {
        font-size: 19px;
    }

    .bs-category-compare {
        padding: 8px 10px;
        font-size: 11px;
    }

    .bs-category-toolbar {
        display: block;
        padding: 12px;
    }

    .bs-category-toolbar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin: 0;
    }

    .bs-category-select-wrap {
        display: block;
    }

    .bs-category-select-wrap label {
        display: block;
        margin-bottom: 5px;
    }

    .bs-category-select-wrap .form-control {
        min-width: 0;
        width: 100%;
        height: 40px;
    }

    .bs-category-products-row .product-layout,
    .bs-category-products-row .product-grid,
    .bs-category-products-row .product-list {
        width: 50% !important;
        padding-left: 6px;
        padding-right: 6px;
    }

    .bs-category-products-row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .bs-category-products-row .product-list .bs-product-card,
    .bs-category-products-row .product-grid .bs-product-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .bs-category-products-row .product-list .bs-product-image-wrap {
        min-height: 0;
        border-radius: inherit;
    }

    .bs-category-products-row .product-list .bs-product-image {
        height: auto;
    }

    .bs-category-products-row .product-list .bs-product-content {
        display: block;
        padding: inherit;
    }

    .bs-category-products-row .product-list .bs-category-product-description {
        display: none;
    }

    .bs-category-products-row .product-list .bs-product-footer {
        display: block;
        padding: inherit;
        border-right: 0;
        border-top: inherit;
    }

    .bs-category-pagination {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .bs-category-results {
        text-align: center;
    }

}


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

    .bs-category-products-row .product-layout,
    .bs-category-products-row .product-grid,
    .bs-category-products-row .product-list {
        width: 50% !important;
    }

    .bs-subcategory-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bs-category-toolbar-controls {
        grid-template-columns: 1fr;
    }

}
