/* Product detail page */

.tf-product-info-buy-button form button.btns-full {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.tf-product-info-delivery-return .row > [class*="col-"] {
    display: flex;
}

.tf-product-info-delivery-return .tf-product-delivery {
    flex: 1;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.tf-product-info-delivery-return .tf-product-delivery p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.tf-product-info-trust-seal .tf-payment--compact {
    flex: 1;
}

.tf-product-info-trust-seal .tf-payment--compact .tf-page-cart_imgtrust {
    margin: 0;
}

.tf-product-info-trust-seal .tf-payment--compact .tf-page-cart_imgtrust > p {
    display: none;
}

.tf-product-info-trust-seal .tf-payment--compact .cart-list-social {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 767px) {
    .tf-main-product .tf-product-media-wrap.sticky-top {
        position: relative !important;
        top: auto !important;
    }

    .tf-sticky-atc-infos .tf-sticky-atc-btns {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tf-sticky-atc-infos .tf-sticky-atc-variant-price {
        margin-bottom: 10px;
    }

    .tf-product-info-extra-link {
        flex-wrap: wrap;
    }

    .widget-tabs.style-has-border .widget-menu-tab {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* People Also Bought — keep cards in carousel columns, never full-bleed */
.tf-sw-people-also-bought {
    overflow: hidden;
    width: 100%;
}

.tf-sw-people-also-bought .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.tf-sw-people-also-bought .banaam-style8-card {
    width: 100%;
    height: 100%;
}

.tf-sw-people-also-bought .card-product-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* PDP gallery — Alpine thumbs + main (no Swiper destroy races) */
.banaam-pdp-gallery.thumbs-slider {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.banaam-pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.banaam-pdp-thumb {
    display: block;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.banaam-pdp-thumb.is-active {
    border-color: #000;
}

.banaam-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banaam-pdp-main {
    flex: 1;
    min-width: 0;
}

.banaam-pdp-main-frame {
    position: relative;
    width: 100%;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.banaam-pdp-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.banaam-pdp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.banaam-pdp-nav-prev {
    left: 12px;
}

.banaam-pdp-nav-next {
    right: 12px;
}

.banaam-pdp-nav:hover {
    background: #fff;
}

@media (max-width: 767px) {
    .banaam-pdp-gallery.thumbs-slider {
        flex-direction: column-reverse;
    }

    .banaam-pdp-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .banaam-pdp-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }
}
