
/* Рекламный блок Яндекс Маркет (фон белый) */
.yandex-market-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
    align-items: start;
	max-width: 1280px;
}

.yandex-market-block {
    display: flex;
    flex-direction: column;
    background: #ffffff;  /* Белый фон — без изменений */
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* Естественный блочный текст — слова никогда не поменяются местами */
.yandex-market-title {
    padding: 18px 20px 10px;
    font-size: 18px;
    font-weight: 720;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #6b7280;             /* Благородный серый цвет слогана */
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;           /* Достаточный отступ между строками при переносе */
    margin-bottom: 5px;
    display: block;             /* Строго обычный блок, никакой флекс-верстки */
    
    /* Мягкое растворение оранжевой полосы */
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, #ff6b00 0%, #ff6b00 30%, rgba(255,107,0,0) 90%) 1;
}

/* Блок Реклама */
.yandex-market-legal {
    font-size: 11px;
    color: #8b949e;           /* Читаемый, но ненавязчивый серый цвет */
    padding: 10px 20px;
}

/* Оставляем relative здесь, чтобы стрелки центрировались только относительно карусели товаров */
.yandex-market-carousel {
    position: relative;
    padding: 15px;
}

/* СТИЛИ СТРЕЛОК ПОЛНОСТЬЮ ИЗ ВАШЕГО ВАРИАНТА */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.carousel-prev svg,
.carousel-next svg {
    width: 20px;
    height: 20px;
}

.carousel-prev svg path,
.carousel-next svg path {
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.gallery-items {
    display: flex;
    flex-direction: row;
    gap: 12px;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    position: relative;
}

.gallery-item a {
    text-decoration: none;
}

.gallery-item-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Альпийский минимализм — строго статичный вид без эффектов */
.gallery-item-title {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Fira Sans Condensed', 'Arial Narrow', sans-serif; 
    color: #374151;             /* Цвет матового горного асфальта */
    font-style: normal;
    text-transform: uppercase;   /* Строгий капс для названий моделей */
    line-height: 1.25;
    letter-spacing: 0.2px;      
    
    /* Ограничение в две строки */
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}

.badge-pro { background: #FF3333; color: white; }
.badge-top { background: #FCE000; color: #000; }
.badge-new { background: #003366; color: white; }
.badge-best { background: #2E7D32; color: white; }
.badge-limited { background: #7B1FA2; color: white; }
.badge-comfort { background: #F57C00; color: white; }
.badge-allround { background: #009688; color: white; }
.badge-sale { background: #757575; color: white; }

@media (max-width: 768px) {
    .gallery-items {
        transition: none;
    }
}
