/* ===== БЛОК РЕКОМЕНДАЦИЙ ===== */
.cart-dropdown__recommendations {
    margin-top: 0;
    padding: 12px 16px 16px;
    background: #EAEAEA;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 0 8px 8px;
}

/* ===== ВЕРТИКАЛЬНЫЙ СКРОЛЛ КОРЗИНЫ ===== */
.cart-dropdown {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Стилизация скроллбара для WebKit (Chrome, Safari) */
.cart-dropdown::-webkit-scrollbar {
    width: 4px;
}

.cart-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.cart-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.cart-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стилизация скроллбара для Firefox */
.cart-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* ===== ХЕДЕР РЕКОМЕНДАЦИЙ ===== */
.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.recommendations-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}

.recommendations-close {
    display: none !important;
}

/* ===== СЛАЙДЕР ===== */
.recommendations-scroll-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
}

.recommendations-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.recommendations-grid:active {
    cursor: grabbing;
}

.recommendations-grid::-webkit-scrollbar {
    display: none;
}

/* ===== КАРТОЧКА АКСЕССУАРА ===== */
.recommendations-item {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 8px 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-user-select: none;
}

.recommendations-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommendations-item.in-basket {
    opacity: 0.6;
}

.recommendations-item__img {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.recommendations-item__img img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.recommendations-item__img-placeholder {
    width: 50px;
    height: 50px;
    background: #e8e8e8;
    border-radius: 6px;
}

.recommendations-item__name {
    font-size: 11px;
    line-height: 1.3;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
    font-weight: 500;
}

.recommendations-item__price {
    font-weight: 600;
    font-size: 13px;
    color: #000000;
    margin-bottom: 6px;
}

/* ===== КНОПКИ - БЕЗ СКРУГЛЕНИЙ ===== */
.recommendations-item__btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 0 !important; /* Убираем скругление */
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    min-height: 28px;
    font-weight: 500;
}

.recommendations-item__btn:hover:not(:disabled) {
    background: #333;
}

.recommendations-item__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Кнопка для услуги гравировки - БЕЗ СКРУГЛЕНИЙ */
.recommendations-item__btn--link {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 0 !important; /* Убираем скругление */
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    min-height: 28px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.recommendations-item__btn--link:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.recommendations-item[data-is-engraving="true"] {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.recommendations-item[data-is-engraving="true"]:hover {
    text-decoration: none;
}

/* Статус "В корзине" */
.recommendations-item__in-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #4CAF50;
    font-size: 11px;
    font-weight: 500;
    width: 100%;
    min-height: 28px;
}

.recommendations-item__in-basket svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.recommendations-empty {
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 13px;
    padding: 10px 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 991px) {
    .recommendations-item {
        flex: 0 0 110px;
        min-width: 110px;
        max-width: 110px;
    }
    
    .cart-dropdown {
        max-height: 85vh;
    }
}

@media (max-width: 768px) {
    .cart-dropdown__recommendations {
        padding: 10px 12px 14px;
    }
    
    .recommendations-title {
        font-size: 12px;
    }
    
    .recommendations-item {
        flex: 0 0 100px;
        min-width: 100px;
        max-width: 100px;
        padding: 8px 6px 8px;
    }
    
    .recommendations-item__img {
        height: 60px;
    }
    
    .recommendations-item__img img {
        max-height: 50px;
    }
    
    .recommendations-item__name {
        font-size: 10px;
        min-height: 24px;
    }
    
    .recommendations-item__price {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .recommendations-item__btn {
        font-size: 10px;
        padding: 4px 10px;
        min-height: 24px;
        border-radius: 0 !important;
    }
    
    .recommendations-item__btn--link {
        font-size: 10px;
        padding: 4px 10px;
        min-height: 24px;
        border-radius: 0 !important;
    }
    
    .recommendations-item__in-basket {
        font-size: 10px;
        min-height: 24px;
    }
    
    .recommendations-grid {
        gap: 8px;
        padding: 2px 2px 6px;
    }
    
    .cart-dropdown {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .recommendations-item {
        flex: 0 0 90px;
        min-width: 90px;
        max-width: 90px;
    }
    
    .recommendations-item__img {
        height: 50px;
    }
    
    .recommendations-item__img img {
        max-height: 40px;
    }
}