.spinner-border {
    animation: spinner-border .75s linear infinite !important;
}
@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}
/* Вытаскиваем модалку из "контекста" карточки */
.card .modal {
    position: fixed !important;  /* fixed, чтобы игнорировать родителей */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1050 !important;    /* стандартный z-index модалки */
}

/* Фон модалки */
.card .modal-backdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040 !important;    /* чуть ниже модалки */
}

.product-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    background: #fff;
    transition: all 0.15s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.product-card img {
    transition: transform .25s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}
.discount-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #ffe4e4;
    color: #b91c1c;
    font-weight: 600;
    font-size: .8rem;
    border-radius: 6px;
    padding: .25rem .5rem;
}
.price-current { font-size: 1rem; }
.price-old { font-size: .9rem; }
.btn.hover-scale:hover {
    transform: scale(1.1);
    background-color: #f8f9fa !important;
}
.offcanvas {
    width: 380px;
    max-width: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.offcanvas-body img {
    object-fit: cover;
}
.btn.hover-scale:hover {
    transform: scale(1.05);
    background-color: #f8f9fa !important;
}
.sp-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или contain, если не хочешь обрезать */
}
