/* Общие стили для контейнеров */
.container {
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px; /* Увеличим максимальную ширину */
}

/* Карточки товаров */
.card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 98%;
}

/* Эффект при наведении на карточку */
.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Сетка карточек товаров */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Автоматическое распределение колонок */
    gap: 20px; /* Расстояние между карточками */
    padding: 20px 0;
}

/* Изображения товаров */
.card-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

/* Контент карточки */
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.card-content h3 {
    margin: 10px 0;
    font-size: 1.25rem;
    color: #343a40;
}

.card-content .date {
    font-size: 0.875rem;
    color: #6c757d;
}

.card-content .description {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 15px;
    color: #495057;
}

.card-content .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #198754;
}

/* Ссылки */
.icon-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Автоматическое распределение колонок */
        gap: 10px; /* Расстояние между карточками */
    }

    .card-content {
        padding: 10px;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .card-content .description {
        font-size: 0.875rem;
    }
}
/*Кнопка назад запасная*/
/*.goback-btn {*/
/*    display: inline-block;*/
/*    padding: 10px 20px;*/
/*    background-color: #6c5ce7;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*    border-radius: 8px;*/
/*    font-family: Arial, sans-serif;*/
/*    font-size: 16px;*/
/*    transition: background-color 0.3s, transform 0.2s;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*}*/

/*.goback-btn:hover {*/
/*    background-color: #a29bfe;*/
/*    transform: translateY(-2px);*/
/*}*/
