/* =================== v3 (12 Oct 2026): research-led e-commerce layer (loaded after vd2.css) =================== */
/* more air: section rhythm on an 8 px scale */
.vd-sec{margin:clamp(56px,7vw,104px) 0}

/* hero: copy + a tabbed showcase (no auto-forward: NN/g, Baymard) */
.vd-hero2{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,4vw,64px);align-items:center;padding:clamp(28px,4vw,56px) 0 8px}
.vd-hero2 .vd-h1{font-size:clamp(34px,4.2vw,56px);max-width:15ch;color:var(--forest-d)}
.vd-hero2 .vd-lead{margin-top:18px}
.vd-slider{position:relative}
.vd-slides{position:relative;aspect-ratio:5/4;border-radius:var(--r-xl);overflow:hidden}
.vd-slide{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;background:var(--bg,var(--chalk));text-decoration:none!important;color:var(--ink)!important;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility .5s}
.vd-slide.is-on{opacity:1;visibility:visible}
.vd-slide__img{position:absolute;inset:6% 6% 22% 6%;display:flex;align-items:center;justify-content:center;gap:4%}
.vd-slide__img img{max-height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(11,60,93,.14));transform:translateY(14px) scale(.98);transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.vd-slide.is-on .vd-slide__img img{transform:none}
.vd-slide__img--pair img{max-width:46%}
.vd-slide__img--trio img{max-width:31%}
.vd-slide__cap{position:relative;margin:0 20px 20px;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:14.5px;line-height:1.4;color:var(--text);max-width:420px}
.vd-slide__cap b{display:block;font-weight:500;font-size:16px;color:var(--ink)}
.vd-tabs{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.vd-dot{border:0;background:transparent;box-shadow:inset 0 0 0 1px var(--line);border-radius:999px;padding:10px 18px;font:500 15px/1 var(--f);color:var(--text);cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.vd-dot:hover{box-shadow:inset 0 0 0 1px var(--forest);color:var(--forest)}
.vd-dot.is-on{background:var(--forest-d);color:#fff;box-shadow:none}

/* trust line: no boxes, just air */
.vd-trust{list-style:none;margin:clamp(28px,4vw,48px) 0 0;padding:22px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.vd-trust li{display:flex;gap:12px;align-items:center;font-size:14.5px;line-height:1.35;color:var(--mute)}
.vd-trust b{display:block;font-weight:500;color:var(--ink)}
.vd-trust svg{flex:none;width:30px;height:30px;color:var(--forest)}

/* scrolling product rows (home, gift guide, «Вы смотрели») */
.vd-rowwrap{position:relative}
.vd-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * 20px) / 4);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.vd-row::-webkit-scrollbar{display:none}
.vd-row>*{scroll-snap-align:start}
.vd-rowbtn{position:absolute;top:calc(50% - 60px);width:44px;height:44px;border-radius:50%;border:0;background:#fff;box-shadow:0 6px 18px rgba(11,60,93,.14);display:none;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.vd-rowbtn svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2}
.vd-rowbtn--prev{left:-22px}.vd-rowbtn--next{right:-22px}
.vd-rowwrap.has-more .vd-rowbtn{display:flex}
.vd-rowbtn:disabled{opacity:0;pointer-events:none}

/* cards: link + favourite button; second photo on hover */
.vd-card{position:relative}
.vd-card__link{display:flex;flex-direction:column;flex:1;text-decoration:none!important;color:var(--ink)!important}
.vd-card__img{position:relative;background:var(--chalk)!important}
.vd-card__img img{position:absolute;inset:0;padding:9%!important;transition:opacity .35s ease,transform .35s ease}
/* the hover photo sits at the same size and padding as the main one: it used to fill the whole tile (cover, no padding),
   which zoomed in and upscaled it into a blur (Ilya, 1 Nov 2026) */
.vd-card__img img.vd-card__alt{opacity:0;padding:9%!important;object-fit:contain}
@media (hover:hover){.vd-card:hover .vd-card__img img.vd-card__alt{opacity:1}.vd-card:hover .vd-card__img img:not(.vd-card__alt){opacity:0}}
.vd-card:hover .vd-card__img img{transform:none}
.vd-badge{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:999px;background:#fff;font:500 12.5px/1 var(--f);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.vd-fav{position:absolute;right:10px;top:10px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:transform .2s}
.vd-fav svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.8;transition:fill .2s,stroke .2s}
.vd-fav:hover svg{stroke:var(--forest)}
.vd-fav.is-on svg{fill:var(--apricot);stroke:var(--apricot)}
.vd-fav.pop{transform:scale(1.18)}
.vd-fav--text{position:static;width:auto;height:auto;border-radius:var(--r-m);background:transparent;gap:8px;padding:10px 14px;box-shadow:inset 0 0 0 1px var(--line);font:500 15px/1 var(--f);color:var(--ink)}
.vd-fav-head{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-right:4px;color:var(--ink)}
.vd-fav-head svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.vd-fav-head.has svg{fill:var(--apricot);stroke:var(--apricot)}
.vd-fav-head span{position:absolute;right:2px;top:2px;min-width:16px;height:16px;border-radius:8px;background:var(--apricot);color:#fff;font:600 10px/16px var(--f);text-align:center}
.vd-fav-head span:empty{display:none}

/* category tiles: product on the neutral, no colour panels */
.vd-cat__img{background:var(--chalk)!important}
.vd-cat__img img{padding:12%!important}

/* desk height picker */
.vd-hcalc{border-radius:var(--r-xl);background:var(--forest-l);padding:clamp(20px,3vw,32px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 24px;align-items:center}
.vd-hcalc__in{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.vd-hcalc__in label{font:500 16px var(--f);color:var(--ink)}
.vd-hcalc__in output{font:600 22px/1 var(--f);color:var(--forest-d)}
.vd-hcalc input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--forest);height:28px}
.vd-hcalc__fig{width:100%;height:auto;max-height:180px}
.vd-hcalc__fig line{stroke:var(--grey);stroke-width:2}
.vd-hcalc__fig rect{fill:var(--forest)}
.vd-hcalc__fig .vd-hc-chair rect{fill:var(--logo)}
.vd-hcalc__fig g{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.vd-hcalc__res{display:grid;gap:12px}
.vd-hcalc__res div{background:#fff;border-radius:14px;padding:14px 16px}
.vd-hcalc__res b{display:block;font:600 26px/1.1 var(--f);color:var(--ink)}
.vd-hcalc__res span{font-size:14px;color:var(--mute)}
.vd-hcalc__note{grid-column:1/-1;margin:0;font-size:15px;color:var(--ink)}
.vd-hcalc.is-fit .vd-hcalc__note:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:#2E9B57;margin-right:8px;vertical-align:1px}
.vd-hcalc .vd-small{grid-column:1/-1;margin:0}

/* sofa build switcher */
.vd-bs{display:grid;gap:14px}
.vd-bs__stage{position:relative;aspect-ratio:4/3;border-radius:var(--r-xl);background:var(--chalk);overflow:hidden}
.vd-bs__img{position:absolute;inset:8%;margin:0;opacity:0;transform:scale(.97);transition:opacity .45s,transform .45s}
.vd-bs__img.is-on{opacity:1;transform:none}
.vd-bs__img img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 16px 16px rgba(11,60,93,.12))}
.vd-bs__chips{display:flex;flex-wrap:wrap;gap:8px}
.vd-chip{border:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border-radius:999px;padding:9px 15px;font:500 14.5px/1 var(--f);color:var(--text);cursor:pointer}
.vd-chip:hover{box-shadow:inset 0 0 0 1px var(--forest);color:var(--forest)}
.vd-chip.is-on{background:var(--forest-d);color:#fff;box-shadow:none}

/* ready-made sets */
.vd-sets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.vd-set h3{margin-top:16px}
.vd-set p{margin:6px 0 10px;font-size:15px}
.vd-set ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:15px}
.vd-set ul a{color:var(--forest);text-decoration:none}
.vd-set ul a:hover{text-decoration:underline}
.vd-set__pics{position:relative;aspect-ratio:4/3;border-radius:var(--r-xl);overflow:hidden}
.vd-set__p{position:absolute;display:block}
.vd-set__p img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px rgba(11,60,93,.12))}
.vd-set__pics--3 .vd-set__p--0{left:4%;top:6%;width:56%;height:80%}
.vd-set__pics--3 .vd-set__p--1{right:4%;top:10%;width:42%;height:40%}
.vd-set__pics--3 .vd-set__p--2{right:6%;bottom:8%;width:42%;height:40%}
.vd-set__pics--2 .vd-set__p--0{left:5%;top:12%;width:52%;height:70%}
.vd-set__pics--2 .vd-set__p--1{right:5%;top:22%;width:48%;height:66%}

/* comparison table */
.vd-cmp{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-l)}
.vd-cmp table{border-collapse:collapse;width:100%;min-width:860px;font-size:14.5px;margin:0}
.vd-cmp th,.vd-cmp td{padding:12px 14px;text-align:center;border-bottom:1px solid var(--line)}
.vd-cmp tbody th{text-align:left;font-weight:500;color:var(--ink);white-space:nowrap;position:sticky;left:0;background:#fff}
.vd-cmp thead th{vertical-align:bottom;font-weight:500}
.vd-cmp thead a{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-size:14px;line-height:1.25}
.vd-cmp thead img{width:96px;height:72px;object-fit:contain;background:var(--chalk);border-radius:10px;padding:4px}
.vd-cmp tr:last-child td,.vd-cmp tr:last-child th{border-bottom:0}
.vd-cmp .vd-card__status{font-size:13px}

/* product page: info list, actions, story sections */
.vd-pdp-info{list-style:none;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--line);display:grid;gap:12px}
.vd-pdp-info li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.4;color:var(--mute)}
.vd-pdp-info b{display:block;font-weight:500;color:var(--ink)}
.vd-pdp-info b a{color:var(--forest)}
.vd-pdp-info svg{flex:none;width:24px;height:24px;color:var(--forest);margin-top:1px}
.vd-pdp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.vd-share{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r-m);padding:10px 14px;font:500 15px/1 var(--f);color:var(--ink);cursor:pointer}
.vd-share svg,.vd-fav--text svg{width:18px;height:18px}
.vd-share:hover,.vd-fav--text:hover{box-shadow:inset 0 0 0 1px var(--forest)}
.vd-pdp{margin:56px 0 10px}
.vd-pdp-sec{margin:0 0 clamp(48px,6vw,80px)}
.vd-inbox{margin-top:24px;border-radius:var(--r-l);background:var(--chalk);padding:18px 20px}
.vd-inbox .vd-list{margin-top:12px}
.vd-steps--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.vd-pdp .vd-steps li,.vd-catstory .vd-steps li{background:var(--chalk)}

/* empty states */
.vd-empty{max-width:520px;padding:28px;border-radius:var(--r-xl);background:var(--chalk)}
.vd-empty b{display:block;font:600 20px/1.3 var(--f);color:var(--ink)}
.vd-empty p{margin:8px 0 18px}

/* navy panel */
.vd-panel{background:var(--forest-d)}
.vd-panel .vd-btn{background:#fff;color:var(--forest-d)!important}

@media (max-width:1100px){.vd-row{grid-auto-columns:calc((100% - 2 * 20px) / 3)}.vd-sets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){
  .vd-hero2{grid-template-columns:minmax(0,1fr)}
  .vd-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vd-row{grid-auto-columns:calc((100% - 16px) / 2.2);gap:16px}
  .vd-rowbtn{display:none!important}
  .vd-hcalc{grid-template-columns:minmax(0,1fr)}
  .vd-sets{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .vd-row{grid-auto-columns:calc((100% - 12px) / 1.7);gap:12px}
  .vd-trust{grid-template-columns:minmax(0,1fr)}
  .vd-slides{aspect-ratio:4/5}
  .vd-slide__img{inset:6% 4% 28% 4%}
  .vd-steps--2{grid-template-columns:minmax(0,1fr)}
}

/* WoodMart styles every <button> (uppercase, grey fill, min-height, relative): reset ours */
html body button.vd-fav,html body button.vd-dot,html body button.vd-chip,html body button.vd-share,html body button.vd-rowbtn{
  text-transform:none;letter-spacing:0;min-height:0;line-height:1;font-family:var(--f);box-sizing:border-box}
html body .vd-card button.vd-fav{position:absolute;right:10px;top:10px;width:40px;height:40px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:none}
html body .vd-card button.vd-fav:hover{background:#fff}
html body button.vd-fav--text{position:static;width:auto;height:auto;padding:10px 14px;border-radius:var(--r-m);background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);font-weight:500;font-size:15px}
html body button.vd-dot{padding:10px 18px;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--text);font-weight:500;font-size:15px}
html body button.vd-dot.is-on{background:var(--forest-d);color:#fff;box-shadow:none}
html body button.vd-chip{padding:9px 15px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);color:var(--text);font-weight:500;font-size:14.5px}
html body button.vd-chip.is-on{background:var(--forest-d);color:#fff;box-shadow:none}
html body button.vd-share{padding:10px 14px;border-radius:var(--r-m);background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);font-weight:500;font-size:15px}
html body button.vd-rowbtn{position:absolute;padding:0;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(11,60,93,.14)}

/* =================== v4: fixes, catalogue drop-down, mobile bar, filter chips, search, 404 =================== */
.vd-seen[hidden],[data-vd-seen][hidden]{display:none!important}
.vd-shelf+.vd-shelf,.vd-pagehead+.vd-shelf{margin-top:clamp(40px,5vw,72px)}
.vd-shelf .vd-sh>div .vd-lead{max-width:60ch}

/* catalogue drop-down under the header (desktop) */
.vd-mega{position:fixed;left:0;right:0;z-index:400;background:#fff;border-top:1px solid var(--line);box-shadow:0 24px 40px -24px rgba(11,60,93,.28);padding:22px 0 26px}
.vd-mega[hidden]{display:none}
.vd-mega .vd{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px}
.vd-mega__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.vd-mega__cat{display:flex;align-items:center;gap:14px;padding:10px;border-radius:14px;text-decoration:none!important;color:var(--ink)!important}
.vd-mega__cat:hover{background:var(--chalk)}
.vd-mega__img{flex:none;width:72px;height:72px;border-radius:12px;background:var(--chalk);display:flex;align-items:center;justify-content:center;overflow:hidden}
.vd-mega__img img{width:100%;height:100%;object-fit:contain;padding:8px}
.vd-mega__cat b{display:block;font-weight:500;font-size:16px}
.vd-mega__cat small{font-size:13.5px;color:var(--mute)}
.vd-mega__side{display:grid;align-content:start;gap:4px;border-left:1px solid var(--line);padding-left:24px}
.vd-mega__side a{padding:8px 0;color:var(--ink);text-decoration:none;font-weight:500}
.vd-mega__side a:hover{color:var(--forest)}

/* mobile bottom bar (replaces the theme toolbar) */
.vd-mbar{display:none}
@media (max-width:1024px){
  html body .wd-toolbar{display:none!important}
  .vd-mbar{position:fixed;left:0;right:0;bottom:0;z-index:300;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .vd-mbar a{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;color:var(--text);text-decoration:none;font:500 11.5px/1.1 var(--f)}
  .vd-mbar svg{width:23px;height:23px}
  .vd-mbar a.is-on,.vd-mbar a:hover{color:var(--forest)}
  .vd-mbar__fav i{position:absolute;top:2px;left:calc(50% + 6px);min-width:16px;height:16px;border-radius:8px;background:var(--apricot);color:#fff;font:600 10px/16px var(--f);font-style:normal;text-align:center}
  .vd-mbar__fav i:empty{display:none}
  body{padding-bottom:64px}
}

/* filter chips above a category grid */
.vd-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.vd-card.is-hidden{display:none}

/* search box (404) */
.vd-search{display:flex;gap:10px;max-width:560px;margin-top:22px}
.vd-search input[type=search]{flex:1;min-height:48px;border:1px solid var(--line);border-radius:var(--r-m);padding:0 16px;font:400 16px var(--f)}
.vd-404 .vd-pagehead{padding-top:clamp(40px,6vw,80px)}

/* =================== v5 (1 Nov 2026, Ilya: "no grey background, seamless for the products, less dead space") ===================
   Every surface that holds a product cut-out is the page white, so the transparent images sit in the page with no tile around
   them. Product frames hug the products (4:3, a few % padding) and the section rhythm is tighter. Text panels (notes, steps,
   the height calculator, the navy panel) keep their tints: they are not product surfaces. */
.vd-card__img,.vd-cat__img,.vd-wide__img,.vd-bs__stage,.vd-doc__img,.vd-mega__img,.vd-set__pics,.vd-slide,
.vd-feature__media,.single-product .wd-gallery-images .wd-carousel-container{background:#fff!important}
.vd-card__img{aspect-ratio:4/3;border-radius:0}
.vd-card__img img,.vd-card__img img.vd-card__alt{padding:2%!important}
.vd-cat__img{border-radius:0}
.vd-cat__img img{padding:3%!important}
.vd-feature__media{border-radius:0}
.vd-feature__media img{padding:0}
.vd-mega__img{background:transparent!important}
.vd-mega__img img{padding:2px}
.vd-cmp thead img{background:#fff;padding:0}
.single-product .wd-gallery-thumb .wd-carousel-item img{background:#fff;border:1px solid var(--line)}
/* product gallery: one 4:3 frame for every slide. The carousel took the height of its tallest slide (portrait booklet pages,
   1125 px at 1440), which left ~630 px of white under the wide box photo */
.single-product .wd-gallery-images .woocommerce-product-gallery__image{aspect-ratio:4/3;margin:0}
.single-product .wd-gallery-images .woocommerce-product-gallery__image>a{display:block;width:100%;height:100%}
.single-product .wd-gallery-images .woocommerce-product-gallery__image img{width:100%!important;height:100%!important;object-fit:contain}
html body .vd-card button.vd-fav{box-shadow:inset 0 0 0 1px var(--line)}
/* hero: the product on the page, the caption as plain text under it */
.vd-slides{border-radius:0}
.vd-slide__img{inset:2% 2% 18% 2%}
.vd-slide__cap{margin:0;padding:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* category header: text and product on the page, no panel */
.vd-banner{background:#fff!important;border-radius:0;padding:0;min-height:0;margin:0 0 20px}
.vd-banner__img img{max-height:260px}
/* tighter rhythm */
.vd-sec{margin:clamp(40px,5vw,72px) 0}
.vd-shelf+.vd-shelf,.vd-pagehead+.vd-shelf{margin-top:clamp(32px,4vw,56px)}
.vd-shelf--more{margin:clamp(40px,5vw,64px) 0 0}
.vd-catstory{margin:clamp(36px,4.5vw,60px) 0 0}
.vd-pdp{margin:40px 0 10px}
.vd-pdp-sec{margin:0 0 clamp(36px,4.5vw,60px)}
.vd-sh{margin-bottom:16px}
.vd-card__body{padding-top:10px}
@media (max-width:860px){
  .vd-banner__img{order:0}
  .vd-banner__img img{max-height:200px}
}
@media (max-width:600px){
  .vd-slides{aspect-ratio:4/3}                                 /* a wide product in a tall 4:5 frame left a gap above and below */
  .vd-banner__img{display:none}                                /* the same products are the grid right under it */
  .vd-cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}   /* three categories in one row, no orphan tile */
  .vd-cat__name{font-size:14px;line-height:1.25}
  .vd-cat__n{font-size:12.5px}
}

/* v6, 2 Nov 2026: showroom cards carry the price and «Скоро в продаже» together */
.vd-card__sell{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.vd-card__sell .vd-card__status{font-size:12.5px;line-height:1.2;gap:6px}
.vd-card__sell .vd-card__status:before{width:6px;height:6px;flex:none}
.vd-wide__foot .vd-card__sell .vd-card__status{font-size:14px}
.vd-soon__note{margin-top:8px!important;font-size:12.5px;line-height:1.35;opacity:.75}
.vd-soon__cta{margin:12px 0 4px!important}
