/* =========================================================
   BADR STAR - PREMIUM PRODUCT PAGE
   ========================================================= */

.bs-product-page {
    padding-top: 8px;
}

.bs-product-breadcrumb {
    margin: 8px 0 22px;
    padding: 0;
    background: transparent;
}

.bs-product-breadcrumb > li + li::before {
    color: #aab4bb;
}

.bs-product-breadcrumb a {
    color: #66757f;
    font-size: 12px;
}

.bs-product-breadcrumb a:hover {
    color: var(--badr-green);
}


/* HERO
--------------------------------------------------------- */

.bs-product-hero {
    margin-bottom: 42px;
}


/* Gallery
--------------------------------------------------------- */

.bs-product-gallery {
    position: relative;
}

.bs-product-main-image {
    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--badr-border);
    border-radius: 18px;

    background:
        radial-gradient(circle at 50% 44%, #ffffff 0%, #ffffff 55%, #f7f9fb 100%);

    box-shadow: 0 8px 26px rgba(0, 0, 0, .045);
}

.bs-product-main-image img {
    max-width: 100%;
    max-height: 500px;

    margin: 0 auto;

    object-fit: contain;

    transition: transform .3s ease;
}

.bs-product-main-image:hover img {
    transform: scale(1.018);
}

.bs-product-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 13px;
}

.bs-gallery-thumb {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 5px;

    border: 1px solid var(--badr-border);
    border-radius: 10px;

    background: #ffffff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.bs-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bs-gallery-thumb:hover,
.bs-gallery-thumb.active {
    border-color: var(--badr-green);
    box-shadow: 0 5px 14px rgba(7, 155, 120, .12);
    transform: translateY(-2px);
}


/* Product info
--------------------------------------------------------- */

.bs-product-info-card {
    position: sticky;
    top: 18px;

    padding: 26px;

    border: 1px solid var(--badr-border);
    border-radius: 18px;

    background: #ffffff;

    box-shadow: 0 10px 32px rgba(0, 0, 0, .055);
}

.bs-product-top-actions {
    position: absolute;
    top: 18px;
    left: 18px;

    display: flex;
    gap: 7px;
}

.bs-product-icon-btn {
    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #e7ebee;
    border-radius: 50%;

    background: #ffffff;
    color: var(--badr-navy);

    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.bs-product-icon-btn:hover,
.bs-product-icon-btn:focus {
    border-color: var(--badr-green);
    background: var(--badr-green);
    color: #ffffff;
    transform: translateY(-2px);
}

.bs-product-eyebrow {
    margin-bottom: 8px;
    padding-left: 90px;

    color: var(--badr-green);

    font-size: 12px;
    font-weight: 800;
}

.bs-product-eyebrow a {
    color: inherit;
}

.bs-product-title-main {
    margin: 0 0 14px;

    color: var(--badr-navy);

    font-size: 27px;
    line-height: 1.5;
    font-weight: 900;
}

.bs-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px 16px;

    margin-bottom: 13px;

    color: #697982;
    font-size: 11px;
}

.bs-product-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bs-product-meta i {
    color: var(--badr-green);
}

.bs-stock-pill {
    padding: 5px 9px;

    border-radius: 20px;

    background: #edf9f6;

    color: #067b61 !important;

    font-weight: 800;
}

.bs-product-rating-line {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 15px;

    border-bottom: 1px solid #edf0f2;
}

.bs-product-rating-line .rating {
    margin: 0;
}

.bs-product-rating-line .fa-stack {
    width: 15px;
    height: 15px;

    line-height: 15px;
    font-size: 7px;
}

.bs-product-rating-line .fa-star {
    color: #f6b51b;
}

.bs-review-link {
    color: #75838b;
    font-size: 11px;
}


/* Price
--------------------------------------------------------- */

.bs-product-price-box {
    padding: 19px 0 18px;

    border-bottom: 1px solid #edf0f2;
}

.bs-price-current {
    color: var(--badr-green);

    font-size: 29px;
    line-height: 1.2;
    font-weight: 900;
}

.bs-price-special-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 9px;
}

.bs-price-old {
    color: #9aa5ac;

    font-size: 15px;
    text-decoration: line-through;
}

.bs-price-sale-badge {
    padding: 4px 9px;

    border-radius: 20px;

    background: #fff0e9;
    color: var(--badr-orange);

    font-size: 10px;
    font-weight: 900;
}

.bs-product-tax,
.bs-product-points {
    margin-top: 6px;

    color: #8a969d;
    font-size: 10px;
}

.bs-product-discounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 8px;
}

.bs-product-discounts span {
    padding: 5px 8px;

    border-radius: 6px;

    background: #f6f8f9;

    color: #64727a;

    font-size: 10px;
}


/* Options
--------------------------------------------------------- */

.bs-product-purchase {
    padding-top: 18px;
}

.bs-product-options h3,
.bs-recurring-wrap h3 {
    margin: 0 0 14px;

    color: var(--badr-navy);

    font-size: 15px;
    font-weight: 900;
}

.bs-product-purchase .control-label {
    margin-bottom: 7px;

    color: #33454f;

    font-size: 12px;
    font-weight: 800;
}

.bs-product-purchase .form-control {
    min-height: 42px;

    border-color: #dfe5e9;
    border-radius: 8px;

    box-shadow: none;
}

.bs-product-purchase .form-control:focus {
    border-color: var(--badr-green);

    box-shadow: 0 0 0 3px rgba(7, 155, 120, .08);
}

.bs-option-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.bs-option-choice {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 7px 10px;

    border: 1px solid #dfe5e9;
    border-radius: 8px;

    background: #ffffff;

    color: #34464f;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.bs-option-choice:hover {
    border-color: var(--badr-green);
}

.bs-option-choice input {
    margin: 0;
}

.bs-option-choice .img-thumbnail {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.bs-option-choice small {
    color: #7b8990;
}


/* Quantity
--------------------------------------------------------- */

.bs-purchase-row {
    margin-top: 4px;
}

.bs-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.bs-qty-label {
    color: #34464f;

    font-size: 12px;
    font-weight: 800;
}

.bs-qty-control {
    display: grid;
    grid-template-columns: 38px 56px 38px;

    overflow: hidden;

    border: 1px solid #dfe5e9;
    border-radius: 9px;

    background: #ffffff;
}

.bs-qty-control .form-control {
    height: 38px;
    min-height: 38px;

    padding: 0;

    border: 0;
    border-radius: 0;

    text-align: center;

    box-shadow: none;
}

.bs-qty-btn {
    border: 0;

    background: #f5f8f9;
    color: var(--badr-navy);

    font-size: 10px;
}

.bs-qty-btn:hover {
    background: #edf7f4;
    color: var(--badr-green);
}


/* Main actions
--------------------------------------------------------- */

.bs-product-main-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr;

    gap: 9px;

    margin-top: 17px;
}

.bs-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 900;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.bs-btn:hover,
.bs-btn:focus {
    transform: translateY(-2px);
}

.bs-btn-cart {
    background: var(--badr-navy);
    color: #ffffff;

    box-shadow: 0 7px 18px rgba(4, 29, 52, .14);
}

.bs-btn-cart:hover,
.bs-btn-cart:focus {
    background: #0a385f;
    color: #ffffff;
}

.bs-btn-buy {
    background: var(--badr-green);
    color: #ffffff;

    box-shadow: 0 7px 18px rgba(7, 155, 120, .16);
}

.bs-btn-buy:hover,
.bs-btn-buy:focus {
    background: var(--badr-green-dark);
    color: #ffffff;
}

.bs-inline-success {
    margin: 12px 0 0;
    padding: 10px 12px;

    border: 1px solid #ccecdf;
    border-radius: 8px;

    background: #f0fbf7;
    color: #087357;

    font-size: 11px;
}


/* WhatsApp inquiry
--------------------------------------------------------- */

.bs-whatsapp-product {
    margin-top: 10px;
    padding: 12px 13px;

    display: flex;
    align-items: center;

    gap: 11px;

    border: 1px solid #cbeedc;
    border-radius: 10px;

    background:
        linear-gradient(135deg, #f1fff8, #e9fbf2);

    color: #116b50;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.bs-whatsapp-product:hover,
.bs-whatsapp-product:focus {
    border-color: #25d366;

    color: #116b50;
    text-decoration: none;

    box-shadow: 0 8px 18px rgba(37, 211, 102, .10);

    transform: translateY(-2px);
}

.bs-whatsapp-product > i {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;
    color: #ffffff;

    font-size: 20px;
}

.bs-whatsapp-product span {
    display: flex;
    flex-direction: column;
}

.bs-whatsapp-product strong {
    font-size: 12px;
    font-weight: 900;
}

.bs-whatsapp-product small {
    margin-top: 2px;

    color: #6b877c;

    font-size: 9px;
}


/* Share
--------------------------------------------------------- */

.bs-product-share {
    margin-top: 13px;
    padding-top: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-top: 1px solid #edf0f2;
}

.bs-share-label {
    color: #65747c;

    font-size: 11px;
    font-weight: 800;
}

.bs-share-buttons {
    display: flex;

    gap: 6px;
}

.bs-share-btn {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e2e7ea;
    border-radius: 50%;

    background: #ffffff;
    color: #566871;

    font-size: 13px;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.bs-share-btn:hover,
.bs-share-btn:focus {
    border-color: var(--badr-green);

    background: var(--badr-green);
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);
}

.bs-share-main {
    background: #f4f7f8;
}


/* Trust
--------------------------------------------------------- */

.bs-product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin-top: 17px;
}

.bs-product-trust-grid > div {
    min-width: 0;

    padding: 9px 8px;

    display: flex;
    align-items: center;

    gap: 7px;

    border: 1px solid #edf0f2;
    border-radius: 9px;

    background: #fafcfc;
}

.bs-product-trust-grid i {
    color: var(--badr-green);
}

.bs-product-trust-grid span {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.bs-product-trust-grid strong {
    overflow: hidden;

    color: #34464f;

    font-size: 9px;
    font-weight: 900;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.bs-product-trust-grid small {
    margin-top: 1px;

    color: #98a2a8;

    font-size: 8px;
}


/* Tabs
--------------------------------------------------------- */

.bs-product-details {
    margin: 18px 0 42px;

    overflow: hidden;

    border: 1px solid var(--badr-border);
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 7px 24px rgba(0, 0, 0, .035);
}

.bs-product-tabs {
    margin: 0;
    padding: 0 18px;

    border-bottom: 1px solid #e9edef;

    background: #fafcfc;
}

.bs-product-tabs > li {
    margin: 0;
}

.bs-product-tabs > li > a {
    margin: 0;
    padding: 15px 16px;

    border: 0 !important;
    border-radius: 0;

    background: transparent !important;

    color: #62727b;

    font-size: 12px;
    font-weight: 800;
}

.bs-product-tabs > li > a i {
    margin-left: 5px;

    color: var(--badr-green);
}

.bs-product-tabs > li.active > a {
    position: relative;

    color: var(--badr-navy);
}

.bs-product-tabs > li.active > a::after {
    content: "";

    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;

    height: 3px;

    border-radius: 10px 10px 0 0;

    background: var(--badr-green);
}

.bs-product-tab-content {
    padding: 24px;

    color: #4f6069;

    font-size: 13px;
    line-height: 2;
}

.bs-product-tab-content img {
    max-width: 100%;
    height: auto;
}

.bs-spec-table {
    margin: 0;
}

.bs-spec-table thead td {
    background: #f7faf9;
    color: var(--badr-navy);
}

.bs-spec-table td {
    border-color: #edf0f2 !important;

    font-size: 12px;
}

.bs-spec-table tbody td:first-child {
    width: 34%;

    color: #34464f;
    font-weight: 800;
}


/* Reviews
--------------------------------------------------------- */

.bs-review-form h2 {
    margin: 20px 0;

    color: var(--badr-navy);

    font-size: 18px;
    font-weight: 900;
}

.bs-rating-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
}


/* Tags
--------------------------------------------------------- */

.bs-product-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 8px 0 30px;
}

.bs-product-tags > span {
    color: #62727b;

    font-size: 11px;
    font-weight: 800;
}

.bs-product-tags a {
    padding: 5px 9px;

    border-radius: 20px;

    background: #f0f5f4;
    color: #39705f;

    font-size: 10px;
}


/* Validation
--------------------------------------------------------- */

.bs-product-purchase .text-danger {
    margin-top: 5px;

    color: #d9534f;

    font-size: 10px;
}

.bs-product-purchase .has-error .form-control {
    border-color: #d9534f;
}

.bs-minimum-alert {
    margin-top: 12px;

    font-size: 11px;
}


/* Related
--------------------------------------------------------- */

.bs-related-products {
    margin-top: 16px;
}


/* Tablet
--------------------------------------------------------- */

@media (max-width: 991px) {

    .bs-product-main-image {
        min-height: 430px;
    }

    .bs-product-main-image img {
        max-height: 410px;
    }

    .bs-product-info-card {
        position: static;
        padding: 21px;
    }

    .bs-product-title-main {
        font-size: 23px;
    }

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

}


/* Mobile
--------------------------------------------------------- */

@media (max-width: 767px) {

    .bs-product-page {
        padding-top: 0;
    }

    .bs-product-breadcrumb {
        margin-bottom: 14px;

        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;
    }

    .bs-product-hero {
        margin-bottom: 26px;
    }

    .bs-product-main-image {
        min-height: 330px;

        border-radius: 13px;
    }

    .bs-product-main-image img {
        max-height: 315px;
    }

    .bs-product-thumbs {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;
    }

    .bs-gallery-thumb {
        flex: 0 0 65px;

        width: 65px;
        height: 65px;
    }

    .bs-product-info-card {
        margin-top: 15px;
        padding: 18px 15px;

        border-radius: 13px;
    }

    .bs-product-top-actions {
        top: 14px;
        left: 14px;
    }

    .bs-product-icon-btn {
        width: 34px;
        height: 34px;
    }

    .bs-product-eyebrow {
        padding-left: 82px;
    }

    .bs-product-title-main {
        font-size: 21px;
    }

    .bs-price-current {
        font-size: 25px;
    }

    .bs-product-main-actions {
        grid-template-columns: 1fr 1fr;
    }

    .bs-btn {
        min-height: 46px;
        padding: 0 9px;

        font-size: 12px;
    }

    .bs-whatsapp-product small {
        font-size: 8px;
    }

    .bs-product-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-share-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .bs-share-btn {
        width: 38px;
        height: 38px;
    }

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

    .bs-product-trust-grid > div {
        padding: 10px;
    }

    .bs-product-trust-grid strong {
        font-size: 10px;
    }

    .bs-product-trust-grid small {
        font-size: 9px;
    }

    .bs-product-details {
        margin-bottom: 30px;

        border-radius: 12px;
    }

    .bs-product-tabs {
        display: flex;

        padding: 0;

        overflow-x: auto;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

    .bs-product-tabs > li {
        float: none;
        flex: 0 0 auto;
    }

    .bs-product-tabs > li > a {
        padding: 13px 14px;
    }

    .bs-product-tab-content {
        padding: 18px 15px;

        font-size: 12px;
    }

}


/* Small mobile
--------------------------------------------------------- */

@media (max-width: 420px) {

    .bs-product-main-image {
        min-height: 285px;
    }

    .bs-product-main-image img {
        max-height: 270px;
    }

    .bs-product-main-actions {
        grid-template-columns: 1fr;
    }

    .bs-qty-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-qty-control {
        width: 100%;
        grid-template-columns: 42px 1fr 42px;
    }

}

/* =========================================================
   BADR STAR - MOBILE PRODUCT BUY BAR
   ========================================================= */

.bs-mobile-buybar {
    display: none;
}

@media (max-width: 767px) {

    .bs-mobile-buybar {
        position: fixed;

        right: 0;
        bottom: 0;
        left: 0;

        z-index: 1050;

        min-height: 72px;

        display: flex;
        align-items: center;

        gap: 10px;

        padding:
            9px 12px
            calc(9px + env(safe-area-inset-bottom));

        border-top: 1px solid rgba(4, 29, 52, .10);

        background: rgba(255, 255, 255, .96);

        box-shadow:
            0 -10px 28px rgba(4, 29, 52, .12);

        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);

        transform: translateY(115%);

        visibility: hidden;
        opacity: 0;

        transition:
            transform .25s ease,
            opacity .25s ease,
            visibility .25s ease;
    }

    .bs-mobile-buybar.is-visible {
        transform: translateY(0);

        visibility: visible;
        opacity: 1;
    }

    .bs-mobile-buybar-price {
        flex: 0 0 auto;

        min-width: 78px;

        display: flex;
        flex-direction: column;
    }

    .bs-mobile-buybar-price small {
        margin-bottom: 1px;

        color: #8a969d;

        font-size: 9px;
        font-weight: 700;
    }

    .bs-mobile-buybar-price strong {
        color: var(--badr-green);

        font-size: 16px;
        line-height: 1.25;
        font-weight: 900;

        white-space: nowrap;
    }

    .bs-mobile-buybar-actions {
        flex: 1;

        display: grid;
        grid-template-columns: 1.15fr 1fr;

        gap: 7px;
    }

    .bs-mobile-buybar-actions button {
        min-width: 0;
        min-height: 45px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        gap: 6px;

        padding: 0 9px;

        border: 0;
        border-radius: 9px;

        color: #ffffff;

        font-size: 11px;
        font-weight: 900;
    }

    .bs-mobile-buybar-cart {
        background: var(--badr-navy);
    }

    .bs-mobile-buybar-buy {
        background: var(--badr-green);
    }

    .bs-mobile-buybar-actions button:active {
        transform: scale(.98);
    }

    body {
        padding-bottom:
            calc(72px + env(safe-area-inset-bottom));
    }

    .bs-footer {
        margin-bottom:
            calc(-72px - env(safe-area-inset-bottom));
    }

}

@media (max-width: 390px) {

    .bs-mobile-buybar {
        gap: 7px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .bs-mobile-buybar-price {
        min-width: 68px;
    }

    .bs-mobile-buybar-price strong {
        font-size: 14px;
    }

    .bs-mobile-buybar-actions button {
        padding: 0 6px;

        font-size: 10px;
    }

}
