

.product-page{
    background: #f6f6f6;
    padding: 30px 0px;
}

/* Основные стили товара */
.product-main{
    display: flex;
}

.product-container{
    width: 100%;
    max-width: 1350px;
    background: #fff;
    margin: 0 auto;
}

.product-col{
    display: flex;
    flex: auto;
}


/* Галерея*/

.product-gallery{
    min-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid #e9e9e9;;
}

/*Info*/
.product-info{
    display: flex;
    flex-direction: column;
}

/* Мета*/

.product-meta{
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
}

.meta-item .meta-label{
    font-size: .95em;
    line-height: 1.4;
    color: #828688;
    font-weight: 200;
}

.meta-item .meta-value{
    color: #27292b;
    font-size: 1em;
}

/*Цена*/
.product-price{
    display: flex;
    align-items: center;
    margin-bottom: 3px !important;
}

.product-current-price .current-price-rub,
.product-current-price .current-price{
    color: #27292b;
    font-size: 2.2em;
    font-weight: 500;
    line-height: 1.4;
}

.product-old-price{
    padding-left: 1rem;
    color: #828688;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: line-through;
}

.product-delivery{
    color: #27292b;
    font-size: .85em;
    line-height: 1.4;
}

/*Получить коммерческое предложение*/

.product-offer{
    padding: 2rem 0;
}

.product-offer-link{
    transition: none;
    width: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #003151;
    font-weight: 500;
}
.product-offer-link:hover,
.product-offer-link:hover  .product-offer-icon{
    color: #0a7aff;
    fill: #0a7aff;
}

.product-offer-icon{
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    color: inherit;
}

.product-btn{
    transition: 0.5s all;
    cursor: pointer;
    height: 60px;
    max-width: 300px;
    margin-top: auto;
    margin-bottom: 20px;
}

/*Примущества*/

.product-main-bottom{
    margin-top: auto;
    border-top: 1px solid #e4e4e4;
}

.product-advantages{
    display: flex;
    justify-content: space-between;
}
.product-advantages__item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: auto;
    padding: 32px;
    border-right: 1px solid #e4e4e4;
}
.product-advantages__item:last-child{
    border: none;
}

.product-advantages__item-icon{
    display: flex;
    margin: 10px;
    width: 40px;
    height: 40px;
}
.product-advantages__item-title{
    display: flex;
    flex-direction: column;
}

.product-title,
.product-meta,
.product-price,
.product-delivery,
.product-offer,
.product-btn {
    margin-left: 50px;
}

.product-info >.product-title{
    font-weight: bold;
    margin-bottom: 0px;
    flex-grow: unset;
}


/*Табы*/
.product-data {
    display: flex;
    margin-top: 30px;
}

.product-tab{
    width: 70%;
}

.tabs-nav__items {
    display: flex;
    border-bottom: 1px solid #ddd;
    justify-content: space-between;

}

.tabs-nav__item {
    text-align: center;
    flex: auto;
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    border-left: 1px solid  #e4e4e4;
    font-weight: 500;
    color: #666;
}

.tabs-nav__item:first-child{
    border-left: none;
}

.tabs-nav__item.active {
    color: #0a7aff;
    border-bottom-color: #0a7aff;
}

.tabs-content__item {
    display: none;
    padding: 10px 0;
}

.tabs-content__item.active {
    display: block;
}

/* Характеристики */
.product-data__features-items {
    padding: 20px;
}

.product-data__features-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.product-data__features-item:nth-child(even){
    background: #f7f8fa;
}

.product-data__features-item-value{
    margin-right: 100px;
}

.product-data__features-item-label {
    color: #666;
    max-width: 60%;
}

.product-data-wrap{
    display: flex;
}

/*Характеристики*/

.product-data__features-items{
    width: 100%;
}
.product-data__features-item{
    display: flex;
    padding: 15px;
    justify-content: space-between;
}

/*Описание*/

.product-data__description{
    padding: 20px 30px;
}


/*Отзыв*/

/* Стили для звезд рейтинга */
.product-data-reviews-form__rating-stars span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ccc" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
    cursor: pointer;
}

.product-data-reviews-form__rating-stars span.active {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffc107" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
}

/* Сообщение об успехе */
.js-form-success {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 20px;
}

.js-form-success.active {
    display: block;
}


/* Отзыв*/

.product-data-reviews{
    padding: 32px;
}

.product-data-reviews-form__title{
    width: 100%;
    padding: 0 0 1rem;
    margin: 0;
    color: #003151;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.3;
}

/* Стили для формы */

.product-data-reviews-form__field{
    margin-top: 10px;
}

.product-data-reviews-form__input {
    width: 100%;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.product-data-reviews-form__label{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    width: 100%;
    padding: 0px 0px 7px 0rem;
    color: #828688;
    font-size: .8em;
    font-weight: 200;
    line-height: 1.2;
}

.product-data-reviews-form__input:focus {
    outline: none;
    border-color: #4da6ff;
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
    background-color: rgba(240, 248, 255, 0.5);
}

.product-data-reviews-form__input::placeholder {
    color: #aaa;
}

textarea.product-data-reviews-form__input {
    min-height: 120px;
    resize: vertical;
}

/* Стили для звезд рейтинга */

.product-data-reviews-form__rating{
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-data-reviews-form__rating-stars {
    display: inline-flex;
    gap: 5px;
}

.product-data-reviews-form__rating-stars span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ddd" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
    cursor: pointer;
    transition: all 0.2s;
}

.product-data-reviews-form__rating-stars span.active,
.product-data-reviews-form__rating-stars span.hover {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%230a7aff" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
}

.product-data-reviews-form__rating-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* Кнопка */
.product-data-reviews-form__button {
    margin-top: 10px;
    width: 150px;
    background: none;
    border: 3px solid #0a7aff;
    color: #0a7aff;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.product-data-reviews-form__button:hover {
    border: 3px solid #0a7aff;
    background: #0a7aff;
    color: #fff;
}

/* Скрываем стандартный чекбокс */
.product-data-reviews-form__agree-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Стили для кастомного чекбокса */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #ddd;
    border-radius: 3px;
    vertical-align: middle;
    transition: all 0.3s;
}

/* Состояние checked */
.product-data-reviews-form__agree-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #4da6ff;
    border-color: #4da6ff;
}

/* Галочка */
.product-data-reviews-form__agree-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Ховер эффект */
.product-data-reviews-form__agree-label input[type="checkbox"]:not(:disabled) + .custom-checkbox:hover {
    border-color: #4da6ff;
}

/* Сообщение об успехе */
.product-data-reviews-form__success {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.product-data-reviews-form__success-grid {
    display: flex;
    align-items: center;
}

.product-data-reviews-form__success-icon {
    margin-right: 15px;
}

.product-data-reviews-form__success-text-title {
    font-weight: bold;
    margin-bottom: 5px;
}


/* Секция отзывов */
.product-reviews-section {
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}



/* Содержание отзыва */
.review-content {
    line-height: 1.6;
    color: #444;
}

/* Пагинация */
.reviews-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.reviews-pagination a,
.reviews-pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.reviews-pagination a:hover {
    background: #f0f0f0;
}

.reviews-pagination .current {
    background: #0a7aff;
    color: white;
    border-color: #0a7aff;
}

/* Сообщение об отсутствии отзывов */
.no-reviews {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-align: center;
    color: #666;
}

.product-reviews-list {
    margin-top: 40px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.product-reviews-list h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.review {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.review-header {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
/* Cтилизация отзыва*/

.review-author {
    font-weight: 600;
    font-size: 18px;
    color: #222;
}

.review-date {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: #777;
}

.review-rating {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.review-rating span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.781 1.4 8.18L12 18.896l-7.334 3.875 1.4-8.18-5.934-5.781 8.2-1.192z'/%3E%3C/svg%3E");
    background-size: cover;
}

.review-rating span.active {
    background-image: url("data:image/svg+xml,%3Csvg fill='gold' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.781 1.4 8.18L12 18.896l-7.334 3.875 1.4-8.18-5.934-5.781 8.2-1.192z'/%3E%3C/svg%3E");
}

.review-content {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    padding-top: 10px;
}



/* Помощь в подборке */


.js-form-success {
    display: none;
}

.js-form-success.active {
    display: block;
}

.js-form-fields {
    display: block;
}

.js-form-fields.hidden {
    display: none;
}

/* Основные стили блока */
.product-help{
    width: 30%;
}

.help-section {
    padding: 20px 0;
    border-radius: 8px;
    border-left: 1px solid #e4e4e4;
}

.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.help-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.help-title b {
    color: #0a7aff;
}

/* Описание */
.help-desc {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

/* Форма */
.help-form {
    max-width: 500px;
    margin: 0 auto;
}

.help-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.help-form-input {
    width: 100%;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.help-form-input:focus {
    outline: none;
    border-color: #0a7aff;
    box-shadow: 0 0 0 2px rgba(10, 122, 255, 0.2);
}

/* Кнопка */
.help-form-button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #0a7aff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.help-form-button:hover {
    background-color: #0066e8;
}

/* Чекбокс */
.help-form-agree-label>input{
    opacity: 0;
}


.help-form-agree-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 1.5;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #ddd;
    border-radius: 3px;
    vertical-align: middle;
    transition: all 0.3s;
}

.help-form-agree-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #0a7aff;
    border-color: #0a7aff;
}

.help-form-agree-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.help-form-agree-label a {
    color: #0a7aff;
    text-decoration: none;
}

/* Сообщение об успехе */
.help-form-success {
    display: none;
    background: #e8f4ff;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.help-form-success-grid {
    display: flex;
    align-items: center;
}

.help-form-success-icon {
    margin-right: 15px;
}

.help-form-success-text-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.help-form-success-text-desc {
    color: #666;
    font-size: 14px;
}