/* 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-specs {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.product-specs h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.specs-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.spec-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.spec-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.spec-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Блок сертификатов */
.product-certifications {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.product-certifications h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    margin-bottom: 8px;
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

.cert-list li:last-child {
    margin-bottom: 0;
}

/* Блок преимуществ */
.product-benefits {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.product-benefits h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    margin-bottom: 10px;
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefits-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Блок дополнительной информации */
.product-additional-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.product-additional-info h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.info-details {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-details p {
    margin-bottom: 10px;
}

.info-details p:last-child {
    margin-bottom: 0;
}

.info-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.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));
    }
    
    .product-specs,
    .product-certifications,
    .product-benefits,
    .product-additional-info {
        padding: 12px;
        margin: 15px 0;
    }
    
    .product-specs h4,
    .product-certifications h4,
    .product-benefits h4,
    .product-additional-info h4 {
        font-size: 0.95rem;
    }
    
    .spec-text,
    .benefits-list li {
        font-size: 0.9rem;
    }
    
    .cert-badges {
        gap: 6px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .info-details {
        font-size: 0.85rem;
    }
}
