
.astyle {
    text-decoration: none; /* Убираем подчеркивание */
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.product-card {
    height: 400px;
    width: 600px;
    overflow: hidden;

    border-radius: 30px;
background: linear-gradient(145deg, #e6e6e6, #ffffff);
box-shadow:  5px 5px 10px #d9d9d9,
             -5px -5px 10px #ffffff;

    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-description {
    color: #777;
    font-size: 14px;
}

.product-card button {
    width: 100%;
    padding: 10px;
    background-color: #4c77af;
    color: white;
    border: none;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #4c77af;
}

/* Карточка продукта (подробности) */
.product-details {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 80%;
    z-index: 9999;
}

.product-details h2 {
    margin-top: 0;
}

.close-btn {
    background-color: #ff4c4c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close-btn:hover {
    background-color: #e04343;
}