.product-page{padding-top: 24px; padding-bottom: 60px}
.product-breadcrumbs{margin-bottom: 24px}
.product-title{font-size: 32px; font-weight: 700; color: var(--text-black); margin-bottom: 24px; line-height: 1.3}
.product-layout{display: flex; gap: 40px; align-items: stretch}
.product-gallery{flex: 1; min-width: 0; display: flex; gap: 16px; align-items: stretch}
.product-gallery-thumbs{display: flex;flex-direction: column;gap: 4px;width: 68px;flex-shrink: 0;height: 405px;}
.thumbsSwiper .swiper-slide{width: 68px; height: 90px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #f8f8f8}
.gallery-thumb{height:100%; width:100%}
.thumbsSwiper .swiper-slide-thumb-active{border-color: var(--primary-color)}
.gallery-thumb img, .gallery-thumb picture{width: 100%; height: 100%; object-fit: cover}
.gallery-thumb-nav-down{display: flex; justify-content: center; color: #999; font-size: 24px; margin-top: 4px; cursor: pointer}
.gallery-thumb-nav-down:hover{color: #333}
.product-gallery-main{flex: 1; aspect-ratio: auto; background: #fff; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center}
.product-gallery-main img{max-width: 100%; max-height: 100%; object-fit: contain}
.btn-gallery-similar{position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: #333; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: none; cursor: pointer; transition: background 0.2s}
.btn-gallery-similar:hover{background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.12)}
.product-info-panel{width: 420px; flex-shrink: 0; display: flex; flex-direction: column}
.ym-badges{display: flex; gap: 8px; margin-bottom: 12px}
.ym-badge{padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; color: #fff}
.ym-badge-sale{background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%)}
.ym-badge-orig{background: #333}
.ym-header-titles{display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px}
.ym-header-brand{font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px}
.ym-header-brand a{color: #333; text-decoration: none}
.ym-title-inline{font-size: 20px; font-weight: 400; color: #333; margin: 0}
.ym-rating-row{display: flex; align-items: center; gap: 8px; font-size: 13px; color: #777; margin-bottom: 24px}
.ym-stars{display: flex; color: #f2c94c; font-size: 14px}
.star-half{color: #e0e0e0}
.ym-sizes-block{display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px}
.ym-size-label{font-size: 13px; color: #333}
.ym-size-system{color: #999}
.ym-size-list{display: flex; gap: 8px}
.ym-size-btn{padding: 8px 14px; border: 1px solid #ddd; background: #fff; border-radius: 6px; font-size: 14px; cursor: pointer; min-width: 44px; text-align: center; transition: all 0.2s}
.ym-size-btn:hover{border-color: #999}
.ym-size-btn-active{border-color: #333; border-width: 2px; padding: 7px 13px; font-weight: 600}
.ym-size-btn-active:hover{border-color: #333}
.ym-size-guide{font-size: 13px; color: #999; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; margin-top: 4px}
.ym-size-guide:hover{color: #333}
.ym-store-card{background: #fdf2eb; border: 1px solid var(--primary-color); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(255, 119, 51, 0.1)}
.ym-store-logo{width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; flex-shrink: 0; border: 1px solid rgba(255, 119, 51, 0.2)}
.ym-store-logo img{width: 100%; height: 100%; object-fit: cover}
.ym-store-info{flex: 1}
.ym-store-name{font-size: 15px; font-weight: 700; color: #333; margin-bottom: 4px}
.ym-store-rating{font-size: 13px; color: #777; display: flex; align-items: center; gap: 4px}
.ym-store-rating iconify-icon{font-size: 14px; color: #f2c94c}
.ym-store-fav{border: none; background: transparent; font-size: 24px; color: #999; cursor: pointer; transition: color 0.2s, transform 0.2s; padding: 4px}
.ym-store-fav:hover{color: var(--primary-color); transform: scale(1.1)}
.ym-attributes-block{display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px}
.ym-attr-row{display: flex; align-items: flex-end; font-size: 13px; line-height: 1.2}
.ym-attr-name{color: #777; white-space: nowrap}
.ym-attr-dots{flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 6px; position: relative; top: -3px}
.ym-attr-val{color: #333; max-width: 60%; text-align: right}
.copy-icon{color: #999; font-size: 14px; cursor: pointer; margin-left: 4px}
.copy-icon:hover{color: #333}
.ym-attr-more{font-size: 13px; color: var(--primary-color); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; margin-top: 4px}
.ym-attr-more:hover{text-decoration: underline}
.ym-actions-block{background: rgba(245, 245, 245, 0.7); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: stretch}
.btn-ym-secondary{flex: 1; padding: 16px; background: #fff; border-radius: 8px; font-size: 15px; font-weight: 700; color: #333; border: 1px solid #ddd; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center}
.btn-ym-secondary:hover{background: #f5f5f5; border-color: #ccc}
.btn-ym-primary{flex: 1; padding: 16px; background: var(--primary-color); border-radius: 8px; font-size: 15px; font-weight: 700; color: #fff; border: 1px solid var(--primary-color); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center}
.btn-ym-primary:hover{background: #f2621c; border-color: #f2621c}
.product-reviews-section{/*margin-top: 60px; */scroll-margin-top: 100px}
.reviews-header{display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px}
.reviews-title{font-size: 28px; font-weight: 700; color: var(--text-black)}
.reviews-summary{display: flex; align-items: center; gap: 16px; background: #f8f8f8; padding: 16px 24px; border-radius: 12px}
.reviews-summary-rating{font-size: 32px; font-weight: 800; color: #333}
.reviews-summary-stars{color: #f2c94c; font-size: 20px; display: flex; gap: 2px}
.reviews-summary-count{font-size: 14px; color: #777; margin-top: 4px}
.btn-write-review{padding: 12px 24px; background: #fff; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s}
.btn-write-review:hover{background: var(--primary-color); color: #fff}
.reviews-list{display: flex; flex-direction: column; gap: 24px}
.review-card{background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 24px}
.review-header{display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px}
.review-author{display: flex; align-items: center; gap: 12px}
.review-avatar{width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 16px}
.review-author-info{display: flex; flex-direction: column}
.review-author-name{font-size: 15px; font-weight: 600; color: #333}
.review-date{font-size: 12px; color: #999}
.review-stars{color: #f2c94c; font-size: 14px}
.review-content{font-size: 15px; line-height: 1.6; color: #444}
.review-store-reply{margin-top: 16px; background: #fcf8f2; border-radius: 8px; padding: 16px; border-left: 3px solid var(--primary-color)}
.reply-header{display: flex; align-items: center; gap: 8px; margin-bottom: 6px}
.reply-store-name{font-size: 14px; font-weight: 700; color: #333}
.reply-badge{background: var(--primary-color); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; font-weight: 600}
.reply-text{font-size: 14px; line-height: 1.5; color: #555; margin: 0}
.product-store-block{background: #f8f8f8; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color)}
.product-store-header{display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px}
.product-store-name{font-size: 18px; font-weight: 700; color: var(--text-black); margin-bottom: 4px}
.product-store-loc{font-size: 14px; color: var(--text-muted)}
.store-map-link{display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--primary-color); text-decoration: none; font-weight: 500}
.store-map-link:hover{text-decoration: underline}
.product-reserve-block{background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color)}
.reserve-title{font-size: 20px; font-weight: 700; margin-bottom: 16px}
.reserve-form{display: flex; flex-direction: column; gap: 16px}
.reserve-form input, .reserve-form textarea{width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.2s}
.reserve-form input:focus, .reserve-form textarea:focus{border-color: var(--primary-color)}
.reserve-form textarea{resize: vertical; min-height: 80px}
.checkbox-wrap{display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--text-muted); line-height: 1.4}
.checkbox-wrap input{margin-top: 3px; width: auto}
.checkbox-wrap a{color: var(--primary-color); text-decoration: none}
.btn-reserve-submit{width: 100%; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; margin-top: 8px}
.product-description{font-size: 15px; line-height: 1.6; color: var(--text-main)}
.product-description h3{font-size: 18px; color: var(--text-black); margin-bottom: 12px}
.product-memo{background: #fdfdfd; padding: 20px; border-left: 4px solid #f2994a; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-main); line-height: 1.5}
.product-memo-title{display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-black); margin-bottom: 8px}
.product-memo-title iconify-icon{font-size: 18px; color: #f2994a}
.related-section{margin-top: 60px}
.related-section-header{display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px}
.related-title{font-size: 28px; font-weight: 700; color: var(--text-black)}
/* Инлайн стили из шаблона */
.product-extra-sections {
    margin-top: 40px;
    display: grid;
    gap: 40px;
    grid-template-columns: 2fr 1fr;
}

.product-full-specs {
    margin-top: 40px;
}

.product-full-specs h3, .product-description h3{
    margin-bottom: 15px;
	font-weight:700
}

.product-memo {
    margin-top: 16px;
}

.link-styled {
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}
.mainSwiper .gallery-zoom-hint{opacity:1}
.ym-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ym-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 12px;
}

.ym-current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.ym-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #777;
    margin-bottom: 24px;
    text-decoration: none;
}

.copy-icon {
    cursor: pointer;
    margin-left: 4px;
}

.ym-size-label-radio {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.ym-size-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ym-size-radio:checked + .ym-size-btn {
    border-color: #333;
    border-width: 2px;
    padding: 7px 13px;
    font-weight: 600;
}

.prop-units {
    color: #999;
    font-size: 12px;
    margin-left: 2px;
}
@media (max-width: 992px){
	.product-layout{flex-direction: column; }
    .product-info-panel{width: 100%; }
    .product-gallery{position: static; width: 100%; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .product-extra-sections {grid-template-columns: 1fr !important;}
}
@media (max-width: 576px){
	.product-title{font-size: 24px; }
    .product-price-current{font-size: 28px; }
}

/* Стили для формы добавления отзыва в лайтбоксе */
#comments_add_form .tox-tinymce {
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
}

#comments_add_form .buttons {
    margin-top: 20px;
}

/* Адаптация карточек ответов магазина */
.review-card.store-reply-card {
    background: #fcf8f2;
    border-left: 3px solid var(--primary-color);
}

.review-card.store-reply-card .review-store-reply {
    display: block;
}

.review-card:not(.store-reply-card) .review-store-reply {
    display: none;
}



/* Стили для выбранного комментария */
.review-card.selected-comment {
    background: #fff8f0;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 119, 51, 0.15);
}

/* 
.fancybox__container {
    --fancybox-bg: rgba(0,0,0,0.85);
}

.fancybox__content {
    border-radius: 24px !important;
    padding: 0 !important;
    background: transparent !important;
}

.fancybox__content > div {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    max-width: 600px;
}

.fancybox__content #comments_add_form {
    display: block !important;
}

.fancybox__content .tox-tinymce {
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
}
*/

/* Comments Widget ========================================================== */
#comments_add_form{margin:15px 0}
#comments_widget{padding-bottom:50px}
/*
#comments_widget .bad {
    transition: all 0.5s ease;
}
#comments_widget .bad:hover {
    opacity: 1;
}
.bad6{opacity:.1;}
.bad5{opacity:.2;}
.bad4{opacity:.35;}
.bad3{opacity:.5;}
.bad2{opacity:.65;}
.bad1{opacity:.8;}
#tab-vk {
    margin: 20px 0 0 0;
}
#comments_widget {
    margin: 20px 0 0 0;
}
.no_comments {
    margin: 15px 0;
}
#comments_widget .track{
    font-size:12px;
    color:#999;
    text-align: right;
}
#comments_widget .track label{
    display: block;
    line-height: 30px;
}
#comments_widget .track input {
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}
.track + #comments_refresh_panel + #comments_list {
    margin: -15px 0 0 0;
}
#comments_widget #comments_add_link {
    margin: 0 0 10px 0;
    clear: both;
    padding-left:20px;
    background: url("../images/icons/comment.png") no-repeat left center;
}
#comments_widget #comments_add_link:first-child {
    margin-top: 15px;
}
#comments_widget #comments_add_link a { font-size:14px; }

#comments_widget #comments_add_form textarea{
    height:100px;
    margin-bottom:4px;
}

#comments_widget #comments_add_form .loading{ display: none; }

#comments_widget #comments_add_form .author_data {
	margin-bottom:8px;
}

#comments_widget #comments_add_form .author_data .field {
	overflow:hidden;
}
#comments_widget #comments_add_form .author_data .field label {
	float:left;
	width:140px;
	height:20px;
	line-height:20px;
}
#comments_widget #comments_add_form .author_data .field .input {
	width:99%;
	max-width: 200px;
	min-width: 50px;
}

#comments_widget #comments_refresh_panel {
    display: block;
    width:50px;
    height:35px;
    position: fixed;
    z-index:100;
    right:0px;
    top:45%;
    background:url("../images/loader24.gif") no-repeat center center #B3C2C9;
}

#comments_widget #comments_refresh_panel a{
    display: block;
    width:50px;
    height:35px;
    background:url("../images/icons32/update-black.png") no-repeat center center #B3C2C9;
}
#comments_widget #comments_refresh_panel a:hover{
    background-color: #e1ebef;
}
.no_approved { display: none; }
#comments_list .comment{
    overflow: hidden;
    border-radius:2px;
    padding:10px 0;
    margin:4px 0;
}
#comments_list .comment:first-child {
    margin-top: 0;
}
#comments_list .comment:last-child {
    margin-bottom: 0;
}
#comments_list .comment.selected-comment:first-child {
    margin-top: 13px;
}
#comments_list.striped-list .comment {
    padding-bottom: 15px;
}

#comments_list.striped-list .comment:last-child{
    border:none;
    padding-bottom: 0;
    margin-bottom: 0;
}

#comments_list .selected-comment{
    padding-right: 10px;
    box-shadow: 5px 5px 7px #B3C2C9;
}

#comments_list .comment .info,
#comments_list .comment .body {
    overflow: hidden;
    clear: both;
}

#comments_list .comment .info{
    margin-bottom:6px;
}

#comments_list .comment .info div {
    float: left;
    margin-right: 10px;
    font-size:12px;
}

#comments_list .comment .info .rating{
}

#comments_list .comment .info .rating .buttons{
    float:right;
    margin-left:5px;
}

#comments_list .comment .info .rating a {
    display:inline-block;
    width:13px;
    height:13px;
    background:url("../images/comment_vote.png") no-repeat;
}

#comments_list .comment .info .rating .value {
    float:left;
    font-weight: bold;
}

#comments_list .comment .info .rating a.rate-up { background-position: 0 0; }
#comments_list .comment .info .rating a.rate-up:hover { background-position: 0 -13px; }
#comments_list .comment .info .rating a.rate-down { background-position: -13px 0; }
#comments_list .comment .info .rating a.rate-down:hover { background-position: -13px -13px; }

#comments_list .comment .info .name .user{ color:#375D81; }
#comments_list .comment .info .name .user:hover{ color:#d35400; }
#comments_list .comment.is_topic_starter .info .name .user{ color:#d35400; }
#comments_list .comment.is_topic_starter .info .name .user:hover{ color:#e67e22; }

#comments_list .comment .info .name .guest_name{ font-weight: bold; }

#comments_list .comment .info .name .subject{ color:#4096EE; }
#comments_list .comment .info .name .subject:hover{ color:#d35400; }

#comments_list .comment .info .date{ color:#999; }

#comments_list .comment .nav a {
    text-decoration:none;
    margin-right: 3px;
    color:#BDC3C7;
}

#comments_list .comment .nav a:hover {
    color:#d35400;
}

#comments_list .comment .nav .scroll-down { display:none; }

#comments_list .comment .body .avatar{
    float:left;
    position: relative
}

#comments_list .comment .body .avatar a { display:block; }

#comments_list .comment .content{
    color:#333;
    padding-left:10px;
    padding-top: 8px;
    position: relative;
    overflow: hidden;
}

#comments_list .comment .content img {
	max-width:100%;
}

#comments_list .comment .content .links{
    padding:10px 0 0 0;
    font-size:12px;
}

#comments_list .comment .content .links a {
    font-size:11px;
    color:#999;
    border-bottom:dashed 1px #999;
    text-decoration: none;
    margin-right:6px;
}
#comments_list .comment .content .links a:hover {
    color:#d35400;
    border-bottom:dashed 1px #d35400;
}

#comments_list .comment .deleted{
    padding:5px 15px;
    background:#F9F9F9;
    color:#666;
    font-style:italic;
    border-radius: 6px;
    margin-right:6px;
}

#comments_widget .login_to_comment{
	margin-top:5px;
	font-size:12px;
	color:#666;
}
#comments_list .content ul li, #comments_list .preview_box ul li {
    list-style-type: disc;
    margin-left:25px;
}
#comments_list .content ol, #comments_list .preview_box ol {
    padding-left: 25px;
}
#comments_list .content ol li, #comments_list .preview_box ol li {
    list-style-type: decimal;
}*/