/* Радикальное решение для центрирования карточек в каталоге - версия 2 */

/* Принудительное центрирование всех секций каталога */
#perfetto-catalog, #classico-catalog, #uno-catalog {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Переопределение сетки карточек на flex-контейнер */
.product-catalog-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 30px !important;
    margin: 40px auto !important;
    width: 100% !important;
    max-width: 1400px !important;
}

/* Принудительное центрирование карточек */
.product-catalog-card {
    flex: 0 0 auto !important;
    width: 300px !important;
    max-width: 300px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background-color: #fff !important;
}

/* Принудительное центрирование деталей продукта */
.product-catalog-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Принудительное центрирование изображений */
.product-catalog-image {
    width: 100% !important;
    height: 250px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.product-catalog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

/* Исправление для таблиц и других элементов внутри карточек */
.logistics-table-container {
    width: 100% !important;
    margin: 0 auto !important;
}

.logistics-table {
    width: 100% !important;
    margin: 20px auto !important;
}

.product-features {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 15px auto !important;
    width: 100% !important;
}

/* Адаптивность для разных экранов */
@media (max-width: 1200px) {
    .product-catalog-grid {
        max-width: 1000px !important;
    }
}

@media (max-width: 900px) {
    .product-catalog-grid {
        max-width: 650px !important;
    }
}

@media (max-width: 600px) {
    .product-catalog-grid {
        max-width: 320px !important;
    }
    
    .product-catalog-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Принудительное отображение всех карточек */
.product-catalog-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Исправление для анимаций */
.animate-fade-in {
    opacity: 1 !important;
    animation: none !important;
}