/* ==========================================================================
   Teploexpert — магазин (WooCommerce)
   Подключается вместо woocommerce.css (оставлены только layout и smallscreen).
   ========================================================================== */

.shop-wrap { padding-top: 20px; padding-bottom: 60px; }
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-main { min-width: 0; }
.woocommerce-products-header__title, .woocommerce-products-header h1 { margin-bottom: 12px; }
.term-description { color: var(--c-muted); max-width: 900px; margin-bottom: 16px; }
.term-description p:last-child { margin-bottom: 0; }

/* Боковая колонка */
.shop-sidebar { position: sticky; top: calc(var(--hdr, 170px) + 16px); max-height: calc(100vh - var(--hdr, 170px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9cfd6 transparent; scrollbar-gutter: stable; padding-right: 8px; margin-right: -8px; display: flex; flex-direction: column; gap: 16px; }
.shop-sidebar::-webkit-scrollbar { width: 6px; }
.shop-sidebar::-webkit-scrollbar-thumb { border-radius: 3px; background: #c9cfd6; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar .widget { padding: 18px; border-radius: var(--radius); background: var(--c-surface); }
.widget__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.shop-cats, .shop-sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.shop-cats li a, .shop-sidebar .widget li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--c-ink); font-size: 14px; }
.shop-cats li a span, .shop-sidebar .count { color: var(--c-muted); font-size: 12px; }
.shop-cats li.is-active a, .shop-cats li a:hover, .shop-sidebar .widget li a:hover, .shop-sidebar .chosen a { color: var(--c-brand); }
.shop-sidebar .chosen a::before { content: "✓ "; }
.shop-sidebar__help { display: grid; gap: 10px; padding: 20px 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.shop-sidebar__help-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-soft, #fdecec); }
.shop-sidebar__help-icon .icon { color: var(--c-brand); fill: currentColor; }
.shop-sidebar__help p { margin: 0; }
.shop-sidebar__help-title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.shop-sidebar__help-text { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.shop-sidebar__help .btn { margin-top: 4px; }
.shop-sidebar__help-phone { font-size: 13px; text-align: center; color: var(--c-muted); }
.shop-sidebar__help-phone a { color: var(--c-ink); font-weight: 700; }
.shop-sidebar__close, .shop-filters-btn { display: none; }

/* Фильтр по цене */
.price_slider_wrapper .ui-slider { position: relative; height: 4px; margin: 12px 8px 20px; border-radius: 2px; background: var(--c-line); }
.price_slider_wrapper .ui-slider-range { position: absolute; height: 100%; background: var(--c-brand); }
.price_slider_wrapper .ui-slider-handle { position: absolute; top: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--c-brand); cursor: pointer; }
.price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.price_slider_amount .button { min-height: 36px; padding: 6px 14px; font-size: 13px; box-shadow: none; }

/* Сортировка и количество */
.woocommerce-result-count { margin: 0 0 16px; color: var(--c-muted); font-size: 14px; float: left; }
.woocommerce-ordering { margin: 0 0 16px; float: right; }
.woocommerce-ordering select { height: 40px; padding: 0 32px 0 12px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; font-size: 14px; }

/* Сетка товаров */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	clear: both;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 14px 14px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #fff;
	transition: box-shadow .2s var(--ease), border-color .2s;
}
.woocommerce ul.products li.product:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.product-card__image { display: block; aspect-ratio: 1; margin-bottom: 12px; border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.product-card__image img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--c-ink); }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--c-brand); }
.product-card__specs { margin: 0 0 10px; font-size: 12px; color: var(--c-muted); }
.product-card__specs div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dotted var(--c-line); }
.product-card__specs dt { flex: 1; min-width: 0; }
.product-card__specs dd { margin: 0; color: var(--c-ink); font-weight: 600; text-align: right; }
.woocommerce ul.products li.product .price { display: block; margin: auto 0 12px; font-size: 20px; font-weight: 800; color: var(--c-ink); }
.woocommerce ul.products li.product .price del { font-size: 14px; font-weight: 500; color: var(--c-muted); }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--c-brand); }
.price-request { font-size: 16px; font-weight: 700; color: var(--c-navy); }
.woocommerce ul.products li.product .button { width: 100%; margin: 0; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.woocommerce ul.products li.product .button.loading { opacity: .7; }
.woocommerce ul.products li.product .button.added::after { content: " ✓"; }
.product-card__oneclick { display: block; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--c-navy); border-bottom: 0; }
.product-card__oneclick:hover { color: var(--c-brand); }
.woocommerce span.onsale { position: absolute; top: 12px; left: 12px; z-index: 2; min-height: 0; min-width: 0; padding: 4px 10px; border-radius: 6px; background: var(--c-brand); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }

/* Подкатегории в каталоге */
.woocommerce ul.products li.product-category { padding: 0; overflow: hidden; }
.woocommerce ul.products li.product-category a { display: block; color: var(--c-ink); }
.woocommerce ul.products li.product-category img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0; background: #fff; }
.woocommerce ul.products li.product-category h2 { margin: 0; padding: 14px; font-size: 15px; }
.woocommerce ul.products li.product-category mark { background: none; color: var(--c-muted); font-weight: 500; }

/* Пагинация */
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; }
.woocommerce nav.woocommerce-pagination ul li .page-numbers { min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); line-height: 40px; background: #fff; }
.woocommerce nav.woocommerce-pagination ul.page-numbers, .woocommerce nav.woocommerce-pagination ul.page-numbers:hover { background: none; border: 0; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus { background: #fff; border-color: var(--c-brand); color: var(--c-brand); }

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

.woocommerce div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0; grid-column: auto; }
.woocommerce div.product > .product-media { grid-column: auto; align-self: stretch; position: relative; min-width: 0; }
.woocommerce div.product .product-media div.images { position: sticky; top: calc(var(--hdr, 170px) + 16px); }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.woocommerce div.product div.images img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--radius-sm); cursor: pointer; opacity: .6; transition: opacity .15s; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--c-brand); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: "⤢"; display: flex; align-items: center; justify-content: center; height: 100%; font-size: 18px; color: var(--c-ink); }
.woocommerce-product-gallery__trigger img { display: none !important; }

.woocommerce div.product .product_title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--c-muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.badge--success { background: #e8f7ee; color: var(--c-success); }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin-bottom: 18px; font-size: 32px; font-weight: 800; color: var(--c-ink); }
.woocommerce div.product p.price del { font-size: 18px; color: var(--c-muted); font-weight: 500; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--c-brand); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--c-muted); margin-bottom: 18px; }

.product-specs { margin: 0 0 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--c-surface); font-size: 14px; }
.product-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px dashed var(--c-line); }
.product-specs div:last-child { border-bottom: 0; }
.product-specs dt { color: var(--c-muted); }
.product-specs dd { margin: 0; font-weight: 600; text-align: right; }
.product-specs__all { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.model-switch { margin: 0 0 14px; }
.model-switch__label { margin: 0 0 6px; font-size: 13px; color: var(--c-muted); }
.model-switch__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.model-switch__item { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 6px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; color: var(--c-ink); font-size: 14px; line-height: 1.2; text-decoration: none; transition: border-color .15s; }
.model-switch__item small { margin-top: 2px; font-size: 12px; color: var(--c-muted); }
.model-switch__item:hover { border-color: var(--c-brand); color: var(--c-ink); }
.model-switch__item.is-current { border: 2px solid var(--c-brand); padding: 5px 9px; }
.product-power { margin: 0 0 12px; padding: 14px 16px; border: 1px solid #f3c7c9; border-radius: var(--radius-sm); background: #fff7f7; font-size: 14px; }
.product-power__title { margin-bottom: 6px; font-weight: 700; color: var(--c-ink); }
.product-power dl { margin: 0; }
.product-power dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; border-bottom: 1px dashed #f0d4d5; }
.product-power dl div:last-child { border-bottom: 0; }
.product-power dt { color: var(--c-ink); }
.product-power dt small { display: block; color: var(--c-muted); font-size: 12px; }
.product-power dd { margin: 0; font-weight: 800; color: var(--c-brand); white-space: nowrap; }
.product-power__note { margin: 8px 0 0; font-size: 13px; color: var(--c-muted); }
.product-power--tab { max-width: 640px; margin-bottom: 24px; }

.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce .quantity { display: inline-flex; }
.woocommerce .quantity .qty { width: 84px; height: 56px; padding: 0 8px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); text-align: center; font-size: 16px; font-weight: 600; }
.woocommerce div.product form.cart .button { flex: 1; min-height: 56px; font-size: 16px; float: none; }
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.product-actions .btn { width: 100%; }
.product-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.product-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 8px; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); list-style: none; font-size: 13px; color: var(--c-muted); }
.product-trust li { display: flex; gap: 8px; align-items: flex-start; }
.product-trust .icon { flex: none; color: var(--c-brand); margin-top: -1px; }
.product-trust b { color: var(--c-ink); }

/* Вкладки */
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 0; border-bottom: 2px solid var(--c-line); list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 0 -2px; padding: 0; border: 0; background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; border-bottom: 2px solid transparent; color: var(--c-muted); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 960px; margin: 0; }
.woocommerce table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; font-size: 15px; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--c-line); text-align: left; font-style: normal; line-height: 1.4; background: none; }
.woocommerce table.shop_attributes th { width: 45%; font-weight: 500; color: var(--c-muted); }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--c-surface); }
.check-list { padding-left: 20px; }

.product-help { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; margin: 40px 0 8px; padding: 28px; border-radius: var(--radius); background: var(--c-navy); color: #fff; }
.product-help__title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.product-help__text p:last-child { margin: 0; opacity: .85; }
.related.products, .upsells.products { margin-top: 40px; }
.related.products > h2, .upsells.products > h2 { margin-bottom: 20px; }

/* Уведомления --------------------------------------------------------------- */

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	border-left: 4px solid var(--c-navy);
	background: var(--c-surface);
	list-style: none;
}
.woocommerce-message { border-left-color: var(--c-success); background: #e8f7ee; }
.woocommerce-error { border-left-color: var(--c-brand); background: var(--c-brand-soft); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: 8px 16px; box-shadow: none; }

/* Корзина ------------------------------------------------------------------ */

.woocommerce-cart-form table.shop_table, .woocommerce table.shop_table { width: 100%; margin-bottom: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table thead th { border-top: 0; background: var(--c-surface); font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.woocommerce table.shop_table img { width: 72px; border-radius: 6px; }
.woocommerce table.shop_table td.product-name a { color: var(--c-ink); font-weight: 600; }
.woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--c-muted) !important; font-size: 20px; }
.woocommerce a.remove:hover { background: var(--c-brand); color: #fff !important; }
.woocommerce .coupon { display: inline-flex; gap: 8px; }
.woocommerce .coupon .input-text { height: 48px; padding: 0 12px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); }
.woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 480px; margin-left: auto; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 22px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 17px; }
.cart-empty.woocommerce-info { font-size: 18px; }
.return-to-shop .button { margin-top: 8px; }

/* Оформление заказа ---------------------------------------------------------- */

.woocommerce-checkout .col2-set { display: block; width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
form.woocommerce-checkout > * { grid-column: 1 / -1; }
form.woocommerce-checkout #customer_details { grid-column: 1; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 3; padding: 24px; border-radius: var(--radius); background: var(--c-surface); }
form.woocommerce-checkout #customer_details { grid-row: 2 / span 2; }
.woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); }
.woocommerce form .form-row-first { float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--c-muted); line-height: 1.4; }
.woocommerce form .form-row .required { color: var(--c-brand); text-decoration: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-input-wrapper input {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 16px;
}
.woocommerce form .form-row textarea { min-height: 100px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--c-brand); outline: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--c-brand); }
.teplo-hidden-field { display: none !important; }
#payment { margin-top: 16px; }
#payment ul.payment_methods { margin: 0 0 16px; padding: 0; list-style: none; }
#payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
#payment .payment_box { margin-top: 8px; padding: 12px; border-radius: var(--radius-sm); background: #fff; font-size: 14px; color: var(--c-muted); }
#payment .payment_box p { margin: 0; }
#place_order { width: 100%; min-height: 58px; font-size: 17px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--c-muted); }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--c-surface); list-style: none; }
.woocommerce-order-overview li { flex: 1 1 160px; font-size: 13px; color: var(--c-muted); }
.woocommerce-order-overview strong { display: block; color: var(--c-ink); font-size: 16px; }
.woocommerce-thankyou-order-received { font-size: 22px; font-weight: 700; color: var(--c-success); }

/* Личный кабинет */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--c-ink); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--c-surface); color: var(--c-brand); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 480px; }

/* Адаптив ------------------------------------------------------------------ */

@media (max-width: 1200px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.shop-layout { grid-template-columns: 1fr; }
	.shop-filters-btn { display: inline-flex; margin: 0 0 16px; min-height: 42px; }
	.shop-sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 320;
		width: min(360px, 88vw);
		padding: 56px 16px 90px;
		background: #fff;
		overflow-y: auto;
		box-shadow: var(--shadow-lg);
		transform: translateX(-105%);
		transition: transform .25s var(--ease);
		top: 0; max-height: none; margin-right: 0;
	}
	.is-filters-open .shop-sidebar { transform: none; }
	.is-filters-open body::after { content: ""; position: fixed; inset: 0; z-index: 310; background: rgba(13, 42, 60, .5); }
	.shop-sidebar__close { display: block; position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
	.shop-main ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
	.woocommerce div.product .product-media div.images { position: static; }
	.product-help { grid-template-columns: 1fr; }
	form.woocommerce-checkout { grid-template-columns: 1fr; }
	form.woocommerce-checkout #customer_details, form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.woocommerce ul.products li.product { padding: 10px 10px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; }
	.woocommerce ul.products li.product .price { font-size: 16px; }
	.woocommerce ul.products li.product .button { min-height: 42px; padding: 8px 10px; font-size: 13px; }
	.product-card__specs { display: none; }
	.woocommerce-result-count { display: none; }
	.woocommerce-ordering { float: none; }
	.woocommerce-ordering select { width: 100%; }
	.product-trust { grid-template-columns: 1fr; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
	.woocommerce-cart-form table.shop_table thead { display: none; }
	.woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; color: var(--c-muted); }
	.woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
	.woocommerce .coupon { display: flex; flex-direction: column; width: 100%; }
	.product-help { padding: 20px 16px; }
}

/* Виджеты фильтров WooCommerce: счётчик в строку, длинные списки с прокруткой */
.shop-sidebar .widget li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shop-sidebar .widget li a { flex: 1; }
.shop-sidebar .woocommerce-widget-layered-nav-list { max-height: 264px; overflow-y: auto; padding-right: 4px; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-billing-fields__field-wrapper .form-row { width: auto !important; float: none !important; }
.woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .teplo-hidden-field { display: none !important; }
@media (max-width: 640px) { .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; } }

/* Фильтр каталога (чекбоксы, сворачиваемые группы) ------------------------- */
.cat-filter { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.cat-filter.is-loading { opacity: .6; pointer-events: none; }
.cat-filter__head { display: flex; justify-content: flex-end; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--c-line); }
.cat-filter__title { font-weight: 700; font-size: 16px; }
.cat-filter__reset { font-size: 13px; font-weight: 600; }
.cf-group { border-bottom: 1px solid var(--c-line); }
.cf-group:last-of-type { border-bottom: 0; }
.cf-group__head {
	position: relative; display: flex; align-items: center; gap: 8px; width: 100%;
	padding: 12px 40px 12px 16px; border: 0; background: none;
	font-weight: 700; font-size: 14px; text-align: left; color: var(--c-ink); cursor: pointer;
}
.cf-group__head::after, .cf-tree__toggle::after {
	content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	font-size: 20px; font-weight: 600; line-height: 1; color: var(--c-ink);
}
.cf-group.is-open > .cf-group__head::after { content: "−"; }
.cf-group__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-brand); color: #fff; font-size: 11px; }
.cf-group__body { display: none; padding: 0 16px 14px; }
.cf-group.is-open > .cf-group__body { display: block; }
.cf-list, .cf-tree { margin: 0; padding: 0; list-style: none; }
.cf-list--more:not(.is-all) > li:nth-child(n+8):not(:has(input:checked)) { display: none; }
.cf-more { margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--c-brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cf-more:hover { color: var(--c-brand-dark); }
.cf-check { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.35; color: var(--c-ink); cursor: pointer; }
.cf-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--c-brand); cursor: pointer; }
.cf-check:hover span { color: var(--c-brand); }
.cf-tree__item { position: relative; padding-right: 28px; }
.cf-tree__toggle { position: absolute; right: 0; top: 0; width: 28px; height: 26px; border: 0; background: none; cursor: pointer; }
.cf-tree__toggle::after { right: 6px; font-size: 18px; }
.cf-tree__item.is-open > .cf-tree__toggle::after { content: "−"; }
.cf-tree--sub { display: none; margin: 2px 0 4px; padding-left: 22px !important; }
.cf-tree__item.is-open > .cf-tree--sub { display: block; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: var(--c-surface); color: var(--c-ink); font-size: 13px; font-weight: 600; }
.cf-chip span { color: var(--c-muted); font-size: 16px; line-height: 1; }
.cf-chip:hover { background: var(--c-brand-soft); color: var(--c-brand); }

/* Поиск под заголовком: рамка у всей строки, при фокусе — у всей строки (а не только у поля). */
.shop-search { position: relative; display: flex; align-items: stretch; margin-bottom: 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.shop-search:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.shop-search input { flex: 1; min-width: 0; height: 42px; padding: 0 8px 0 14px; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: transparent; font: inherit; }
.shop-search input:focus { outline: none; box-shadow: none; }
.shop-search button { flex: none; width: 46px; height: 42px; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: transparent; color: var(--c-muted); cursor: pointer; }
.shop-search button:hover, .shop-search:focus-within button { color: var(--c-brand); }

/* Карточка товара в каталоге — как на старом сайте */
.product-card__cat { display: block; margin: 0 0 6px; font-size: 12px; color: var(--c-muted); text-align: center; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { text-align: center; font-size: 14px; font-weight: 600; }
.woocommerce ul.products li.product .price { text-align: center; font-size: 19px; }
.price-suffix { font-size: .8em; font-weight: 700; }
.woocommerce div.product p.price .price-suffix { font-size: 18px; color: var(--c-muted); font-weight: 600; }
.woocommerce ul.products li.product .price-request { display: block; text-align: center; }

/* Колонки каталога не зависят от настройки WooCommerce: 3 / 2 / 2 */
.shop-main ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .shop-main ul.products[class*="columns-"], .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.shop-main ul.products[class*="columns-"], .woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.product-card__cat { font-size: 11px; }
	.woocommerce ul.products li.product .price { font-size: 15px; }
	.price-suffix { display: block; font-size: 12px; font-weight: 600; }
}
.woocommerce table.shop_table .woocommerce-Price-amount { white-space: nowrap; }

/* Корзина-панель ---------------------------------------------------------------- */
.cart-drawer { position: fixed; inset: 0; z-index: 350; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(13, 42, 60, .5); opacity: 0; transition: opacity .25s; }
.cart-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(440px, 100vw);
	background: #fff;
	box-shadow: var(--shadow-lg);
	transform: translateX(100%);
	transition: transform .28s var(--ease);
}
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.cart-drawer__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; }
.cart-drawer__title .icon { color: var(--c-brand); }
.cart-drawer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cart-drawer__close:hover { background: var(--c-surface); }
.cart-drawer__added { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #e8f7ee; color: var(--c-success); font-weight: 700; font-size: 14px; animation: mega-in .25s var(--ease); }
.cart-drawer .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px 20px 20px; overflow-y: auto; }
.woocommerce-mini-cart { margin: 0; padding: 0; list-style: none; }
.woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 2px 12px;
	padding: 14px 32px 14px 0; border-bottom: 1px solid var(--c-line); font-size: 14px;
}
.woocommerce-mini-cart-item a:not(.remove) { display: contents; color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 2; width: 64px !important; height: 64px !important; object-fit: contain; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; margin: 0 !important; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--c-muted); font-size: 13px; }
.woocommerce-mini-cart-item .quantity .amount { color: var(--c-ink); font-weight: 700; }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-muted) !important; font-size: 20px; line-height: 1; }
.woocommerce-mini-cart-item .remove:hover { background: var(--c-brand); color: #fff !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; font-size: 16px; }
.woocommerce-mini-cart__total .amount { font-size: 22px; font-weight: 800; }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--c-muted); }
.free-ship { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-surface); font-size: 14px; }
.free-ship p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.free-ship p .icon { color: var(--c-navy); }
.free-ship p.is-done .icon { color: var(--c-success); }
.free-ship__bar { display: block; height: 6px; border-radius: 3px; background: #dfe4e9; overflow: hidden; }
.free-ship__bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c-brand), #ff6a5a); transition: width .4s; }
.single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }
.cart-collaterals .free-ship { max-width: 480px; margin-left: auto; }

/* Карточка товара: первый экран ------------------------------------------- */
.summary .product-actions { margin-top: 0; }
.summary form.cart { margin-bottom: 12px; }
.summary .product-links { margin: 4px 0 20px; }
.link-dashed--accent { color: var(--c-brand); font-weight: 700; }
.summary .product-specs { margin-top: 0; }
.product-short { margin-bottom: 20px; color: var(--c-muted); }

/* Полоса покупки на телефоне */
.buybar { display: none; }
@media (max-width: 1024px) {
	.buybar:not([hidden]) {
		position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 89;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--c-line);
		box-shadow: 0 -6px 18px rgba(20, 60, 84, .1);
	}
	.buybar__price { font-weight: 800; font-size: 18px; color: var(--c-ink); white-space: nowrap; }
	.buybar__price small { font-size: 12px; font-weight: 500; color: var(--c-muted); }
	.buybar .btn { min-height: 44px; padding: 8px 18px; }
}

/* Плашка подбора в сетке каталога */
.woocommerce ul.products li.product.product-cta, .woocommerce-page ul.products li.product.product-cta {
	grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
	flex-direction: row; padding: 24px 28px !important; border: 0; border-radius: var(--radius); background: linear-gradient(115deg, var(--c-navy-dark), var(--c-navy)); color: #fff; text-align: left;
}
.product-cta__text { max-width: 620px; }
.product-cta__text p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.product-cta__text .product-cta__title { margin-bottom: 4px; color: #fff; font-size: 20px; font-weight: 800; }
.product-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.woocommerce nav.woocommerce-pagination ul li span.dots { border-color: transparent; background: none; }

/* Описание товара: заголовки, списки, доп. параметры, схема ----------------- */
.desc { max-width: 860px; margin-left: 0; margin-right: 0; font-size: 16px; line-height: 1.65; color: var(--c-ink); }
.desc h2 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; }
.desc > h2:first-child { margin-top: 0; }
.desc p { margin: 0 0 12px; }
.desc-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.desc-list li { position: relative; padding-left: 22px; }
.desc-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); }
.desc-specs { margin: 0 0 16px; padding: 4px 16px; border-radius: var(--radius-sm); background: var(--c-surface); font-size: 15px; }
.desc-specs div { display: grid; grid-template-columns: minmax(160px, 40%) 1fr; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--c-line); }
.desc-specs div:last-child { border-bottom: 0; }
.desc-specs dt { color: var(--c-muted); }
.desc-specs dd { margin: 0; font-weight: 600; }
.desc-scheme { margin: 8px 0 20px; max-width: 640px; }
.desc-scheme__link { display: block; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; cursor: zoom-in; transition: border-color .15s, box-shadow .15s; }
.desc-scheme__link:hover { border-color: var(--c-brand); box-shadow: var(--shadow); }
.desc-scheme img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.desc-scheme figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.desc-scheme figcaption a { margin-left: 6px; font-weight: 600; }
.product-short.desc { color: var(--c-ink); }
.desc-table { max-width: 100%; margin: 4px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.desc-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc-table td, .desc-table th { padding: 7px 10px; border: 1px solid var(--c-line); text-align: center; }
.desc-table tr:nth-child(-n+2) td { background: var(--c-surface); }
.desc-table tr:nth-child(even) td { background: color-mix(in srgb, var(--c-surface) 50%, #fff); }
.desc-table td:first-child, .desc-table td:nth-child(2) { text-align: left; }
.woocommerce-Tabs-panel, .woocommerce-tabs { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .desc-specs div { grid-template-columns: 1fr; gap: 2px; } .desc-scheme__link { padding: 8px; } }
@media (max-width: 600px) { .desc-specs div { grid-template-columns: 1fr; gap: 2px; } .desc-scheme__link { padding: 8px; } }

/* Просмотр схемы на весь экран */
.zoom-view { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 25, 35, .88); cursor: zoom-out; }
.zoom-view img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); background: #fff; }
.zoom-view__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* Вопросы о товаре */
.tab-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--c-surface); font-size: 12px; line-height: 20px; text-align: center; color: var(--c-muted); }
.qa { max-width: 860px; margin-left: 0; margin-right: 0; }
.qa__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.qa__lead { margin: 0; color: var(--c-muted); flex: 1 1 320px; }
.qa__list { margin: 0 0 28px; padding: 0; list-style: none; }
.qa__item { padding: 18px 0; border-top: 1px solid var(--c-line); scroll-margin-top: 140px; }
.qa__item:target { background: color-mix(in srgb, var(--c-brand) 5%, transparent); }
.qa__q, .qa__a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.qa__a { margin: 12px 0 0 44px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-surface); }
.qa__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-ink); color: #fff; font-weight: 700; font-size: 14px; }
.qa__a--staff .qa__mark { background: var(--c-brand); }
.qa__meta { margin: 0 0 4px; font-size: 13px; color: var(--c-muted); }
.qa__meta strong { color: var(--c-ink); }
.qa__text p { margin: 0 0 8px; }
.qa__text p:last-child { margin-bottom: 0; }
.qa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; scroll-margin-top: 140px; }
.qa-form__title { grid-column: 1 / -1; margin: 0; font-size: 18px; font-weight: 700; }
.qa-form__field { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.qa-form__field b { color: var(--c-brand); }
.qa-form__hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-muted); }
.qa-form__hint .icon { flex: none; opacity: .8; }
.qa-form__field--wide, .qa-form__foot, .qa-form__message { grid-column: 1 / -1; }
.qa-form input, .qa-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font: inherit; }
.qa-form textarea { resize: vertical; min-height: 96px; }
.qa-form input:focus, .qa-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--c-brand) 35%, transparent); border-color: var(--c-brand); }
.qa-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.qa-form__note { flex: 1 1 260px; margin: 0; font-size: 12px; color: var(--c-muted); }
.qa-form__message { margin: 0; font-size: 14px; }
.qa-form__message:empty { display: none; }
.qa-form__message.is-success { color: #157a3a; font-weight: 600; }
.qa-form__message.is-error { color: var(--c-brand); }
@media (max-width: 600px) {
	.qa-form { grid-template-columns: 1fr; padding: 16px; }
	.qa__a { margin-left: 0; }
	.qa-form__submit { width: 100%; }
}

/* AJAX-обновление каталога и счётчики брендов */
.shop-results { transition: opacity .15s; }
.shop-results.is-loading { opacity: .45; pointer-events: none; }
.cat-filter.is-loading { opacity: .7; }
.cf-check { position: relative; }
.cf-count { margin-left: auto; padding-left: 8px; color: var(--c-muted); font-size: 12px; font-style: normal; }
.cf-group--brands .cf-check { display: flex; align-items: center; }
