/* Бейдж "Безлимит" */
.unlimited-badge {
    position: absolute;
    top: 120px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: #cc0e0e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 111;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: all 0.3s ease;
    /*border: 1px solid white;*/
}

.unlimited-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.unlimited-badge span {
    color: white;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Подсказка (Tooltip) */
.unlimited-tooltip {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 15px;
    max-width: 300px;
    width: max-content;
    animation: fadeIn 0.3s ease;
    border: 1px solid #e0e0e0;
}

.unlimited-tooltip.active {
    display: block;
}

/* Стрелка у подсказки */
/*.unlimited-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}*/

/* Позиционирование стрелки для разных направлений */
.unlimited-tooltip.top::before {
    bottom: -6px;
    left: 20px;
}

.unlimited-tooltip.bottom::before {
    top: -6px;
    left: 20px;
}

.unlimited-tooltip.left::before {
    right: -6px;
    top: 15px;
}

.unlimited-tooltip.right::before {
    left: -6px;
    top: 15px;
}

/* Заголовок подсказки */
.unlimited-tooltip-title {
    color: #ff0000;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/*.unlimited-tooltip-title::before {
    content: "✦";
    font-size: 14px;
}*/

/* Текст подсказки */
.unlimited-tooltip-content {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.unlimited-tooltip-content ul {
    list-style-type: disc;
    padding-left: 15px;
}

/* Кнопка закрытия */
.unlimited-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.unlimited-tooltip-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .unlimited-badge {
        width: 60px;
        height: 60px;
        top: -10px;
        right: -10px;
    }
    
    .unlimited-badge span {
        font-size: 8px;
    }
    
    .unlimited-tooltip {
        max-width: 250px;
        padding: 12px;
    }
    
    .unlimited-tooltip::before {
        display: none; /* На мобильных скрываем стрелку для простоты */
    }
}

@media (max-width: 480px) {
    .unlimited-badge {
        width: 60px;
        height: 60px;
        top: 145px;
        right: 10px;
    }
    
    .unlimited-badge span {
        font-size: 11px;
    }
    
    .unlimited-tooltip {
        max-width: 200px;
        font-size: 13px;
        padding: 10px;
    }
}

/* Для страницы товара */
.single-product .unlimited-badge {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
}

.single-product .unlimited-badge span {
    font-size: 10px;
}

@media (max-width: 768px) {
    .single-product .unlimited-badge {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}