/* ============================================
   CUSTOM SLIDER — CSS
   ============================================ */

.cslider-section {
    padding: 40px 0;
    overflow: hidden;
}

.cslider-section__heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.cslider-section__heading span {
    color: var(--primary-color, #2563eb);
}

/* --- Контейнер --- */
.cslider {

    position: relative;
    width: 100%;
    padding: 0 50px; /* место под стрелки */
}

.cslider__viewport {
        overflow: visible;
    overflow: hidden;
    width: 100%;
}

.cslider__track {
    display: flex;
    will-change: transform;
    transition-property: transform;
}

/* Режим бегущей строки — убираем transition, используем animation */
.cslider--marquee .cslider__track {
    transition: none !important;
    animation: marquee-scroll var(--marquee-duration, 20s) linear infinite;
}

.cslider--marquee:hover .cslider__track.pause-on-hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Слайд --- */
.cslider__slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.cslider__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.cslider__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cslider__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.cslider__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cslider__card:hover .cslider__img img {
    transform: scale(1.05);
}

.cslider__title {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* --- Стрелки --- */
.cslider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.cslider__arrow--prev { left: 0; }
.cslider__arrow--next { right: 0; }

.cslider__arrow svg {
    width: 22px;
    height: 22px;
}

.cslider__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Стиль default */
.cslider__arrow.default {
    background: #d16d02;  /* Новый цвет фона */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(209, 109, 2, 0.2); /* Обновлен цвет тени */
    color: #fff;  /* Белый цвет иконки */
}
.cslider__arrow.default:hover:not(:disabled) {
    background: #286b66;  /* Новый цвет при наведении */
    color: #fff;
}

/* Стиль circle */
.cslider__arrow.circle {
    background: #d16d02;  /* Новый цвет фона */
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(209, 109, 2, 0.3); /* Обновлен цвет тени */
}
.cslider__arrow.circle:hover:not(:disabled) {
    background: #286b66;  /* Новый цвет при наведении */
    box-shadow: 0 6px 20px rgba(40, 107, 102, 0.4); /* Обновлен цвет тени */
}

/* Стиль minimal */
.cslider__arrow.minimal {
    background: transparent;
    color: #d16d02;  /* Новый цвет иконки */
    border-radius: 0;
}
.cslider__arrow.minimal:hover:not(:disabled) {
    color: #286b66;  /* Новый цвет при наведении */
    background: transparent;
}



/* --- Точки --- */
.cslider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.cslider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cslider__dot.active {
    background: var(--primary-color, #2563eb);
    transform: scale(1.2);
}

.cslider__dot:hover:not(.active) {
    background: #9ca3af;
}

/* --- Dragging --- */
.cslider__viewport.grabbing {
    cursor: grabbing;
}

.cslider__viewport.grabbable {
    overflow: visible;
    cursor: grab;
}

/* ============================================
   КАРТОЧКА ТОВАРА ВНУТРИ СЛАЙДЕРА
   ============================================ */

/* Слайд-обёртка */
.cslider__slide--product {
    display: flex;
    align-items: stretch;
}

/* Карточка — занимает 100% ширины слайда */
.cslider__slide--product .card.product_card_item,
.cslider__slide .card.product_card_item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
    overflow: visible;
}

.cslider__slide--product .card.product_card_item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Бейджи */
.cslider__slide--product .card__badge {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
}

.cslider__slide--product .card__badge_item {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}

.cslider__slide--product .card__badge_item.novelty { background: #4caf50; }
.cslider__slide--product .card__badge_item.order { background: #ec7a00; }
.cslider__slide--product .card__badge_item.discount { background: #e74c3c; }

/* Кнопки избранное/сравнение */
.cslider__slide--product .card__setting {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Замени на: */
.cslider__slide--product .quick-view {
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

/* Изображение */
.cslider__slide--product .card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cslider__slide--product .card__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cslider__slide--product .card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

/* Рейтинг */
.cslider__slide--product .card__reviews {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cslider__slide--product .card__reviews_star {
    display: flex;
    align-items: center;
}

.cslider__slide--product .card__reviews_star svg {
    width: 14px;
    height: 13px;
}

.cslider__slide--product .card__reviews_count {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}

/* Название */
.cslider__slide--product .card__label {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cslider__slide--product .card__label:hover {
    color: #ec7a00;
}

/* Цены */
.cslider__slide--product .card__prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    margin-top: auto; /* прижимает к низу */
}

.cslider__slide--product .card__prices_left {
    display: flex;
    flex-direction: column;
}

.cslider__slide--product .card__prices_old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    line-height: 1;
}

.cslider__slide--product .card__prices_new {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
}

/* Кнопка корзины */
.cslider__slide--product .card__prices_right {
    position: relative;
}

.cslider__slide--product .card__basket {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ec7a00;
    transition: background 0.2s;
}

.cslider__slide--product .card__basket:hover {
    background: #d56b00;
}

.cslider__slide--product .card__icon_basket {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.cslider__slide--product .card__prices_right .popup {
    display: none;
}

/* Нижняя информация — скрываем в слайдере (слишком много места) */
.cslider__slide--product .card__info {
    display: none;
}

/* ============================================
   СЕКЦИЯ СЛАЙДЕРА НА СТРАНИЦЕ ТОВАРА
   ============================================ */
.pc-products-slider {
    margin-bottom: 10px;
}

.pc-products-slider .section__heading {
    margin-bottom: 15px;
}

.pc-products-slider .cslider {
    padding: 0 50px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cslider {
        padding: 0 35px;
    }
    .cslider__arrow {
        width: 32px;
        height: 32px;
    }
    .cslider__arrow svg {
        width: 18px;
        height: 18px;
    }

    .cslider__slide--product .card__img {
        height: 140px;
    }

    .cslider__slide--product .card__prices_new {
        font-size: 14px;
    }

    .cslider__slide--product .card__label {
        font-size: 12px;
    }

    .cslider__slide--product .card__reviews_star svg {
        width: 12px;
        height: 11px;
    }

    .pc-products-slider .cslider {
        padding: 0 35px;
    }
}

@media (max-width: 480px) {
    .cslider__slide--product .card.product_card_item {
        padding: 8px;
    }

    .cslider__slide--product .card__img {
        height: 120px;
    }

    .cslider__slide--product .card__basket {
        width: 32px;
        height: 32px;
    }

    .cslider__slide--product .card__icon_basket {
        width: 15px;
        height: 15px;
    }
}
.section.otzuv .cslider {
    padding: 0 50px;
}

.section.otzuv .reviews-section {
    padding-left: 0;
    padding-right: 0;
}.section.otzuv .container {
    overflow: hidden;
}
.cslider .card__prices_old {
    text-decoration: line-through !important;
    font-size: 11px !important;
    color: rgb(153, 153, 153) !important;
    line-height: 1 !important;;
}