/* product page: guarantees, seller record and the mobile buy bar */
.product-assurance-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 50px;
    background: #f6f7f9;
    font-size: 12px;
    color: #444;
    line-height: 1.5;
}

.product-assurance-chip i {
    font-size: 15px;
}

.product-seller-record {
    background: #f1faf4;
    border: 1px solid #d5efdd;
}

.product-sticky-buy {
    display: none;
}

/* a long shop name in «بیشتر از …» shrinks with an ellipsis instead of pushing the link off the screen */
.related-products-title .title {
    flex-shrink: 1;
    min-width: 0;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the dashes only fill what is left, so a short title is never cut */
.related-products-title .dashes {
    flex: 1 1 0;
    width: auto;
    min-width: 16px;
}

.related-products-title a {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .product-sticky-buy {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 56px; /* above the mobile menu */
        z-index: 9;
        padding: 8px 16px;
        background: #fff;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, .08);
        transform: translateY(calc(100% + 56px));
        transition: transform .25s ease;
    }

    .product-sticky-buy.show {
        transform: translateY(0);
    }

    /* room for the bar, so it never hides the end of the page */
    body:has(.product-sticky-buy.show) {
        padding-bottom: 64px;
    }

    .product-sticky-buy .kt-btn {
        min-height: 44px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-sticky-buy {
        transition: none;
    }
}
