/* ============================================================
   МОЙ СПИСОК ТОВАРОВ — стили карточки smp2 (единый чистый файл)
   ============================================================ */

/* === Карточка === */
.smp2-card {
    border-radius: 10px;
    padding: 4px;
    width: 100%;
    margin-bottom: 21px;
    transition: .3s;
}
.smp2-card:hover { transform: translateY(-4px); }

/* === Фото-блок и слайды (объединено, дубль удалён) === */
.smp2-img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 9px;
    overflow: hidden;
    background: #f5f5f5;
}
.smp2-img .smp2-slide-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: block;
}
.smp2-img .smp2-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s;
}
.smp2-img .smp2-slide.active { opacity: 1; }
/* одиночная картинка без слайдера — тем же правилом */
.smp2-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* === Полоски листания === */
.smp2-bar {
    position: absolute;
    top: 6px; left: 6px; right: 6px;
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: .2s;
    z-index: 3;
}
.smp2-card:hover .smp2-bar { opacity: 1; }
.smp2-bar span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(128, 128, 128, .45);
}
.smp2-bar span.on {
    background: #3b6bb6;
    margin: -3px 2px 2px;
    padding: 2px 0px;
}

/* === Кнопки-иконки: сердечко → глазик → зум, выезжают справа по очереди === */
.smp2-act {
    position: absolute;
    right: -60px;
    opacity: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 15px;
    z-index: 4;
    cursor: pointer;
    transition: right .35s ease, opacity .35s ease, background .2s, color .2s;
}
.smp2-act:hover { background: #3b6bb6; color: #fff; }
/* якорь у правого края картинки */
.smp2-tools {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 0;
}
/* порядок сверху вниз */
.smp2-fav   { top: 12px;                 transition-delay: .16s; }
.smp2-quick { top: 50%; margin-top: -15px; transition-delay: .08s; }
.smp2-zoom  { bottom: 12px;              transition-delay: 0s; }
/* выезжают по очереди */
.smp2-card:hover .smp2-fav   { right: 10px; opacity: 1; transition-delay: 0s; }
.smp2-card:hover .smp2-quick { right: 10px; opacity: 1; transition-delay: .08s; }
.smp2-card:hover .smp2-zoom  { right: 10px; opacity: 1; transition-delay: .16s; }

/* === Бейдж скидки === */
.smp2-sale {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    background: #c10400;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    min-width: 38px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(229, 57, 53, .4);
}

/* === Чипы (стикеры) === */
.smp2-chip {
    display: inline-block;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: 500;
    margin: 4px 3px 3px 0;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
}
.smp2-chip-green { background: #07a10014; color: #07a100; border: 1px solid #07a100; }
.smp2-chip-red   { background: #e539350f; color: #e53935; border: 1px solid #e53935; }
.smp2-chip-gold  { background: #fff; border: 1px solid #e0e0e0; color: #f5a623; }
.smp2-chip-gold i { margin-right: 3px; }

/* === Название: ровно две строки === */
.smp2-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    line-height: 20px;
}
.smp2-name a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.smp2-name a:hover { color: #3b6bb6; }

/* === Цена === */
.smp2-price { font-size: 20px; font-weight: 700; color: #3b6bb6; }
.smp2-price-old {
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 14px;
}

/* === Кнопка «В корзину» === */
.smp2-cart {
    border-radius: 20px;
    text-align: center;
    color: #fff;
    padding: 5px;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    background-image: linear-gradient(45deg, #3b6bb6 0%, #2691dc 50%, #25426f 100%);
    background-size: 200% 200%;
    background-position: 100% 0;
    transition: .6s;
}
.smp2-cart:hover {
    background-position: 0 0;
    box-shadow: 0 0 4px #333;
}

/* === Заголовок «НАШЕ ПРОИЗВОДСТВО» === */
.smp-title {
    text-align: center;
    font-size: 22px;
	padding: 23px 7px 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2e5fa3;
    display: flex;
    align-items: center;
    gap: 15px;
}
.smp-title::before,
.smp-title::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 2px;
}
.smp-title::before { background: linear-gradient(90deg, rgba(46,95,163,0) 0%, #2e5fa3 100%); }
.smp-title::after  { background: linear-gradient(90deg, #2e5fa3 0%, rgba(46,95,163,0) 100%); }

/* === Карусель: выравнивание карточек по высоте === */
.smp-owl .item { padding: 10px; }
.smp-owl .owl-stage { display: flex; }
.smp-owl .owl-stage .item { display: flex; }
.smp-owl .owl-stage .smp2-card { display: flex; flex-direction: column; }
.smp-owl .owl-stage .smp2-cart { margin-top: auto; }

/* === Мобильная версия: кнопки видны без наведения === */
@media (max-width: 768px) {
    .smp2-act { right: 10px; opacity: 1; }
}
.smp2-price-row {
	padding: 5px;
}
.smp2-chips {
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
}
.smp2-chips .stock-status {
    display: inline-block;
    height: 24px;
    line-height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e6f6e9;
}
.smp2-card { text-align: center; }
.smp2-name { text-align: center; }
.smp2-price-row { text-align: center; }
.smp2-chips { justify-content: center; }
