/* Стиль для контейнера с товарами */
#product-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 колонки по умолчанию */
    gap: 20px; /* Расстояние между товарами */
    margin-top: 20px;
    max-width: 1200px; /* Максимальная ширина контейнера */
    margin-left: auto;
    margin-right: auto; /* Центрируем контейнер */
    align-content: space-between;
}


#loading-indicator {
    text-align: center;
    font-size: 18px;
    padding: 20px;
    color: #555;
}

.product-card {
    display: flex;             /* Используем flexbox для управления блоками внутри */
    flex-direction: column;    /* Располагаем дочерние элементы по вертикали */
    justify-content: space-between; /* Оставляем пространство между блоками, прижимая последний блок к низу */
    height: 100%;              /* Растягиваем блок по высоте */
}

.product-actions {
    margin-top: auto;          /* Прижимаем блок product-actions к низу */
}


.add-to-cart-btn a {
    color: #dddddd;

}

.product-actions .open-cart-btn a {
    color: #0e0e0e;

}

.tech-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиазапросы для адаптивности */
@media (max-width: 1200px) {
    #product-list {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки для экранов шириной меньше 1200px */
    }
}

@media (max-width: 550px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для экранов шириной меньше 900px */
    }
}

.tech-item img {
    width: 100%; /* Ограничение на ширину изображений */
    height: auto;
    border-radius: 8px;
}


/* Основные стили контейнера */
.bottom-section {
    display: flex;
    flex-direction: row;
    gap: 0;
}


/* Стили блока с карточками товаров */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;

}


.product-grid .tech-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.tech-item .product-name {
    font-size: 16px;
    color: #e3c238;
    font-weight: bold;
    margin-bottom: 5px;
}

.tech-item .product-price {
    font-size: 14px;
    color: #a5a5a5; /* Серый цвет для цены */
    margin-bottom: 15px;

}

.tech-item .product-price,
.tech-item .view-details-btn {
    line-height: 1; /* Уменьшаем межстрочное расстояние между ценой и кнопкой */
}


/* Стили для кнопок прокрутки *//* Контейнер для кнопок пагинации */
/* Стили для контейнера пагинации */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Стили для кнопок пагинации */
.pagination-container button {
    padding: 0; /* Убираем лишние отступы */
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease; /* Плавное изменение и подсветка */
}

/* Стиль для кнопки "Предыдущая" с SVG */
.pagination-container button.prev {
    background-image: url('../svg/strelka_nazad.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

/* Стиль для кнопки "Следующая" с SVG */
.pagination-container button.next {
    background-image: url('../svg/strelka_podcategori.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

/* Подсветка стрелок при наведении */
.pagination-container button:hover:not(:disabled) {
    transform: scale(1.1); /* Увеличиваем стрелку */

}

/* Кнопка неактивна (disabled) */
.pagination-container button:disabled {
    cursor: not-allowed;
}


