/* ==================================================
   2. Hero Section (Banner, Search Bar, and Responsive Behaviors)
   --------------------------------------------------
   - Hero background with image
   - Centered content with title, text, and search bar
   - Custom dropdown and search suggestions
   - Popular extensions list
   - Fully responsive with adaptive layout and typography
================================================== */
.bs-hero .bs-hero-bg {
    width: 100%;
    position: relative;
}

.bs-hero .bs-hero-bg .banner_image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bs-hero .bs-hero-contant {
    padding: 138px 0px;
    width: calc(50% * var(--scale));
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-family);
}

.bs-hero .bs-hero-contant>p {
    margin-top: 8px;
    line-height: var(--lh-16);
    margin-bottom: 32px;
    color: var(--text-color);
}

@media screen and (max-width: 1024px) {
    .bs-hero .bs-hero-contant {
        width: calc(60% * var(--scale));
        padding: 100px 0px;
    }
}

@media screen and (max-width: 768px) {
    .bs-hero .bs-hero-contant {
        width: calc(80% * var(--scale));
        padding: 80px 0px;
    }
}

@media screen and (max-width: 480px) {
    .bs-hero .bs-hero-bg {
        height: auto;
        padding: 0;
    }

    .bs-hero .bs-hero-contant {
        width: calc(90% * var(--scale));
        padding: 60px 0px;
    }
}

/* ==================================================
   3. Top Selling Section (Product Grid & Cards)
   --------------------------------------------------
   - Section header with title and "See more" link
   - Responsive grid layout for product cards
   - Product card includes icon, title, price, and reviews
   - Adjusts columns and spacing across breakpoints
================================================== */
.bs-top-selling .bs-selling-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 32px;
}

.bs-top-selling .bs-selling-info .bs-top-selling-heading {
    flex-basis: 70%;
}

.bs-top-selling .bs-selling-info .bs-top-selling-heading h2 {
    margin-bottom: 8px;
}

.bs-top-selling .bs-top-selling-heading p {
    color: var(--light-text-color);
    margin-bottom: 0px;
}

.bs-top-selling .bs-selling-info .bs-see-more {
    flex-basis: 30%;
    text-align: end;
}

.bs-top-selling .bs-selling-info .bs-see-more a {
    color: var(--brand-color);
    text-decoration: underline;
}

.bs-top-selling .bs-selling-card {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.bs-top-selling .bs-selling-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: calc(33.33333% - 21.33333px);
    box-sizing: border-box;
    cursor: pointer;
}

.bs-top-selling .bs-selling-card> :not(:nth-child(3n)) {
    margin-right: 32px;
}

.bs-top-selling .bs-selling-card>* {
    box-sizing: border-box;
    height: auto;
    margin-bottom: 32px;
}

.bs-top-selling .bs-card--header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-4);
    box-shadow: var(--box_shadow);
    width: 100%;
}

.bs-top-selling .bs-card--title-container {
    width: 100%;
}

.bs-top-selling .bs-card--icon {
    height: 48px;
    margin-bottom: 0;
    margin-right: 14px;
    width: 48px;
}

.bs-top-selling .bs-card--price--reviews {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.bs-top-selling .bs-rating-summary--rating,
.bs-top-selling .bs-product-card--price {
    font-weight: 500;
    font-size: var(--fs-14);
    line-height: var(--lh-20);
    letter-spacing: 0px;
    color: var(--text-color);
}

.bs-top-selling .bs-rating-summary--review-count {
    font-weight: 400;
    font-size: var(--fs-14);
    line-height: var(--lh-20);
    letter-spacing: 0px;
    color: var(--light-text-color);
}
.bs-top-selling p.bs-card--title{
    margin-bottom: 0px;
}
.bs-top-selling .bs-card--title-link {
    font-weight: 500;
}

@media (max-width: 1439px) {
    .bs-top-selling .bs-selling-card> :not(:nth-child(3n)) {
        margin-right: calc(24px * var(--scale));
    }

    .bs-top-selling .bs-selling-card-wrapper {
        width: calc(33.33333% - 16px);
    }

    .bs-top-selling .bs-card--header {
        padding: calc(12px * var(--scale));
    }

    .bs-top-selling .bs-selling-info {
        margin-bottom: calc(24px * var(--scale));
    }
}

@media (max-width: 1023px) {
    .bs-top-selling .bs-selling-card-wrapper {
        width: calc(50% - 16px);
    }

    .bs-top-selling .bs-selling-card> :not(:nth-child(2n)) {
        margin-right: calc(24px * var(--scale));
    }

    .bs-top-selling .bs-selling-card> :nth-child(2n) {
        margin-right: 0;
    }

    .bs-top-selling .bs-selling-card>* {
        margin-bottom: calc(24px * var(--scale));
    }

    .bs-top-selling .bs-selling-info .bs-top-selling-heading {
        flex-basis: 60%;
    }

    .bs-top-selling .bs-selling-info .bs-see-more {
        flex-basis: 40%;
    }

    .bs-top-selling .bs-card--icon {
        height: calc(40px * var(--scale));
        width: calc(40px * var(--scale));
        margin-right: calc(12px * var(--scale));
    }
}

@media (max-width: 767px) {
    .bs-top-selling .bs-selling-card-wrapper {
        width: 100%;
    }

    .bs-top-selling .bs-selling-card>* {
        margin-right: 0 !important;
        margin-bottom: calc(16px * var(--scale));
    }

    .bs-top-selling .bs-card--header {
        padding: calc(10px * var(--scale));
    }

    .bs-top-selling .bs-selling-info {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: calc(16px * var(--scale));
    }

    .bs-top-selling .bs-selling-info .bs-top-selling-heading {
        flex-basis: 100%;
        margin-bottom: calc(16px * var(--scale));
    }

    .bs-top-selling .bs-selling-info .bs-see-more {
        flex-basis: 100%;
        text-align: start;
    }

    .bs-top-selling .bs-card--icon {
        height: calc(36px * var(--scale));
        width: calc(36px * var(--scale));
        margin-right: calc(10px * var(--scale));
    }
}

/* ==================================================
   4. New Products Section (Grid + Branded Cards)
   --------------------------------------------------
   - Section header with title and "See more" link
   - Responsive product card grid layout (4-column, 3-column fallback)
   - Branded card layout with icon, title, brand strip, price, reviews
   - Responsive scaling using custom --scale variable
   - Adjusts layout for small devices and higher breakpoints
================================================== */
/* === Section Heading + See More === */
.bs-new-proucts .bs-new-proucts-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 32px;
}

.bs-new-proucts .bs-new-proucts-info .bs-new-proucts-heading {
    flex-basis: 70%;
}

.bs-new-proucts .bs-new-proucts-info .bs-new-proucts-heading h2 {
    margin-bottom: 8px;
}

.bs-new-proucts .bs-new-proucts-heading p {
    color: var(--light-text-color);
    margin-bottom: 0px;
}

.bs-new-proucts .bs-new-proucts-info .bs-see-more {
    flex-basis: 30%;
    text-align: end;
}

.bs-new-proucts .bs-new-proucts-info .bs-see-more a {
    color: var(--brand-color);
    text-decoration: underline;
}

.bs-new-proucts .bs-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip {
    position: relative;
    border: none;
    border-radius: calc(10px * var(--scale));
    box-shadow: var(--box_shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--white-color);
    width: 100%;
    height: 100%;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-brand-strip {
    background-color: #F3702333;
    height: calc(74px * var(--scale));
    background-size: cover;
    background-position: center;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: calc(16px * var(--scale)) calc(16px * var(--scale)) 0;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-header h3 {
    line-height: 1;
    margin-bottom: 10px;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-icon {
    border-radius: 4px;
    margin-top: calc(-48px * var(--scale));
    height: calc(64px * var(--scale));
    width: calc(64px * var(--scale));
    margin-bottom: calc(8px * var(--scale));
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-content {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: var(--fs-16);
    padding: calc(16px * var(--scale)) calc(16px * var(--scale));
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-content .description,
.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-content .description p {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: var(--lh-14);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    height: 75px;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: calc(60px * var(--scale));
    position: relative;
    transition: all 0.3s;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a {
    font-size: var(--fs-16);
    font-weight: 500;
    line-height: var(--lh-16);
    position: absolute;
    bottom: calc(-60px * var(--scale));
    width: 100%;
    padding: calc(7px * var(--scale));
    text-align: center;
    border-radius: var(--radius-4);
    background-color: var(--text-color);
    color: var(--white-color);
    border: 1px solid var(--text-color);
    transition: all 0.3s;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a.button:hover {
    background-color: var(--white-color);
    color: var(--text-color);
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip:hover .bs-card-product-footer {
    transform: translateY(calc(-45px * var(--scale)));
    transition: all 0.3s;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip:hover .bs-card-product-footer>a {
    transform: translateY(calc(-15px * var(--scale)));
    transition: all 0.3s;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a.added {
    display: none;
}

.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a.added_to_cart {
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    background: var(--white-color);
}
.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a.added_to_cart:hover {
    color: var(--white-color);
    background: var(--brand-color);
}

@media (max-width: 1023px) {
    .bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer>a {
        position: static;
        margin-top: 20px;
    }

    .bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer {
        margin-top: calc(20px * var(--scale));
    }

    .bs-new-proucts .bs-card-product--branded-small-icon-strip:hover .bs-card-product-footer {
        transform: translateY(0);
        transition: none;
    }

    .bs-new-proucts .bs-card-product--branded-small-icon-strip:hover .bs-card-product-footer>a {
        transform: translateY(0);
        transition: none;
    }
}


.bs-new-proucts .bs-card-product--branded-small-icon-strip .bs-card-product-footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: calc(5px * var(--scale));
    flex-grow: 1;
}

.bs-new-proucts .bs-product-card {
    display: flex;
    font-size: var(--fs-12);
    gap: calc(2px * var(--scale));
}

.bs-new-proucts .bs-product-card-price {
    color: var(--text-color);
    font-weight: 500;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
}

.bs-new-proucts .bs-card-product-footer-reviews {
    display: flex;
    align-items: center;
    align-self: flex-end;
    line-height: 1;
    margin: 0;
}

.bs-new-proucts .bs-rating-summary {
    display: flex;
    align-items: center;
    color: inherit;
    font-size: var(--fs-12);
    font-weight: 600;
    line-height: var(--lh-12);
    text-decoration: none;
    gap: 3px;
}

.bs-new-proucts .bs-rating-summary-rating {
    font-weight: 500;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    color: var(--text-color);
}

.bs-new-proucts .bs-rating-summary-review-count {
    font-weight: 400;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    color: var(--light-text-color);
}

.bs-new-proucts .bs-card-title-link {
    font-weight: 500;
}

.bs-new-proucts .bs-card-vendor {
    font-weight: 400;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    color: var(--light-text-color);
}

.bs-new-proucts .bs-card-vendor-link {
    font-weight: 400;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    color: var(--brand-color);
    text-decoration: underline;
}

.bs-new-proucts .bs-comp-card-product {
    display: flex;
    width: 100%;
}

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
}

.woocommerce ul.products li {
    display: flex;
}

.woocommerce ul.products li .bs-comp-card-product {
    width: 100%;
}

/* Small devices (below 576px) */
@media (max-width: 575px) {
    .bs-new-proucts .bs-grid {
        gap: calc(16px * var(--scale));
    }
    .bs-new-proucts .bs-grid>* {
        width: 100%;
        margin-bottom: 0;
        flex-wrap: wrap;
    }
    .bs-new-proucts .bs-comp-card-product {
        margin-bottom: 16px;
    }
}

/* Existing media queries */
@media (min-width: 576px) {
    .bs-new-proucts .bs-card-product--branded-small-icon-strip {
        width: 100%;
    }

}

@media (min-width: 1000px) and (max-width: 1439px) {
    .bs-new-proucts .bs-grid.bs-grid-five>* {
        width: calc(33.333% - (21.333px * var(--scale)));
        margin-right: calc(32px * var(--scale));
        margin-bottom: calc(32px * var(--scale));
    }

    .bs-new-proucts .bs-grid.bs-grid-five>*:nth-child(3n) {
        margin-right: 0;
    }
}

@media (min-width: 1440px) {
    .bs-new-proucts .bs-grid.bs-grid-five>* {
        width: calc(25% - (24px * var(--scale)));
        margin-right: calc(32px * var(--scale));
        margin-bottom: calc(32px * var(--scale));
    }

    .bs-new-proucts .bs-grid.bs-grid-five>*:nth-child(4n) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .shop_archive {
        flex-direction: column;
    }
}

@media (min-width: 576px) and (max-width: 999px) {
    .bs-new-proucts .bs-grid.bs-grid-five>* {
        width: calc(50% - (16px * var(--scale)));
        margin-right: calc(32px * var(--scale));
        margin-bottom: calc(32px * var(--scale));
    }

    .bs-new-proucts .bs-grid.bs-grid-five>*:nth-child(2n) {
        margin-right: 0;
    }
}


/* ==================================================
   5. Featured Categories Section
   --------------------------------------------------
   - Section header with title and featured category cards
   - Responsive layout for category cards (4-column, 2-column, 1-column fallback)
   - Category cards with icon, title, and hover effect
   - Cards use scalable design with custom --scale variable
   - Adjust layout for small, medium, and large screens
================================================== */
.bs-featured-categories .bs-featured-categories {
    background: #F370230A;
    padding: calc(64px * var(--scale)) 0;
}

.bs-featured-categories .bs-featured-categories--heading {
    text-align: center;
    margin-bottom: calc(48px * var(--scale));
}

.bs-featured-categories .bs-featured-categories--wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: calc(32px * var(--scale));
}

.bs-featured-categories .bs-featured-categories--card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 calc(25% - calc(32px * var(--scale)));
    padding: calc(16px * var(--scale)) calc(24px * var(--scale));
    border-radius: var(--radius-4);
    box-shadow: var(--box_shadow);
    background: var(--white-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bs-featured-categories .bs-featured-categories--card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.bs-featured-categories .bs-featured-categories--card-text {
    font-weight: 500;
    margin-bottom: 0px;
}

.bs-featured-categories .bs-featured-categories--card-img {
    width: calc(48px * var(--scale));
    height: calc(48px * var(--scale));
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Responsive ===== */

@media (max-width: 1023px) {
    .bs-featured-categories .bs-featured-categories--card {
        flex: 1 1 calc(50% - calc(16px * var(--scale)));
    }
}

@media (max-width: 767px) {
    .bs-featured-categories .bs-featured-categories--card {
        flex: 1 1 100%;
    }
    .bs-new-proucts .bs-new-proucts-info{
        flex-direction: column;
        align-items: start;
        margin-bottom: calc(16px * var(--scale));
    }
    .bs-new-proucts .bs-new-proucts-info .bs-new-proucts-heading{
        flex-basis: 100%;
        margin-bottom: calc(16px * var(--scale));
    }
    .bs-featured-categories .bs-featured-categories--heading{
        margin-bottom: calc(16px * var(--scale));
    }
    .bs-section-spacing{
        margin-bottom: calc(20px * var(--scale));
    }
    .bs-featured-categories .bs-featured-categories--wrapper{
        gap: calc(16px * var(--scale));
    }
}

/* ==================================================
   8. Partner Section
   --------------------------------------------------
   - Top border for the partner section
   - Flexbox container for partner items with wrapping
   - Partner logos in responsive, scalable boxes
   - Title and description styling for each partner item
   - Adjusted padding for the first two partner items
   - Custom border styling between partner items
   - Responsive layout for tablet and mobile devices
   - Adjusts layout based on the screen size using custom --scale variable
================================================== */
.bs-partner-top-border {
    border-top: 1px solid var(--border-color);
}

.bs-partner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bs-partner-item {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.bs-partner-logo {
    width: 100%;
}

.bs-partner-title {
    margin: calc(32px * var(--scale)) 0 calc(16px * var(--scale));
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--fs-24);
    line-height: var(--lh-24);
    color: var(--text-color);
}

.bs-partner-description p {
    text-align: left;
    font-family: var(--font-family);
    font-weight: 400;
    margin-bottom: calc(8px * var(--scale));
}

.bs-partner-item:nth-child(1) {
    padding: calc(48px * var(--scale)) calc(48px * var(--scale)) 0 0;
}

.bs-partner-item:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: calc(2px * var(--scale));
    height: 100%;
    background-color: var(--border-color);
}

.bs-partner-item:nth-child(2) {
    padding: calc(48px * var(--scale)) 0 0 calc(48px * var(--scale));
}

/* Tablet landscape (1024px - 1439px) */
@media (max-width: 1439px) {
    .bs-partner-item:nth-child(1) {
        padding: calc(40px * var(--scale)) calc(40px * var(--scale)) 0 0;
    }

    .bs-partner-item:nth-child(2) {
        padding: calc(40px * var(--scale)) 0 0 calc(40px * var(--scale));
    }
}

/* Tablet portrait (768px - 1023px) */
@media (max-width: 1023px) {
    .bs-partner-item:nth-child(1) {
        padding: calc(32px * var(--scale)) calc(32px * var(--scale)) 0 0;
    }

    .bs-partner-item:nth-child(2) {
        padding: calc(32px * var(--scale)) 0 0 calc(32px * var(--scale));
    }

}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .bs-partner-item {
        flex: 0 0 100%;
        min-width: 0;
        padding: calc(24px * var(--scale)) 0 !important;
    }

    .bs-partner-item:nth-child(1)::after {
        top: auto;
        bottom: 0;
        right: auto;
        left: 0;
        width: 100%;
        height: calc(2px * var(--scale));
        background-color: var(--border-color);
    }
}

