/**
 * Стили WooCommerce для темы Moytop
 * Обеспечивают отображение цены и современный вид карточки товара.
 */

:root {
	--wp--preset--font-size--small: 15px !important;
	--wp--preset--font-size--medium: 22px !important;
}
 .woocommerce ul.products {
margin-top: 20px;
 }

 .moytop-product-card__actions .mtpcart {
	border-radius: 7px;	
	padding: 0px 5px;
	font-size: 17px;
	min-height: 46px;
	background: var(--linkColor);		
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	align-self: center;
	transition: background-color 0.3s ease 0s;
	cursor: pointer;	
}

@media only screen and (min-width: 1280px) {
    .moytop-product-card__actions .mtpcart {
        padding: 0px 55px;
    }
}

.wc-block-components-radio-control-accordion-content {
	color: #777;
}

.wc-block-components-form .wc-block-components-checkout-step {	
	margin: 0 0 60px;
}
.wc-block-checkout__payment-method {
	margin: 0 0 20px !important;
}

/* Блок сортировки — справа, по правой границе сетки товаров */
.woocommerce-product-page {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.woocommerce-product-page .woocommerce-ordering {
	align-self: flex-end;
	margin-left: auto;
	margin-bottom: 0;
}
.woocommerce .woocommerce-ordering select {
	padding: 10px 20px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid var(--dividerColor);
	font-size: 14px;
	cursor: pointer;
}

 .woocommerce-message {
	border-left: unset !important;
	display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  height: auto;
 }

 .woocommerce ul.products li.product a img {
	border-radius: 12px 12px 0 0;
	width: 100%;
	margin: 0px auto 10px;
 }

 @media only screen and (min-width: 649px) {
	.woocommerce ul.products li.product a img {
		border-radius: 12px;		
		margin: 10px 10px 10px 10px;
	}
}

@media only screen and (min-width: 1366px) {
	.woocommerce ul.products li.product a img {			
		margin: 20px 20px 10px 20px;
	}
}


.button.wc-forward, .woocommerce-error::after, .woocommerce-error::before, .woocommerce-info::after, .woocommerce-info::before, .woocommerce-message::after, .woocommerce-message::before {	
	display: none !important;
  }

 table.woocommerce-table--order-details tr:nth-child(1), article table.wc-block-cart-items tr:nth-child(1) {	
		background: none !important;
		font-weight: inherit !important;	  
		min-width: unset !important;
	}

article ul.wc-block-grid__products li::before, article ul.products li::before {
	display: none !important;
}
.woocommerce ul.products li.product .onsale {
	right: unset !important;
}

/* ——— Сетка товаров в категории: CSS Grid, колонки из настроек WooCommerce ——— */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	list-style: none;
	margin-top: 20px;
	margin-left: 0;
	padding-left: 0;
}
.woocommerce ul.products.columns-1 { grid-template-columns: repeat(1, 1fr); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.woocommerce ul.products.columns-3,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products.columns-1 { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 480px) {
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* Размер карточки задаётся grid, убираем фиксированную width с li.product */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: 100%;
	min-width: 0;
}

/* Отключаем псевдоэлементы clearfix у списка товаров — мешают grid */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
	display: none !important;
	content: none !important;
}

/* ——— Карточка товара: белый фон, обводка var(--dividerColor), flex (кнопка внизу), hover box-shadow ——— */
.woocommerce ul.products li.product.moytop-product-card {
	background: #fff;
	border: 1px solid var(--dividerColor, var(--dividerColor));
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	transition: box-shadow 0.25s ease;
}
.woocommerce ul.products li.product.moytop-product-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ——— Блок подкатегорий на странице категории (catalog-section): div-обёртки, серый фон, скругления ——— */
.catalog-section {
	margin: 12px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.catalog-section__item {
	background: var(--dividerColor);
	border-radius: 6px;
	padding: 10px 26px;
	transition: background-color 0.3s ease, color 0.3s ease;
	display: flex;
}
.catalog-section__item:hover {
	background: var(--mainColor, #4699e2);
}
.catalog-section__item-link {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--textColor, #1f1f1f);
	transition: color 0.3s ease;
}
.catalog-section__item:hover .catalog-section__item-link {
	color: #fff;
}
.catalog-section__item-img {
	flex-shrink: 0;
	display: block;
	line-height: 0;
}
.catalog-section__item-img img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0;
	vertical-align: middle;
}
.catalog-section__item-title {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.woocommerce-products-header .term-description {
	margin-bottom: 20px;
}

@media only screen and (min-width: 1024px) {
.catalog-section__item-title {
	font-size: 17px;
}
}
.moytop-product-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
}
.moytop-product-card__image-wrap {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}
.moytop-product-card__image-link {
	display: block;
	line-height: 0;
	width: 100%;
	display: flex;
}
.moytop-product-card__image-link img {
	width: 100%;
	max-width: 100%;
	height: auto;
	vertical-align: top;
	border-radius: 0;
	object-fit: contain;
	object-position: center;
}
.moytop-product-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 0;
}
/* Рейтинг в карточке категории: ширина от контента (5 звёзд), заливка span::before 500% — 20% показывают ровно 1 звезду. */
.moytop-product-card .star-rating {
	display: inline-block;
	position: relative;
	overflow: hidden;
	height: 16px;
	line-height: 1;
	font-size: 15px;
	width: auto;
	margin-bottom: 0;
	vertical-align: middle;
	font-family: inherit !important;
	color: #ddd;
	letter-spacing: 0;
}
.moytop-product-card .star-rating::before {
	content: '★★★★★';
	color: #ddd;
	letter-spacing: 0;
	font-family: inherit !important;
}
.moytop-product-card .star-rating span {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	overflow: hidden !important;
	height: 16px !important;
	min-height: 16px !important;
	padding: 0 !important;
	font-size: 15px;
	line-height: 16px;
}
.moytop-product-card .star-rating span::before {
	content: '★★★★★';
	position: absolute;
	left: 0;
	top: 0;
	width: 500%;
	height: 16px;
	line-height: 16px;
	display: block;
	color: #F0CE49 !important;
	letter-spacing: 0;
	font-family: inherit !important;
	font-size: 15px;
}
/* Обёртка рейтинга в цикле: по центру по вертикали, без сбивания от margin звёзд */
.moytop-loop-rating-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.moytop-loop-rating-wrap .star-rating {
	margin-bottom: 0 !important;
}
/* Когда рейтинг без обёртки (нет отзывов) — отступ снизу сохраняем */
.moytop-product-card__body > .star-rating {
	margin-bottom: 6px;
}
/* Средний балл в скобках в карточке категории/похожих */
.moytop-product-card .moytop-loop-rating-wrap .moytop-rating-average,
.woocommerce ul.products .moytop-loop-rating-wrap .moytop-rating-average {
	display: inline-block;
	font-size: 13px;
	color: #666;
}
.moytop-product-card__sku {
	font-size: 12px !important;
	color: #888 !important;
	margin: 0 0 6px;
}
.moytop-product-card__title {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.35;
	font-weight: 500;
}
.moytop-product-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
.moytop-product-card__title a:hover {
	color: var(--mainColor, #1a1a1a);
}
.moytop-product-card__brand {
	margin: 0 0 6px;
	font-size: 13px;
}
.moytop-product-card__brand-link {
	color: #666;
	text-decoration: none;
}
.moytop-product-card__brand-link:hover {
	color: var(--mainColor, #3475c2);
	text-decoration: underline;
}
.moytop-product-card__excerpt {
	font-size: 13px;
	color: #767676;
	line-height: 1.4;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.moytop-product-card .price,
.moytop-product-card .woocommerce-Price-amount {
	font-size: 18px;
	font-weight: 700;
	color: var(--productPriceColor, var(--mainColor, #4699e2));	
	display: flex;
	flex-direction: column;
}

.moytop-product-card .price {
	margin-bottom: 10px;
}
/* Сначала основная (акционная) цена, затем зачёркнутая старая */
.moytop-product-card .price ins {
	order: 1;
	text-decoration: none;
}
.moytop-product-card .price del,
.moytop-product-card .price del .amount {
	order: 2;
	font-size: 14px;
	font-weight: 400;
	color: #999;
}
.moytop-product-card .price bdi {
	order: inherit;
}
/* Статус на складе — перед кнопкой «В корзину» */
.moytop-product-card__stock {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
}
.moytop-product-card__stock .in-stock { color: #2e7d32; font-size: inherit;}
.moytop-product-card__stock .out-of-stock { color: #c62828; font-size: inherit;}
.moytop-product-card__actions {
	margin-top: auto;
	padding-top: 8px;
}
/* Форма с количеством в категории (кастомайзер: «Показывать количество в категории») */
.moytop-product-card__actions .moytop-loop-cart-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	align-items: flex-start;
}
/* Блок количества в категории — такой же вид и поведение, как в карточке товара */
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap {
	display: inline-flex;
	align-items: center;
	margin-right: 0;
	margin-bottom: 8px;
	border: solid 1px var(--dividerColor, #ECEEF2);
	border-radius: 6px;
	overflow: hidden;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .moytop-qty-btn {
	width: 36px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--textColor, #1f1f1f);
	padding: 0;
	transition: background 0.2s;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .moytop-qty-btn:hover {
	background: #ebebeb;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .moytop-qty-minus {
	border-right: 1px solid var(--dividerColor, #ECEEF2);
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .moytop-qty-plus {
	border-left: 1px solid var(--dividerColor, #ECEEF2);
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: none;
	padding: 0 10px;
	border-radius: 0;
	max-width: 60px;
	min-width: 44px;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .quantity input.qty {
	width: 100%;
	text-align: center;
	padding: 8px 4px;
	outline: none;
	box-shadow: none;
	border: none;
	font-size: 16px;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .quantity input.qty::-webkit-outer-spin-button,
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.moytop-product-card__actions .moytop-loop-cart-form .moytop-quantity-wrap .quantity input.qty[type="number"] {
	-moz-appearance: textfield;
}


.moytop-product-card__actions .button,
.moytop-product-card__actions .mylinkbutton {
	width: 100%;
	text-align: center;
	justify-content: center;
	display: inline-flex;
	align-items: center;
}
@media (max-width: 768px) {
	.moytop-product-card__actions .button,
	.moytop-product-card__actions .mylinkbutton {
		font-size: 14px;
	}
}
.moytop-product-card__stickers {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 6px;
	align-items: flex-start;
	width: 100%;
}
.moytop-sticker {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}
.moytop-sticker--new {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
}
.moytop-sticker--bestseller {
	background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
	color: #fff;
}
.moytop-single-stickers {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 9;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 6px;
	align-items: flex-start;
	max-width: 300px;
}
.single-product div.product {
	position: relative;
}

.wc-block-cart__main .wc-block-cart-items td {
		border-top: none !important;
}	
 .woocommerce div.product form.cart::after, .woocommerce div.product form.cart::before{display: none !important;}
 
 .wp-block-woocommerce-checkout [class*="__container"] {
		padding: 0;
 }

 .woocommerce .woocommerce-customer-details address {
	border-bottom-width: 1px;
  border-right-width: 1px;
 }

/* Ссылки на товары в «Детали заказа» на чекауте — без изменения внешнего вида (как обычный текст); десктоп и мобильный */
.woocommerce-checkout .moytop-checkout-product-link,
.woocommerce-checkout-review-order-table .moytop-checkout-product-link,
.wc-block-checkout__sidebar .moytop-checkout-product-link,
.wp-block-woocommerce-checkout .moytop-checkout-product-link {
	color: inherit;
	text-decoration: none;
}
.woocommerce-checkout .moytop-checkout-product-link:hover,
.woocommerce-checkout-review-order-table .moytop-checkout-product-link:hover,
.wc-block-checkout__sidebar .moytop-checkout-product-link:hover,
.wp-block-woocommerce-checkout .moytop-checkout-product-link:hover {
	color: var(--mainColor, #3475c2);
	text-decoration: underline;
}

/* ——— Страница корзины (блочная): заголовок товара крупнее, описание мельче и серое ——— */
.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-name {	
	font-weight: 600;
}

.wc-block-cart-items__row .wc-block-cart-item__image img, .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {	
	border-radius: 6px;
  }

 

  .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
	padding-right: 10px;
  } 

@media only screen and (min-width: 1023.98px) {
	.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-name {
		font-size: 18px !important;
	}
}

.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-metadata,
.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-metadata__description {
	font-size: 14px;
	font-weight: 400;
	color: #767676;
}
.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-metadata__description p {
	font-size: 14px;
	font-weight: 400;
	color: #767676;
}

/* ——— Чекаут, Детали заказа: краткое описание товара скрыто (вариации остаются) ——— */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description {
	display: none !important;
}


.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
	margin-bottom: 16px;
}

/* ——— Чекаут: кнопка «Оформить заказ» — фон mainColor, закругление, белый текст, широкая и заметная ——— */
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--mainColor, #3475c2) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 12px;
	width: 100%;
	min-height: 52px;
	padding: 16px 24px;
	font-size: 17px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s, box-shadow 0.2s;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.95;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: #fff !important;
}
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled {
	opacity: 0.7;
	color: #fff !important;
}

 .wc-blocks-components-select .wc-blocks-components-select__container{
	margin-top: 12px;
 }

 .wc-block-components-form .wc-block-components-text-input input[type="email"], .wc-block-components-form .wc-block-components-text-input input[type="number"], .wc-block-components-form .wc-block-components-text-input input[type="password"], .wc-block-components-form .wc-block-components-text-input input[type="tel"], .wc-block-components-form .wc-block-components-text-input input[type="text"], .wc-block-components-form .wc-block-components-text-input input[type="url"], .wc-block-components-text-input input[type="email"], .wc-block-components-text-input input[type="number"], .wc-block-components-text-input input[type="password"], .wc-block-components-text-input input[type="tel"], .wc-block-components-text-input input[type="text"], .wc-block-components-text-input input[type="url"], .wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1px solid hsla(0,0%,7%,.16);
 }

 .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border: 1px solid var(--mainColor, #1a1a1a);
  }

  .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--mainColor, #1a1a1a);
  }

  .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: none;
	border: 2px solid var(--mainColor, #1a1a1a);
  }

  .wc-block-components-radio-control .wc-block-components-radio-control__input:focus, .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus {
	outline: unset;
  }
 
 /* ——— Стикер распродажи (onsale): скругление, красный фон, белый текст ——— */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
	display: inline-block;	
	background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
	color: #fff !important;	
}

/* Рейтинг WooCommerce: почему переопределяем.
   В оригинале: font-family: WooCommerce (иконки \73/\53), у span — padding-top:1.5em (заливка уезжает вниз).
   Мы используем Unicode ★: нужны font-family:inherit, padding:0 у span, явная height у span (иначе пустой span с position:absolute у ::before даёт высоту 0 и заливка не видна). */
.woocommerce .star-rating,
.woocommerce ul.products .star-rating {
	display: inline-block;
	position: relative;
	overflow: hidden;
	height: 16px;
	line-height: 1;
	font-size: 15px;
	width: auto;
	color: #ddd;
	font-family: inherit !important;
	letter-spacing: 0;
}
.woocommerce .star-rating::before,
.woocommerce ul.products .star-rating::before {
	content: '★★★★★';
	color: #ddd;
	letter-spacing: 0;
	font-family: inherit !important;
}
.woocommerce .star-rating span,
.woocommerce ul.products .star-rating span {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	overflow: hidden !important;
	height: 16px !important;
	min-height: 16px !important;
	padding: 0 !important;
	font-size: 15px;
	line-height: 16px;
}
.woocommerce ul.products .star-rating span::before,
.woocommerce .star-rating span::before {
	content: '★★★★★' !important;
	position: absolute;
	left: 0;
	top: 0;
	width: 500%;
	height: 16px;
	line-height: 16px;
	display: block;
	color: #F0CE49 !important;
	letter-spacing: 0;
	font-family: inherit !important;
	font-size: 15px;
}

/* Рейтинг на странице товара (под артикулом): звёзды и средний балл в одну линию */
.single-product .woocommerce-product-rating.moytop-single-rating,
.single-product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 6px;
}

/* Крупные звёзды 28px на странице товара: ширина от контента, заливка 500% — 20% = 1 звезда */
.single-product .woocommerce-product-rating.moytop-single-rating .star-rating,
.single-product .woocommerce-product-rating .star-rating {
	display: inline-block;
	position: relative;
	overflow: hidden;
	height: 28px;
	line-height: 1;
	font-size: 28px;
	width: auto;
	vertical-align: middle;
	color: #ddd;
	font-family: inherit !important;
	letter-spacing: 0;
}
.single-product .woocommerce-product-rating .star-rating::before {
	content: '★★★★★';
	color: #ddd;
	letter-spacing: 0;
	position: relative;
	z-index: 0;
	font-family: inherit !important;
}
.single-product .woocommerce-product-rating .star-rating span {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	overflow: hidden !important;
	height: 28px !important;
	min-height: 28px !important;
	padding: 0 !important;
	font-size: 28px;
	line-height: 28px;
	z-index: 1;
}
.single-product .woocommerce-product-rating .star-rating span::before {
	content: '★★★★★';
	position: absolute;
	left: 0;
	top: 0;
	width: 500%;
	height: 28px;
	line-height: 28px;
	display: block;
	color: #F0CE49 !important;
	letter-spacing: 0;
	z-index: 1;
	font-family: inherit !important;
	font-size: 28px;
}
/* Средний балл рядом со звёздами на странице товара */
.single-product .woocommerce-product-rating .moytop-rating-average {
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	font-size: 18px;
	color: #666;
}
.single-product .woocommerce-product-rating .woocommerce-review-link {
	display: none;
}

/* Контейнер страницы товара — полная ширина контента */
.inner-page__body_product {
	display: block;
}
.inner-page__body_product .inner-page__aside {
	display: none;
}

.woocommerce-message:focus {
    outline: none !important;
    box-shadow: none !important; /* На случай, если свечение сделано тенью */
}



@media (min-width: 1366px) {
	.inner-page__body_product .woocommerce-product-page {
		width: 100%;
		max-width: 100%;
	}
	.moytop-product-card__actions .button, .moytop-product-card__actions .mylinkbutton {
		width: auto;
		align-self: inherit;
	}
	.moytop-product-card__title {
		font-size: 19px;
	}
}


.wc-block-components-product-badge {
	color: #66b704;
}


/* Область основного контента WooCommerce */
.woocommerce-product-page #primary,
.woocommerce-product-page .content-area {
	max-width: 100%;
	width: 100%;
}

/* Сетка карточки товара: резиновая — фото слева (ограничено размером из настроек темы), блок с ценой справа */
.single-product .inner-page__content div.product {
	display: grid;
	grid-template-columns: minmax(0, var(--moytop-wc-image-size, 600px)) 1fr;
	gap: 40px 48px;
	align-items: start;
	margin-bottom: 32px;
	clear: both;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.single-product div.product::after {
	content: "";
	display: table;
	clear: both;
}

/* Блок изображений: не шире размера фото из настроек темы, не выходит за границы колонки */
.single-product div.product div.images {
	float: none;
	width: 100%;
	max-width: var(--moytop-wc-image-size, 600px);
	min-width: 0;
	margin-bottom: 0;
	box-sizing: border-box;
}
.single-product div.product div.images .woocommerce-product-gallery {
	margin: 0;
	max-width: 100%;
}

/* Блок с ценой, описанием и кнопкой «В корзину» — гибкий, занимает оставшееся место */
.single-product div.product div.summary {
	float: none;
	width: 100%;
	min-width: 0;
	clear: none;
	display: block;
	box-sizing: border-box;
}

/* Цена — порядок: сначала низкая (акционная), под ней зачёркнутая старая */
.single-product div.product .price,
.single-product div.product p.price {
	display: flex !important;
	flex-direction: column !important;
	visibility: visible !important;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--productPriceColor, var(--mainColor, #4699e2));
	margin: 20px 0 16px;
}
/* Низкая цена (акционная) — первой, крупно */
.single-product div.product .price ins {
	order: 1;
	text-decoration: none;
	font-size: 20px;
}
/* Зачёркнутая старая цена — второй строкой, мельче и серой */
.single-product div.product .price del {
	order: 2;
	opacity: 0.7;
	font-weight: 400;
	font-size: 14px;
	color: #767676;
}
.single-product div.product .price .amount {
	color: var(--productPriceColor, var(--mainColor, #4699e2));
}
.single-product div.product .price del .amount {
	color: #767676;
}

/* Заголовок товара в блоке summary (на странице скрыт в шапке, но на всякий случай) */
.single-product div.product .summary .product_title {
	font-size: 20px;
	margin: 0 0 12px;
	color: var(--textColor, #1f1f1f);
}

/* Краткое описание */
.single-product div.product .woocommerce-product-details__short-description {
	color: var(--textColor, #1f1f1f);
	line-height: 1.6;
	margin-bottom: 20px;
}

/* Форма «В корзину» и количество */
.single-product div.product form.cart {
	margin: 16px 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
/* Обёртка количества: кнопка −, поле, кнопка + */
.single-product div.product form.cart .moytop-quantity-wrap {
	display: inline-flex;
	align-items: center;
	margin-right: 8px;
	border: solid 1px var(--dividerColor);
	border-radius: 6px;
	overflow: hidden;
}
.single-product div.product form.cart .moytop-quantity-wrap .moytop-qty-btn {
	width: 36px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--textColor, #1f1f1f);
	padding: 0;
	transition: background 0.2s;
}
.single-product div.product form.cart .moytop-quantity-wrap .moytop-qty-btn:hover {
	background: #ebebeb;
}
.single-product div.product form.cart .moytop-quantity-wrap .moytop-qty-minus {
	border-right: 1px solid var(--dividerColor);
}
.single-product div.product form.cart .moytop-quantity-wrap .moytop-qty-plus {
	border-left: 1px solid var(--dividerColor);
}
/* Блок количества внутри обёртки: только поле по центру */
.single-product div.product form.cart .moytop-quantity-wrap .quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: none;
	padding: 0 10px;
	border-radius: 0;
	max-width: 60px;
	min-width: 44px;
	background: #fff;
}
.single-product div.product form.cart .moytop-quantity-wrap .quantity input.qty {
	width: 100%;
	text-align: center;
	padding: 8px 4px;
	outline: none;
	box-shadow: none;
	border: none;
	font-size: 16px;
}
/* Скрываем стандартные стрелки number у input */
.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product div.product form.cart .quantity input.qty[type="number"] {
	-moz-appearance: textfield;
}
.single-product div.product form.cart .quantity input.qty:focus {
	outline: none;
	box-shadow: none;
}
.single-product div.product form.cart .moytop-quantity-wrap .quantity:focus-within {
	outline: none;
	box-shadow: none;
}
.single-product div.product form.cart .single_add_to_cart_button {
	background: var(--cartColor, var(--mainColor, #4699e2));
	color: #fff;
	border: none;
	padding: 14px 46px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
}
.single-product div.product form.cart .single_add_to_cart_button:hover {
	opacity: 0.9;
	background: var(--linkColor, #2a5d8a);
}
/* Кнопка «В корзину» в сетке категории — цвет из кастомайзера */
.woocommerce ul.products .moytop-product-card__actions .button,
.woocommerce ul.products .moytop-product-card__actions .mylinkbutton {
	background: var(--cartColor, var(--mainColor, #4699e2));
	color: #fff;
}

/* ——— Галерея товара как на agroup.by: основное фото сверху, миниатюры рядом снизу ——— */
/* Контейнер галереи: колонка — сверху основной слайдер, снизу полоса миниатюр */
.single-product .moytop-product-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.single-product .moytop-product-gallery .woocommerce-product-gallery__wrapper {
	order: 1;
	width: 100%;
}
/* Основное изображение: скругление 20px (и когда одно фото без слайдера, и внутри .flex-viewport) */
.single-product .moytop-product-gallery .woocommerce-product-gallery__wrapper img,
.single-product .moytop-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	border-radius: 20px;
	width: 100%;
}
/* Основное изображение: не больше размера из настроек темы, без растягивания */
.single-product .moytop-product-gallery .flex-viewport {
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
}
.single-product .moytop-product-gallery .flex-viewport .flex-slider,
.single-product .moytop-product-gallery .flex-viewport .slides {
	margin: 0;
	padding: 0;
	list-style: none;
}
.single-product .moytop-product-gallery .flex-viewport .woocommerce-product-gallery__image {
	display: block;
	line-height: 0;
}
.single-product .moytop-product-gallery .flex-viewport .woocommerce-product-gallery__image a,
.single-product .moytop-product-gallery .flex-viewport .woocommerce-product-gallery__image img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	vertical-align: top;
	object-fit: contain;
	border-radius: 20px;
}
/* Полоса миниатюр снизу: в ряд, клик переключает основное фото */
.single-product .moytop-product-gallery .flex-control-nav.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	order: 2;
	width: 100%;
}
.single-product .moytop-product-gallery .flex-control-thumbs li {
	margin: 0;
	width: auto !important;	
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	transition: opacity 0.25s ease, box-shadow 0.2s;
	border: 1px solid transparent;
}
.single-product .moytop-product-gallery .flex-control-thumbs li:hover {
	opacity: 1;
}
/* Активное дополнительное фото — обводка на самой картинке (box-shadow), без зазоров в углах */
.single-product .moytop-product-gallery .flex-control-thumbs li:has(img.flex-active) {
	border: 1px solid transparent; /* сохраняем размер как у остальных */
	overflow: visible;
}
.single-product .moytop-product-gallery .flex-control-thumbs li img.flex-active {
	box-shadow: 0 0 0 1px var(--dividerColor);
}
.single-product .moytop-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
	object-fit: cover;
	aspect-ratio: 1;
	border-radius: 6px;
	transition: all 0.25s ease;
}
@media (max-width: 480px) {
	.single-product .moytop-product-gallery .flex-control-thumbs li {
		flex: 0 0 calc(20% - 6px);
		max-width: calc(20% - 6px);
	}
}

/* ——— Вкладки: Описание, Детали, Отзывы — без border и background ——— */
.single-product div.product .woocommerce-tabs,
.single-product div.product .woocommerce-tabs.moytop-product-tabs,
.single-product div.product .wc-tabs-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	clear: both;
	margin-top: 12px;		
}
.single-product div.product .woocommerce-tabs ul.tabs,
.single-product div.product .woocommerce-tabs .wc-tabs,
.single-product .moytop-product-tabs__list {
	padding: 0 0 7px 0;
	margin: 0 0 24px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 1px solid var(--dividerColor);
}
.single-product div.product .woocommerce-tabs ul.tabs li,
.single-product .moytop-product-tabs__item,
.woocommerce div.product .woocommerce-tabs ul.tabs li.description_tab,
.woocommerce div.product .woocommerce-tabs ul.tabs li.additional_information_tab,
.woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab {
	margin: 0 !important;
	padding-left: 0 !important;
	border: none !important;
	background: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}
.single-product div.product .woocommerce-tabs ul.tabs li a,
.single-product .moytop-product-tabs__link {
	display: inline-block;
	padding: 12px 30px 12px 0;
	margin-right: 0;
	color: var(--textColor, #1f1f1f);
	text-decoration: none;
	font-size: 21px;
	font-weight: 500;
	transition: color 0.2s;
	border: none !important;
	background: none !important;
}
.single-product .moytop-product-tabs__link:hover,
.single-product div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--mainColor, #3475c2);
}
/* Жёлтый кружок с количеством отзывов рядом с вкладкой «Отзывы» */
.single-product .moytop-tab-reviews-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin-left: 6px;
	background: #F0CE49;
	color: #1f1f1f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	border-radius: 50%;
	vertical-align: middle;
}
.single-product .moytop-product-tabs__item.active .moytop-product-tabs__link,
.single-product div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--mainColor, #3475c2);	
	border: none !important;
	background: none !important;
}
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product div.product .woocommerce-tabs .wc-tab,
.single-product div.product .woocommerce-tabs .panel,
.single-product .moytop-product-tabs__panel {
	padding: 0 0 16px;
	border: none !important;
	background: none !important;
}
.single-product .moytop-product-tabs__panel-title,
.single-product div.product .woocommerce-tabs .panel h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--textColor, #1f1f1f);
	display: none;
}

/* ——— Характеристики с точками ——— */
.single-product .moytop-product-spec {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}
.single-product .moytop-product-spec__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: baseline;
	gap: 0 8px;
	padding: 10px 0;
	font-size: 15px;
}
.single-product .moytop-product-spec__row::after {
	content: "";
	grid-column: 2;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.28);
	align-self: end;
	min-width: 12px;
}
.single-product .moytop-product-spec__label {
	margin: 0;
	grid-column: 1;
	color: var(--textColor, #1f1f1f);
	font-weight: 400;
}
.single-product .moytop-product-spec__value {
	margin: 0;
	grid-column: 3;
	text-align: right;
	color: var(--textColor, #1f1f1f);
}

/* На разрешении <600px: значение атрибута под названием, чтобы не вылезало за край */
@media (max-width: 600px) {
	.single-product .woocommerce-product-attributes-item.moytop-product-spec__row,
	.single-product .moytop-product-spec__row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		grid-template-columns: none;
		gap: 4px;
		padding: 8px 0;
	}
	.single-product .moytop-product-spec__row::after {
		display: none;
	}
	.single-product .moytop-product-spec__label {
		grid-column: unset;
		color: #767676;
	}
	.single-product .moytop-product-spec__value {
		grid-column: unset;
		text-align: left;
	}
}
@media (max-width: 600px) {
	.moytop-product-card .woocommerce-product-attributes-item.moytop-product-spec__row,
	.moytop-product-card .moytop-product-spec__row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		grid-template-columns: none;
		gap: 2px;
	}
	.moytop-product-card .moytop-product-spec__row::after {
		display: none;
	}
	.moytop-product-card .moytop-product-spec__label {
		grid-column: unset;
	}
	.moytop-product-card .moytop-product-spec__value {
		grid-column: unset;
		text-align: left;
	}
}

/* На мобильных сохраняем тот же вид: название слева, точки, значение справа */

/* Характеристики в карточке товара в категории — тот же стиль (название, точки, значение) */
.moytop-product-card .moytop-product-spec {
	display: block;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.moytop-product-card .moytop-product-spec__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: baseline;
	gap: 0 8px;
	padding: 4px 0;
	font-size: 13px;
}
.moytop-product-card .moytop-product-spec__row::after {
	content: "";
	grid-column: 2;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.28);
	align-self: end;
	min-width: 12px;
}
.moytop-product-card .moytop-product-spec__label {
	margin: 0;
	grid-column: 1;
	color: var(--textColor, #1f1f1f);
	font-weight: 400;
	color: #767676;
}
.moytop-product-card .moytop-product-spec__value {
	margin: 0;
	grid-column: 3;
	text-align: right;
	color: var(--textColor, #1f1f1f);
}

.moytop-product-card .moytop-product-spec__value p {
	font-size: inherit !important;
  font-weight: inherit !important;
}

/* ——— Похожие товары под коротким описанием: блок .product-header__related (компактный flex, как на test21) ——— */
.single-product .product-header__related {
	width: 100%;
	margin-top: 20px;	
	margin-bottom: 20px;
	clear: both;
}
.single-product .product-header__related .related.products {
	margin: 0;
	padding: 0;
	width: 100%;
}
.single-product .product-header__related .related.products h2 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--textColor, #1f1f1f);
}

.single-product .product-header__related .related.products ul.products {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px 16px;
	list-style: none;
	padding: 0;
	margin: 0;
	overflow-x: auto;
	padding: 0 0 20px 0;
}
@media only screen and (min-width: 768px) {
	.single-product .product-header__related .related.products ul.products {		
		flex-wrap: wrap;		
	}
}

.single-product .product-header__related .related.products ul.products::after {
	display: none;
}
.single-product .product-header__related .related.products ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none;
	width: 160px;	
	margin: 0;
	padding: 0;
	min-width: 160px;
}
/* Миниатюрное изображение в похожих */
.single-product .product-header__related .related.products li.product .woocommerce-loop-product__link,
.single-product .product-header__related .related.products li.product a img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}
.single-product .product-header__related .related.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
  line-height: 1.35;
  margin: 6px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Ссылка на товар в похожих (название) */
.single-product .product-header__related .related.products li.product .woocommerce-loop-product__title-link {
	text-decoration: none;
	color: inherit;
}
.single-product .product-header__related .related.products li.product .woocommerce-loop-product__title-link:hover {
	text-decoration: underline;
}
/* Описание в похожих — 3 строки, 12px */
.single-product .product-header__related .related.products li.product .product-header__related-excerpt {
	font-size: 13px;
	line-height: 1.4;
	margin: 4px 0 6px;
	color: #555;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* В похожих: обёртка с flex column, порядок — сначала ins (акционная), потом del (базовая) */
.product-header__related .related.products li.product .moytop-related-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	font-size: 18px;
	font-weight: 700;
	color: var(--mainColor, #1a1a1a);
}

.product-header__related .related.products li.product .moytop-related-price  ins {
	order: 1;
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	color: var(--mainColor, #1a1a1a);
}

.wc-block-cart-item__product .wc-block-components-product-badge {
	display: none;
}
.product-header__related .related.products li.product .moytop-related-price del {
	order: 2;
	text-decoration: line-through;
	font-size: 14px;
	font-weight: 400;
	color: #999;
}

.single-product .product-header__related .related.products li.product span.onsale {
	top: 6px;
	left: 6px;
	padding: 4px 8px;
	font-size: 10px;
}

/* Сопутствующие товары (upsells) внизу страницы — та же сетка, что в категории */
.single-product .upsells.products {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 32px;
	clear: both;
}
.single-product .upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}
.single-product .upsells.products ul.products.columns-1 { grid-template-columns: repeat(1, 1fr); }
.single-product .upsells.products ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.single-product .upsells.products ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.single-product .upsells.products ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.single-product .upsells.products ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.single-product .upsells.products ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) {
	.single-product .upsells.products ul.products.columns-4,
	.single-product .upsells.products ul.products.columns-5,
	.single-product .upsells.products ul.products.columns-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.single-product .upsells.products ul.products.columns-3,
	.single-product .upsells.products ul.products.columns-4,
	.single-product .upsells.products ul.products.columns-5,
	.single-product .upsells.products ul.products.columns-6 { grid-template-columns: repeat(2, 1fr); }
	.single-product .upsells.products ul.products.columns-1 { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 480px) {
	.single-product .upsells.products ul.products { grid-template-columns: 1fr; }
}
.single-product .upsells.products ul.products::after {
	display: none !important;
	content: none !important;
}
.single-product .upsells.products ul.products li.product {
	width: 100%;
	min-width: 0;
	float: none;
	margin: 0;
}

/* Адаптив: на узких экранах — одна колонка, блок фото по-прежнему не шире настройки */
@media (max-width: 991px) {
	.single-product .inner-page__content div.product {
		grid-template-columns: 1fr;
	}
	.single-product div.product div.images {
		max-width: min(100%, var(--moytop-wc-image-size, 600px));
		justify-self: start;
	}
}

/* Сообщения WooCommerce (успех, ошибка) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 4px;
	list-style: none;
}
.woocommerce-message {
	background: rgba(122, 208, 58, 0.15);
	border-left: 4px solid #7ad03a;
}
.woocommerce-error {
	background: rgba(170, 0, 0, 0.08);
	border-left: 4px solid #a00;
}

/* ——— Галерея товара: без реакции при наведении на большое фото ——— */
.single-product .woocommerce-product-gallery .zoomContainer,
.single-product .woocommerce-product-gallery .zoomWindow {
	display: none !important;
}

/* ——— Блок отзывов (#reviews): современный аккуратный вид ——— */
#reviews.woocommerce-Reviews {
	margin-top: 32px;
	padding-top: 28px;	
}

#reviews .woocommerce-Reviews-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--textColor, #1f1f1f);
	margin: 0 0 24px;
	line-height: 1.3;
	display: none;
}

/* Список отзывов: без маркеров, отступы между элементами */
#reviews .commentlist {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

#reviews .commentlist > li {
	margin: 0 0 20px;
	padding: 0;
	border: none;
}

#reviews .commentlist > li:last-child {
	margin-bottom: 0;
}

/* Карточка одного отзыва: аватар слева, текст справа */
#reviews .comment_container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--dividerColor);
	border-radius: 12px;
	transition: box-shadow 0.2s ease;
}

#reviews .comment_container:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Аватар в отзыве */
#reviews .comment_container .avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

/* Текстовый блок отзыва */
#reviews .comment_container .comment-text {
	flex: 1;
	min-width: 0;
	padding: 0;
	background: none;
	border: none;
}

/* Рейтинг в блоке отзывов: звёзды 20px, ширина от контента, заливка 500% */
#reviews .comment_container .star-rating {
	display: inline-block;
	position: relative;
	overflow: hidden;
	height: 20px;
	line-height: 1;
	font-size: 20px;
	width: auto;
	margin-bottom: 8px;
	color: #ddd;
	font-family: inherit !important;
	letter-spacing: 0;
}

#reviews .comment_container .star-rating::before {
	content: '★★★★★';
	color: #ddd;
	letter-spacing: 0;
	font-family: inherit !important;
}

#reviews .comment_container .star-rating span {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	overflow: hidden !important;
	height: 20px !important;
	min-height: 20px !important;
	padding: 0 !important;
	font-size: 20px;
	line-height: 20px;
}

#reviews .comment_container .star-rating span::before {
	content: '★★★★★';
	position: absolute;
	left: 0;
	top: 0;
	width: 500%;
	height: 20px;
	line-height: 20px;
	display: block;
	color: #F0CE49 !important;
	letter-spacing: 0;
	font-family: inherit !important;
	font-size: 20px;
}

/* Мета: автор и дата */
#reviews .comment_container .meta {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

#reviews .comment_container .meta .woocommerce-review__author {
	font-weight: 600;
	color: var(--textColor, #1f1f1f);
}

#reviews .comment_container .meta .woocommerce-review__dash {
	margin: 0 6px;
	color: #bbb;
}

#reviews .comment_container .meta .woocommerce-review__published-date {
	color: #888;
}

/* Текст отзыва */
#reviews .comment_container .description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--textColor, #1f1f1f);
	margin: 0;
}

/* «Проверенный владелец» */
#reviews .comment_container .woocommerce-review__verified {
	display: inline-block;
	font-size: 12px;
	color: #2e7d32;
	margin-left: 8px;
}

/* Сообщение «Отзывов пока нет» */
#reviews .woocommerce-noreviews {
	font-size: 15px;
	color: #666;
	margin: 0 0 24px;
	padding: 20px;
	background: #fafbfc;
	border-radius: 12px;
	border: 1px dashed #ddd;
}

/* Пагинация отзывов */
#reviews .woocommerce-pagination {
	margin-top: 20px;
}

#reviews .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#reviews .woocommerce-pagination ul li {
	margin: 0;
	padding: 0;
}

#reviews .woocommerce-pagination a,
#reviews .woocommerce-pagination span {
	display: inline-block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--mainColor, #3475c2);
	background: #fff;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

#reviews .woocommerce-pagination a:hover {
	background: #f5f7fa;
	border-color: var(--mainColor, #3475c2);
	color: var(--mainColor, #3475c2);
}

#reviews .woocommerce-pagination span.current {
	background: var(--mainColor, #3475c2);
	color: #fff;
	border-color: var(--mainColor, #3475c2);
}

/* ——— Форма добавления отзыва ——— */
#reviews #review_form_wrapper {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--dividerColor);
}

#reviews #review_form {
	max-width: 100%;
}

#reviews #review_form .comment-reply-title {
	display: block;
	font-size: 20px;
	font-weight: 600;
	color: var(--textColor, #1f1f1f);
	margin: 0 0 20px;
}

#reviews .comment-form-rating {
	margin-bottom: 18px;
}

#reviews .comment-form-rating label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--textColor, #1f1f1f);
	margin-bottom: 8px;
}

#reviews .comment-form-rating .required {
	color: #c62828;
}

/* Скрываем дублирующий блок с текстовым выбором звёзд (оставляем только наши .moytop-rating-stars) */
#reviews .comment-form-rating p.stars,
#reviews #review_form p.stars {
	display: none !important;
}

/* Крупные звёзды для выбора оценки в форме отзыва (аналогично рейтингу товара) */
#reviews .moytop-rating-stars {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	margin-bottom: 4px;
}

#reviews .moytop-rating-stars__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 40px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #ddd;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

#reviews .moytop-rating-stars__star.is-active,
#reviews .moytop-rating-stars__star.is-hover {
	color: #F0CE49;
}

/* Select рейтинга скрыт визуально, значение остаётся для отправки формы */
#reviews .comment-form-rating select#rating.moytop-rating-stars-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	opacity: 0;
	pointer-events: none;
}

#reviews .comment-form-rating select#rating {
	display: block;
	width: 100%;
	max-width: 200px;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	background: #fff;
	color: var(--textColor, #1f1f1f);
	cursor: pointer;
	appearance: auto;
}

#reviews .comment-form-rating select#rating:focus {
	outline: none;
	border-color: var(--mainColor, #3475c2);
	box-shadow: 0 0 0 2px rgba(52, 117, 194, 0.15);
}

#reviews .comment-form-author,
#reviews .comment-form-email,
#reviews .comment-form-comment {
	margin-bottom: 18px;
}

#reviews .comment-form-author label,
#reviews .comment-form-email label,
#reviews .comment-form-comment label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--textColor, #1f1f1f);
	margin-bottom: 6px;
}

#reviews .comment-form-author input,
#reviews .comment-form-email input {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	background: #fff;
	color: var(--textColor, #1f1f1f);
	transition: border-color 0.2s, box-shadow 0.2s;
}

#reviews .comment-form-author input:focus,
#reviews .comment-form-email input:focus {
	outline: none;
	border-color: var(--mainColor, #3475c2);
	box-shadow: 0 0 0 2px rgba(52, 117, 194, 0.15);
}

#reviews .comment-form-comment textarea {
	display: block;
	width: 100%;
	min-height: 140px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.6;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	background: #fff;
	color: var(--textColor, #1f1f1f);
	resize: vertical;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#reviews .comment-form-comment textarea:focus {
	outline: none;
	border-color: var(--mainColor, #3475c2);
	box-shadow: 0 0 0 2px rgba(52, 117, 194, 0.15);
}

#reviews .form-submit {
	margin: 24px 0 0;
}

#reviews .form-submit .submit {
	display: inline-block;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--mainColor, #3475c2);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s, box-shadow 0.2s;
}

#reviews .form-submit .submit:hover {
	opacity: 0.95;
	box-shadow: 0 2px 8px rgba(52, 117, 194, 0.35);
	color: #fff;
}

/* Сообщение «Только купившие могут оставить отзыв» */
#reviews .woocommerce-verification-required {
	font-size: 14px;
	color: #666;
	margin: 24px 0 0;
	padding: 16px;
	background: #f5f7fa;
	border-radius: 8px;
	border: 1px solid var(--dividerColor);
}

/* Убираем лишние отступы у вложенных параграфов в форме */
#reviews #respond p {
	margin: 0 0 6px;
}

#reviews #respond p.comment-form-comment {
	margin-bottom: 18px;
}

/* ===== Рейтинг (звёзды): базовые переопределения поверх WooCommerce =====
   WooCommerce: font-family: WooCommerce и span { padding-top: 1.5em } — заливка уезжает вниз.
   Важно: не задавать span font-size:0/line-height:0 — пустой span с position:absolute у ::before даёт высоту 0, заливка не видна. */
body .woocommerce .star-rating {
	font-family: inherit !important;
	color: #ddd !important;
}
body .woocommerce .star-rating::before {
	content: '★★★★★' !important;
	color: #ddd !important;
	font-family: inherit !important;
}
body .woocommerce .star-rating span {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	overflow: hidden !important;
	height: 1em !important;
	min-height: 1em !important;
	padding: 0 !important;
	font-size: inherit;
	line-height: 1em;
}
body .woocommerce .star-rating span::before {
	content: '★★★★★' !important;
	color: #F0CE49 !important;
	font-family: inherit !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 500% !important;
	height: 1em !important;
	line-height: 1em !important;
	font-size: 1em !important;
	display: block !important;
	letter-spacing: 0 !important;
}

/* Принудительно центрируем обертку изображения */
.pswp__zoom-wrap {
    text-align: center;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0) scale(1) !important; /* Сбрасываем кривой расчет JS */
}

/* Возвращаем картинке нормальное позиционирование внутри флекс-контейнера */
.pswp__img {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
}

.pswp__caption__center {	
	text-align: center;
}

/* ===== Страница «Мой аккаунт»: логин, редактирование данных, поля, кнопки, ссылки ===== */
.woocommerce-account .woocommerce {
	max-width: 100%;
}

/* Заголовки на странице аккаунта */
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3,
.woocommerce-account .entry-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--textColor, #1f1f1f);
	margin: 0 0 20px;
	line-height: 1.35;
}

.woocommerce-account .woocommerce h3 {
	font-size: 18px;
	margin: 28px 0 16px;
}

.woocommerce-account .woocommerce h3:first-child {
	margin-top: 0;
}

/* Ссылки в блоке аккаунта */
.woocommerce-account .woocommerce a:not(.button):not(.woocommerce-Button) {
	color: var(--mainColor, #3475c2);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.woocommerce-account .woocommerce a:not(.button):not(.woocommerce-Button):hover {
	opacity: 0.85;
	text-decoration: underline;
}

/* Строки формы: лейбл + поле */
.woocommerce-account .woocommerce-form-row,
.woocommerce-account .form-row {
	margin-bottom: 18px;
}

.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .form-row label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--textColor, #1f1f1f);
	margin-bottom: 6px;
}

.woocommerce-account .woocommerce-form-row .required,
.woocommerce-account .form-row .required {
	color: #c62828;
}

/* Поля ввода: текст, email, пароль */
.woocommerce-account .woocommerce-form-login input[type="text"],
.woocommerce-account .woocommerce-form-login input[type="password"],
.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="tel"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
.woocommerce-account .input-text {
	display: block;
	width: 100%;
	max-width: 400px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	background: #fff;
	color: var(--textColor, #1f1f1f);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-form-login input[type="text"]:focus,
.woocommerce-account .woocommerce-form-login input[type="password"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="tel"]:focus,
.woocommerce-account .woocommerce-EditAccountForm input[type="password"]:focus,
.woocommerce-account .input-text:focus {
	outline: none;
	border-color: var(--mainColor, #3475c2);
	box-shadow: 0 0 0 2px rgba(52, 117, 194, 0.15);
}

/* Чекбокс «Запомнить меня» */
.woocommerce-account .woocommerce-form-login .form-row.form-row-wide {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.woocommerce-account .woocommerce-form-login .form-row.form-row-wide label {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
	font-weight: 400;
	cursor: pointer;
}

.woocommerce-account .woocommerce-form-login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	accent-color: var(--mainColor, #3475c2);
	cursor: pointer;
}

/* Кнопки: Войти, Сохранить изменения и т.д. */
.woocommerce-account .woocommerce-form-login .button,
.woocommerce-account .woocommerce-EditAccountForm .button,
.woocommerce-account .woocommerce-Button {
	display: inline-block;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--linkColor, var(--mainColor, #3475c2));
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-form-login .button:hover,
.woocommerce-account .woocommerce-EditAccountForm .button:hover,
.woocommerce-account .woocommerce-Button:hover {
	opacity: 0.95;
	box-shadow: 0 2px 8px rgba(52, 117, 194, 0.35);
	color: #fff;
}

/* Ссылка «Забыли пароль?» */
.woocommerce-account .woocommerce-LostPassword {
	margin-top: 12px;
	font-size: 14px;
}

/* Блок формы логина — визуальное выделение */
.woocommerce-account .woocommerce-form.woocommerce-form-login {
	margin-top: 20px;
	padding: 24px 0 0;
	border-top: 1px solid var(--dividerColor);
}

/* Блок формы редактирования аккаунта */
.woocommerce-account .woocommerce-EditAccountForm {
	margin-top: 16px;
}

/* Навигация в личном кабинете (если выводится) */
.woocommerce-account .woocommerce-MyAccount-navigation {
	margin-bottom: 24px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li::before{
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: inline-block;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	color: var(--textColor, #1f1f1f);
	background: #fff;
	border: 1px solid var(--dividerColor);
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: #f5f7fa;
	border-color: var(--mainColor, #3475c2);
	color: var(--mainColor, #3475c2);
}


