/* Каталог и прайс секция */
.row-fluid.rowTags {
    background: #fbfcfe;
    padding: 80px 0 60px;
    margin-top: 0;
}

.catalog-header {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-label {
    font-family: 'TikTok Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0066CC;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
    border: 1.5px solid #0066CC;
    border-radius: 20px;
    padding: 8px 16px;
}

.row-fluid.rowTags h2 {
    font-family: 'TikTok Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Поиск */
.catalog-search {
    position: relative;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-family: 'TikTok Sans', sans-serif;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Табы навигация */
.tagsNav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tagsNav::-webkit-scrollbar {
    height: 4px;
}

.tagsNav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tagsNav::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 2px;
}

.tagNavItem {
    font-family: 'TikTok Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -22px;
    padding-bottom: 12px;
}

.tagNavItem:hover {
    color: #0066CC;
}

.tagNavItem.active {
    color: #0066CC;
    border-bottom-color: #0066CC;
}

/* Контент табов */
.tagsContent {
    display: none;
}

.tagsContent[style*="display: grid"],
.tagsContent[style*="display: block"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Карточки товаров */
.tcItem {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.tcItem:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tciImage {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #f0f0f0;
}

.tciName {
    font-family: 'TikTok Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 16px 16px 8px;
    flex-grow: 1;
}

.tciPrice {
    font-family: 'TikTok Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0066CC;
    padding: 0 16px 12px;
}

.tcButton {
    margin: 8px 16px 16px;
    padding: 12px 24px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'TikTok Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcButton:hover {
    background: #0052a3;
    transform: scale(1.02);
}

.tcButton:active {
    transform: scale(0.98);
}

/* JavaScript классы для фильтра */
.tcItem.hidden {
    display: none;
}

.tcItem.visible {
    display: flex;
}

/* Адаптивность каталога */
@media (max-width: 768px) {
    .row-fluid.rowTags {
        padding: 60px 0 40px;
    }
    
    .row-fluid.rowTags h2 {
        font-size: 28px;
        text-align: left !important;
    }
    
    .catalog-label {
        text-align: left !important;
    }
    
    .tagsNav {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .tagNavItem {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .tagsContent[style*="display: grid"],
    .tagsContent[style*="display: block"] {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .tciImage {
        height: 150px;
    }
    
    .tciName {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .row-fluid.rowTags {
        padding: 40px 0 30px;
    }
    
    .row-fluid.rowTags h2 {
        font-size: 22px;
    }
    
    .catalog-label {
        font-size: 11px;
        padding: 6px 12px;
        text-align: left !important;
    }
    
    .catalog-header h2 {
        text-align: left !important;
    }
    
    .search-input {
        padding: 12px 16px 12px 40px;
        font-size: 14px;
    }
    
    .tagsNav {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tagNavItem {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .tagsContent[style*="display: grid"],
    .tagsContent[style*="display: block"] {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tciImage {
        height: 180px;
    }
    
    .tciName {
        font-size: 13px;
        padding: 12px 12px 6px;
    }
    
    .tciPrice {
        font-size: 13px;
        padding: 0 12px 8px;
    }
    
    .tcButton {
        margin: 6px 12px 12px;
        padding: 10px 16px;
        font-size: 13px;
    }
}
