/* Стили для страницы отдельного поста инжиниринга */

/* Основная структура */
.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.products-images {
    flex: 0 0 400px;
    max-width: 400px;
}

.products-detals {
    flex: 1;
    min-width: 300px;
}

.products-info {
    flex: 0 0 300px;
    max-width: 300px;
}

/* Галерея изображений */
.single-product__image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.single-product__image:empty::before {
    content: "Изображение не загружено";
    color: #999;
    font-size: 14px;
    text-align: center;
}

/* Placeholder для отсутствующего изображения */
.single-product__image.no-image {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.no-image-placeholder {
    text-align: center;
    color: #999;
}

.no-image-placeholder svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-image-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.engineering-main-image {
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.engineering-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 0 0 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: #0075FF;
}

.engineering-gallery-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Информация о продукте */
.product-infos {
    margin-bottom: 20px;
}

.product-infos h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #22232B;
}

.product-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.product-list-sku1 {
    color: #666;
    font-size: 14px;
}

/* Характеристики */
.product_meta {
    margin-bottom: 20px;
}

.item-params {
    margin-bottom: 10px;
}

.item-params__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-params__label {
    flex: 0 0 120px;
    font-weight: 500;
    color: #666;
}

.item-params__dotes {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    height: 1px;
}

.item-params__value {
    flex: 0 0 auto;
    font-weight: 500;
}

.product-list-attributes2 {
    margin-bottom: 20px;
}

/* Краткое описание */
.woocommerce-product-details__short-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Цена и кнопки */
.product-price {
    margin-bottom: 20px;
}

.product-price .price {
    font-size: 24px;
    font-weight: 600;
    color: #0075FF;
}

.woocommerce-product-form-wrap {
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-container a {
    align-items: center;
    display: flex;
}

.btn-primary {
    display: inline-block;
    background: #0075FF;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Табы */
.engineering-tabs {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #0075FF;
}

.tab-btn.active {
    color: #0075FF;
    border-bottom-color: #0075FF;
}

.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Полное описание */
.engineering-full-description {
    margin: 0;
    padding: 0;
}

.engineering-full-description h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #22232B;
}

.description-content {
    line-height: 1.8;
    color: #333;
}

/* Характеристики */
.engineering-specifications h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #22232B;
}

.specifications-list {
    display: grid;
    gap: 15px;
}

.specification-item {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0075FF;
}

.spec-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: #22232B;
}

.spec-value {
    flex: 1;
    color: #333;
}

.no-specifications {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Отзывы */
.engineering-reviews {
    margin: 0;
    padding: 0;
}

.woocommerce-Reviews-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #22232B;
}

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

.commentlist li {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-body {
    position: relative;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-meta {
    flex: 1;
}

.comment-meta .fn {
    font-weight: 600;
    color: #22232B;
    font-style: normal;
}

.comment-date {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.comment-content {
    line-height: 1.6;
    color: #333;
}

.reply {
    margin-top: 15px;
}

.reply a {
    color: #0075FF;
    text-decoration: none;
    font-size: 14px;
}

.reply a:hover {
    text-decoration: underline;
}

/* Звездочки рейтинга */
.star-rating {
    display: inline-block;
    margin-left: 10px;
}

.star-rating .star {
    color: #ddd;
    font-size: 18px;
    margin-right: 2px;
}

.star-rating .star.filled {
    color: #ffb900;
}

/* Форма отзыва */
#review_form_wrapper {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

#reply-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #22232B;
}

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form-rating select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form-author,
.comment-form-email {
    margin-bottom: 15px;
}

.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 20px;
}

.form-submit input[type="submit"] {
    background: #0075FF;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #0056b3;
}

.required {
    color: #dc3545;
}

/* Сообщения */
.woocommerce-noreviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Пагинация отзывов */
.woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.woocommerce-pagination .page-numbers.current {
    background: #0075FF;
    color: white;
    border-color: #0075FF;
}

.woocommerce-pagination .page-numbers:hover {
    background: #f8f9fa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .products-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .products-images,
    .products-detals,
    .products-info {
        flex: none;
        max-width: 100%;
    }
    
    .product-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-params__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .item-params__dotes {
        display: none;
    }
    
    .engineering-gallery {
        justify-content: center;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }
    
    .specification-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .spec-label {
        flex: none;
    }
}

/* Форма обратной связи */
#callback {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.main-feedback__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #22232B;
}

/* Дополнительные стили для отзывов WooCommerce */
.engineering-reviews .comment_container {
    display: flex;
    gap: 15px;
}

.engineering-reviews .comment-text {
    flex-grow: 1;
}

.engineering-reviews .star-rating {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 16px;
    background: #ddd;
    border-radius: 2px;
    margin-bottom: 10px;
}

.engineering-reviews .star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffb900;
    border-radius: 2px;
}

.engineering-reviews .meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.engineering-reviews .woocommerce-review__author {
    font-weight: bold;
    color: #333;
}

.engineering-reviews .woocommerce-review__dash {
    margin: 0 5px;
}

.engineering-reviews .woocommerce-review__published-date {
    color: #666;
}

.engineering-reviews .description {
    line-height: 1.6;
    color: #333;
}

.engineering-reviews .must-log-in {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.engineering-reviews .must-log-in a {
    color: #0073aa;
    text-decoration: none;
}

.engineering-reviews .must-log-in a:hover {
    text-decoration: underline;
}

.engineering-reviews .woocommerce-verification-required {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Стили для админки */
.star-rating {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 16px;
    background: #ddd;
    border-radius: 2px;
}

.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffb900;
    border-radius: 2px;
}

.rating-text {
    margin-left: 10px;
    font-weight: bold;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #0075FF;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* Ссылки категорий */
.product-list-sku1 a,
.item-params__value a {
    color: #0075FF;
    text-decoration: none;
}

.product-list-sku1 a:hover,
.item-params__value a:hover {
    text-decoration: underline;
} 