
/* Подключаем шрифт */
.my-slider-wrapper {
    font-family: 'SFProDisplay', 'Roboto', Arial, sans-serif;
    color: #303336;
    margin-bottom: 60px; /* Отступ снизу */
}

.my-slider-wrapper * { box-sizing: border-box; }

/* Основной контейнер */
.my-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px; /* Небольшие отступы по краям экрана */
}

/* --- ШАПКА БЛОКА (Заголовок + Кнопки) --- */
.my-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравнивание по низу */
    margin-bottom: 40px;
    gap: 20px;
}

.my-block-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #303336;
}

.my-nav-container {
    display: flex;
    gap: 10px;
}

/* Стиль кнопок навигации */
.my-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ededed; 
    border: none;
    cursor: pointer;
    color: #303336; /* Цвет стрелки по умолчанию */
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.2s ease;
}

/* Ховер эффект: красный фон, белая стрелка */
.my-nav-btn:hover {
    background: #cd2342;
    color: #ffffff;
}

/* --- ЛЕНТА СЛАЙДЕРА --- */
.my-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    scroll-behavior: smooth; /* Плавный скролл при клике */
    
    /* Для перетаскивания мышкой */
    cursor: grab;
    user-select: none; /* Чтобы текст не выделялся при тяге */
}
/* Класс, добавляемый JS при захвате (клике) */
.my-slider-track.active {
    cursor: grabbing;
    scroll-behavior: auto; /* Отключаем плавность при драге, чтобы было отзывчиво */
}
.my-slider-track::-webkit-scrollbar { display: none; }

/* --- КАРТОЧКА --- */
.my-card {
    flex: 0 0 300px;
    width: 300px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* Защита картинки от перетаскивания браузером (ghost image) */
.my-card img {
    pointer-events: none; 
}

/* 1. Картинка */
.my-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px;
    background: #f0f0f0;
}
.my-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.my-img-link:hover .my-img-box img {
    transform: scale(1.05);
}

/* 2. Контент */
.my-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Лейбл */
.my-label {
    align-self: flex-start;
    background: #ededed;
    color: #303336;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Ряд Заголовок + Стрелка */
.my-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 60px; 
}

/* Заголовок товара (ЦВЕТ ЖЕСТКО ЗАДАН) */
.my-title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #303336 !important; /* Важно, чтобы перебить стили Тильды */
    text-decoration: none;
    transition: opacity 0.2s;
}
.my-title:hover {
    opacity: 0.7;
}

/* Кнопка-стрелка справа */
.my-arrow-link {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #ededed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #303336;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.my-arrow-link:hover {
    background: #dcdcdc;
}

/* 3. Кнопка ЗАКАЗАТЬ */
.my-btn-order {
    display: block;
    width: 100%;
    background: #cd2342;
    color: #fff !important;
    text-align: center;
    padding: 14px 0;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 16px;
    margin-top: auto; 
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.my-btn-order:hover {
    background: #b01b35;
}

/* Адаптив */
@media (max-width: 768px) {
    .my-slider-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .my-block-title { font-size: 24px; }
    .my-card { flex: 0 0 280px; width: 280px; } 
    /* На мобильном кнопки можно скрыть, так как есть свайп, 
       или оставить. В данном коде оставляю. */
    .my-nav-container { align-self: flex-end; }
}
