/* Страница товара (экран 6) по макету product-coxo.html (компоненты — tools/mockups/product_parts.py, решения — screens/product.md).
   Разметка — раскладка конструктора WoodMart (tools/theme/product_dev.php): строки .tsg-pp-top (крошки, соседние товары),
   .tsg-pp (колонки .tsg-pp-main — галерея и вкладки, .tsg-pp-side — название, .tsg-pp-buy, .tsg-pp-badges), .tsg-pp-recent.
   Обёртки WPBakery обнуляются; на ≤899 колонки «растворяются» (display:contents) и блоки встают в порядке макета. Значения — токены. */

/* ---------- Контейнер и строки ---------- */
html body.single-product .main-page-wrapper>.wd-content-layout{max-width:var(--container);padding-top:24px;padding-bottom:var(--section-y);padding-left:var(--gutter);padding-right:var(--gutter)}   /* край — как у шапки и каталога */
html body .single-product-page>.wpb-content-wrapper>.vc_row{margin:0!important;padding:0!important}
html body .single-product-page :is(.tsg-pp-top,.tsg-pp,.tsg-pp-recent,.tsg-pp-buy,.tsg-pp-badges)::before,
html body .single-product-page :is(.tsg-pp-top,.tsg-pp,.tsg-pp-recent,.tsg-pp-buy,.tsg-pp-badges)::after{display:none}   /* clearfix WPBakery во flex/grid — лишний зазор (известная проблема) */
html body .single-product-page :is(.tsg-pp-top,.tsg-pp,.tsg-pp-recent,.tsg-pp-buy,.tsg-pp-badges) :is(.wpb_column,.vc_column-inner){width:auto;float:none;margin:0!important;padding:0!important}
html body .single-product-page :is(.tsg-pp-top,.tsg-pp,.tsg-pp-recent) .wpb_wrapper>*{margin-bottom:0!important}
html body .single-product-page .tsg-pp-buy,html body .single-product-page .tsg-pp-badges{margin:0!important}

/* ---------- Крошки и соседние товары ---------- */
html body .tsg-pp-top .wpb_wrapper{display:flex;align-items:center;justify-content:space-between;gap:16px}
html body .tsg-pp-top .wd-el-breadcrumbs{flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;margin:0!important}
html body .tsg-pp-top .wd-breadcrumbs{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;padding:0;font-family:var(--font);font-size:13px;line-height:1.4;color:var(--fg-muted);white-space:nowrap;overflow-x:auto;scrollbar-width:none;padding:4px;margin:-4px}   /* поле 4 — кольцо фокуса не обрезается прокруткой */
html body .tsg-pp-top .wd-breadcrumbs::-webkit-scrollbar{display:none}
html body .tsg-pp-top .wd-breadcrumbs a{color:var(--fg-muted);font-weight:400}
@media (hover:hover){html body .tsg-pp-top .wd-breadcrumbs a:hover{color:var(--accent)}}
html body .tsg-pp-top .wd-breadcrumbs .wd-last{color:var(--fg-2);font-weight:400;overflow:hidden;text-overflow:ellipsis}
html body .tsg-pp-top .wd-breadcrumbs .wd-delimiter{display:block;flex:none;width:16px;height:16px;margin:0;font-size:0;background:currentColor;-webkit-mask:var(--ti-chevron-sm) center/contain no-repeat;mask:var(--ti-chevron-sm) center/contain no-repeat}
html body .tsg-pp-top .wd-breadcrumbs .wd-delimiter::before,html body .tsg-pp-top .wd-breadcrumbs .wd-delimiter::after{display:none}
html body .tsg-pp-top .wd-single-nav{flex:none;width:auto!important;max-width:none!important;margin:0!important}
html body .tsg-pp-top .wd-products-nav{display:flex;gap:8px}
html body .tsg-pp-top .wd-product-nav-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--border-strong);border-radius:var(--r-pill);color:var(--fg);font-size:0;transition:background var(--t),border-color var(--t),color var(--t)}
html body .tsg-pp-top .wd-product-nav-btn::before{content:"";display:block;width:18px;height:18px;margin:0;background:currentColor;-webkit-mask:var(--ti-chevron-left) center/contain no-repeat;mask:var(--ti-chevron-left) center/contain no-repeat;font-size:0}
html body .tsg-pp-top .wd-product-nav-btn.wd-btn-next::before{-webkit-mask-image:var(--ti-chevron-right);mask-image:var(--ti-chevron-right)}
html body .tsg-pp-top .wd-product-nav-btn.wd-btn-back::before{-webkit-mask-image:var(--ti-grid-18);mask-image:var(--ti-grid-18)}
html body .tsg-pp-top .wd-product-nav-btn::after{display:none}
html body .tsg-pp-top .wd-product-nav-btn:is(:hover,:focus-visible),html body .tsg-pp-top .wd-event-hover:hover>.wd-product-nav-btn{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
/* подсказка соседнего товара — светлая плашка с тенью (макет .pd-nb-pop) */
html body .tsg-pp-top .wd-products-nav .wd-dropdown{left:auto!important;right:0;top:calc(100% + 8px);width:280px;margin:0;padding:10px;border-radius:var(--r-md);background:var(--bg);box-shadow:var(--shadow-lg);display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;transform:none}
html body .tsg-pp-top .wd-event-hover:focus-within>.wd-dropdown{opacity:1;visibility:visible;pointer-events:auto}   /* с клавиатуры — как при наведении (ревью 2026-10-27) */
html body .tsg-pp-top .wd-products-nav .wd-dropdown::before,html body .tsg-pp-top .wd-products-nav .wd-dropdown::after{display:none}
html body .tsg-pp-top .wd-product-nav-thumb{width:56px;height:56px;padding:0;border-radius:var(--r-sm);background:var(--bg-raised);overflow:hidden}
html body .tsg-pp-top .wd-product-nav-thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
html body .tsg-pp-top .wd-product-nav-desc{display:grid;gap:2px;min-width:0;padding:0;text-align:left}
html body .tsg-pp-top .wd-product-nav-desc .wd-entities-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-family:var(--font);font-size:13px;font-weight:400;line-height:1.35;color:var(--fg);text-transform:none}
html body .tsg-pp-top .wd-product-nav-desc .price{margin:0;font-family:var(--font);font-size:14px;font-weight:600;color:var(--fg)}
html body .tsg-pp-top .wd-product-nav-desc .price .amount{color:inherit}
html body .tsg-pp-top .wd-btn-back.wd-tooltip+.tooltip,html body .tsg-pp-top .wd-btn-back~.wd-tooltip-label{display:none}

/* ---------- Две колонки: галерея и вкладки | узкая колонка покупки, закреплена под шапкой (решение Air 2026-10-19) ---------- */
html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp{display:grid!important;grid-template-columns:minmax(0,1fr) 400px;grid-template-areas:"main side" "info side";grid-template-rows:auto 1fr;column-gap:56px;row-gap:56px;margin-top:20px!important;align-items:start}   /* строка 1fr под вкладками забирает лишнюю высоту колонки покупки (известная проблема) */
html body .tsg-pp>.tsg-pp-main{grid-area:main}
html body .tsg-pp>.tsg-pp-info{grid-area:info;min-width:0}
html body .tsg-pp>.tsg-pp-side{grid-area:side}
html body .tsg-pp>.tsg-pp-main{min-width:0}
html body .tsg-pp>:is(.tsg-pp-main,.tsg-pp-info)>.vc_column-inner>.wpb_wrapper{display:grid;grid-template-columns:minmax(0,1fr);gap:56px}   /* minmax(0): карусель Swiper задаёт ширину слайдов от ширины колонки — без него колонка растёт вслед (петля до 789 000 px на 1024) */
html body .tsg-pp>.tsg-pp-side{position:sticky;top:var(--sticky-top);align-self:start}
html body .tsg-pp>.tsg-pp-side>.vc_column-inner>.wpb_wrapper{display:flex;flex-direction:column;gap:20px}
html body .tsg-pp-side .wd-wc-notices:not(:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)),html body .tsg-pp-side .wd-single-meta{display:none}
html body .tsg-pp-side .wd-product-info:empty{display:none}

/* ---------- Галерея: фото в рамке, стрелки, увеличение по нажатию, миниатюры лентой ---------- */
html body .tsg-pp .wd-single-gallery{margin:0!important}
html body .tsg-pp .woocommerce-product-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;min-width:0}
html body .tsg-pp :is(.wd-single-gallery,.wd-gallery-images,.wd-gallery-thumb){min-width:0;max-width:100%}
html body .tsg-pp .wd-gallery-images{position:relative;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;background:var(--bg)}
html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a{display:block;position:relative;aspect-ratio:4/3;cursor:zoom-in}
html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image img{position:absolute;inset:0;width:100%;height:100%;padding:24px;object-fit:contain}   /* вписывается целиком в любую высоту */
html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a:focus-visible{outline-offset:-4px!important;border-radius:var(--r-lg)}   /* кольцо внутри: снаружи срезает рамка */
html body .tsg-pp .wd-gallery-images .wd-nav-arrows .wd-btn-arrow{position:absolute;top:50%!important;width:40px;height:40px;margin:-20px 0 0!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;border:1px solid var(--border-strong);border-radius:50%;background:var(--bg);color:var(--fg);box-shadow:none;transition:background var(--t),color var(--t),border-color var(--t)}
html body .tsg-pp .wd-gallery-images .wd-nav-arrows .wd-btn-arrow.wd-prev{left:12px!important;right:auto!important}
html body .tsg-pp .wd-gallery-images .wd-nav-arrows .wd-btn-arrow.wd-next{right:12px!important;left:auto!important}
html body :is(.tsg-pp,.tsg-pp-recent) .wd-btn-arrow .wd-arrow-inner{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:0;color:inherit}
html body :is(.tsg-pp,.tsg-pp-recent) .wd-btn-arrow .wd-arrow-inner::after{content:"";display:block;width:18px;height:18px;margin:0;background:currentColor;-webkit-mask:var(--ti-chevron-left) center/contain no-repeat;mask:var(--ti-chevron-left) center/contain no-repeat;font-size:0;transform:none}
html body :is(.tsg-pp,.tsg-pp-recent) .wd-btn-arrow.wd-next .wd-arrow-inner::after{-webkit-mask-image:var(--ti-chevron-right);mask-image:var(--ti-chevron-right)}
html body :is(.tsg-pp,.tsg-pp-recent) .wd-btn-arrow .wd-arrow-inner::before{display:none}
@media (hover:hover){html body .tsg-pp .wd-gallery-images .wd-btn-arrow:not(.wd-disabled):hover{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}}
html body .tsg-pp .wd-gallery-images .wd-btn-arrow.wd-disabled{color:var(--border-strong);cursor:default}
html body .tsg-pp .wd-gallery-images.tsg-one .wd-nav-arrows{display:none}   /* одно фото — листать нечего */
/* «Нажмите, чтобы увеличить» — круглая кнопка с лупой в углу фото */
html body .tsg-pp .product-additional-galleries{position:absolute;right:12px;bottom:12px;left:auto;top:auto;z-index:3;width:auto;height:auto;padding:0;margin:0}
html body .tsg-pp .wd-gallery-btn{margin:0}
html body .tsg-pp .wd-gallery-btn>a{display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;min-width:0;padding:0;border-radius:50%;background:var(--bg-raised);color:var(--fg-2);box-shadow:none;transition:background var(--t),color var(--t)}
html body .tsg-pp .wd-gallery-btn>a>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* подпись — для диктора, на экране значок */
html body .tsg-pp .wd-gallery-btn>a::before{content:"";display:block;width:20px;height:20px;margin:0;background:currentColor;-webkit-mask:var(--ti-zoom-in) center/contain no-repeat;mask:var(--ti-zoom-in) center/contain no-repeat;font-size:0}
@media (hover:hover){html body .tsg-pp .wd-gallery-btn>a:hover{background:var(--accent);color:var(--accent-fg)}}
/* счётчик «N / 9» — на телефоне и низком планшете вместо миниатюр (product.js) */
html body .tsg-pp .tsg-pg-count{display:none;position:absolute;left:12px;bottom:12px;z-index:3;padding:4px 10px;border-radius:var(--r-pill);background:var(--bg-raised);font-family:var(--font);font-size:13px;font-weight:500;line-height:1.4;color:var(--fg-2);font-variant-numeric:tabular-nums;pointer-events:none}
/* миниатюры */
html body .tsg-pp .wd-gallery-thumb{margin:0}
html body .tsg-pp .wd-gallery-thumb .wd-carousel{--wd-gap:8px;padding:0;overflow:hidden}
html body .tsg-pp .wd-gallery-thumb .wd-carousel-item{cursor:pointer;opacity:1!important}   /* поле слайда — зазор 8 (--wd-gap), рамка — у картинки: лента по краям фото (ревью 2026-10-27) */
html body .tsg-pp .wd-gallery-thumb .wd-carousel-item img{display:block;width:100%;height:auto;aspect-ratio:1;padding:6px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);object-fit:contain;opacity:1!important;transition:border-color var(--t)}
@media (hover:hover){html body .tsg-pp .wd-gallery-thumb .wd-carousel-item:hover img{border-color:var(--border-strong)}}
html body .tsg-pp .wd-gallery-thumb .wd-carousel-item.wd-thumb-active img{border:2px solid var(--accent);padding:5px}
html body .tsg-pp .wd-gallery-thumb .wd-nav-arrows{display:none}   /* лента миниатюр листается вслед за фото; с клавиатуры — стрелки фото */

/* ---------- Название ---------- */
html body .tsg-pp-side .wd-single-title{width:auto!important;max-width:none!important;margin:0!important}
html body .tsg-pp-side .product_title{margin:0;font-family:var(--font);font-size:32px;font-weight:600!important;line-height:1.2;letter-spacing:-.01em;color:var(--fg);text-transform:none;text-wrap:balance;hyphens:manual;-webkit-hyphens:manual}

/* ---------- Блок покупки: цена и наличие строкой, количество + «В корзину», «Получить КП», «Купить сейчас» ссылкой ---------- */
html body .tsg-pp-buy{padding:24px!important;border:1px solid var(--border);border-radius:var(--r-lg)}
html body .tsg-pp-buy .wpb_wrapper{display:flex;flex-wrap:wrap;align-items:baseline;gap:16px}   /* цена и наличие строкой; не помещаются — наличие ниже */
html body .tsg-pp-buy .wpb_wrapper>*{flex:1 1 100%;min-width:0;margin:0!important}
html body .tsg-pp-buy :is(.wd-single-price,.wd-single-add-cart){display:contents}
html body .tsg-pp-buy p.price{flex:none;margin:0;font-family:var(--font);font-size:32px!important;font-weight:700;line-height:1.35;letter-spacing:-.01em;color:var(--fg);font-variant-numeric:tabular-nums}
html body .tsg-pp-buy p.price :is(.amount,del,ins){font-size:inherit!important;color:inherit}
html body .tsg-pp-buy .tsg-on-request{font-size:24px;font-weight:600;color:var(--fg-2)}
html body .tsg-pp-buy p.stock{flex:none;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;border:0;background:none;font-family:var(--font);font-size:14px;font-weight:500;line-height:1.4;color:var(--success)}
html body .tsg-pp-buy p.stock::before{content:"";display:block;flex:none;width:8px;height:8px;border-radius:50%;background:currentColor;-webkit-mask:none;mask:none;font-size:0}
html body .tsg-pp-buy p.stock.out-of-stock{color:var(--fg-muted)}
html body .tsg-pp-buy p.stock>span{padding:0!important;border:0;border-radius:0;background:none!important;color:inherit!important;font:inherit}
html body .tsg-pp-buy p.stock>span::before{display:none}   /* плашка и галочка WoodMart — вместо них точка */
html body .tsg-pp-buy form.cart{flex:1 1 100%;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;margin:0!important}
html body .tsg-pp-buy form.cart .quantity{display:inline-flex;align-items:center;height:48px;margin:0;border:1px solid var(--border-field);border-radius:var(--r-pill);overflow:visible}
html body .tsg-pp-buy form.cart .quantity input.qty{width:36px;height:46px;min-height:0;padding:0;border:0;background:none;box-shadow:none;text-align:center;font-family:var(--font);font-size:16px;font-weight:600;color:var(--fg);font-variant-numeric:tabular-nums;-moz-appearance:textfield}
html body .tsg-pp-buy form.cart .quantity:has(input.qty:focus){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}   /* фокус поля — граница 2 px */
html body .tsg-pp-buy form.cart .quantity input:is(.minus,.plus){width:40px;height:46px;min-height:0;padding:0;border:0;font-size:0!important;color:transparent!important;box-shadow:none;cursor:pointer;background:var(--fg-2)!important;-webkit-mask:var(--ti-minus) center/18px no-repeat;mask:var(--ti-minus) center/18px no-repeat}
html body .tsg-pp-buy form.cart .quantity input.plus{-webkit-mask-image:var(--ti-plus);mask-image:var(--ti-plus)}
html body .tsg-pp-buy form.cart .quantity input:is(.minus,.plus):disabled{background:var(--border-strong)!important;opacity:1!important;cursor:default}   /* граница 1 / остаток */
@media (hover:hover){html body .tsg-pp-buy form.cart .quantity input:is(.minus,.plus):hover{background:var(--accent)!important}}
html body .tsg-pp-buy form.cart .quantity:has(input.minus:focus-visible,input.plus:focus-visible){outline:2px solid var(--accent);outline-offset:2px}   /* маска значка срезает кольцо кнопки — кольцо вокруг поля */
html body .tsg-pp-buy form.cart .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;min-height:0;margin:0;padding:0 22px;border:1px solid transparent;border-radius:var(--r-pill);font-family:var(--font);font-size:15px;font-weight:500;line-height:1;text-transform:none;letter-spacing:0;box-shadow:none!important}
html body .tsg-pp-buy form.cart .single_add_to_cart_button{background:var(--accent);color:var(--accent-fg)}
html body .tsg-pp-buy form.cart .single_add_to_cart_button::before{content:"";position:static;inset:auto;opacity:1!important;visibility:visible;border:0;border-radius:0;animation:none;transform:none;display:block;flex:none;width:20px;height:20px;margin:0;background:currentColor;-webkit-mask:var(--ti-cart-20) center/contain no-repeat;mask:var(--ti-cart-20) center/contain no-repeat}
@media (hover:hover){html body .tsg-pp-buy form.cart .single_add_to_cart_button:hover{background:var(--accent-hover);color:var(--accent-fg)}}
html body .tsg-pp-buy form.cart .single_add_to_cart_button.loading{opacity:.7}
html body .tsg-pp-buy form.cart .single_add_to_cart_button.loading::after{display:none}   /* ::before WoodMart — значок загрузки (скрыт, absolute); у нас на нём корзина, загрузка — полупрозрачностью */
html body .tsg-pp-buy .tsg-kp{grid-column:1/-1;order:3;display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border:1px solid var(--accent);border-radius:var(--r-pill);background:transparent;color:var(--accent);font-family:var(--font);font-size:15px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;box-shadow:none!important;transition:background var(--t)}
@media (hover:hover){html body .tsg-pp-buy .tsg-kp:hover{background:var(--accent-soft);color:var(--accent)}}
html body .tsg-pp-buy form.cart .wd-buy-now-btn{grid-column:1/-1;order:4;justify-self:start;height:auto;padding:0;border:0;background:none;color:var(--accent);font-size:14px;line-height:1.5;text-decoration:underline!important;text-underline-offset:2px}
@media (hover:hover){html body .tsg-pp-buy form.cart .wd-buy-now-btn:hover{background:none;color:var(--accent-hover);text-decoration-thickness:2px}}
/* нет в наличии: «Получить КП» — главная кнопка, строка о сроке поставки */
html body .tsg-pp-buy .tsg-pp-out{display:grid;gap:16px}
html body .tsg-pp-buy .tsg-pp-out .tsg-kp{order:0}   /* кнопка, под ней строка о сроке (макет #out) */
html body .tsg-pp-buy .tsg-kp.is-main{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
@media (hover:hover){html body .tsg-pp-buy .tsg-kp.is-main:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-fg)}}
html body .tsg-pp-buy .tsg-pp-note{margin:0;font-family:var(--font);font-size:14px;line-height:1.5;color:var(--fg-2);text-wrap:pretty}

/* ---------- Значки: сетка 2×2, иконки Tabler вместо картинок ---------- */
html body .tsg-pp-badges .wpb_wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body .tsg-pp-badges .info-box-wrapper{display:block;width:auto;margin:0!important}
html body .tsg-pp-badges .wd-info-box{display:flex!important;flex-direction:row;align-items:center;gap:10px;margin:0!important;text-align:left}
html body .tsg-pp-badges .box-icon-wrapper{flex:none;margin:0!important}
html body .tsg-pp-badges .info-box-icon{width:22px;height:22px;background:var(--accent);-webkit-mask:var(--ti-truck-22) center/contain no-repeat;mask:var(--ti-truck-22) center/contain no-repeat}
html body .tsg-pp-badges .info-box-icon>*{display:none}
html body .tsg-pp-badges .info-box-wrapper:nth-child(2) .info-box-icon{-webkit-mask-image:var(--ti-building-warehouse);mask-image:var(--ti-building-warehouse)}
html body .tsg-pp-badges .info-box-wrapper:nth-child(3) .info-box-icon{-webkit-mask-image:var(--ti-certificate);mask-image:var(--ti-certificate)}
html body .tsg-pp-badges .info-box-wrapper:nth-child(4) .info-box-icon{-webkit-mask-image:var(--ti-shield-check);mask-image:var(--ti-shield-check)}
html body .tsg-pp-badges .info-box-content{margin:0}
html body .tsg-pp-badges .info-box-title{margin:0;font-family:var(--font);font-size:14px!important;font-weight:500;line-height:1.35!important;color:var(--fg-2);text-transform:none}
/* нет в наличии — «Товары в наличии» не стоит рядом с «По запросу» (решение Air 2026-10-19) */
html body .single-product-page.outofstock .tsg-pp-badges .info-box-wrapper:nth-child(2),html body.cxo-zero-price .tsg-pp-badges .info-box-wrapper:nth-child(2){display:none}

/* ---------- Вкладки (пилюли, как «Популярные / Новинки») и описание ---------- */
html body .tsg-pp .wd-single-tabs{margin:0!important;min-width:0}
html body .tsg-pp-info{color:var(--fg);line-height:1.5}   /* текст без своего правила («Отзывы», «0 отзывов») — как body макета (ревью М10) */
html body .tsg-pp .wd-single-tabs .wd-nav-tabs-wrapper{margin:0 0 24px;padding:4px;margin-inline:-4px;overflow-x:auto;scrollbar-width:none;border:0}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs-wrapper::-webkit-scrollbar{display:none}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs-wrapper{-webkit-mask-image:none!important;mask-image:none!important}   /* затухание края WoodMart срезало «Отзывы» */
html body .tsg-pp .wd-single-tabs .wd-nav-tabs{display:flex;flex-wrap:nowrap;gap:8px;margin:0}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li{flex:none;margin:0}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li>a{display:inline-flex;align-items:center;height:40px;min-height:0;padding:0 16px!important;border:1px solid var(--border);border-radius:var(--r-pill);background:var(--bg);font-family:var(--font);font-size:14px;font-weight:500;line-height:1;color:var(--fg-2);text-transform:none;letter-spacing:0;transition:background var(--t),border-color var(--t),color var(--t)}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li>a::after,html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li>a::before{display:none}   /* подчёркивание WoodMart */
html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li>a,html body .tsg-pp .wd-single-tabs .wd-nav-tabs .nav-link-text{text-decoration:none}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs .nav-link-text::after{display:none}   /* полоска активной вкладки WoodMart — у пилюли её нет */
html body .tsg-pp .wd-single-tabs .wd-nav-tabs .nav-link-text{font:inherit;color:inherit;text-transform:none}
@media (hover:hover){html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li:not(.active)>a:hover{border-color:var(--accent);color:var(--accent)}}
html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li.active>a{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent)}
html body .tsg-pp .wd-single-tabs .wc-tab{max-width:860px;padding:0}
/* описание — наполнение, выводится как есть: строка ~68 знаков, межстрочный 1,6, абзацы через 20 (решения Air 2026-10-19, 2026-10-20) */
html body .tsg-pp .wd-single-tabs .wc-tab.woocommerce-Tabs-panel--description{max-width:60ch;font-family:var(--font);font-size:16px;line-height:1.6;color:var(--fg-2)}
html body .tsg-pp .woocommerce-Tabs-panel--description p{margin:0 0 20px}
html body .tsg-pp .woocommerce-Tabs-panel--description :is(h2,h3,h4){font-family:var(--font);color:var(--fg);text-transform:none}
/* характеристики (вкладка WooCommerce, если заполнены) */
html body .tsg-pp .shop_attributes{font-family:var(--font);font-size:15px;color:var(--fg-2)}
html body .tsg-pp .shop_attributes :is(th,td){padding:10px 0;border-bottom:1px solid var(--border);text-transform:none;font-weight:400}
html body .tsg-pp .shop_attributes th{color:var(--fg);font-weight:500}

/* ---------- Отзывы ---------- */
html body .tsg-pp #reviews{display:grid;gap:20px;margin:0!important;font-family:var(--font)}
html body .tsg-pp #reviews>*{margin-left:0;margin-right:0;width:auto;max-width:none;padding-left:0;padding-right:0}
html body .tsg-pp #reviews .woocommerce-Reviews-title,html body .tsg-pp #reviews .woocommerce-noreviews{margin:0;font-size:16px;font-weight:400;color:var(--fg-2);text-transform:none}
html body .tsg-pp #review_form_wrapper{max-width:640px;padding:24px;border:1px solid var(--border);border-radius:var(--r-lg)}
html body .tsg-pp #review_form .comment-reply-title{display:block;margin:0 0 12px;font-family:var(--font);font-size:19px;font-weight:600;line-height:1.3;color:var(--fg);text-transform:none}
html body .tsg-pp #review_form .comment-notes{margin:0 0 16px;font-size:13px;color:var(--fg-muted)}
html body .tsg-pp #review_form label{margin-bottom:6px;font-size:13px;font-weight:500;color:var(--fg-2)}
html body .tsg-pp #review_form :is(input[type=text],input[type=email],textarea){min-height:48px;padding:12px 16px;border:1px solid var(--border-field);border-radius:var(--r-md);background:var(--bg);font-family:var(--font);font-size:15px;color:var(--fg);box-shadow:none}
html body .tsg-pp #review_form input:is([type=text],[type=email]){border-radius:var(--r-pill)}
html body .tsg-pp #review_form textarea#comment{min-height:120px;resize:vertical}   /* вес выше правила полей с :is() — иначе 48 px */
html body .tsg-pp #review_form :is(input[type=text],input[type=email],textarea):focus{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);outline:0}   /* фокус поля — граница 2 px */
html body .tsg-pp #review_form .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--fg-2)}
html body .tsg-pp #review_form .comment-form-cookies-consent label{margin:0;font-size:14px;font-weight:400}
html body .tsg-pp #review_form .form-submit{margin:0}
html body .tsg-pp #review_form .form-submit input[type=submit]{height:48px;min-height:0;padding:0 22px;border:1px solid var(--accent);border-radius:var(--r-pill);background:transparent;color:var(--accent);font-family:var(--font);font-size:15px;font-weight:500;text-transform:none;letter-spacing:0;box-shadow:none!important}
@media (hover:hover){html body .tsg-pp #review_form .form-submit input[type=submit]:hover{background:var(--accent-soft);color:var(--accent)}}
/* оценка: пустые звёзды — контур --fg-muted, выбранные залиты акцентом (исключение ADR-0003, решение Air 2026-10-19) */
html body .tsg-pp #review_form .comment-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:0}
html body .tsg-pp #review_form .comment-form>*{grid-column:1/-1;margin:0;padding-left:0;padding-right:0;width:auto;float:none}
html body .tsg-pp #review_form .comment-form>:is(.comment-form-author,.comment-form-email){grid-column:auto}   /* имя и email — в ряд (макет .rv-row) */
html body .tsg-pp #review_form .required{color:inherit}   /* звёздочка обязательного поля — цветом подписи, без красного вне токенов */
html body .tsg-pp #review_form input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;margin:1px 0 0;flex:none}
html body .tsg-pp #review_form .comment-form-rating{display:grid;gap:6px;justify-items:start}
html body .tsg-pp #review_form .comment-form-rating label::after{content:none}   /* двоеточие WoodMart — в макете подпись без него */
html body .tsg-pp #review_form .comment-form-rating .stars{margin:0}
html body .tsg-pp #review_form .stars a{width:28px;height:28px;font-size:0}
html body .tsg-pp #review_form .stars a::before{font-size:28px;line-height:28px;color:var(--fg-muted)}
html body .tsg-pp #review_form .stars:is(:hover,.selected) a::before{color:var(--accent)}
html body .tsg-pp #review_form .stars a:hover~a::before,html body .tsg-pp #review_form .stars.selected a.active~a::before{color:var(--fg-muted)}
/* сводка оценок WoodMart — цветами токенов: звёзды — акцент, пустые — --fg-muted (вопрос Air: оставить ли сводку) */
html body .tsg-pp .star-rating::before{color:var(--fg-muted)}
html body .tsg-pp .star-rating span::before{color:var(--accent)}

/* ---------- Недавно просмотренные: лента карточек каталога, заголовок 26 / 20 (не крупнее названия товара) ---------- */
html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp-recent{margin-top:var(--section-y)!important}
html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp-recent:not(:has(.wd-product)){display:none}   /* пустая лента — без отступа перед подвалом */
html body :is(.tsg-pp,.tsg-pp-recent) .swiper-notification{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;opacity:0}   /* «Это последний слайд» — только для диктора */
html body .tsg-pp-recent .wd-products-element{margin:0}
html body .tsg-pp-recent .wd-products-element:not(:has(.product-grid-item)){display:none}
html body .tsg-pp-recent .element-title{margin:0 0 24px;font-family:var(--font);font-size:26px;font-weight:600;line-height:1.2;letter-spacing:-.01em;color:var(--fg);text-transform:none}
html body .tsg-pp-recent .wd-products-element{position:relative}
html body .tsg-pp-recent .wd-products-element>.wd-carousel-inner{position:static}   /* стрелки WoodMart лежат в .wd-carousel-inner — отсчёт от всего блока с заголовком */
html body .tsg-pp-recent .wd-nav-arrows{position:absolute;top:-4px!important;right:0!important;left:auto!important;bottom:auto!important;display:flex;gap:8px;width:auto;height:auto;margin:0!important;transform:none!important}   /* у заголовка, а не по бокам ленты (у WoodMart свои отступы стрелок) */
html body .tsg-pp-recent .wd-nav-arrows .wd-btn-arrow{position:static;width:40px;height:40px;margin:0!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;border:1px solid var(--border-strong);border-radius:50%;background:var(--bg);color:var(--fg)}
html body .tsg-pp-recent .wd-nav-arrows .wd-btn-arrow.wd-lock{display:none}
html body .tsg-pp-recent .element-title{padding-right:104px}
@media (max-width:1023px){html body .tsg-pp-recent .wd-nav-arrows{display:none}html body .tsg-pp-recent .element-title{padding-right:0}}
@media (hover:hover){html body .tsg-pp-recent .wd-nav-arrows .wd-btn-arrow:not(.wd-disabled):hover{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}}
html body .tsg-pp-recent .wd-nav-arrows .wd-btn-arrow.wd-disabled{color:var(--border-strong)}

/* ---------- Адаптив ---------- */
@media (max-height:640px){html body .tsg-pp>.tsg-pp-side{position:static}}   /* низкое окно: колонка выше экрана — не закрепляем (product.js уточняет по высоте блока) */
html body .tsg-pp>.tsg-pp-side.is-static{position:static}
@media (max-width:1100px){html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp{grid-template-columns:minmax(0,1fr) 340px;column-gap:32px}}
@media (max-width:1024px){   /* WoodMart прячет название в крошках с 1024 — разделитель перед ним тоже */
  html body .tsg-pp-top .wd-breadcrumbs .wd-last,html body .tsg-pp-top .wd-breadcrumbs .wd-delimiter:nth-last-child(2){display:none}   /* крошки кончаются разделом — название строкой ниже */
}
@media (max-width:899px){
  html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp{display:flex!important;flex-direction:column;align-items:stretch;gap:24px}   /* stretch: иначе блоки по ширине содержимого — три вкладки выходили за край на 375 */
  html body .tsg-pp>:is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info),html body .tsg-pp>:is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info)>.vc_column-inner,html body .tsg-pp>:is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info)>.vc_column-inner>.wpb_wrapper{display:contents}   /* одна колонка: название над фото */
  html body .tsg-pp :is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info,.vc_column-inner,.wpb_wrapper)::before,html body .tsg-pp :is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info,.vc_column-inner,.wpb_wrapper)::after{display:none}   /* clearfix растворённых обёрток становится элементом ряда — +64 px над названием */
  html body .tsg-pp .wd-single-title{order:1}
  html body .tsg-pp .wd-single-gallery{order:2}
  html body .tsg-pp .wd-single-rating{order:3}
  html body .tsg-pp .tsg-pp-buy{order:4}
  html body .tsg-pp .tsg-pp-badges{order:5}
  html body .tsg-pp .wd-single-tabs{order:6;margin-top:24px!important}
  html body .tsg-pp>:is(.tsg-pp-main,.tsg-pp-side,.tsg-pp-info) :is(.wd-single-gallery,.wd-single-tabs,.tsg-pp-buy,.tsg-pp-badges,.wd-single-title){min-width:0;max-width:100%}
  html body .tsg-pp .wd-wc-notices{order:0}
  html body .tsg-pp-side .product_title{font-size:28px}
  html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a{aspect-ratio:auto;height:clamp(280px,42vh,440px)}   /* цена и наличие — на первом экране (бренд, правило 1) */
}
@media (max-width:767px){
  html body.single-product .main-page-wrapper>.wd-content-layout{padding-top:16px;padding-left:16px;padding-right:16px}
  html body .tsg-pp-top .wd-single-nav{display:none}
  html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp{gap:16px;margin-top:12px!important}
  html body .tsg-pp-side .product_title{font-size:22px;line-height:1.25}
  html body .tsg-pp .wd-gallery-images{border-radius:var(--r-md)}
  html body .tsg-pp .wd-gallery-images .wd-nav-arrows,html body .tsg-pp .wd-gallery-thumb{display:none}
  html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a{height:clamp(180px,34vh,280px)}
  html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image img{padding:14px}
  html body .tsg-pp .tsg-pg-count{display:block}
  html body .tsg-pp-buy{padding:16px!important;border-radius:var(--r-md)}
  html body .tsg-pp-buy p.price{font-size:28px!important}
  html body .tsg-pp .wd-single-tabs .wd-nav-tabs{gap:6px}
  html body .tsg-pp .wd-single-tabs .wd-nav-tabs>li>a{padding:0 12px!important}   /* три вкладки («Документация») помещаются в 343; на 320 ряд прокручивается */
  html body .tsg-pp-badges .wpb_wrapper{gap:10px}
  html body .tsg-pp-badges .info-box-title{font-size:13px!important}
  html body .tsg-pp .wd-single-tabs{margin-top:16px!important}
  html body .tsg-pp #review_form_wrapper{padding:16px}
  html body .tsg-pp #review_form .comment-form{grid-template-columns:minmax(0,1fr)}
  html body .tsg-pp-recent .element-title{font-size:20px;margin-bottom:16px}
}
/* низкий планшет: без миниатюр, со счётчиком (решение Air 2026-10-19) */
@media (min-width:768px) and (max-width:899px) and (max-height:800px){
  html body .tsg-pp .wd-gallery-thumb{display:none}
  html body .tsg-pp .tsg-pg-count{display:block}
  html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a{height:clamp(220px,34vh,440px)}
}
/* телефон в альбомной ориентации: фото слева, название и покупка справа (решение Air 2026-10-19) */
@media (max-width:899px) and (orientation:landscape) and (max-height:500px){
  html body .tsg-pp-top .wd-single-nav{display:none}
  html body .single-product-page>.wpb-content-wrapper>.vc_row.tsg-pp{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"gallery title" "gallery buy" "badges badges" "tabs tabs";column-gap:20px;row-gap:12px;margin-top:12px!important}
  html body .tsg-pp .wd-single-title{grid-area:title}
  html body .tsg-pp .wd-single-gallery{grid-area:gallery}
  html body .tsg-pp .tsg-pp-buy{grid-area:buy}
  html body .tsg-pp .tsg-pp-badges{grid-area:badges}
  html body .tsg-pp .wd-single-tabs{grid-area:tabs}
  html body .tsg-pp-side .product_title{font-size:20px;line-height:1.25}
  html body .tsg-pp .wd-gallery-images .woocommerce-product-gallery__image>a{height:calc(100dvh - var(--tsg-pp-chrome,210px));min-height:140px}   /* --tsg-pp-chrome — верх галереи + нижняя панель (product.js): фото над панелью (ревью В-5) */
  html body .tsg-pp .wd-gallery-images .wd-nav-arrows,html body .tsg-pp .wd-gallery-thumb{display:none}
  html body .tsg-pp .tsg-pg-count{display:block}
  html body .tsg-pp-buy{padding:16px!important}
  html body .tsg-pp-buy .wpb_wrapper{gap:12px}
  html body .tsg-pp-buy p.price{font-size:24px!important}
}

/* ---------- Увеличенное фото (PhotoSwipe WoodMart) — светлое окно макета: счётчик и закрыть сверху, круглые стрелки ---------- */
html body .pswp{z-index:99990}   /* выше баннера cookie и «колеса подарков», ниже окна заявки */
html body .pswp__bg{background:var(--bg);opacity:1!important}
html body .pswp__button--zoom,html body .pswp__preloader{display:none!important}   /* лежали поверх «Закрыть» (ревью К-1); масштаб — двойным нажатием и жестом */
html body .pswp__top-bar{height:69px;padding:12px 16px;background:var(--bg)!important;border-bottom:1px solid var(--border);opacity:1!important}
html body .pswp__counter{position:absolute;left:16px;top:0;height:68px;padding:0;line-height:68px;font-family:var(--font);font-size:14px;font-weight:500;color:var(--fg-2);opacity:1;font-variant-numeric:tabular-nums}
html body .pswp__button--share,html body .pswp__button--fs,html body .pswp__share-modal,html body .pswp__caption{display:none!important}   /* в макете — только счётчик и «закрыть» */
html body .pswp__button{opacity:1!important;box-shadow:none}
html body .pswp__button--close{position:absolute;right:16px;top:12px;width:44px;height:44px;margin:0;border-radius:50%;background:var(--bg-raised)!important;color:var(--fg)}
html body .pswp__button--close::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:var(--ti-x-20) center/contain no-repeat;mask:var(--ti-x-20) center/contain no-repeat}
html body .pswp__button--arrow--left,html body .pswp__button--arrow--right{top:50%;width:40px;height:40px;margin-top:-20px;border:1px solid var(--border-strong);border-radius:50%;background:var(--bg)!important;color:var(--fg);box-shadow:none;visibility:visible!important;transition:background var(--t),color var(--t),border-color var(--t)}
html body .pswp__button--arrow--left{left:16px}
html body .pswp__button--arrow--right{right:16px}
html body .pswp__button--arrow--left::before,html body .pswp__button--arrow--right::before{content:"";position:absolute;inset:0;top:0;left:0;margin:auto;width:18px;height:18px;background:currentColor!important;-webkit-mask:var(--ti-chevron-left) center/contain no-repeat;mask:var(--ti-chevron-left) center/contain no-repeat}
html body .pswp__button--arrow--right::before{-webkit-mask-image:var(--ti-chevron-right);mask-image:var(--ti-chevron-right)}
@media (hover:hover){html body .pswp__button:is(--arrow--left,--arrow--right):hover,html body .pswp__button--arrow--left:hover,html body .pswp__button--arrow--right:hover{background:var(--accent)!important;border-color:var(--accent);color:var(--accent-fg)}html body .pswp__button--close:hover{background:var(--bg-sunken)!important}}
html body .pswp__button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
html body .pswp__ui--idle .pswp__top-bar,html body .pswp__ui--idle .pswp__button--arrow--left,html body .pswp__ui--idle .pswp__button--arrow--right{opacity:1!important}   /* не прятать управление при бездействии */
html body .pswp.tsg-one :is(.pswp__button--arrow--left,.pswp__button--arrow--right){display:none}
@media (max-width:767px){   /* телефон — стрелки внизу по центру, плюс свайп */
  html body .pswp__button--arrow--left,html body .pswp__button--arrow--right{top:auto;bottom:16px;margin-top:0}
  html body .pswp__button--arrow--left{left:calc(50% - 52px)}
  html body .pswp__button--arrow--right{right:calc(50% - 52px)}
}
