/* Стили для листания товаров (карусель) и кнопки каталога.
   Вынесено в отдельный файл из-за лимита в 300 строк на pay.css. */

.product-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
    gap: 12px;
}

.product-carousel .product-info {
    flex: 1;
    margin-bottom: 0;
}

.nav-arrow {
    display: none; /* Будет переключено в flex через JS */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    flex-shrink: 0;
    
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* RTL поддержка для кнопок листания: значки зеркалятся вместе с раскладкой */
[dir="rtl"] .nav-arrow svg,
[dir="rtl"] .mobile-arrow-btn svg {
    transform: scaleX(-1);
}

.mobile-arrows {
    display: none;
    justify-content: center;
    gap: 20px;
    margin: 8px 0 16px 0;
}

.mobile-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 64px;
    height: 48px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    
}

.mobile-arrow-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.mobile-arrow-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    box-shadow: none;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .product-carousel {
        flex-direction: column;
        gap: 0;
    }
    
    .product-carousel .product-info {
        width: 100%;
    }
    
    .nav-arrow {
        display: none !important;
    }
    
    .mobile-arrows.visible {
        display: flex;
    }
}
