/*
	Theme Name:     Mobex Child
	Theme URI:      http://www.enovathemes.com/mobex
	Description:    Mobex - Auto Parts Woocommerce WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.01
	Template:       mobex
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

.single-product-wrapper > .label + .label, .product .onsale + .label {
    left: unset !important;
    top: 40px !important;
}
.et-menu-list.woocommerce-columns-3{
	column-count: 3;
    column-gap: 20px;
}
.et-menu-list.woocommerce-columns-4{
	column-count: 3;
    column-gap: 10px;
}
.et-menu-list.woocommerce-columns-2{
	column-count: 2;
    column-gap: 20px;
}
/* catalog
-------------------------------------------------------------- */
.layout-control,
.comp  .star-rating-wrap,
.comp .product-attributes-wrapper .product-attributes,
.comp .product-attributes-wrapper h6,
.comp ul.products .product .post-image{
	display: none;
}
.comp .product-attributes-wrapper{
	border: unset;
	margin-top: 0;
	padding-top: 0;
}
.comp .product-attributes-wrapper .button{
	margin-top: 0;
	border: unset !important;
}
.comp-counter input {
    height: 27px;
}
.comp-counter span, .summary .minus, .summary .plus {
    width: 27px;
    line-height: 25px;
}
.post-body-inner .comp-quantity{
margin-bottom: 0;
}
.comp-counter-btn:not(:empty) {
    width: 91px;
}
.comp-form a{
	display: flex;
    align-items: center;
    justify-content: center;
	max-width: 50px;
	font-size: 13px;
    font-weight: 700;
	margin-top: 0 !important;
}
.product .product-brand-name{
	background-color: #fff;
}
.comp  .comp-form{
	display: flex !important;
    flex-direction: row;
    align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
}
.comp .product .price {
    font-size: 16px;
	line-height: 18px;
	margin: 0;
}
.comp ul.products .post-title {
	font-size: 14px;
    line-height: 18px;
    font-weight: 500;
	padding: 0 5px;
}
div.comp .product .comp-form a.button, div.comp .product .comp-form .added_to_cart {
    padding: 5px 0 !important;
    font-weight: 400;
    margin-left: 5px !important;
	margin-top: 0 !important;
}
.post .post-body-inner{
	display: grid !important;
    grid-row: auto;
	grid-template-columns: 0.4fr 3fr 1.3fr 0.7fr 0.7fr 1fr 1.3fr;
}
.comp .loop-posts .post .post-body-inner > .post-content-wrap {
	max-width: unset;
	padding-right: 0;
}
.comp .product .comp-form .button:after, .comp .product .comp-form .added_to_cart:after{
	display: none;
}
.comp-form .button:hover svg{
	fill: #fff;
}
.comp-form .button svg{
	transition: all .3s;
}
.comp .product .price{
	font-weight: 500;
    color: #000 !important;
}

.section-tabs-container .post-image, #billing_country_field {
	display: none;
}
div.comp ul.products .post-body .wishlist-toggle, div.comp ul.products .post-body .compare-toggle, div.comp ul.products .post-body .en-quick-view {
    display: none !important;
}
img.woocommerce-placeholder.wp-post-image {
    position: relative;
}
@media only screen and (min-width: 768px) {
    div.comp ul.products .product .post-body {
        padding: 10px !important;
    }
	
}
@media only screen and (max-width: 768px) {
.post .post-body-inner{
	grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 0fr 0fr;
}
.comp  .comp-form{
	grid-area: 3 / 2 / 5 / 3;
}
}
.et-woo-products .post-body-inner {
    grid-template-columns: 0.5fr 1.5fr 1fr;
	gap: 5px;
}
.product .button:after {
    content: unset;
}
/* =Ньютон Авто 18.11.2026: variation-calc не выше кнопок ±/−
-------------------------------------------------------------- */
form.cart .variation-calc .quantity,
form.cart .variation-calc .quantity input.qty,
form.cart .variation-calc button.minus,
form.cart .variation-calc button.plus {
	height: 50px;
	min-height: 50px;
	margin-bottom: 0 !important;
	box-sizing: border-box;
}
form.cart .variation-calc .quantity input.qty {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0 !important;
	line-height: 48px;
}
form.cart .variation-calc .quantity {
	width: 100%;
}

/* =Ньютон Авто 18.11.2026: стили панели megamenu-4973 (автогенерация из product_cat).
/* Раскладку даёт правило темы .megamenu-tab > .elementor (flex, 21%/79%);
/* здесь — только фон/отступы контент-колонки, которых нет без e-con классов.
-------------------------------------------------------------- */
#megamenu-4973 .megamenu-tabs-container {
	background: #fff;
	border-radius: 0 8px 8px 0;
	padding: 24px 32px 24px 8px;
	min-height: 100%;
	box-sizing: border-box;
}
#megamenu-4973 .megamenu-tab-item.tab-content {
	padding: 0 0 0 24px;
}
#megamenu-4973 .et-heading a {
	text-decoration: none;
}
#megamenu-4973 .et-menu-list li {
	margin: 0 0 10px 0;
}

/* ============================================================
   Newton Auto: карточки товара каталога (nv-card.css)
   ============================================================ */
/* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   /* ============================================================
   Ньютон Авто: редизайн карточек товара в каталоге
   Единая разметка карточки (comp) + сетка через .product-layout
   Селекторы усилены и дублированы !important против правил
   темы Mobex для режима .comp
   ============================================================ */

:root{
	--nv-green: #317c17;
	--nv-green-dark: #27640f;
	--nv-green-soft: #eef6ea;
	--nv-border: #e3e6e3;
	--nv-muted: #7c847c;
	--nv-text: #1d211d;
}

/* ---------- Сетка каталога ---------- */

.product-layout .loop-posts.loop-products:not(.swiper-wrapper), .woocommerce .product-layout .loop-posts.loop-products:not(.swiper-wrapper){
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	/* контейнер для @container-запросов: перестройка comp-карточек
	   реагирует на фактическую ширину строки каталога (с учётом
	   сайдбара фильтров), а не на ширину viewport */
	container-type: inline-size;
}

/* карусели («Похожие товары» и др.) — это swiper-wrapper:
   сетка каталога к ним не применяется, swiper управляет flex-раскладкой.
   Специичность 4 класса — перебивает .woocommerce .product-layout .loop-posts */
.product-layout ul.products.loop-posts.swiper-wrapper, .woocommerce .product-layout ul.products.swiper-wrapper, .woocommerce-cart .cross-sells ul.products.swiper-wrapper, .single-product ul.products.swiper-wrapper{
	display: flex !important;
	grid-template-columns: none !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
}
.single-product .history-products-wrapper ul.products.swiper-wrapper,
.single-product .related-products ul.products.swiper-wrapper{
	gap: 10px !important;
}
/* слайды каруселей: ширину задаёт Swiper (inline-стиль), здесь только
   запрещаем сжатие — width/max-width не переопределяем */
.product-layout ul.products.swiper-wrapper li.product.swiper-slide, .woocommerce .product-layout ul.products.swiper-wrapper li.product.swiper-slide, .woocommerce-cart .cross-sells ul.products.swiper-wrapper li.product.swiper-slide, .single-product ul.products.swiper-wrapper li.product.swiper-slide{
	flex: 0 0 auto !important;
}

.product-layout.list .loop-posts.loop-products:not(.swiper-wrapper), .woocommerce .product-layout.list .loop-posts.loop-products:not(.swiper-wrapper){
	grid-template-columns: 1fr !important;
}

/* ---------- Карточка ---------- */

/* карточка каталога; слайды каруселей исключены — их ширину задаёт Swiper */
.product-layout ul.products li.product:not(.swiper-slide){
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid var(--nv-border) !important;
	border-radius: 10px !important;
	overflow: hidden;
	display: flex !important;
	flex-direction: column !important;
	position: relative;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.product-layout ul.products li.product:hover{
	border-color: rgba(49, 124, 23, .45) !important;
	box-shadow: 0 6px 18px rgba(29, 33, 29, .1) !important;
}

.product-layout ul.products li.product > .post-inner{
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	align-items: stretch !important;
}

/* ---------- Изображение ---------- */

.product-layout ul.products li.product .post-image{
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border-bottom: 1px solid var(--nv-border);
	position: relative !important;
	overflow: visible !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
}

.product-layout ul.products li.product .post-image > a:not(.wishlist-toggle):not(.compare-toggle):not(.en-quick-view){
	display: block !important;
	position: static !important;
}

.product-layout ul.products li.product .post-image .image-container{
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	box-sizing: border-box !important;
	position: relative !important;
	overflow: hidden !important;
	background: #fff !important;
}

.product-layout ul.products li.product .post-image .image-container img{
	max-width: calc(100% - 16px) !important;
	max-height: calc(100% - 16px) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	display: block !important;
}

/* svg-плейсхолдер ленивой загрузки не нужен: контейнер держит
   пропорции через aspect-ratio; пока картинка не подменилась,
   svg занимает контейнер и оттесняет изображение влево */
.product-layout ul.products li.product .post-image .image-container svg, body.single-product ul.products li.product .post-image .image-container svg, .woocommerce-cart .cross-sells ul.products li.product .post-image .image-container svg{
	display: none !important;
}

/* кнопки избранное / сравнение — правый верхний угол карточки.
   В comp-разметке они единственные (внутри post-content-wrap),
   позиционируем относительно карточки */
.product-layout ul.products li.product .wishlist-toggle, .product-layout ul.products li.product .compare-toggle{
	display: block !important;
	position: absolute !important;
	z-index: 6 !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
	border-radius: 32px !important;
	background-color: #fff !important;
	box-shadow: inset 0 0 0 1px #e0e0e0 !important;
	opacity: 1 !important;
	transition: box-shadow .2s ease-out !important;
}

.product-layout ul.products li.product .wishlist-toggle{
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	bottom: auto !important;
}

.product-layout ul.products li.product .compare-toggle{
	top: 50px !important;
	right: 10px !important;
	left: auto !important;
	bottom: auto !important;
}

.product-layout ul.products li.product .post-image .en-quick-view{
	display: block !important;
	position: absolute !important;
	top: auto !important;
	bottom: 10px !important;
	right: 10px !important;
	left: auto !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
	border-radius: 32px !important;
	background-color: #fff !important;
	box-shadow: inset 0 0 0 1px #e0e0e0 !important;
	opacity: 1 !important;
	z-index: 6 !important;
}

/* подписи рядом с иконками не нужны — только иконки */
.product-layout ul.products li.product .wishlist-title, .product-layout ul.products li.product .compare-title{
	display: none !important;
}

/* ---------- Информационная часть ---------- */

.product-layout ul.products li.product .post-body{
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	text-align: left !important;
}

/* дублирующая картинка внутри тела карточки — скрываем */
.product-layout ul.products li.product .post-body .image-container{
	display: none !important;
}

/* футер-дубликатор (третьи иконки + бренд-лого) — скрываем */
.product-layout ul.products li.product .card-footer{
	display: none !important;
}

/* содержимое обёртки становится сеткой карточки */
.product-layout ul.products li.product .post-content-wrap{
	display: contents !important;
}

.product-layout ul.products li.product .post-body-inner{
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	grid-template-rows: auto auto auto auto 1fr !important;
	gap: 8px 12px !important;
	align-items: start !important;
	justify-items: start !important;
	flex: 1 1 auto !important;
	margin: 0 !important;
	padding: 12px 14px 14px !important;
	background: #fff !important;
	width: 100% !important;
	text-align: left !important;
}

/* название — на всю ширину */
.product-layout ul.products li.product .post-body-inner .post-title{
	grid-column: 1 / -1 !important;
	grid-row: 1 !important;
	margin: 0 !important;
	max-height: none !important;
	min-height: 0 !important;
}

.product-layout ul.products li.product .post-title a{
	font-size: 14px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	color: var(--nv-text) !important;
	text-decoration: none !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.product-layout ul.products li.product .post-title a:hover{
	color: var(--nv-green) !important;
}

/* код и бренд — во второй строке в виде «чипов» */
.product-layout ul.products li.product .product-sku, .product-layout ul.products li.product .product-brand-name{
	grid-row: 2 !important;
	grid-column: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	align-self: center !important;
	justify-self: start !important;
	margin: 0 !important;
	padding: 2px 8px !important;
	border-radius: 4px !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	float: none !important;
}

.product-layout ul.products li.product .product-sku{
	background: #f3f5f3 !important;
	color: var(--nv-muted) !important;
}

.product-layout ul.products li.product .product-brand-name{
	background: var(--nv-green-soft) !important;
	color: var(--nv-green-dark) !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: .02em !important;
}

.product-layout ul.products li.product .product-brand-name:empty{
	display: none !important;
}

/* наличие */
.product-layout ul.products li.product .comp-quantity{
	grid-column: 1 / -1 !important;
	grid-row: 3 !important;
	margin: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	color: #2e7d32 !important;
}

.product-layout ul.products li.product .comp-quantity span{
	font-size: 12px !important;
	color: #2e7d32 !important;
	font-weight: 500 !important;
}

.product-layout ul.products li.product .comp-quantity span::before{
	content: 'В наличии: ' !important;
}

/* «Нет в наличии» (без <span>): исходный текст скрыт через font-size:0,
   показываем только ::after */
.product-layout ul.products li.product .comp-quantity:not(:has(span)){
	color: #c62828 !important;
	font-weight: 500 !important;
}

.product-layout ul.products li.product .comp-quantity:not(:has(span))::after{
	content: 'Нет в наличии' !important;
	font-size: 12px !important;
}

/* ---------- Цена + кнопка покупки ---------- */

.product-layout ul.products li.product .post-body-inner > .price{
	grid-column: 1 / -1 !important;
	grid-row: 4 !important;
	align-self: center !important;
	justify-self: start !important;
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1.2 !important;
	color: var(--nv-text) !important;
	font-weight: 700 !important;
	text-align: left !important;
	white-space: nowrap !important;
	overflow: visible !important;
	max-width: 100% !important;
	display: block !important;
	width: auto !important;
}

.product-layout ul.products li.product .post-body-inner > .price del{
	font-size: 13px !important;
	color: var(--nv-muted) !important;
	font-weight: 400 !important;
}

.product-layout ul.products li.product .post-body-inner > .price ins{
	text-decoration: none !important;
	color: #c62828 !important;
}

.product-layout ul.products li.product .comp-form{
	grid-column: 1 / -1 !important;
	grid-row: 5 !important;
	align-self: end !important;
	justify-self: stretch !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	position: static !important;
	width: 100% !important;
}

.product-layout ul.products li.product .comp-form .button, .product-layout ul.products li.product .comp-form .added_to_cart{
	flex: 1 1 auto !important;
	justify-content: center !important;
}

/* кнопка «В корзину» */
.product-layout ul.products li.product .comp-form .button, .product-layout ul.products li.product .comp-form .added_to_cart{
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	background: var(--nv-green) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	height: auto !important;
	width: auto !important;
	min-height: 0 !important;
	min-width: 0 !important;
	max-width: none !important;
	text-align: center !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: background .18s ease !important;
	white-space: nowrap !important;
	margin: 0 !important;
	float: none !important;
}

.product-layout ul.products li.product .comp-form .button:hover, .product-layout ul.products li.product .comp-form .added_to_cart:hover{
	background: var(--nv-green-dark) !important;
	color: #fff !important;
}

.product-layout ul.products li.product .comp-form .button:before, .product-layout ul.products li.product .comp-form .button:after, .product-layout ul.products li.product .comp-form .added_to_cart:before, .product-layout ul.products li.product .comp-form .added_to_cart:after{
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

.product-layout ul.products li.product .comp-form .button .nv-btn-icon{
	flex: 0 0 auto !important;
}

/* «Подробнее» для недоступных к покупке товаров */
.product-layout ul.products li.product .comp-form .nv-details-button{
	background: #fff !important;
	color: var(--nv-green) !important;
	box-shadow: inset 0 0 0 1px var(--nv-green) !important;
}

.product-layout ul.products li.product .comp-form .nv-details-button:hover{
	background: var(--nv-green-soft) !important;
	color: var(--nv-green-dark) !important;
}

/* счётчик количества — только в режиме списка (в сетке не помещается) */
.product-layout ul.products li.product .comp-counter-btn{
	display: none !important;
	width: auto !important;
	margin: 0 !important;
}

.product-layout.list ul.products li.product .comp-counter-btn{
	display: inline-flex !important;
}

.product-layout ul.products li.product .comp-counter{
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid var(--nv-border) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #fff !important;
	position: relative !important;
	width: auto !important;
	margin: 0 !important;
}

.product-layout ul.products li.product .comp-counter span.minus, .product-layout ul.products li.product .comp-counter span.plus{
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: static !important;
	width: 26px !important;
	height: 30px !important;
	line-height: 30px !important;
	background: #f3f5f3 !important;
	border: none !important;
	outline: none !important;
	color: var(--nv-text) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	user-select: none !important;
	transition: background .18s ease !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	float: none !important;
}

.product-layout ul.products li.product .comp-counter span.minus:hover, .product-layout ul.products li.product .comp-counter span.plus:hover{
	background: var(--nv-green-soft) !important;
	color: var(--nv-green) !important;
}

.product-layout ul.products li.product .comp-counter input{
	width: 30px !important;
	height: 30px !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--nv-text) !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	z-index: auto !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

.product-layout ul.products li.product .comp-counter input::-webkit-outer-spin-button, .product-layout ul.products li.product .comp-counter input::-webkit-inner-spin-button{
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* ---------- Список (list): горизонтальная карточка ---------- */

.product-layout.list ul.products li.product > .post-inner{
	display: grid !important;
	grid-template-columns: 190px minmax(0, 1fr) !important;
	flex-direction: row !important;
	align-items: stretch !important;
}

.product-layout.list ul.products li.product .post-image{
	border-bottom: none !important;
	border-right: 1px solid var(--nv-border) !important;
}

.product-layout.list ul.products li.product .post-image .image-container{
	aspect-ratio: auto !important;
	height: 100% !important;
	min-height: 150px !important;
	padding: 16px !important;
}

.product-layout.list ul.products li.product .post-body-inner{
	align-content: center !important;
}

/* ============================================================
   Карточки на страницах товара: «Похожие товары», «Недавно
   просмотренные», cross-sells (карусели Swiper с разметкой
   price-button-wrapp). Контейнер ul не трогаем — это swiper-wrapper.
   ============================================================ */

/* слайды каруселей — авторазмер по содержимому (иначе Swiper
   фиксирует высоту слайда по недогруженной картинке) */
body.single-product ul.products li.product.swiper-slide{
	height: auto !important;
	min-height: 0 !important;
}

/* карточки в каруселях одинаковой высоты: слайды растягиваются,
   кнопка покупки прижата к низу — ряд выглядит ровно даже у товаров
   без цены или с названием в одну строку */
body.single-product ul.products.swiper-wrapper,
.woocommerce-cart .cross-sells ul.products.swiper-wrapper{
	align-items: stretch !important;
}

body.single-product ul.products.swiper-wrapper li.product.swiper-slide,
.woocommerce-cart .cross-sells ul.products.swiper-wrapper li.product.swiper-slide{
	display: flex !important;
	flex-direction: column !important;
}

/* тело карточки растягивается на всю высоту слайда, блок
   «цена + кнопка» прижимается к низу — кнопки в ряду на одной линии */
body.single-product ul.products li.product .post-body-inner,
.woocommerce-cart .cross-sells ul.products li.product .post-body-inner{
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	gap: 8px !important;
}

body.single-product ul.products.swiper-wrapper li.product .price-button-wrapp,
.woocommerce-cart .cross-sells ul.products.swiper-wrapper li.product .price-button-wrapp{
	margin-top: auto !important;
}

body.single-product ul.products li.product, .woocommerce-cart .cross-sells ul.products li.product{
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid var(--nv-border) !important;
	border-radius: 10px !important;
	overflow: hidden;
	display: flex !important;
	flex-direction: column !important;
	position: relative;
	transition: box-shadow .18s ease, border-color .18s ease;
}

body.single-product ul.products li.product:hover, .woocommerce-cart .cross-sells ul.products li.product:hover{
	border-color: rgba(49, 124, 23, .45) !important;
	box-shadow: 0 6px 18px rgba(29, 33, 29, .1) !important;
}

body.single-product ul.products li.product > .post-inner, .woocommerce-cart .cross-sells ul.products li.product > .post-inner{
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* изображение */
body.single-product ul.products li.product .post-image, .woocommerce-cart .cross-sells ul.products li.product .post-image{
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
	border-bottom: 1px solid var(--nv-border);
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

body.single-product ul.products li.product .post-image .image-container, .woocommerce-cart .cross-sells ul.products li.product .post-image .image-container{
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	background: #fff !important;
}

body.single-product ul.products li.product .post-image .image-container img, .woocommerce-cart .cross-sells ul.products li.product .post-image .image-container img{
	max-width: calc(100% - 16px) !important;
	max-height: calc(100% - 16px) !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	display: block !important;
}

/* иконки на фото (здесь они живут внутри post-image) */
body.single-product ul.products li.product .post-image .wishlist-toggle, body.single-product ul.products li.product .post-image .compare-toggle{
	display: block !important;
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	bottom: auto !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
	border-radius: 32px !important;
	background-color: #fff !important;
	box-shadow: inset 0 0 0 1px #e0e0e0 !important;
	opacity: 1 !important;
	z-index: 6 !important;
}

body.single-product ul.products li.product .post-image .compare-toggle{
	top: 50px !important;
}

body.single-product ul.products li.product .post-image .en-quick-view{
	display: block !important;
	position: absolute !important;
	top: auto !important;
	bottom: 10px !important;
	right: 10px !important;
	left: auto !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
	border-radius: 32px !important;
	background-color: #fff !important;
	box-shadow: inset 0 0 0 1px #e0e0e0 !important;
	opacity: 1 !important;
	z-index: 6 !important;
}

/* дубли внутри тела карточки */
body.single-product ul.products li.product .post-body .image-container, .woocommerce-cart .cross-sells ul.products li.product .post-body .image-container{
	display: none !important;
}

body.single-product ul.products li.product .post-content-wrap .wishlist-toggle, body.single-product ul.products li.product .post-content-wrap .compare-toggle, body.single-product ul.products li.product .post-content-wrap .en-quick-view, .woocommerce-cart .cross-sells ul.products li.product .post-content-wrap .wishlist-toggle, .woocommerce-cart .cross-sells ul.products li.product .post-content-wrap .compare-toggle, .woocommerce-cart .cross-sells ul.products li.product .post-content-wrap .en-quick-view{
	display: none !important;
}

body.single-product ul.products li.product .wishlist-title, body.single-product ul.products li.product .compare-title, body.single-product ul.products li.product .card-footer, .woocommerce-cart .cross-sells ul.products li.product .wishlist-title, .woocommerce-cart .cross-sells ul.products li.product .compare-title, .woocommerce-cart .cross-sells ul.products li.product .card-footer{
	display: none !important;
}

/* информационная часть */
body.single-product ul.products li.product .post-body, .woocommerce-cart .cross-sells ul.products li.product .post-body{
	margin: 0 !important;
	padding: 0 !important;
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
	background: #fff !important;
}

body.single-product ul.products li.product .post-content-wrap, .woocommerce-cart .cross-sells ul.products li.product .post-content-wrap{
	display: contents !important;
}

body.single-product ul.products li.product .post-body-inner, .woocommerce-cart .cross-sells ul.products li.product .post-body-inner{
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: auto 1fr !important;
	gap: 8px 12px !important;
	margin: 0 !important;
	padding: 12px 14px 14px !important;
	background: #fff !important;
	width: 100% !important;
	text-align: left !important;
}

body.single-product ul.products li.product .post-body-inner .post-title, .woocommerce-cart .cross-sells ul.products li.product .post-body-inner .post-title{
	grid-column: 1 / -1 !important;
	grid-row: 1 !important;
	margin: 0 !important;
	max-height: none !important;
	min-height: 0 !important;
}

body.single-product ul.products li.product .post-title a, .woocommerce-cart .cross-sells ul.products li.product .post-title a{
	font-size: 14px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	color: var(--nv-text) !important;
	text-decoration: none !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

body.single-product ul.products li.product .post-title a:hover, .woocommerce-cart .cross-sells ul.products li.product .post-title a:hover{
	color: var(--nv-green) !important;
}

/* цена + кнопка */
body.single-product ul.products li.product .price-button-wrapp, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp{
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	align-self: end !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	gap: 10px !important;
	width: 100% !important;
}

body.single-product ul.products li.product .price-button-wrapp .price, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .price{
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1.2 !important;
	color: var(--nv-text) !important;
	font-weight: 700 !important;
	text-align: left !important;
	display: block !important;
	width: auto !important;
}

body.single-product ul.products li.product .price-button-wrapp .price del, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .price del{
	font-size: 13px !important;
	color: var(--nv-muted) !important;
	font-weight: 400 !important;
}

body.single-product ul.products li.product .price-button-wrapp .price ins, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .price ins{
	text-decoration: none !important;
	color: #c62828 !important;
}

body.single-product ul.products li.product .price-button-wrapp .button, body.single-product ul.products li.product .price-button-wrapp .added_to_cart, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .button, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .added_to_cart{
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	background: var(--nv-green) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	height: auto !important;
	width: 100% !important;
	min-height: 0 !important;
	min-width: 0 !important;
	max-width: none !important;
	text-align: center !important;
	text-decoration: none !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	margin: 0 !important;
	float: none !important;
}

body.single-product ul.products li.product .price-button-wrapp .button:hover, body.single-product ul.products li.product .price-button-wrapp .added_to_cart:hover, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .button:hover, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .added_to_cart:hover{
	background: var(--nv-green-dark) !important;
	color: #fff !important;
}

body.single-product ul.products li.product .price-button-wrapp .button:before, body.single-product ul.products li.product .price-button-wrapp .button:after, body.single-product ul.products li.product .price-button-wrapp .added_to_cart:before, body.single-product ul.products li.product .price-button-wrapp .added_to_cart:after, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .button:before, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .button:after, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .added_to_cart:before, .woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp .added_to_cart:after{
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

/* ---------- Мобильные ---------- */

@media (max-width: 767px){
	.product-layout .loop-posts.loop-products:not(.swiper-wrapper){
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
		gap: 10px !important;
	}

	.product-layout.list .loop-posts.loop-products:not(.swiper-wrapper){
		grid-template-columns: 1fr !important;
	}

	.product-layout.list ul.products li.product > .post-inner{
		grid-template-columns: 130px minmax(0, 1fr) !important;
	}

	.product-layout ul.products li.product .post-body-inner{
		padding: 10px 12px 12px !important;
	}

	.product-layout ul.products li.product .comp-form .button{
		padding: 8px 12px !important;
	}}


/* ============================================================
   Компактный вид каталога (plt=comp → .product-layout.comp):
   карточка-строка, как строка таблицы. Миниатюра слева,
   название, код, бренд, наличие, цена и кнопка — в одну строку.
   ============================================================ */

.product-layout.comp .loop-posts.loop-products, .woocommerce .product-layout.comp .loop-posts.loop-products{
	grid-template-columns: 1fr !important;
	gap: 10px !important;
}

.product-layout.comp ul.products li.product{
	flex-direction: row !important;
	align-items: stretch !important;
	min-height: 0 !important;
}

.product-layout.comp ul.products li.product > .post-inner{
	flex-direction: row !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 8px 14px 8px 8px !important;
}

/* миниатюра фиксированной ширины слева */
.product-layout.comp ul.products li.product .post-image{
	flex: 0 0 40px !important;
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	border-bottom: none !important;
	border-right: 1px solid var(--nv-border) !important;
}

.product-layout.comp ul.products li.product .post-image .image-container{
	aspect-ratio: 1 / 1 !important;
	height: 100% !important;
	padding: 4px !important;
}

/* при миниатюре 40px отступ 16px съедал картинку — минимальный запас */
.product-layout.comp ul.products li.product .post-image .image-container img{
	max-width: calc(100% - 4px) !important;
	max-height: calc(100% - 4px) !important;
}

/* в comp-разметке иконки живут в post-content-wrap (display:contents),
   абсолютное позиционирование считается от карточки — при миниатюре
   40px иконки на неё не помещаются: избранное — компактно сверху,
   сравнение скрываем */
.product-layout.comp ul.products li.product .wishlist-toggle, .product-layout.comp ul.products li.product .post-image .wishlist-toggle{
	top: 4px !important;
	right: auto !important;
	left: 6px !important;
	width: 24px !important;
	height: 24px !important;
	line-height: 24px !important;
}

.product-layout.comp ul.products li.product .compare-toggle, .product-layout.comp ul.products li.product .post-image .compare-toggle{
	display: none !important;
}

.product-layout.comp ul.products li.product .post-image .en-quick-view{
	display: none !important;
}

/* информационная часть — горизонтальная строка */
.product-layout.comp ul.products li.product .post-body{
	flex-direction: row !important;
	align-items: center !important;
	width: auto !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
}

/* содержимое строки — строгие колонки «как в таблице»:
   название | код | наличие | цена | кнопка.
   Фиксированные ширины колонок выравнивают блоки между строками */
.product-layout.comp ul.products li.product .post-body-inner{
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 130px 130px 130px 170px !important;
	grid-template-rows: auto !important;
	align-items: center !important;
	justify-items: start !important;
	gap: 6px 16px !important;
	padding: 0 !important;
	width: 100% !important;
}

/* название занимает первую колонку */
.product-layout.comp ul.products li.product .post-body-inner .post-title{
	grid-column: 1 !important;
	grid-row: 1 !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.product-layout.comp ul.products li.product .post-title a{
	font-size: 13.5px !important;
	-webkit-line-clamp: 2 !important;
}

/* код — вторая колонка */
.product-layout.comp ul.products li.product .product-sku{
	grid-column: 2 !important;
	grid-row: 1 !important;
	max-width: 130px !important;
}

/* бренд-чип скрыт: колонки таблицы фиксированные, пустой бренд
   оставлял бы дыру */
.product-layout.comp ul.products li.product .product-brand-name{
	display: none !important;
}

/* наличие — третья колонка */
.product-layout.comp ul.products li.product .comp-quantity{
	grid-column: 3 !important;
	grid-row: 1 !important;
	white-space: nowrap !important;
	overflow: visible !important;
}

/* цена — четвёртая колонка, выравнивание по правому краю */
.product-layout.comp ul.products li.product .post-body-inner > .price{
	grid-column: 4 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	text-align: right !important;
	font-size: 16px !important;
}

/* кнопка — пятая колонка на всю её ширину */
.product-layout.comp ul.products li.product .comp-form{
	grid-column: 5 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	width: 100% !important;
	margin: 0 !important;
}

.product-layout.comp ul.products li.product .comp-form .button, .product-layout.comp ul.products li.product .comp-form .added_to_cart{
	width: 100% !important;
	justify-content: center !important;
	padding: 8px 10px !important;
	font-size: 12.5px !important;
}

/* ---------- comp: двухстрочная структура на узкой строке каталога ----------
   Когда строка карточек уже ~950px (планшеты, ноутбук + сайдбар
   фильтров), фиксированные колонки однострочной таблицы не помещаются.
   Строка 1: название + артикул; строка 2: наличие + цена + кнопка.
   Колонки по содержимому — название получает всё свободное место,
   кнопка всегда внутри карточки. Ориентируемся на ширину контейнера
   (ul), а не viewport: учитывает наличие/отсутствие сайдбара. */
@media (min-width: 768px){
	@container (max-width: 949px){
	.product-layout.comp ul.products li.product .post-body-inner{
		grid-template-columns: minmax(0, 1fr) auto auto !important;
		gap: 6px 14px !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner .post-title{
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.product-layout.comp ul.products li.product .product-sku{
		grid-column: 2 / 4 !important;
		grid-row: 1 !important;
		justify-self: end !important;
		max-width: 200px !important;
	}

	.product-layout.comp ul.products li.product .comp-quantity{
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner > .price{
		grid-column: 2 !important;
		grid-row: 2 !important;
		justify-self: end !important;
	}

	.product-layout.comp ul.products li.product .comp-form{
		grid-column: 3 !important;
		grid-row: 2 !important;
		justify-self: end !important;
		width: auto !important;
	}

	.product-layout.comp ul.products li.product .comp-form .button, .product-layout.comp ul.products li.product .comp-form .added_to_cart{
		width: auto !important;
		white-space: nowrap !important;
	}}}
	


.product-layout.comp ul.products li.product .comp-form .button, .product-layout.comp ul.products li.product .comp-form .added_to_cart{
	padding: 8px 14px !important;
}

/* счётчик в компактном виде не нужен */
.product-layout.comp ul.products li.product .comp-counter-btn{
	display: none !important;
}

/* мобильная версия компактного вида: две колонки —
   название/код/цена слева, кнопка справа по центру строки */
@media (max-width: 767px){
	.product-layout.comp ul.products li.product > .post-inner{
		gap: 10px !important;
		padding: 6px 10px 6px 6px !important;
	}

	.product-layout.comp ul.products li.product .post-image{
		flex-basis: 84px !important;
		width: 84px !important;
		min-width: 84px !important;
	}

	.product-layout.comp ul.products li.product .post-image .image-container{
		padding: 8px !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner{
		grid-template-columns: minmax(0, 1fr) 120px !important;
		gap: 4px 10px !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner .post-title{
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.product-layout.comp ul.products li.product .product-sku{
		grid-column: 1 !important;
		grid-row: 2 !important;
		justify-self: start !important;
		max-width: 100% !important;
	}

	.product-layout.comp ul.products li.product .comp-quantity{
		display: none !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner > .price{
		grid-column: 1 !important;
		grid-row: 3 !important;
		justify-self: start !important;
	}

	.product-layout.comp ul.products li.product .comp-form{
		grid-column: 2 !important;
		grid-row: 1 / span 3 !important;
		align-self: center !important;
		width: 100% !important;
	}

	.product-layout.comp ul.products li.product .post-title a{
		-webkit-line-clamp: 3 !important;
	}}


/* на очень узких экранах (<481px) кнопка выносится отдельной строкой
   на всю ширину — иначе фиксированная колонка кнопки сжимает название */
@media (max-width: 480px){
	.product-layout.comp ul.products li.product .post-body-inner{
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 6px !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner .post-title{
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.product-layout.comp ul.products li.product .product-sku{
		grid-column: 1 !important;
		grid-row: 2 !important;
		justify-self: start !important;
		max-width: 100% !important;
	}

	.product-layout.comp ul.products li.product .post-body-inner > .price{
		grid-column: 1 !important;
		grid-row: 3 !important;
		justify-self: start !important;
	}

	.product-layout.comp ul.products li.product .comp-form{
		grid-column: 1 !important;
		grid-row: 4 !important;
		width: 100% !important;
	}

	.product-layout.comp ul.products li.product .comp-form .button, .product-layout.comp ul.products li.product .comp-form .added_to_cart{
		width: 100% !important;
		justify-content: center !important;
	}}


/* на очень узких карточках счётчик не помещается — прячем */
@media (max-width: 500px){
	.product-layout ul.products li.product .comp-counter-btn{
		display: none !important;
	}

	.product-layout ul.products li.product .comp-form .button{
		flex: 1 1 100% !important;
	}}
/* ============================================================
   Карточки товара на страницах товара и в cross-sells:
   финальные правила (в конце файла — перебивают сетку каталога
   при равной специфичности). Тело карточки — flex-колонка,
   блок «цена + кнопка» прижат к низу: кнопки в карусели на одной
   линии, ничего не выходит за границы карточки.
   ============================================================ */

body.single-product ul.products li.product .post-body,
.woocommerce-cart .cross-sells ul.products li.product .post-body{
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
}

body.single-product ul.products li.product .post-body-inner,
.woocommerce-cart .cross-sells ul.products li.product .post-body-inner{
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	gap: 8px !important;
}

body.single-product ul.products li.product .post-body-inner .post-title,
.woocommerce-cart .cross-sells ul.products li.product .post-body-inner .post-title{
	flex: 0 0 auto !important;
}

body.single-product ul.products li.product .price-button-wrapp,
.woocommerce-cart .cross-sells ul.products li.product .price-button-wrapp{
	margin-top: auto !important;
	flex: 0 0 auto !important;
}
