/* Страница продавцов */
.tfsr-vendors-list-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vendors-header {
    text-align: center;
    margin-bottom: 40px;
}

.vendors-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.vendors-header p {
    color: #666;
    font-size: 1.1em;
}

/* Поиск */
.vendors-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#vendors-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#vendors-search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #DAA520B5, #FFA50057);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Сетка карточек */
.vendors-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vendor-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vendor-card-inner {
    padding: 25px;
    text-align: center;
}

/* Логотип */
.vendor-logo {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vendor-logo-placeholder {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* Название */
.vendor-name h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    line-height: 1.4;
}

/* Кнопка */
.vendor-actions {
    margin-top: 15px;
}

.vendor-details-btn {
    background: linear-gradient(135deg, #DAA520B5, #FFA50057);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.vendor-details-btn:hover {
    transform: scale(1.05);
}

/* Нет продавцов */
.no-vendors {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

/* Модальное окно */
.vendor-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.vendor-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vendor-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-modal-close:hover {
    color: #000;
}

#vendor-modal-body {
    padding: 40px;
}

/* Детали продавца в модальном окне */
.vendor-details-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.vendor-details-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.vendor-details-title h2 {
    margin: 0 0 5px 0;
    color: #333;
}

.vendor-country {
    color: #666;
    font-style: italic;
}

/* Галерея */
.vendor-gallery {
    margin-bottom: 30px;
}

.vendor-gallery h3 {
    margin-bottom: 15px;
    color: #333;
}

.vendor-gallery-slider {
    position: relative;
    margin-bottom: 15px;
}

.gallery-slide {
    display: none;
}

.gallery-slide:first-child {
    display: block;
}

.gallery-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

/* СОВРЕМЕННЫЕ СТРЕЛКИ ГАЛЕРЕИ */
.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery-prev, .gallery-next {
    background: linear-gradient(135deg, #DAA520, #FFA500);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.gallery-prev:hover, .gallery-next:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.gallery-prev:active, .gallery-next:active {
    transform: scale(0.95);
}

/* Иконки стрелок */
.gallery-prev::after {
    content: '‹';
}

.gallery-next::after {
    content: '›';
}

/* Индикаторы точек */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #DAA520;
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: #FFA500;
}

/* Информация */
.vendor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #333;
}

/* О компании */
.vendor-about h3 {
    margin-bottom: 15px;
    color: #333;
}

.about-content {
    line-height: 1.6;
    color: #555;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content ul, .about-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Предупреждение */
.vendors-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.vendors-disclaimer p {
    margin: 0;
    color: #856404;
}

/* Индикаторы загрузки и ошибок */
.loading, .error {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
}

.loading {
    color: #666;
}

.error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* Анимация загрузки */
.loading:after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .vendors-grid-inner {
        grid-template-columns: 1fr;
    }
    
    .vendor-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #vendor-modal-body {
        padding: 20px;
    }
    
    .vendor-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .vendor-info-grid {
        grid-template-columns: 1fr;
    }
    
    .vendors-search {
        flex-direction: column;
    }
    
    /* Адаптивные стрелки для мобильных */
    .gallery-prev, .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .gallery-nav {
        gap: 10px;
    }
}

/* Планшеты (альбомная ориентация) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .vendors-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vendor-modal-content {
        width: 85%;
        margin: 3% auto;
    }
}

/* Ноутбуки и ПК */
@media (min-width: 1025px) {
    .vendors-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Большие экраны */
@media (min-width: 1440px) {
    .tfsr-vendors-list-page {
        max-width: 1400px;
    }
    
    .vendors-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}