/* File: /css/product.css */

.product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.product-layout[itemscope][itemtype="https://schema.org/Product"] {
    border: 1px solid #eee;
}

.product-image-column {
    flex: 0 0 auto;
    max-width: 400px;
}

.product-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-info-column {
    flex: 1;
    min-width: 300px;
}

.product-info-column h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-short-description {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.product-actions {
    margin-top: 20px;
}

.buy-now {
    display: inline-block;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.buy-now:hover {
    background-color: #219653;
    text-decoration: none;
    color: white;
}

.product-full-description {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.product-full-description h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-full-description ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.product-full-description li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.related-products {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.related-products h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.product-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

/* Стили для сетки товаров, если их нет в основном CSS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Стили для карточки товара, если их нет в основном CSS */
.product-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-name {
    padding: 15px;
    text-align: center;
}

.product-name h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: none;
    padding-bottom: 0;
}

/* Адаптивность для мобильных устройств */

@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .product-image-column, .product-info-column {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
