.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    gap: 40px;
}

.gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем main-image */
}

.main-image {
    width: 500px;
    height: 500px;       
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fc40c7a1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnails img.active {
    border-color: #7bff696c;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
}

.product-new {
    color: rgb(255, 196, 1);
    margin-top: 10px;
}

.availability {
    color: green;
    margin-top: 10px;
}

.noneavailabile {
    color: red;
    margin-top: 10px;
}

.price {
    font-size: 24px;
    margin: 15px 0;
}

.buy-button {
    background-color: #fc40c7a1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: none;
}

.buy-button:hover {
    background-color: #f50eb4cb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.product-details {
    margin-top: 30px;
}

.product-details h3 {
    margin-bottom: 10px;
}

.product-details p {
    line-height: 1.6;
}

.characteristics {
    margin-top: 20px;
}

.characteristics strong {
    display: inline-block;
    width: 140px;
}

@media (hover: none) and (pointer: coarse) {
  .buy-button:hover {
    background-color: #fc40c7a1;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .main-image {
        width: 100%;
        height: 300px;
        max-width: 100%;
    }

    .product-title {
        font-size: 22px;
    }

    .price {
        font-size: 20px;
    }

    .buy-button {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }

    .characteristics strong {
        width: 120px;
    }
}