/* Product page «Галерея» (pdp.js). Colors come from the blue-pearl theme tokens, so night mode follows. */
.pdp2{--pdp-gutter:max(28px,calc((100% - 1320px)/2));--pdp-display:var(--sans);padding:0 0 0!important;background:var(--paper)}
.pdp2 a{color:inherit}
.pdp2-ic{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pdp2-eyebrow{display:block;font-size:11.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.pdp2-h2{margin:0;font-family:var(--pdp-display);font-weight:300;font-size:clamp(30px,3.4vw,46px);line-height:1.06;letter-spacing:-.025em;color:var(--ink);text-wrap:balance}

/* Hero: the photo 4:3 on the left in the grid of the page, the buy panel on the right (stage B, 24.10.2026: the photo
   used to fill the whole window under a floating panel and looked monolithic). On a phone the photo is 4:3 too. */
.pdp2-hero{position:relative;display:grid;grid-template-columns:minmax(0,7fr) minmax(360px,5fr);grid-template-areas:"crumbs crumbs" "media panel";column-gap:clamp(32px,4vw,56px);row-gap:14px;align-items:start;padding:18px var(--pdp-gutter) 48px;background:var(--paper)}
.pdp2-hero>.product-media{grid-area:media;position:relative;min-width:0}
.pdp2-hero .bp-product-gallery .bp-gallery-stage{height:auto;aspect-ratio:4/3;border-radius:6px;background:var(--soft)}
.pdp2-hero .bp-gallery-slide>img{object-fit:cover;object-position:50% 72%}
.pdp2-hero>.product-media>.bp-gallery-empty{height:auto;min-height:0;aspect-ratio:4/3;border-radius:6px;background:linear-gradient(135deg,var(--soft),var(--hero));color:var(--muted)}
.pdp2-hero .bp-gallery-thumbs{display:none}
/* Thumbnails under the photo on a computer: 160 px copies (img.js), the current one is marked (gallery.css) */
@media (min-width:861px){.pdp2-hero .bp-gallery-thumbs{display:flex;margin-top:12px}}
.pdp2-hero::after{content:"";display:none;position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgb(15 24 30/.34) 0%,rgb(15 24 30/0) 34%),linear-gradient(0deg,rgb(15 24 30/.42) 0%,rgb(15 24 30/0) 26%),linear-gradient(180deg,rgb(15 24 30/.28) 0%,rgb(15 24 30/0) 18%)}
.pdp2-hero .bp-gallery-arrow,.pdp2-hero .bp-gallery-expand,.pdp2-hero .bp-gallery-counter{z-index:3;background:rgb(255 255 255/.86);color:#1f2d36;border:1px solid rgb(255 255 255/.6);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:none}
.pdp2-hero .bp-gallery-arrow:hover:not(:disabled),.pdp2-hero .bp-gallery-expand:hover{background:#fff}
.pdp2-hero .bp-gallery-counter{left:16px;bottom:16px;min-height:44px;padding:0 16px;border-radius:999px;font-size:13px}
.pdp2-hero .bp-gallery-arrow{top:auto;bottom:16px;transform:none}
.pdp2-hero .bp-gallery-prev{left:100px}
.pdp2-hero .bp-gallery-next{left:152px;right:auto}
.pdp2-hero .bp-gallery-expand{left:204px;right:auto;bottom:16px;border-radius:50%}
.pdp2-hero .bp-gallery-stage:not(:has(.bp-gallery-counter)) .bp-gallery-expand{left:16px}
.pdp2-crumbs{grid-area:crumbs;position:relative;z-index:2;color:var(--muted);font-size:13px;font-weight:500;letter-spacing:.02em}
.pdp2-crumbs a{text-decoration:none}
.pdp2-crumbs a:hover{text-decoration:underline}
.pdp2-hero-inner{grid-area:panel;position:relative;z-index:2;min-width:0}
.pdp2-panel{width:100%;display:grid;gap:16px;padding:0;background:none;color:var(--ink)}
/* Accessories: the whole item on a light background, not a crop of it */
.pdp2-item .pdp2-hero .bp-gallery-stage{background:var(--surface)}
.pdp2-item .pdp2-hero .bp-gallery-slide>img{object-fit:contain;object-position:50% 50%;padding:4%}
.pdp2-panel-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.pdp2-panel-top .pdp2-eyebrow{padding-top:4px}
.pdp2 .pdp2-fav{position:static;flex:none;width:40px;height:40px;margin:-6px -8px 0 0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);box-shadow:none;cursor:pointer}
.pdp2 .pdp2-fav[aria-pressed=true]{color:#c0533a}
.pdp2 .pdp2-fav[aria-pressed=true] svg{fill:currentColor}
.pdp2-title{margin:-6px 0 0;font-family:var(--pdp-display);font-weight:300;font-size:29px;line-height:1.16;letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
.pdp2-decors{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 14px}
.pdp2-swatches{display:flex;flex-wrap:wrap;gap:8px}
.pdp2-swatch{display:block;width:30px;height:30px;border-radius:50%;overflow:hidden;background:var(--wood);box-shadow:inset 0 0 0 1px rgb(0 0 0/.08);transition:transform .15s}
.pdp2-swatch:hover{transform:translateY(-2px)}
.pdp2-swatch img{display:block;width:100%;height:100%;object-fit:cover}
.pdp2-swatch[aria-current=true]{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ink)}
.pdp2-swatch-more{display:grid;place-items:center;height:30px;padding:0 8px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:700;text-decoration:none}
.pdp2-decor-name{font-size:13px;color:var(--muted);text-align:right;line-height:1.35}
.pdp2-decor-name b{color:var(--ink);font-weight:600}
.pdp2-price{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding-top:16px;border-top:1px solid var(--line)}
.pdp2-price>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pdp2-price b{font-size:36px;font-weight:600;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.pdp2-price span{font-size:14px;color:var(--muted)}
.pdp2-price p{margin:0;font-size:13px;line-height:1.35;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.pdp2-title.is-long{font-size:25px}
.pdp2-calc{display:grid;gap:10px;padding:12px 14px;background:var(--paper)}
.pdp2-calc-row{display:grid;grid-template-columns:minmax(0,1fr) 74px 116px;gap:8px}
.pdp2-calc.is-count .pdp2-calc-row{grid-template-columns:116px}
.pdp2 .pdp2-calc .pack-stepper{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;height:42px;margin:0;padding:0;border:1px solid var(--line);border-radius:0;background:var(--surface)}
.pdp2 .pdp2-calc .pack-stepper button{min-width:0;min-height:0;height:100%;padding:0;border:0;background:transparent;color:var(--ink);font-size:18px;cursor:pointer}
.pdp2 .pdp2-calc .pack-stepper button:disabled{opacity:.35;cursor:default}
.pdp2 .pdp2-calc .pack-stepper b{min-width:0;min-height:0;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
.pdp2-field{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.pdp2-input{display:flex;align-items:center;height:42px;border:1px solid var(--line);background:var(--surface)}
.pdp2-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.pdp2-input input{flex:1;min-width:0;height:100%;padding:0 12px;border:0;background:transparent;color:var(--ink);font:600 16px var(--sans);outline:none}
.pdp2-input i{padding-right:12px;font-style:normal;font-size:14px;color:var(--muted)}
.pdp2-field select{height:42px;min-width:0;padding:0 6px;border:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--ink);font:600 15px var(--sans)}
.pdp2-qty-sum{margin:0;font-size:13px;line-height:1.4}
.pdp2-qty-sum b{font-weight:700;font-variant-numeric:tabular-nums}
.pdp2-qty-sum small{font-size:12.5px;color:var(--muted)}
.pdp2-cta{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:56px;padding:0 20px;border:0;border-radius:3px;background:var(--primary);color:var(--on-primary);font:700 16px var(--sans);letter-spacing:.01em;cursor:pointer;transition:background .18s}
.pdp2-cta:hover{background:var(--primary-hover)}
.pdp2-cta span{font-variant-numeric:tabular-nums}
.pdp2-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.pdp2-stock{display:flex;align-items:center;gap:8px;color:var(--ink)}
.pdp2-stock::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#c59135}
.pdp2-stock.is-in::before{background:#2f8a5c}
.pdp2-meta a{display:flex;align-items:center;gap:5px;flex:none;font-weight:700;color:var(--primary);text-decoration:none}
.pdp2-meta a:hover{text-decoration:underline}
.pdp2-trust{display:flex;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}

/* Key numbers */
.pdp2-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));background:var(--surface);border-bottom:1px solid var(--line)}
.pdp2-facts div{display:grid;gap:8px;align-content:start;padding:44px var(--pdp-gutter) 40px 48px;border-right:1px solid var(--line)}
.pdp2-facts div:first-child{padding-left:var(--pdp-gutter)}
.pdp2-facts div:last-child{border-right:0}
.pdp2-facts b{font-family:var(--pdp-display);font-weight:200;font-size:64px;line-height:1;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.pdp2-facts b small{margin-left:6px;font-size:24px;font-weight:300;letter-spacing:0}
.pdp2-facts span{max-width:28ch;font-size:14px;line-height:1.45;color:var(--muted)}

/* Texture and specs */
.pdp2-material{display:grid;grid-template-columns:1fr 1fr;background:var(--paper)}
.pdp2-material-photo{min-height:560px;background:var(--wood,var(--soft))}
.pdp2-material-photo img{display:block;width:100%;height:100%;object-fit:cover}
.pdp2-material-text{display:grid;gap:20px;align-content:center;padding:72px var(--pdp-gutter) 72px 72px}
.pdp2-lede{margin:0;max-width:56ch;font-size:16px;line-height:1.6;color:var(--muted)}
.pdp2-specs{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;margin:0;font-size:14px}
.pdp2-specs div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);min-width:0}
.pdp2-specs dt{color:var(--muted)}
.pdp2-specs dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.pdp2-docs{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px}
.pdp2-docs a{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--primary);text-decoration:none}
.pdp2-docs a:hover{text-decoration:underline}
.pdp2-note{margin:0;font-size:13px;color:var(--muted)}

/* Collection */
.pdp2-collection{padding:80px var(--pdp-gutter);background:var(--surface)}
.pdp2-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:32px}
.pdp2-section-head span{font-size:14px;color:var(--muted);text-align:right}
.pdp2-tiles{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5*16px)/6);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:6px 6px 10px;margin:-6px -6px 0;scrollbar-width:thin}
.pdp2-tile{display:grid;gap:9px;align-content:start;text-decoration:none;scroll-snap-align:start}
.pdp2-tile-photo{display:grid;place-items:center;aspect-ratio:3/4;overflow:hidden;background:var(--wood,var(--soft))}
.pdp2-tile-photo i{font-style:normal;font-size:12px;color:rgb(255 255 255/.9)}
.pdp2-tile-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.pdp2-tile:hover .pdp2-tile-photo img{transform:scale(1.04)}
.pdp2-tile[aria-current=true] .pdp2-tile-photo{outline:2px solid var(--ink);outline-offset:4px}
.pdp2-tile-name{font-size:14px;font-weight:600;line-height:1.35;color:var(--ink)}
.pdp2-tile-meta{margin-top:-5px;font-size:12.5px;color:var(--muted)}

/* Showroom */
.pdp2-salon{display:grid;grid-template-columns:1fr 1fr;min-height:460px;background:var(--pine);color:#e8eff5}
.pdp2-salon-text{display:grid;gap:22px;align-content:center;padding:80px 72px 80px var(--pdp-gutter)}
.pdp2-salon .pdp2-eyebrow{color:rgb(232 239 245/.62)}
.pdp2-salon .pdp2-h2{color:#e8eff5}
.pdp2-salon p{margin:0;max-width:44ch;font-size:16px;line-height:1.6;color:rgb(232 239 245/.78)}
.pdp2-salon-button{justify-self:start;display:inline-flex;align-items:center;height:54px;padding:0 28px;border-radius:3px;background:#e8eff5;color:#1e3344!important;font-weight:700;text-decoration:none}
.pdp2-salon-button:hover{background:#fff}
.pdp2-salon-photo{min-height:360px}
.pdp2-salon-photo img{display:block;width:100%;height:100%;object-fit:cover}

/* Mobile buy bar */
.pdp2-bar{display:none}
.pdp2 :focus-visible{outline:2px solid var(--primary);outline-offset:2px}

@media (max-width:1100px){
  .pdp2-material{grid-template-columns:1fr}
  .pdp2-material-photo{min-height:0;aspect-ratio:16/9}
  .pdp2-material-text{padding:48px var(--pdp-gutter)}
  .pdp2-tiles{grid-auto-columns:calc((100% - 3*16px)/4)}
  .pdp2-facts div{padding:32px 28px}
}
@media (max-width:860px){
  .pdp2{--pdp-gutter:16px}
  .pdp2-hero{display:block;padding:0;background:var(--surface)}
  .pdp2-hero::after{display:block;bottom:auto;height:75vw}
  .pdp2-hero .bp-product-gallery .bp-gallery-stage{border-radius:0}
  .pdp2-hero .bp-gallery-counter{bottom:14px;min-height:36px;padding:0 12px;font-size:12px}
  .pdp2-hero .bp-gallery-arrow{display:none}
  .pdp2-hero .bp-gallery-expand{left:auto;right:14px;bottom:14px;width:40px;height:40px}
  .pdp2-hero .bp-gallery-counter{left:14px}
  .pdp2-crumbs{position:absolute;left:16px;top:6px;max-width:calc(100% - 32px);color:rgb(255 255 255/.92);text-shadow:0 1px 10px rgb(0 0 0/.3)}
  .pdp2-item .pdp2-hero::after{display:none}
  .pdp2-item .pdp2-crumbs{position:static;padding:4px 16px 0;color:var(--muted);text-shadow:none}
  /* No photo yet: the crumbs in the flow under the placeholder, as on accessories (light text would be lost on it) */
  .pdp2-hero:has(>.product-media>.bp-gallery-empty)::after{display:none}
  .pdp2-hero:has(>.product-media>.bp-gallery-empty) .pdp2-crumbs{position:static;padding:4px 16px 8px;color:var(--muted);text-shadow:none}
  .pdp2-hero>.product-media>.bp-gallery-empty{aspect-ratio:16/9;border-radius:0}
  .pdp2-hero-inner{display:block;padding:0}
  .pdp2-panel{width:100%;padding:22px 16px 26px;gap:16px;background:var(--surface)}
  .pdp2-title{font-size:26px}
  .pdp2-price b{font-size:30px}
  .pdp2-trust{flex-direction:column;gap:4px}
  .pdp2-facts{grid-template-columns:1fr 1fr}
  .pdp2-facts div,.pdp2-facts div:first-child{padding:24px 16px;border-bottom:1px solid var(--line)}
  .pdp2-facts div:nth-child(2n){border-right:0}
  .pdp2-facts b{font-size:44px}
  .pdp2-facts b small{font-size:18px}
  .pdp2-specs{grid-template-columns:1fr}
  .pdp2-collection{padding:48px 16px}
  .pdp2-section-head{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:20px}
  .pdp2-section-head span{text-align:left}
  .pdp2-tiles{grid-auto-columns:42%}
  .pdp2-salon{grid-template-columns:1fr}
  .pdp2-salon-text{padding:48px 16px}
  .pdp2-salon-photo{min-height:0;aspect-ratio:16/10;order:-1}
  .pdp2-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;gap:14px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgb(15 24 30/.1);transform:translateY(110%);transition:transform .25s ease}
  .pdp2-bar.is-visible{transform:none}
  .pdp2-bar>div{display:grid;flex:none}
  .pdp2-bar small{font-size:11.5px;color:var(--muted);white-space:nowrap}
  .pdp2-bar b{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
  .pdp2-bar .pdp2-cta{height:48px;font-size:15px}
  body:has(.pdp2){padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){
  .pdp2-swatch,.pdp2-tile-photo img,.pdp2-bar,.pdp2-cta{transition:none}
}
