/* ═══════════════════════════════════════════════════════════════
   Product page — нова верстка (Figma 1:1)
   Використовує глобальні CSS-змінні --otc-* з admin "Каталог" tab
   ═══════════════════════════════════════════════════════════════ */

.prod-page-wrap{max-width:1440px;margin:0 auto;padding:20px 15px 60px;font-family:Inter,sans-serif;color:#333;}
/* ── Optional left/right sidebars from Pages Constructor ── */
.prod-page-layout{display:grid;grid-template-columns:1fr;gap:24px;align-items:start;}
.prod-page-layout.has-left{grid-template-columns:260px 1fr;}
.prod-page-layout.has-right{grid-template-columns:1fr 260px;}
.prod-page-layout.has-left.has-right{grid-template-columns:260px 1fr 260px;}
.prod-page-col-left,.prod-page-col-right{min-width:0;display:flex;flex-direction:column;gap:16px;}
@media (max-width:991px){
  .prod-page-layout,.prod-page-layout.has-left,.prod-page-layout.has-right,.prod-page-layout.has-left.has-right{grid-template-columns:1fr;}
}
/* Блоки верхньої зони (gallery + sidebar) — max 695 */
.prod-gallery,
.prod-info-card,
.prod-side-card{max-width:695px;width:100%;}
/* Картки нижньої зони (description/specs/reviews) — на всю ширину content-bottom (1105) */
.prod-section-card{width:100%;}

/* ── Breadcrumb ── */
.prod-breadcrumb{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:#6e6e6e;background:transparent;border:none;}
.prod-breadcrumb li{display:flex;align-items:center;}
.prod-breadcrumb li + li::before{content:'/';margin:0 8px;color:#bbb;}
.prod-breadcrumb li a{color:#6e6e6e;text-decoration:none;transition:color .15s;}
.prod-breadcrumb li:last-child a{color:#222;pointer-events:none;}
.prod-breadcrumb li a:hover{color:#222;}

/* ── Anchor tabs ── */
.prod-anchor-tabs{display:flex;align-items:center;gap:4px;margin:0 0 28px;padding:6px;background:#fff;border:1px solid #ececec;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.04);overflow-x:auto;}
.prod-anchor-tab{flex:0 0 auto;padding:12px 22px;font-size:14px;font-weight:500;color:#6e6e6e;text-decoration:none;border-radius:10px;transition:all .15s;white-space:nowrap;}
.prod-anchor-tab:hover{color:#222;background:#f7f7f7;text-decoration:none;}
.prod-anchor-tab.is-active{background:#222;color:#fff;}
.prod-anchor-tab.is-active:hover{background:#222;color:#fff;}

/* ── Layout zones ──
   prod-content-top: gallery (зліва) + info-card-side (справа)
   prod-content-bottom: description+specs (зліва) + related-mini (справа)
   Gap 50px між колонками у верхній секції; gap 30px між top і bottom. */
.prod-content-top{display:grid;grid-template-columns:minmax(0,695px) minmax(0,695px);gap:50px;align-items:start;justify-content:start;margin-bottom:30px;}
.prod-side{display:flex;flex-direction:column;gap:14px;min-width:0;}

/* Wrap = bottom (max 1105) + right column with related card.
   gap 50px, align top. */
.prod-content-bottom-wrap{display:grid;grid-template-columns:minmax(0,1105px) auto;gap:50px;align-items:start;justify-content:start;margin-bottom:30px;}
.prod-content-bottom{max-width:1105px;min-width:0;display:flex;flex-direction:column;gap:30px;}
.prod-content-right{min-width:0;display:flex;flex-direction:column;gap:14px;width:var(--otc-card-w,275px);}
.prod-content-right .product-card-wrapper{width:100%;max-width:none;}
.prod-side-slider-wrap{position:relative;}
.prod-side-swiper{overflow:hidden;}
/* "Recommended for you" cards — Figma spec.
   Desktop: card 204×277, image 200×200, gap 20px (driven by Swiper spaceBetween).
   slidesPerView:'auto' picks up the fixed widths below. */
.prod-side-swiper .swiper-slide{width:204px!important;max-width:204px!important;height:auto!important;}
.prod-side-swiper .swiper-slide .product-card-wrapper{width:204px;height:277px;display:flex;flex-direction:column;}
.prod-side-swiper .swiper-slide .product-card-rating{width:100%;height:100%;display:flex;flex-direction:column;border:1px solid #ececec;border-radius:8px;overflow:hidden;}
.prod-side-swiper .swiper-slide .product-card-rating__image-area{width:100%;flex:0 0 auto;height:200px!important;}
/* Фон не задаём: область картинки берёт фон карточки — иначе у фото
   с другими пропорциями появляются серые поля по бокам. */
.prod-side-swiper .swiper-slide .product-card-rating__product-img{display:flex;align-items:center;justify-content:center;width:200px;height:200px;overflow:hidden;}
/* contain, не cover: фото товара не должно обрезаться, поля дают фон карточки. */
.prod-side-swiper .swiper-slide .product-card-rating__product-img img{width:100%!important;height:100%!important;object-fit:contain;display:block;}
.prod-side-swiper .swiper-slide .product-card-rating__descr{flex:1 1 auto;display:flex;flex-direction:column;padding:8px 10px;gap:3px;min-height:0;}
.prod-side-swiper .swiper-slide .product-card-rating__title,
.prod-side-swiper .swiper-slide .product-card-rating__text{font-size:13px!important;line-height:1.3;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.prod-side-swiper .swiper-slide .product-card-rating__price{font-size:16px!important;margin-top:auto!important;}
@media (max-width:576px){
  .prod-side-swiper .swiper-slide{width:120px!important;max-width:120px!important;}
  .prod-side-swiper .swiper-slide .product-card-wrapper{width:120px;height:164px;}
  .prod-side-swiper .swiper-slide .product-card-rating__image-area{height:110px!important;}
  .prod-side-swiper .swiper-slide .product-card-rating__product-img{width:120px;height:110px;}
  .prod-side-swiper .swiper-slide .product-card-rating__descr{padding:6px 8px;gap:2px;}
  .prod-side-swiper .swiper-slide .product-card-rating__title,
  .prod-side-swiper .swiper-slide .product-card-rating__text{font-size:12px!important;min-height:28px;line-height:1.2;}
  .prod-side-swiper .swiper-slide .product-card-rating__price{font-size:13px!important;}
}
.prod-side-nav{display:flex;justify-content:center;gap:8px;margin-top:10px;}
.prod-side-arrow{width:32px;height:32px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#222;transition:all .15s;}
.prod-side-arrow:hover{background:#f7f7f7;border-color:#222;}
.prod-side-arrow.swiper-button-disabled{opacity:.3;cursor:default;}

/* ── Gallery: thumbs зліва (gap 35px до основного) + слайдер ── */
.prod-gallery{display:grid;grid-template-columns:auto 1fr;gap:35px;background:#fff;border:1px solid #ececec;border-radius:14px;padding:18px;min-width:0;max-width:100%;}
.prod-gallery__thumbs{display:flex;flex-direction:column;min-width:0;}
/* Полоса мініатюр не має виходити за низ основної картинки і не має лишати
   пустоти. Тому:
   1) висота = рівно висота основного фото — конкретне значення на кожну
      роздільність підставляється в product.twig з налаштувань слайдера
      (тут лишається лише запас на випадок, коли slider_sizes не передані);
   2) height:auto, а не 100% — у товару з 2-3 фото полоса стискається під
      контент і не тягне пустий стовпчик на всю висоту картинки;
   3) відступ між мініатюрами тримаємо на CSS, а не на spaceBetween свайпера.
      Swiper 3.4 при slidesPerView:'auto' міряє слайд через outerHeight(true)
      (тобто РАЗОМ з відступом, який сам же і навісив) і поверх цього ще
      додає spaceBetween — відступ рахувався двічі, virtualSize роздувався, і
      в кінці прокрутки лишалася пустота 10px × кількість фото (на 13 фото —
      130px). З spaceBetween:0 у product.twig і margin-bottom тут розмір
      слайда рахується один раз. */
.prod-thumbs-swiper{height:auto;max-height:720px;overflow:hidden;}
.prod-thumbs-swiper .swiper-wrapper{flex-direction:column;display:flex;}
.prod-thumbs-swiper .swiper-slide{margin-bottom:10px;}
.prod-thumbs-swiper .swiper-slide:last-child{margin-bottom:0;}
.prod-thumb{display:flex !important;align-items:center;justify-content:center;width:80px;height:80px;border:1px solid #ececec;border-radius:10px;background:#fafafa;padding:6px;cursor:pointer;transition:all .15s;overflow:hidden;flex-shrink:0;}
.prod-thumb img{max-width:100%;max-height:100%;object-fit:contain;display:block;width:100%;height:100%;}
.prod-thumb:hover{border-color:#6e6e6e;}
.prod-thumb.is-active{border-color:#222;border-width:2px;padding:5px;}

/* Main slider — plain block wrappers; width constrained to 100% of parent */
/* Фон УБРАН: в макете (Figma 243:23817 / 3762:335445 / 243:24273) у блока галереи нет
   серой подложки — поверхностью служит само фото. Раньше #fafafa просвечивал везде, где
   фото не заполняло блок, и читался как «серая рамка вокруг картинки». */
.prod-gallery__main{position:relative;width:100%;min-width:0;max-width:100%;background:transparent;border-radius:10px;overflow:hidden;box-sizing:border-box;}
/* Out-of-stock: gray every product image on the page (main gallery + thumbnails),
   mirroring the card-level effect on module/catalog cards (.pc-oos--gray). The
   `.prod-page--oos` flag is set on the outer wrapper by twig when quantity<=0
   or stock_status flags the product unavailable. */
#product-product.prod-page--oos .prod-gallery__main img,
#product-product.prod-page--oos .prod-gallery__main video,
#product-product.prod-page--oos .prod-thumb img{
  filter:grayscale(100%);
  -webkit-filter:grayscale(100%);
}
.prod-main-swiper{position:relative;width:100%;min-width:0;max-width:100%;overflow:hidden;box-sizing:border-box;}
.prod-main-slide{display:flex !important;align-items:center;justify-content:center;padding:30px;box-sizing:border-box;}
/* ТЗ BR-04: фото заполняет слайд ЦЕЛИКОМ по вписыванию (contain) — без обрезки
   и растяжения пропорций. width/height:100% нужны, чтобы фото МЕНЬШЕ контейнера
   апскейлилось до его размера (раньше маленький файл плавал в огромном белом поле). */
.prod-main-slide img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block;}
/* Ленивый кадр до загрузки: без src браузер рисует иконку битой картинки и alt-текст — прячем, виден только спиннер. */
.prod-main-slide img.swiper-lazy:not(.swiper-lazy-loaded){opacity:0;}
/* Arrows на product page main slider — admin "Дизайн та стилі → Стрілки слайдера".
   Vars (--otc-slider-arrow-*) задаются в header.twig из onetap_catalog_css. */
.prod-gallery-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:var(--otc-slider-arrow-size, 40px);
  height:var(--otc-slider-arrow-size, 40px);
  background:var(--otc-slider-arrow-bg, rgba(255,255,255,.95));
  background-image:none !important;
  border:1px solid var(--otc-slider-arrow-border, transparent);
  border-radius:var(--otc-slider-arrow-radius, 50%);
  color:var(--otc-slider-arrow-color, #222);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.1);z-index:10;font-size:14px;
  transition:background .15s ease, color .15s ease;
}
.prod-gallery-arrow:hover{
  background:var(--otc-slider-arrow-hover-bg, #fff);
  color:var(--otc-slider-arrow-color, #000);
}
.prod-gallery-arrow.swiper-button-prev{left:14px;}
.prod-gallery-arrow.swiper-button-next{right:14px;}
.prod-gallery-arrow.swiper-button-disabled{opacity:.3;pointer-events:none;}
.prod-discount-badge{position:absolute;top:14px;left:14px;background:#222;color:#fff;font-size:13px;font-weight:600;padding:6px 12px;border-radius:6px;z-index:2;}

/* ── Right sidebar cards ── */
.prod-info-card,
.prod-side-card{background:#fff;border:1px solid #ececec;border-radius:14px;padding:22px;}

/* ── Title row: title left, mini round icon buttons (wishlist/compare) right ── */
.prod-title-row{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px;}
.prod-title{flex:1;font-size:22px;font-weight:600;line-height:1.3;color:#1a1a1a;margin:0;}
.prod-icon-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.prod-icon-btn{width:38px;height:38px;border-radius:50%;background:#f3f4f6;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#444;transition:color .15s;padding:0;}
.prod-icon-btn:hover{background:#e5e7eb;}
.prod-icon-btn.active-like svg path{stroke:var(--otc-btn-primary,#222) !important;fill:var(--otc-btn-primary,#222) !important;}

/* ── Meta row: stock (left) + code (right, поруч з рейтингом) + rating (right) ── */
.prod-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px;font-size:13px;}
.prod-meta-left,.prod-meta-mid,.prod-meta-right{display:flex;align-items:center;}
.prod-meta-mid{flex:1;justify-content:flex-end;margin-right:20px;}
.prod-stock{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;font-weight:500;background:#f7f7f7;}
.prod-stock--in{color:#0fa379;background:rgba(15,163,121,.08);}
.prod-stock--in .fa{color:#0fa379;}
.prod-stock--out{color:#e74c3c;background:rgba(231,76,60,.08);}
.prod-code{color:#666;font-size:12px;background:#f3f4f6;padding:6px 14px;border-radius:20px;}
.prod-rating{display:inline-flex;align-items:center;gap:4px;color:#f5a623;font-size:13px;}
.prod-rating .fa{font-size:13px;}
.prod-rating .fa-star-o{color:#ddd;}
.prod-rating-count{color:#6e6e6e;font-size:12px;margin-left:4px;}

/* ── Price row: prices (left) + timer card (right) ── */
.prod-price-row{display:flex;align-items:center;justify-content:space-between;gap:0;margin-bottom:0;}
.prod-prices{display:flex;align-items:baseline;gap:10px;}
.prod-price-new{font-size:28px;font-weight:700;color:#1a1a1a;line-height:1;}
.prod-price-old{font-size:14px;color:#6e6e6e;text-decoration:line-through;line-height:1;}
/* «VAT included» рядом с ценой (цена показана с налогом). */
.prod-price-vat{font-size:13px;font-weight:400;color:#6e6e6e;line-height:1;white-space:nowrap;}
@media (max-width:500px){.prod-price-vat{font-size:12px;}}

/* ── Timer card — невелика картка з пунктирною orange border ── */
.prod-timer-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 14px;border:1px dashed #f5a623;border-radius:10px;font-size:11px;background:#fff;flex-shrink:0;}
.prod-timer-label{color:#6e6e6e;font-size:11px;line-height:1;margin-bottom:2px;}
.prod-timer-val{color:#e85a00;font-weight:700;font-family:'Inter',sans-serif;letter-spacing:.5px;font-size:14px;line-height:1.1;}

/* ── Options / swatches ── */
.prod-option{margin-bottom:16px;}
.prod-option-label{display:block;font-size:13px;color:#666;margin-bottom:8px;}
.prod-swatches{display:flex;flex-wrap:wrap;gap:8px;}
.prod-swatch{display:inline-flex;align-items:center;padding:9px 18px;background:#fff;border:1px solid #ddd;border-radius:10px;cursor:pointer;font-size:13px;font-weight:500;color:#222;transition:all .15s;user-select:none;}
.prod-swatch:hover{border-color:#6e6e6e;}
.prod-swatch input[type=radio]{display:none;}
.prod-swatch.is-selected{background:#222;color:#fff;border-color:#222;}

/* ── Action row: qty + cart + quick order у одному рядку ── */
.prod-actions{display:flex;align-items:stretch;gap:40px;margin-top:6px;flex-wrap:nowrap;}
/* Qty-степпер нового зразка (1:1 з кошиком .ot-cart__qty): поле + вертикальна
   колонка ▲▼ праворуч. Висота 48 — під ряд із кнопкою «Купити». */
.prod-qty{display:inline-flex;align-items:stretch;width:76px;max-width:76px;height:48px;box-sizing:border-box;border:1px solid #e0e0e0;border-radius:8px;background:#fff;overflow:hidden;flex-shrink:0;transition:border-color .15s;}
.prod-qty:focus-within{border-color:#222;}
.prod-qty-input{flex:1 1 auto;width:46px;min-width:0;height:auto;border:none;text-align:center;font-family:'Inter',sans-serif;font-size:14px;font-weight:500;color:#1a1a1a;background:transparent;outline:none;padding:0 2px 0 8px;-moz-appearance:textfield;appearance:textfield;}
.prod-qty-steppers{display:flex;flex-direction:column;flex:0 0 28px;width:28px;border-left:1px solid #ececec;align-self:stretch;}
.prod-qty-btn{flex:1 1 50%;min-height:0;width:auto;height:auto;background:#fff;border:none;padding:0;color:#7a7a7a;cursor:pointer;transition:background .12s,color .12s;display:flex;align-items:center;justify-content:center;}
.prod-qty-btn:hover{background:#f4f4f4;color:#111;}
.prod-qty-btn:active{background:#ececec;}
.prod-qty-btn.stepper-plus{border-bottom:1px solid #ececec;}
.prod-qty-btn svg{width:11px;height:11px;display:block;}

.prod-btn-cart{flex:1 1 auto;width:auto;min-width:200px;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 20px;background:var(--otc-cart-btn-bg,#252525) !important;color:var(--otc-cart-btn-text,#fff) !important;border:none !important;border-radius:var(--otc-cart-btn-radius,var(--otc-btn-radius,10px)) !important;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s;text-decoration:none;min-width:0;}
.prod-btn-cart:hover{opacity:.9;color:var(--otc-cart-btn-text,#fff) !important;}
.prod-cart-icon-img{width:18px;height:18px;object-fit:contain;flex-shrink:0;display:block;}
.prod-cart-icon-fa{font-size:14px;flex-shrink:0;}

.prod-btn-quick{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 16px;background:#fff;color:#222;border:1px solid #e0e0e0;border-radius:10px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s;min-width:0;text-align:center;}
.prod-btn-quick:hover{background:#f7f7f7;border-color:#222;}

.prod-minimum-note{margin-top:10px;padding:8px 12px;background:#fff8e1;color:#8b6914;border-radius:6px;font-size:12px;}

/* ── Side cards ── */
.prod-side-title{font-size:14px;font-weight:600;color:#1a1a1a;margin:0 0 12px;}
.prod-short-text{font-size:13px;line-height:1.65;color:#666;margin:0;}

/* ── Shipping & return policies card (1:1 macro) ── */
.prod-ship-title{display:flex;align-items:center;justify-content:space-between;cursor:pointer;gap:12px;}
.prod-ship-caret{font-size:12px;color:#9a9a9a;transition:transform .2s;flex:0 0 auto;}
.prod-ship-card.is-collapsed .prod-ship-caret{transform:rotate(180deg);}
.prod-ship-card.is-collapsed .prod-ship-body{display:none;}
.prod-ship-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 0;font-size:13px;}
.prod-ship-line-label{color:#777;flex:0 0 auto;}
.prod-ship-line-val{color:#1a1a1a;text-align:right;}
.prod-ship-eta{border-bottom:1px solid #1a1a1a;line-height:1.3;}
.prod-ship-returns{border-bottom:1px dashed #9a9a9a;line-height:1.3;}
.prod-ship-body .prod-delivery-list{margin-top:12px;border-top:1px solid #f0f0f0;padding-top:6px;}

/* ── Photos from reviews (1:1 macro): horizontal strip + next arrow + simple viewer ── */
.prod-revphotos-title{margin-bottom:16px;}
.prod-revphotos-wrap{position:relative;}
.prod-revphotos-track{display:flex;gap:14px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;padding-bottom:2px;}
.prod-revphotos-track::-webkit-scrollbar{display:none;}
.prod-revphoto{flex:0 0 auto;width:180px;height:180px;border-radius:12px;overflow:hidden;border:0;padding:0;cursor:pointer;background:#f7f7f7;position:relative;}
.prod-revphoto img,.prod-revphoto video{width:100%;height:100%;object-fit:cover;display:block;}
.prod-revphoto-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.prod-revphoto-play .fa{width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;}
/* Track arrow ("Photos from reviews" horizontal scroll) — uses admin "Design and styles
   → Slider arrows" settings so it matches sliders across the site. */
.prod-revphotos-nav{position:absolute;top:50%;transform:translateY(-50%);width:var(--otc-slider-arrow-size,40px);height:var(--otc-slider-arrow-size,40px);border-radius:var(--otc-slider-arrow-radius,50%);border:1px solid var(--otc-slider-arrow-border,#dddddd);background:var(--otc-slider-arrow-bg,#ffffff);color:var(--otc-slider-arrow-color,#333333);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2);z-index:2;}
.prod-revphotos-nav:hover{background:var(--otc-slider-arrow-hover-bg,#f5f5f5);}
.prod-revphotos-next{right:-6px;}
.prod-revphotos-nav[hidden]{display:none;}

/* ── Fullscreen lightbox for "Photos from reviews" (per Figma):
   main image 818×818 on the left, 2-column grid of 120×120 thumbnails on the right,
   prev/next arrows around main, close top-right. Mobile: thumbs collapse to a
   horizontal strip below the main image. ── */
.prod-rp-viewer{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.65);display:none;align-items:center;justify-content:center;padding:24px 28px;}
.prod-rp-viewer.is-open{display:flex;}
.prod-rp-viewer__close{position:absolute;top:22px;right:24px;width:42px;height:42px;border-radius:50%;border:0;background:#fff;color:#1a1a1a;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3;box-shadow:0 2px 10px rgba(0,0,0,.25);}
.prod-rp-viewer__close:hover{background:#f5f5f5;}
/* Body gap = 24 (main → arrow) + 60 (arrow width) + 24 (arrow → thumbs) = 108px.
   24px between main image and arrow, 24px between arrow and thumbs (per spec). */
.prod-rp-viewer__body{display:flex;gap:108px;max-width:1340px;width:100%;align-items:flex-start;justify-content:center;}
.prod-rp-viewer__main{position:relative;flex:0 0 auto;width:818px;max-width:calc(100vw - 380px);height:818px;max-height:88vh;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;}
.prod-rp-viewer__stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden;}
/* object-fit:contain — show the FULL image/video inside the stage with
   letterboxing instead of cropping. cover was hiding the edges, which on
   mobile meant only a vertical sliver of the photo was visible. */
.prod-rp-viewer__stage img,.prod-rp-viewer__stage video{width:100%;height:100%;object-fit:contain;display:block;background:#fff;}
/* Lightbox prev/next — white background (per design), radius/border from admin vars
   so they still match the slider-arrow style configured in "Design and styles". */
.prod-rp-viewer__nav{position:absolute;top:50%;transform:translateY(-50%);width:60px;height:60px;border-radius:var(--otc-slider-arrow-radius,50%);border:1px solid var(--otc-slider-arrow-border,#dddddd);background:#ffffff;color:#1a1a1a;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;box-shadow:0 2px 10px rgba(0,0,0,.3);z-index:2;}
.prod-rp-viewer__nav:hover{background:#f5f5f5;}
.prod-rp-viewer__prev{left:-84px;}
.prod-rp-viewer__next{right:-84px;}
/* align-content:start prevents grid from stretching rows to fill max-height (which
   was creating big vertical gaps between thumbnail rows instead of the 8px gap). */
.prod-rp-viewer__thumbs{display:grid;grid-template-columns:repeat(2, 120px);gap:8px;align-content:start;flex:0 0 auto;max-height:818px;overflow-y:auto;overflow-x:hidden;padding:4px;scrollbar-width:thin;}
.prod-rp-viewer__thumbs::-webkit-scrollbar{width:6px;}
.prod-rp-viewer__thumbs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:3px;}
.prod-rp-viewer__thumb{width:120px;height:120px;box-sizing:border-box;border-radius:10px;overflow:hidden;border:2px solid transparent;padding:0;background:#f7f7f7;cursor:pointer;position:relative;}
.prod-rp-viewer__thumb img,.prod-rp-viewer__thumb video{width:100%;height:100%;object-fit:cover;display:block;}
.prod-rp-viewer__thumb.is-active{border-color:#3f8cff;}
.prod-rp-viewer__thumb-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;background:rgba(0,0,0,.35);}
body.ot-noscroll{overflow:hidden;}

/* ≤1400px — single-column lightbox (main on top, thumbs row below) with arrows
   INSIDE the main image. Keeps the left arrow on-screen on narrow desktops where
   the side-by-side layout would push it off the viewport. */
@media (max-width: 1400px){
  .prod-rp-viewer__body{flex-direction:column;gap:16px;align-items:center;max-height:100vh;max-width:100%;}
  .prod-rp-viewer__main{width:100%;max-width:min(818px, calc(100vw - 80px));height:auto;aspect-ratio:1/1;max-height:80vh;}
  .prod-rp-viewer__prev{left:12px;}
  .prod-rp-viewer__next{right:12px;}
  .prod-rp-viewer__thumbs{display:flex;flex-direction:row;grid-template-columns:none;gap:8px;max-width:min(818px, calc(100vw - 80px));max-height:none;overflow-x:auto;overflow-y:hidden;padding:4px;}
  .prod-rp-viewer__thumb{flex:0 0 auto;width:80px;height:80px;}
}

/* ≤768px — phone: hide thumbs entirely (per Figma mobile design), smaller arrows. */
@media (max-width: 768px){
  .prod-rp-viewer{padding:12px;}
  .prod-rp-viewer__nav{width:44px;height:44px;font-size:14px;}
  .prod-rp-viewer__thumbs{display:none;}
  .prod-rp-viewer__close{top:10px;right:10px;width:36px;height:36px;font-size:18px;}
}
.prod-rp-viewer{position:fixed;inset:0;z-index:10050;background:rgba(15,12,10,.85);display:none;align-items:center;justify-content:center;}
.prod-rp-viewer.is-open{display:flex;}
.prod-rp-viewer img,.prod-rp-viewer video{max-width:90vw;max-height:88vh;border-radius:8px;display:block;}
.prod-rp-viewer__close{position:absolute;top:16px;right:22px;background:none;border:0;color:#fff;font-size:34px;line-height:1;cursor:pointer;}
@media (max-width:576px){ .prod-revphoto{width:140px;height:140px;} }

/* ── "Inspired by your interests" (right column): grid of 4 (slider OFF) or slider (ON) ── */
.prod-yml-section--side{margin-top:8px;}
.prod-yml-title--side{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 16px;line-height:1.2;}
/* Grid mode: 2-column grid, no swiper transform */
.prod-side--grid .swiper-wrapper{display:grid !important;grid-template-columns:1fr 1fr;gap:24px 20px;transform:none !important;}
.prod-side--grid .swiper-slide{width:auto !important;margin:0 !important;height:auto;}
@media (max-width:576px){ .prod-side--grid .swiper-wrapper{grid-template-columns:1fr 1fr;gap:16px 10px;} }
/* Compact card (1:1 macro): image+heart, name, rating, price, availability — no compare/footer. */
.ins-card{display:block;text-decoration:none;color:inherit;}
.ins-card:hover{text-decoration:none;color:inherit;}
.ins-card__img{position:relative;aspect-ratio:1/1;background:#f4f4f4;border-radius:14px;overflow:hidden;margin-bottom:10px;}
.ins-card__img img{width:100%;height:100%;object-fit:cover;display:block;}
.ins-card__badges{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:2;}
.ins-card__badges span{font-size:11px;font-weight:600;padding:3px 10px;border-radius:999px;line-height:1.4;}
.ins-card__wish{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;border:0;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#5b5b5b;box-shadow:0 1px 4px rgba(0,0,0,.1);z-index:2;padding:0;}
.ins-card__wish.is-active{color:#e8473b;}
.ins-card__name{font-size:14px;color:#222;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(14px*1.35*2);margin-bottom:8px;}
.ins-card__rating{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:8px;}
.ins-card__rate{display:inline-flex;align-items:center;gap:4px;color:#222;font-weight:500;}
.ins-card__rate .fa{color:#fbbf24;font-size:12px;}
.ins-card__rev{display:inline-flex;align-items:center;gap:4px;color:#9a9a9a;}
.ins-card__price{font-size:18px;font-weight:700;color:#1a1a1a;margin-bottom:6px;}
.ins-card__price s{font-size:13px;font-weight:400;color:#9a9a9a;margin-left:6px;}
.ins-card__avail{font-size:12px;color:#15a05f;display:inline-flex;align-items:center;gap:6px;}
.ins-card__avail::before{content:"";width:7px;height:7px;border-radius:50%;background:#15a05f;display:inline-block;}

/* Out-of-stock dim — desaturate + lower opacity on image and price/title.
   Wishlist and dots stay full-color so the card is still interactive. */
.ins-card.is-oos .ins-card__img img{filter:grayscale(1);opacity:.55;}
.ins-card.is-oos .ins-card__name,
.ins-card.is-oos .ins-card__price,
.ins-card.is-oos .ins-card__rating{opacity:.6;}
.ins-card.is-oos .ins-card__badges span{filter:grayscale(.7);opacity:.7;}

/* Pagination dots under the thumb — only renders when product has extras. */
.ins-card__dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:5px;z-index:2;pointer-events:auto;}
.ins-card__dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);border:1px solid rgba(0,0,0,.08);cursor:pointer;transition:background .15s,transform .15s;}
.ins-card__dot.is-active{background:#fff;transform:scale(1.15);box-shadow:0 1px 3px rgba(0,0,0,.18);}
.ins-card__dot:hover{background:#fff;}

/* ── Out of stock / Notify me (1:1 macro). The status dot is provided by the existing
   .prod-stock::before (v1 style); no extra dot here to avoid duplicating it. ── */
.prod-oos{border:1px solid #ececec;border-radius:12px;padding:20px;width:100%;}
.prod-oos-title{font-size:18px;font-weight:600;color:#1a1a1a;margin-bottom:6px;line-height:1.3;}        /* Figma: 18px Semibold */
.prod-oos-sub{font-size:14px;color:#6f6f6f;margin-bottom:16px;line-height:1.5;}
.prod-oos-form{display:flex;gap:10px;align-items:stretch;}
.prod-oos-email{flex:1 1 auto;min-width:0;height:44px;border:1px solid #DDDDDD;border-radius:8px;padding:0 14px;font-size:14px;color:#1a1a1a;background:#fff;}
.prod-oos-email::placeholder{color:#9a9a9a;}
.prod-oos-email:focus{outline:none;border-color:var(--otc-btn-primary,#392923);}
.prod-oos-btn{flex:0 0 auto;height:44px;padding:0 20px;border:0;border-radius:var(--otc-btn-radius,8px);background:var(--otc-btn-primary,#392923);color:var(--otc-btn-primary-text,#fff);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;}
.prod-oos-btn:hover{background:var(--otc-btn-primary-hover,#4d382e);}
.prod-oos-note{font-size:12px;color:#9a9a9a;line-height:1.5;margin-top:12px;}
@media (max-width:480px){ .prod-oos-form{flex-direction:column;} }
/* Sent state — green confirmation + remove link (1:1 macro). */
.prod-oos-confirm{display:flex;align-items:flex-start;gap:8px;background:#eaf7ef;border:1px solid #cdebd9;color:#2f7d4f;border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.45;}
.prod-oos-confirm .fa{color:#3aa76d;margin-top:1px;flex:0 0 auto;}
.prod-oos-remove{display:inline-block;margin-top:10px;background:none;border:0;padding:0;color:#1a1a1a;font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.prod-oos-remove:hover{color:#000;}

/* ── Delivery card: без row border, тільки dotted leader між текстом і ціною ── */
.prod-delivery-list{list-style:none;padding:0;margin:0;}
.prod-delivery-row{display:flex;align-items:center;padding:8px 0;font-size:13px;gap:10px;border:none;}
/* Бокс логотипа — те же размеры и посадка картинки, что у методов доставки в чекауте
   (.otc-shipping-opt__logo--img): 56×32 и object-fit:contain. В квадрате 30×30 широкие
   логотипы вроде bpost сплющивались в нечитаемое пятно. */
.prod-delivery-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:32px;padding:2px;flex-shrink:0;overflow:hidden;}
.prod-delivery-icon img{width:100%;height:100%;object-fit:contain;display:block;}
.prod-delivery-icon .fa{font-size:18px;color:#666;}
/* Бейдж с аббревиатурой — заглушка на случай, когда логотипа нет или он не загрузился:
   onerror удаляет <img>, и бейдж становится единственным ребёнком. Пока картинка на месте,
   бейдж скрыт. Цвета — те же фирменные, что в чекауте. */
.prod-delivery-badge{display:none;align-items:center;justify-content:center;width:100%;height:100%;border-radius:6px;font-size:12px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;}
.prod-delivery-badge:only-child{display:inline-flex;}
/* Название тарифа приходит от перевозчика и бывает длинным («bpack World Business 0-2kg»).
   Раньше колонка с названием стояла flex-shrink:0 — на узком экране такая строка выдавливала
   цену за правый край, и от цены оставалась половина. Теперь сжимается название (переносом,
   без обрезки), а цена остаётся целиком: цена важнее, и обрезанная цена — дезинформация. */
.prod-delivery-info{display:flex;flex-direction:column;min-width:0;flex:0 1 auto;}
.prod-delivery-label{color:#222;font-weight:500;overflow-wrap:anywhere;}
.prod-delivery-time{color:#6e6e6e;font-size:11px;overflow-wrap:anywhere;}
.prod-delivery-dots{flex:1 1 auto;border-bottom:1px dotted #c5c5c5;margin:0 6px;height:1px;align-self:center;min-width:12px;}
.prod-delivery-price{color:#666;font-weight:400;flex:0 0 auto;white-space:nowrap;font-size:13px;}
.prod-delivery-row a.prod-delivery-link{color:inherit;text-decoration:none;display:flex;align-items:center;gap:10px;flex:1;min-width:0;}
.prod-delivery-row a.prod-delivery-link:hover .prod-delivery-label{color:var(--otc-cart-btn-bg,#222);}

/* ── Related mini card (in sidebar) ── */
.prod-related-mini{position:relative;display:grid;grid-template-columns:120px 1fr;gap:12px;padding:14px;text-decoration:none;color:inherit;transition:box-shadow .15s;}
.prod-related-mini:hover{box-shadow:0 4px 12px rgba(0,0,0,.06);text-decoration:none;color:inherit;}
.prod-related-badge{position:absolute;top:10px;left:10px;background:#222;color:#fff;font-size:11px;font-weight:600;padding:3px 8px;border-radius:5px;z-index:2;}
.prod-related-img{width:120px;height:120px;background:#fafafa;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.prod-related-img img{max-width:100%;max-height:100%;object-fit:contain;}
.prod-related-body{display:flex;flex-direction:column;justify-content:space-between;min-width:0;}
.prod-related-name{font-size:12px;color:#444;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.prod-related-stock{font-size:11px;color:#0fa379;display:inline-flex;align-items:center;gap:4px;margin-top:4px;}
.prod-related-price{display:flex;align-items:baseline;gap:6px;margin-top:6px;}
.prod-related-new{font-size:14px;font-weight:700;color:#1a1a1a;}
.prod-related-old{font-size:11px;color:#6e6e6e;text-decoration:line-through;}
.prod-related-cta{display:inline-block;margin-top:8px;padding:8px 12px;background:#f7f7f7;color:#222;font-size:11px;font-weight:600;border-radius:6px;text-align:center;}
.prod-related-mini:hover .prod-related-cta{background:var(--otc-cart-btn-bg,#222);color:var(--otc-cart-btn-text,#fff);}

/* ── Sections (description, attributes, reviews) ── */
.prod-section{display:block;}
.prod-section-card{background:#fff;border:1px solid #ececec;border-radius:14px;padding:28px;}
.prod-section-title{font-size:18px;font-weight:600;color:#1a1a1a;margin:0 0 18px;}
.prod-section-body{font-size:14px;line-height:1.7;color:#555;}
.prod-section-body p{margin:0 0 12px;}

/* ── Attributes list ── */
.prod-attr-card + .prod-attr-card{margin-top:28px;}
.prod-attr-list{margin:0;padding:0;}
.prod-attr-row{display:flex;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f5f5f5;font-size:13px;gap:12px;}
.prod-attr-row:last-child{border-bottom:none;}
.prod-attr-key{flex:0 0 38%;color:#6e6e6e;margin:0;font-weight:400;position:relative;}
.prod-attr-key::after{content:'';position:absolute;bottom:5px;left:0;right:0;border-bottom:1px dotted #d0d0d0;z-index:0;}
.prod-attr-key{display:inline-block;background:#fff;padding-right:8px;}
.prod-attr-val{flex:1;color:#222;margin:0;background:#fff;padding-left:8px;}

/* ── Attributes list — "striped" variant ── */
.prod-attr-card--striped .prod-attr-list{display:flex;flex-direction:column;overflow:hidden;border-radius:4px;}
.prod-attr-card--striped .prod-attr-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:none;gap:16px;font-size:15px;line-height:1.4;}
.prod-attr-card--striped .prod-attr-row:nth-child(odd){background:#f5f5f5;}
.prod-attr-card--striped .prod-attr-row:nth-child(even){background:#ffffff;}
.prod-attr-card--striped .prod-attr-key{flex:0 0 auto;color:#6e6e6e;font-weight:400;background:transparent;padding:0;display:inline-block;}
.prod-attr-card--striped .prod-attr-key::after{display:none;}
.prod-attr-card--striped .prod-attr-val{flex:1;color:#222;background:transparent;padding:0;text-align:right;}
@media (max-width:768px){
  .prod-attr-card--striped .prod-attr-row{flex-direction:row;padding:12px 14px;font-size:13px;gap:10px;}
}

/* ═══════════════════════════════════════════════════════════════
   Варіанти відображення блоку опису/характеристик/відгуків
   - v2 (default): картки з рамкою і паддінгом — уже реалізовано вище
   - v1: плоский continuous-layout, сміливі заголовки, "Show more" колапс
   ═══════════════════════════════════════════════════════════════ */
.prod-page-style--v1 .prod-section-card,
.prod-page-style--v1 .prod-attr-card{background:transparent !important;background-color:transparent !important;border:none !important;border-radius:0 !important;padding:0 !important;box-shadow:none !important;}
.prod-page-style--v1 .prod-section-title{font-size:16px;font-weight:600;color:#1a1a1a;margin:0 0 16px;padding-bottom:0;}
.prod-page-style--v1 .prod-section-body{font-size:13px;line-height:1.55;color:#555;}
.prod-page-style--v1 .prod-section-body p{margin:0 0 10px;}

/* "Show more" — колапс опису.
   Обрізку і кнопку вішає JS (класи is-clamped / is-visible), а не CSS: без скрипта опис
   мусить бути видно ПОВНІСТЮ, інакше короткий текст лишився б обрізаним без кнопки.
   Ліміт — 4 рядки: опис на 2-3 рядки показуємо цілком і кнопку не малюємо взагалі
   (раніше клэмп був 2 рядки, тому кнопка «Показати більше» з'являлася навіть у
   трирядкового опису й ховала один рядок). */
.prod-page-style--v1 .prod-desc-body{line-height:1.6em;position:relative;}
.prod-page-style--v1 .prod-desc-body.is-clamped{max-height:6.4em;overflow:hidden;transition:max-height .3s ease;}
/* Під час замірів анімацію знімаємо — інакше зняття/повернення клэмпа блимає. */
.prod-page-style--v1 .prod-desc-body.is-measuring{transition:none;}
.prod-page-style--v1 .prod-desc-body.is-clamped::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1.6em;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 85%);pointer-events:none;}
.prod-page-style--v1 .prod-desc-toggle{display:none;margin-top:10px;background:#f2f2f2;border:none;border-radius:6px;padding:7px 14px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:background .15s;}
.prod-page-style--v1 .prod-desc-toggle.is-visible{display:inline-block;}
.prod-page-style--v1 .prod-desc-toggle:hover{background:#e6e6e6;}

/* У v1 — смугасті характеристики без обгортки-картки */
.prod-page-style--v1 .prod-attr-card--striped .prod-attr-list{border-radius:0 !important;overflow:visible !important;}
.prod-page-style--v1 .prod-attr-card + .prod-attr-card{margin-top:32px !important;}
.prod-page-style--v1 .prod-attr-card .prod-section-title{margin-bottom:16px;}
.prod-page-style--v1 .prod-attr-card--striped .prod-attr-row{padding:12px 16px !important;font-size:13px;}

/* V1 — review section flat: знімаємо обгортку-картку з відгуків */
.prod-page-style--v1 #tab-review > .prod-section-card,
.prod-page-style--v1 #tab-review .product-review_block,
.prod-page-style--v1 #tab-review .product-review-author{background:transparent !important;border:none !important;border-radius:0 !important;box-shadow:none !important;}
.prod-page-style--v1 #tab-review .product-review_block{padding:0 !important;gap:24px;align-items:flex-start !important;}
.prod-page-style--v1 #tab-review .product-review-author{padding:14px 0 !important;border-bottom:1px solid #ececec !important;}

/* ═══════════════════════════════════════════════════════════════
   V1 Reviews — 1:1 з референсу
   ═══════════════════════════════════════════════════════════════ */
.prod-page-style--v1 #tab-review .prod-section-title{display:block;}

/* Head: "Reviews" + big score + metric circles + "Leave a review" button */
.prev-v1-head{display:flex;align-items:center;gap:40px;flex-wrap:wrap;padding:0 0 24px;margin-bottom:0;}
.prev-v1-summary{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:110px;}
.prev-v1-score-row{display:flex;align-items:center;gap:8px;}
.prev-v1-score{font-size:46px;font-weight:700;color:#1a1a1a;line-height:1;}
.prev-v1-score-star{color:#f5a623;font-size:22px;}
.prev-v1-total{font-size:12px;color:#6e6e6e;display:inline-flex;align-items:center;gap:6px;}
.prev-v1-metrics{display:flex;align-items:center;gap:24px;flex-wrap:wrap;}
.prev-v1-metric{display:flex;align-items:center;gap:8px;}
.prev-v1-metric__circle{width:42px;height:42px;border:2px solid #f5a623;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#1a1a1a;flex-shrink:0;}
.prev-v1-metric__label{font-size:13px;color:#555;}
.prev-v1-cta{margin-left:auto;height:40px;padding:0 22px;background:var(--otc-btn-primary,#2a1e17);color:var(--otc-btn-primary-text,#fff);border:none;border-radius:var(--otc-btn-radius,6px);font-size:13px;font-weight:500;cursor:pointer;transition:background .15s;}
.prev-v1-cta:hover{background:var(--otc-btn-primary-hover,#000);}

/* Review list */
.prev-v1-list{margin:0;padding:0;}
/* ═══════════════════════════════════════════════════════════════
   V1 Review item — 1:1 with Figma reference (flat, clean, separators)
   ═══════════════════════════════════════════════════════════════ */
.prev-v1-item{position:relative;padding:20px 0 0;border-top:1px solid #e8e8e8;border-bottom:none;min-width:0;}
.prev-v1-item:first-child{border-top:1px solid #e8e8e8;}
/* Head: name + badge left, date right */
.prev-v1-item__head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:nowrap;min-width:0;}
.prev-v1-item__name{font-size:15px;font-weight:700;color:#1a1a1a;white-space:nowrap;}
.prev-v1-item__badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#0fa379;background:transparent;padding:2px 0;white-space:nowrap;}
.prev-v1-item__badge .fa{font-size:14px;color:#0fa379;background:transparent;padding:0;border-radius:0;}
.prev-v1-item__date{margin-left:auto;font-size:13px;color:#9a9a9a;white-space:nowrap;flex-shrink:0;}
/* Stars row */
.prev-v1-item__stars{color:#f5a623;font-size:14px;letter-spacing:3px;margin-bottom:14px;line-height:1;}
/* Review text */
.prev-v1-item__text{font-size:14px;line-height:1.55;color:#222;margin:0 0 16px;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;}
/* Actions row — horizontal separator ABOVE (matches Figma) */
.prev-v1-item__actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  min-width:0;
  padding:14px 0 20px;
  border-top:1px solid #efefef;
}
.prev-v1-item__reply{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#6b6b6b;text-decoration:none;white-space:nowrap;}
.prev-v1-item__reply .fa{font-size:14px;color:#9a9a9a;}
.prev-v1-item__reply:hover{color:#1a1a1a;}
/* Vertical separator "|" between "Reply" and "View replies" */
.prev-v1-item__reply + .prev-v1-item__toggle-replies::before{
  content:"";
  display:inline-block;
  width:1px;
  height:14px;
  background:#d4d4d4;
  margin-right:8px;
  vertical-align:middle;
}
.prev-v1-item__toggle-replies{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#6b6b6b;text-decoration:none;cursor:pointer;white-space:nowrap;min-width:0;}
.prev-v1-item__toggle-replies:hover{color:#1a1a1a;}
/* Count in a thin-bordered circle */
.prev-v1-item__replies-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  padding:0;
  background:transparent;
  color:#1a1a1a;
  border:1px solid #d4d4d4;
  border-radius:50%;
  font-size:12px;
  font-weight:500;
  flex-shrink:0;
  line-height:1;
}

/* Mobile tightening */
@media (max-width:767px){
  .prev-v1-item{padding:16px 0 0;}
  .prev-v1-item__head{margin-bottom:8px;gap:8px;}
  .prev-v1-item__name{font-size:14px;}
  .prev-v1-item__badge{font-size:11px;}
  .prev-v1-item__badge .fa{font-size:12px;}
  .prev-v1-item__date{font-size:12px;}
  .prev-v1-item__stars{font-size:13px;margin-bottom:10px;letter-spacing:2px;}
  .prev-v1-item__text{font-size:13px;margin-bottom:12px;line-height:1.5;}
  .prev-v1-item__actions{padding:12px 0 16px;gap:10px;}
  .prev-v1-item__reply,
  .prev-v1-item__toggle-replies{font-size:12px;gap:6px;}
  .prev-v1-item__reply + .prev-v1-item__toggle-replies::before{margin-right:4px;height:12px;}
  .prev-v1-item__replies-count{width:20px;height:20px;font-size:11px;}
}

/* Threaded reply item (відповідь адміна/магазину під відгуком) */
.prev-v1-item__replies{margin-top:14px;display:flex;flex-direction:column;gap:14px;}
.prev-v1-item__replies[hidden]{display:none;}
.prev-v1-reply{display:flex;gap:10px;align-items:flex-start;padding-left:12px;}
.prev-v1-reply__arrow{flex:0 0 auto;color:#b8b8b8;margin-top:2px;}
.prev-v1-reply__body{flex:1;min-width:0;position:relative;}
.prev-v1-reply__head{display:flex;align-items:center;gap:10px;margin-bottom:4px;}
.prev-v1-reply__name{font-size:13px;font-weight:600;color:#1a1a1a;}
/* Store-vs-customer badge next to the reply author name. Green pill for store
   (matches "Verified purchase" visual language) and neutral gray for customer. */
.prev-v1-reply__badge,
.product-review_reply-badge{
  display:inline-flex;align-items:center;gap:4px;
  font-size:11px;font-weight:600;line-height:1;
  padding:3px 7px;border-radius:999px;
  white-space:nowrap;
}
.prev-v1-reply__badge .fa,
.product-review_reply-badge .fa{font-size:10px;}
.prev-v1-reply__badge--store,
.product-review_reply-badge--store{background:#e6f7ed;color:#1e7e44;}
.prev-v1-reply__badge--customer,
.product-review_reply-badge--customer{background:#eef0f3;color:#4a5260;}
.prev-v1-reply__date{margin-left:auto;font-size:12px;color:#6e6e6e;}
.prev-v1-reply__text{font-size:13px;line-height:1.55;color:#333;margin:0 0 8px;}
.prev-v1-reply__actions{display:flex;align-items:center;gap:16px;}
.prev-v1-item__hide-replies{display:inline-flex;align-items:center;font-size:12px;color:#666;text-decoration:none;padding-left:34px;margin-top:-4px;}
.prev-v1-item__hide-replies:hover{color:#1a1a1a;text-decoration:underline;}

/* Reply form */
.prev-v1-form{padding:20px 0 0;}
.prev-v1-form__label{display:block;font-size:13px;color:#1a1a1a;margin:0 0 6px;font-weight:500;}
.prev-v1-form__input,
.prev-v1-form__textarea{width:100%;border:1px solid #e0e0e0;border-radius:6px;padding:10px 14px;font-size:13px;color:#1a1a1a;background:#fff;margin-bottom:14px;box-shadow:none;}
.prev-v1-form__textarea{resize:vertical;min-height:100px;}
.prev-v1-form__input:focus,
.prev-v1-form__textarea:focus{border-color:#1a1a1a;outline:none;}
.prev-v1-form__actions{display:flex;gap:10px;margin-top:6px;}
.prev-v1-btn{flex:1;height:44px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s;}
.prev-v1-btn--light{background:#fff;color:#1a1a1a;border:1px solid #e0e0e0;}
.prev-v1-btn--light:hover{background:#f7f7f7;}
.prev-v1-btn--dark{background:var(--otc-btn-primary,#2a1e17);color:var(--otc-btn-primary-text,#fff);}
.prev-v1-btn--dark:hover{background:var(--otc-btn-primary-hover,#000);}

/* "More reviews" pill */
.prev-v1-more-wrap{display:flex;justify-content:center;padding:24px 0;margin-top:10px;}
/* Pagination hidden — "+ More reviews" is the load-more control (no numbered pagination). */
#review .pagination{display:none !important;}
.prev-v1-pagination{display:none !important;}
.prev-v1-more{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;background:transparent;border:none;font-size:13px;color:#1a1a1a;cursor:pointer;}
.prev-v1-more:hover{color:#000;}

/* Pagination (fallback) */
.prev-v1-pagination{margin:10px 0 0;display:flex;justify-content:center;}
.prev-v1-pagination .pagination{display:flex;gap:6px;margin:0;}
.prev-v1-pagination .pagination > li > a,
.prev-v1-pagination .pagination > li > span{border-radius:6px;min-width:36px;height:36px;line-height:36px;padding:0 10px;text-align:center;border:1px solid #e0e0e0;color:#666;}
.prev-v1-pagination .pagination > li.active > a,
.prev-v1-pagination .pagination > li.active > span{background:#1a1a1a !important;color:#fff !important;border-color:#1a1a1a !important;}

@media (max-width:768px){
  .prev-v1-head{gap:20px;}
  .prev-v1-metrics{gap:14px;}
  .prev-v1-cta{margin-left:0;width:100%;order:99;}
}

/* ═══════════════════════════════════════════════════════════════
   "You may also like" (V1) — товари з тих самих категорій
   ═══════════════════════════════════════════════════════════════ */
.prod-yml{max-width:1440px;margin:40px auto 30px;padding:0 15px;width:100%;}
.prod-yml__title{font-size:20px;font-weight:600;color:#1a1a1a;margin:0 0 20px;}
.prod-yml__slider{position:relative;}
.prod-yml-swiper{overflow:hidden;}
.prod-yml-swiper .swiper-slide{height:auto;}
.prod-yml__nav{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.prod-yml__arrow{width:36px;height:36px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#222;transition:all .15s;}
.prod-yml__arrow:hover{background:#f7f7f7;border-color:#222;}
.prod-yml__arrow.swiper-button-disabled{opacity:.3;cursor:default;}
.prod-yml .product-card-wrapper{width:100%;max-width:none;}

/* V2 залишається картковим — значення за замовчуванням .prod-section-card */
.prod-page-style--v2 .prod-desc-toggle{display:none;}

/* ═══════════════════════════════════════════════════════════════
   V1 — Верхня частина сторінки (галерея + права колонка)
   Плоский clean-стиль. V2 стиль — як був, без змін.
   ═══════════════════════════════════════════════════════════════ */

/* Info-картка та сайд-картки без рамок/фону/паддінгу */
.prod-page-style--v1 .prod-info-card,
.prod-page-style--v1 .prod-side-card{background:transparent !important;border:none !important;border-radius:0 !important;padding:0 !important;box-shadow:none !important;}

/* Заголовок товару — крупніший, без нижнього border-і */
.prod-page-style--v1 .prod-title-row{margin-bottom:12px;}
.prod-page-style--v1 .prod-title{font-size:24px;font-weight:600;line-height:1.25;color:#1a1a1a;}

/* Мета-рядок: "• Available" зліва + article no. справа + рейтинг на окремому рядку */
.prod-page-style--v1 .prod-meta{margin-bottom:14px;font-size:13px;}
.prod-page-style--v1 .prod-meta .prod-stock{background:transparent !important;padding:0 !important;border-radius:0 !important;font-weight:500;position:relative;padding-left:14px !important;}
.prod-page-style--v1 .prod-meta .prod-stock .fa{display:none;}
.prod-page-style--v1 .prod-meta .prod-stock::before{content:"•";position:absolute;left:0;top:50%;transform:translateY(-50%);font-size:18px;line-height:1;}
.prod-page-style--v1 .prod-meta .prod-stock--in::before{color:#0fa379;}
.prod-page-style--v1 .prod-meta .prod-stock--out::before{color:#e74c3c;}
.prod-page-style--v1 .prod-meta-mid{justify-content:flex-end;}
.prod-page-style--v1 .prod-code{color:#6e6e6e;font-size:12px;}
.prod-page-style--v1 .prod-rating{font-size:13px;}

/* Ціни — великі зліва, стара ціна меншим gray з крестом */
.prod-page-style--v1 .prod-price-row{margin-bottom:0;}
.prod-page-style--v1 .prod-price-new{font-size:30px;font-weight:700;color:#1a1a1a;line-height:1;}
.prod-page-style--v1 .prod-price-old{font-size:16px;color:#a8a8a8;font-weight:500;line-height:1;}

/* Опції — cleaner labels + тоненькі границі селекта */
.prod-page-style--v1 .prod-option{margin-bottom:14px;}
.prod-page-style--v1 .prod-option-label{font-size:13px;font-weight:500;color:#1a1a1a;margin-bottom:6px;}
.prod-page-style--v1 .prod-option select.form-control,
.prod-page-style--v1 .prod-option input.form-control,
.prod-page-style--v1 .prod-option textarea.form-control{height:44px;background:#fff;border:1px solid #d9d9d9;border-radius:8px;padding:0 14px;font-size:14px;color:#1a1a1a;box-shadow:none;}
.prod-page-style--v1 .prod-option textarea.form-control{height:auto;padding:10px 14px;}
.prod-page-style--v1 .prod-option select.form-control:focus,
.prod-page-style--v1 .prod-option input.form-control:focus,
.prod-page-style--v1 .prod-option textarea.form-control:focus{border-color:#1a1a1a;outline:none;}

/* Qty + Cart button row */
.prod-page-style--v1 .prod-actions{gap:40px;}
/* Qty-степпер: НЕ переопределяем .prod-qty/.prod-qty-btn под v1 — базовый дизайн
   (вертикальные ▲▼, каждая кнопка 50% высоты, отцентрирована) из .prod-qty* выше.
   Старый v1-оверрайд (align-items:center + .prod-qty-btn height:100%) ломал центровку. */
.prod-page-style--v1 .prod-btn-cart{height:48px;border-radius:8px !important;font-size:14px;font-weight:600;}

/* Бічні картки — заголовок як collapsible header */
.prod-page-style--v1 .prod-side-card{margin-top:18px;padding-top:16px !important;border-top:none !important;border-radius:0 !important;}
.prod-page-style--v1 .prod-side-card .prod-side-title{font-size:15px;font-weight:600;color:#1a1a1a;margin:0 0 12px;}

/* Delivery rows — без бордер-рамок, компактніше */
.prod-page-style--v1 .prod-delivery-row{padding:6px 0;}
.prod-page-style--v1 .prod-delivery-dots{border-bottom-style:dotted;border-bottom-color:#d0d0d0;}
.prod-page-style--v1 .prod-delivery-label{font-size:13px;color:#1a1a1a;font-weight:500;}
.prod-page-style--v1 .prod-delivery-price{font-size:13px;color:#666;}

/* ── 2-колонковий layout: ліва (flex) + права 450 (flex-column) ── */
.prod-columns{display:flex;flex-direction:row;align-items:flex-start;gap:40px;justify-content:flex-start;flex-wrap:wrap;}
.prod-col-left{flex:1 1 0;min-width:0;max-width:100%;display:flex;flex-direction:column;gap:40px;}
.prod-col-right{flex:0 0 450px;max-width:450px;min-width:0;display:flex;flex-direction:column;gap:14px;}

/* V1 — wrapper aligned with container (1440 max), inner cols flex within */
.prod-page-wrap.prod-page-style--v1{width:100% !important;max-width:1440px !important;padding-left:15px !important;padding-right:15px !important;box-sizing:border-box !important;}

/* Rating row below price — plain inline: 4.9 ⭐  💬 20  (no border/background) */
.prod-rating-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:0;margin:0;
  background:transparent;border:0;border-radius:0;
  font-size:15px;font-weight:500;line-height:1;color:#1a1a1a;
  text-decoration:none;
}
.prod-rating-chip:hover{color:#1a1a1a;text-decoration:none;}
.prod-rating-chip__score{font-weight:600;color:#1a1a1a;font-size:16px;}
.prod-rating-chip__star{color:#f5a623;flex-shrink:0;width:16px;height:16px;}
.prod-rating-chip__sep{display:inline-block;width:8px;}
.prod-rating-chip__msg{color:#9a9a9a;flex-shrink:0;width:18px;height:18px;}
.prod-rating-chip__count{color:#1a1a1a;font-weight:500;}
/* V1: 24px gap between Description / Specifications / Reviews sections in the left column.
   Implemented as margin-top on adjacent siblings so it works regardless of display-mode. */
#product-product .prod-page-style--v1 .prod-sections-wrap > .prod-section{margin-top:0 !important;}
#product-product .prod-page-style--v1 .prod-sections-wrap > .prod-section + .prod-section{margin-top:24px !important;}
.prod-page-style--v1 .prod-gallery,
.prod-page-style--v1 .prod-info-card,
.prod-page-style--v1 .prod-side-card{max-width:none !important;width:auto !important;}

/* Related products slider у правій колонці — заповнює ширину col-right, вирівнений до лівого краю */
.prod-col-right .prod-content-right{width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important;}
.prod-col-right .prod-content-right .product-card-wrapper{width:100%;max-width:none;margin:0;}
.prod-col-right .prod-content-right .prod-side-swiper,
.prod-col-right .prod-content-right .swiper-wrapper{margin:0;padding:0;}

/* Галерея без білого бокса/рамки/падінгу у V1 */
.prod-page-style--v1 .prod-gallery{background:transparent !important;border:none !important;border-radius:0 !important;padding:0 !important;gap:12px;}
.prod-page-style--v1 .prod-gallery__main .prod-main-swiper{border-radius:12px;overflow:hidden;}
.prod-page-style--v1 .prod-gallery__thumbs{gap:6px;}
.prod-page-style--v1 .prod-thumb{border-radius:6px;overflow:hidden;}
.prod-page-style--v1 .prod-main-swiper,
.prod-page-style--v1 .prod-main-slide img{border-radius:12px;}

/* Хлібні крихти — тонший шрифт у v1 */
.prod-page-style--v1 .prod-breadcrumb{font-size:12px;color:#6e6e6e;}
.prod-page-style--v1 .prod-breadcrumb a{color:#6e6e6e;}

/* Anchor-tabs ховаємо в v1 (у референсі їх немає) */
.prod-page-style--v1 .prod-anchor-tabs{display:none;}

/* Порядок блоків задано DOM-порядком в шаблоні: meta → title → price → rating → product (як на референсі) */
.prod-page-style--v1 .prod-info-card .prod-meta{margin-bottom:8px;}
.prod-page-style--v1 .prod-info-card .prod-title-row{margin-bottom:12px;}
.prod-page-style--v1 .prod-info-card .prod-rating-row{margin:8px 0 14px;display:block;text-align:left;}

/* Meta row: stock ліворуч, код (Article No) праворуч, рейтинг — в окремий рядок під ціною */
.prod-page-style--v1 .prod-meta{display:flex;justify-content:space-between;align-items:center;}
.prod-page-style--v1 .prod-meta-mid{flex:0 0 auto;margin-right:0;}
.prod-page-style--v1 .prod-code{color:#6e6e6e;font-size:12px;}
.prod-page-style--v1 .prod-meta-right{display:none;}

/* Цена в V1 — без принудительного wrap (рейтинг рендерится отдельным блоком ниже) */
.prod-page-style--v1 .prod-price-row{align-items:center;margin-bottom:0;}

/* Приховуємо "Швидке замовлення" у v1 — на референсі одна кнопка "Add to cart" */
.prod-page-style--v1 .prod-btn-quick{display:none !important;}

/* Короткий опис — не дублюється в v1 (повний опис є нижче) */
.prod-page-style--v1 .prod-short-card{display:none;}

/* Бічні картки — колапсибельні з шевроном, як в референсі */
.prod-page-style--v1 .prod-side-card .prod-side-title{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;font-size:15px;font-weight:600;color:#1a1a1a;margin:0 0 12px;position:relative;padding-right:26px;}
.prod-page-style--v1 .prod-side-card .prod-side-title::after{content:"\f077";font-family:FontAwesome;position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:12px;color:#6e6e6e;transition:transform .2s;}
.prod-page-style--v1 .prod-side-card.is-collapsed .prod-side-title::after{transform:translateY(-50%) rotate(180deg);}
/* Shipping card carries its own explicit .prod-ship-caret <i> in twig (JS
   rotates it on collapse). Suppress the generic ::after to avoid a doubled
   chevron showing up next to the Figma-styled one. */
.prod-page-style--v1 .prod-ship-card .prod-side-title::after{display:none;}
.prod-page-style--v1 .prod-ship-card .prod-side-title{padding-right:0;}
.prod-page-style--v1 .prod-side-card.is-collapsed .prod-delivery-list,
.prod-page-style--v1 .prod-side-card.is-collapsed .prod-fg-body,
.prod-page-style--v1 .prod-side-card.is-collapsed .prod-short-text{display:none;}

/* File guidelines block — 1:1 з макетом (Figma «Product page», фрейм 243:24885):
   заголовок 16/22 #131314, відступ до тіла 16; вступ 14/20 сірий #606162; рядки — дві рівні
   колонки 14/20 з проміжком 10 і кроком 12 між рядками, підпис звичайною вагою зліва, значення
   середньою (500) справа; примітка тим самим кеглем, без розділювальної лінії. */
.prod-file-guidelines-card .prod-side-title{font-size:16px;line-height:22px;color:#131314;margin:0 0 16px;}
.prod-file-guidelines-card .prod-fg-intro{font-size:14px;line-height:20px;color:#606162;margin:0 0 12px;}
.prod-file-guidelines-card .prod-fg-list{margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.prod-file-guidelines-card .prod-fg-row{display:flex;align-items:flex-start;gap:10px;padding:0;font-size:14px;line-height:20px;border-bottom:none;}
.prod-file-guidelines-card .prod-fg-label{flex:1 1 0;min-width:0;color:#131314;font-weight:400;margin:0;}
.prod-file-guidelines-card .prod-fg-value{flex:1 1 0;min-width:0;color:#131314;font-weight:500;text-align:right;margin:0;max-width:none;}
.prod-file-guidelines-card .prod-fg-note{font-size:14px;line-height:20px;color:#131314;margin:12px 0 0;padding-top:0;border-top:0;}
.prod-file-guidelines-card .prod-fg-note strong{color:#131314;font-weight:600;}
/* Посилання на файл-гайдлайн (у макеті його немає — з’являється, лише коли файл заведено). */
.prod-file-guidelines-card .prod-fg-link{margin:0 0 12px;font-size:14px;line-height:20px;}
.prod-file-guidelines-card .prod-fg-link a{color:#131314;text-decoration:underline;text-underline-offset:2px;}
.prod-file-guidelines-card .prod-fg-link .fa{margin-right:6px;color:#6e6e6e;}

/* ═══════════════════════════════════════════════════════════════
   Reviews section (AJAX-rendered через /product/product/review)
   1:1 з Figma: header з кнопкою, large rating + bars, review items
   ═══════════════════════════════════════════════════════════════ */

/* Header row: заголовок зліва + кнопка "Написати відгук" справа */
.product-review_header{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:16px;}
.product-review_header .text-h2{font-size:18px;font-weight:600;color:#1a1a1a;margin:0;}
.product-review_header .review-header-btn,
.product-review_header .btn-review-custom{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 22px;background:var(--otc-btn-primary,#252525) !important;color:var(--otc-btn-primary-text,#fff) !important;border:none !important;border-radius:var(--otc-btn-radius,10px) !important;font-size:13px;font-weight:500;cursor:pointer;transition:opacity .15s;text-decoration:none;}
.product-review_header .review-header-btn:hover,
.product-review_header .btn-review-custom:hover{opacity:.9;}

/* Top block: large rating (left) + bars (right) */
.product-review_block{display:grid;grid-template-columns:auto 1fr;gap:40px;align-items:center;padding:0 0 24px;border-bottom:1px solid #f0f0f0;margin-bottom:20px;}
.product-review-left{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:140px;}
.product-review-score{font-size:48px;font-weight:700;color:#1a1a1a;line-height:1;}
.product-review-star{color:#f5a623;font-size:14px;letter-spacing:1px;}
.product-review-star .fa-star-o{color:#ddd;}
.product-review-total{color:#6e6e6e;font-size:12px;display:flex;align-items:center;gap:6px;}
.product-review-total::before{content:'\f075';font-family:FontAwesome;font-size:12px;color:#6e6e6e;}
.product-review-total p{margin:0;}

/* Right: rating distribution bars */
.product-review-right{display:flex;flex-direction:column;gap:8px;}
.product-review-star-bar{display:flex;align-items:center;gap:10px;font-size:13px;}
.product-review-star-bar .star-number{color:#555;font-weight:500;width:14px;text-align:center;}
.product-review-star-bar .fa-star{color:#f5a623;font-size:12px;}
.product-review-star-bar .bar-container{flex:1;height:6px;background:#f0f0f0;border-radius:4px;overflow:hidden;}
.product-review-star-bar .bar{height:100%;background:#222;border-radius:4px;transition:width .4s;}

/* ═══════════════════════════════════════════════════════════════
   V2 Reviews list — same Figma layout as V1 but KEEPS card border
   (name + badge left, date right, stars, text, separator, actions)
   ═══════════════════════════════════════════════════════════════ */
.product-review-block{display:flex;flex-direction:column;gap:14px;}
/* Outer card — keeps border/radius/padding, drop flex row + avatar pseudo */
.product-review-author{background:#fff;border:1px solid #ececec;border-radius:12px;padding:20px 22px;display:block !important;gap:0 !important;position:relative;}
.product-review-author::before{display:none !important;content:none !important;}
/* Avatar circle next to the author name (40×40, per Figma). When the customer
   uploaded an image we drop it in as <img>; otherwise the `--initials` variant
   gets a neutral gray placeholder with the initials text centered. Colors —
   #DDDDDD bg + #7D7D7D text — match the BobrCraft reviews-block Figma node. */
.product-review-avatar{
  flex:0 0 40px;
  width:40px;height:40px;
  border-radius:50%;
  overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  background:#dddddd;
  color:#7d7d7d;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1;
  text-transform:uppercase;
  user-select:none;
}
.product-review-avatar img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.product-review-avatar--initials{
  background:#dddddd;
  color:#7d7d7d;
}
.product-review-author_name-text{
  display:inline-flex;align-items:center;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* Date now sits in head row next to name — remove the absolute positioning */
.product-review-author_block-left{
  position:static !important;
  order:initial !important;
  display:inline-flex !important;
  align-items:center;
  gap:0 !important;
  margin-left:auto;
  top:auto !important;
  right:auto !important;
  flex-shrink:0;
}
.product-review-author_block-right{
  flex:1 1 auto !important;
  min-width:0;
  padding-right:0 !important;
  width:100%;
}
/* Head row: author_block-right contains name/stars/text/footer as siblings —
   wrap name + date in a single head line via CSS grid/flex on block-right */
.product-review-author_block-right{display:flex;flex-direction:column;}
/* Name — bold, primary color */
.product-review_author-name{
  font-size:15px;
  font-weight:700;
  color:#1a1a1a;
  margin:0 0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  min-width:0;
}
/* Date pill — positioned next to name using order+margin-left:auto on block-left
   but block-left is now inside card, not inside block-right. So float date to right
   via absolute overlay at the same visual line. */
.product-review-author_block-left{
  position:absolute !important;
  top:20px !important;
  right:22px !important;
  display:inline-flex !important;
}
.product-review_date{color:#9a9a9a;font-size:13px;display:inline-flex;align-items:center;gap:0;white-space:nowrap;}
.product-review_date::before{display:none;content:none;}
/* Stars */
.review-author-star{color:#f5a623;font-size:14px;letter-spacing:3px;margin:0 0 14px;display:flex;align-items:center;gap:0;line-height:1;}
.review-author-star .fa-star-o{color:#ddd;}
.review-author-star .text-h3{display:none;}
/* Text */
.product-review_author-text{
  font-size:14px;
  line-height:1.55;
  color:#222;
  margin:0 0 16px;
  overflow-wrap:break-word;
  word-wrap:break-word;
  word-break:break-word;
}

/* Pagination "Показати ще" */
.product-review-block + .text-right{text-align:center !important;margin-top:18px;}
.product-review-block + .text-right .pagination{display:inline-flex;gap:8px;margin:0;}
.product-review-block + .text-right a{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:#fff;border:1px solid #e0e0e0;border-radius:10px;color:#222;text-decoration:none;font-size:13px;font-weight:500;transition:all .15s;}
.product-review-block + .text-right a:hover{background:#f7f7f7;border-color:#222;}

/* ═══════════════════════════════════════════════════════════════
   V2 Review footer — matches Figma: "💬 Reply │ ◯ View replies"
   with horizontal separator line above the actions row.
   ═══════════════════════════════════════════════════════════════ */
.product-review_footer{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:0;
  padding:14px 0 0;
  border-top:1px solid #efefef;
  flex-wrap:wrap;
  min-width:0;
}
.product-review_replay{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#6b6b6b;
  font-size:13px;
  white-space:nowrap;
}
.product-review_replay svg{width:16px;height:16px;color:#9a9a9a;flex-shrink:0;}
.product-review_replay-comment{color:#6b6b6b;text-decoration:none;font-size:13px;}
.product-review_replay-comment:hover{color:#1a1a1a;}
/* Vertical separator "│" between "Reply" and "View replies" */
.product-review_replay + .product-review_show-comments::before{
  content:"";
  display:inline-block;
  width:1px;
  height:14px;
  background:#d4d4d4;
  margin-right:8px;
  vertical-align:middle;
  flex-shrink:0;
}
.product-review_show-comments{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#6b6b6b;
  white-space:nowrap;
  min-width:0;
}
/* Comments count → thin-bordered circle (matches V1 & Figma reference) */
.product-review_comments-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  padding:0;
  background:transparent !important;
  color:#1a1a1a !important;
  border:1px solid #d4d4d4;
  border-radius:50%;
  font-size:12px;
  font-weight:500;
  line-height:1;
  flex-shrink:0;
}
.product-review_replay-link{color:#6b6b6b;text-decoration:none;font-size:13px;white-space:nowrap;}
.product-review_replay-link:hover{color:#1a1a1a;}

/* Verified purchase badge inside V2 name row */
.product-review_verified-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  font-weight:500;
  color:#0fa379;
  background:transparent;
  padding:0;
  margin-left:4px;
}
.product-review_verified-badge .fa{font-size:13px;color:#0fa379;}

/* V2 Replies block (nested admin/shop replies under a review) */
.product-review_replies{margin-top:14px;display:flex;flex-direction:column;gap:14px;}
.product-review_replies[hidden]{display:none;}
.product-review_reply{display:flex;gap:10px;align-items:flex-start;padding-left:12px;}
.product-review_reply-arrow{flex:0 0 auto;color:#b8b8b8;margin-top:2px;}
.product-review_reply-body{flex:1;min-width:0;}
.product-review_reply-head{display:flex;align-items:center;gap:10px;margin-bottom:4px;}
.product-review_reply-name{font-size:13px;font-weight:600;color:#1a1a1a;}
.product-review_reply-date{margin-left:auto;font-size:12px;color:#6e6e6e;}
.product-review_reply-text{font-size:13px;line-height:1.55;color:#333;margin:0;}

/* Mobile tightening */
@media (max-width:767px){
  .product-review-author{padding:16px 16px;}
  .product-review-author_block-left{top:16px !important;right:16px !important;}
  .product-review_author-name{font-size:14px;padding-right:90px;flex-wrap:wrap;gap:6px;}
  .product-review_verified-badge{font-size:11px;}
  .product-review_verified-badge .fa{font-size:12px;}
  .product-review_date{font-size:12px;}
  .review-author-star{font-size:13px;letter-spacing:2px;margin-bottom:10px;}
  .product-review_author-text{font-size:13px;margin-bottom:12px;line-height:1.5;}
  .product-review_footer{padding:12px 0 0;gap:10px;}
  .product-review_replay,
  .product-review_show-comments,
  .product-review_replay-comment,
  .product-review_replay-link{font-size:12px;}
  .product-review_replay + .product-review_show-comments::before{margin-right:4px;height:12px;}
  .product-review_comments-number{width:20px;height:20px;font-size:11px;}
  .product-review_reply{padding-left:8px;}
  .product-review_reply-name{font-size:12px;}
  .product-review_reply-date{font-size:11px;}
  .product-review_reply-text{font-size:12px;}
}

/* Empty review state */
.empty-review{padding:30px 20px;text-align:center;}
.empty-review .category-empty-img{max-width:120px;opacity:.5;margin-bottom:16px;}
.empty-review-title{font-size:16px;font-weight:600;color:#1a1a1a;margin:0 0 6px;}
.empty-review-description{font-size:13px;color:#6e6e6e;margin:0 0 16px;max-width:400px;}
.empty-review .review-header-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 22px;background:var(--otc-btn-primary,#252525) !important;color:var(--otc-btn-primary-text,#fff) !important;border:none !important;border-radius:var(--otc-btn-radius,10px) !important;font-size:13px;font-weight:500;cursor:pointer;}
.empty-review .review-header-btn:hover{opacity:.9;}

/* ── Related products slider ── */
.prod-related-grid-wrap{margin-top:32px;}
.prod-related-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.prod-related-header .prod-section-title{margin:0;}
.prod-related-nav{display:flex;gap:8px;}
.prod-related-arrow{width:40px;height:40px;border-radius:50%;border:1px solid #e0e0e0;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#222;transition:all .15s;}
.prod-related-arrow:hover{background:#f7f7f7;border-color:#222;}
.prod-related-arrow.swiper-button-disabled{opacity:.3;cursor:default;}
.prod-related-swiper{overflow:hidden;}
.prod-related-swiper .swiper-slide{height:auto;}
.prod-related-swiper .product-card-wrapper{height:100%;}

/* ═══════════════════════════════════════════════════════════════
   Tablet (≤1199)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:1199px){
  .prod-content-top{grid-template-columns:1fr 1fr;gap:24px;}
  .prod-content-bottom-wrap{grid-template-columns:1fr auto;gap:24px;}
  /* V1: на вужчому екрані пропорційно стискаємо 950/450 → 1fr + 400 */
  .prod-page-style--v1 .prod-columns{gap:28px;}
  .prod-page-style--v1 .prod-col-left{flex:1 1 auto;max-width:none;}
  .prod-page-style--v1 .prod-col-right{flex:0 0 400px;max-width:400px;}
}
@media (max-width:991px){
  /* V1: стек у одну колонку */
  .prod-page-style--v1 .prod-columns{flex-direction:column;gap:24px;}
  .prod-page-style--v1 .prod-col-left,
  .prod-page-style--v1 .prod-col-right{flex:1 1 auto;max-width:none;width:100%;}
}

/* ═══════════════════════════════════════════════════════════════
   Tablet small (≤991) — стек у одну колонку
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:991px){
  .prod-content-top{grid-template-columns:1fr;gap:16px;}
  .prod-content-bottom-wrap{grid-template-columns:1fr;gap:16px;}
  .prod-content-right{width:100%;max-width:340px;}
  .prod-anchor-tabs{flex-wrap:nowrap;}
}

/* ═══════════════════════════════════════════════════════════════
   Mobile (≤767)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:767px){
  .prod-page-wrap{padding:12px 12px 40px;}
  .prod-anchor-tabs{padding:4px;border-radius:10px;}
  .prod-anchor-tab{padding:9px 14px;font-size:12px;}

  /* Mobile: only main slide + pagination dots, no thumbs strip, no arrows.
     Pagination sits OUTSIDE the image now (8px gap), and there's 16px between
     the gallery block (image + dots) and the next info card per Figma. */
  .prod-gallery{display:flex !important;flex-direction:column !important;gap:0 !important;padding:0;border-radius:12px;grid-template-columns:none !important;margin-bottom:16px;}
  .prod-gallery__main{order:1 !important;width:100% !important;max-width:100% !important;}
  .prod-gallery__thumbs{display:none !important;}
  .prod-main-swiper{min-height:0;padding-bottom:0;}
  .prod-main-slide{min-height:0;padding:16px;}
  .prod-gallery-arrow{display:none !important;}
  .prod-gallery-pagination{position:static !important; margin-top:8px; padding:0;}


  /* Gap between gallery and the next block (File guidelines / info card) */
  .prod-gallery + .prod-side-card,
  .prod-gallery + .prod-file-guidelines-card,
  .prod-v2-cell--gallery > .prod-gallery + *,
  .prod-col-left > .prod-gallery + *{
    margin-top:20px !important;
  }

  /* Info card stacking on mobile — per Figma: no inner card padding so the
     content sits flush against the page padding (the .container already gives
     a comfortable 12-15px gutter), and no rounded card background. */
  .prod-info-card,
  .prod-side-card{padding:0;border-radius:0;background:transparent;border:0;box-shadow:none;}
  .prod-title-row{flex-direction:row;align-items:flex-start;gap:10px;}
  .prod-title{font-size:18px;}
  .prod-icon-btn{width:34px;height:34px;}

  .prod-meta{flex-wrap:wrap;gap:8px;}
  .prod-meta-left,.prod-meta-mid,.prod-meta-right{flex:1 1 auto;}
  /* Article label sits next to the stock status — plain text, no pill bg. */
  .prod-meta .prod-code,
  .prod-page-style--v1 .prod-meta .prod-code{
    background:transparent !important; padding:0 !important; border-radius:0 !important;
    color:#7d7d7d !important; font-size:14px;
  }

  .prod-price-row{flex-wrap:wrap;gap:12px;}
  /* Main price — 24px per Figma mobile. */
  .prod-price-new{font-size:24px;}

  /* ── "Group options" trigger — visible only on ≤500 in modal mode. */
  .prod-timer-card{padding:6px 10px;}
  .prod-timer-val{font-size:12px;}

  /* Action row on mobile per Figma: qty 100×44 left, Add-to-cart fills the rest
     of the row with a "+" icon, 44px tall. Quick-order (if visible) wraps to
     the next row below the qty + cart pair. 24px breathing room to the next
     section below (Shipping/return policies). */
  .prod-actions{flex-wrap:wrap;gap:12px;align-items:stretch;margin-bottom:24px;}
  .prod-qty{flex:0 0 76px !important;width:76px !important;max-width:76px !important;height:44px !important;}
  .prod-btn-cart{flex:1 1 auto !important;width:auto !important;height:44px !important;font-size:14px;padding:0 16px;gap:8px;}
  .prod-btn-quick{flex:1 1 100% !important;font-size:13px;padding:0 12px;height:44px;}

  .prod-section-card{padding:18px;border-radius:12px;}
  .prod-attr-row{flex-direction:column;gap:2px;padding:8px 0;}
  .prod-attr-key{flex:0 0 auto;}
  .prod-attr-key::after{display:none;}
  .prod-attr-val{padding-left:0;}

  /* Reviews mobile */
  .product-review_header{flex-wrap:wrap;gap:10px;}
  .product-review_block{grid-template-columns:1fr;gap:20px;text-align:center;padding-bottom:18px;}
  .product-review-left{margin:0 auto;}
  .product-review-right{width:100%;}
  .product-review-author_block-left{position:static !important;order:initial !important;align-items:flex-start !important;margin-bottom:6px;}
  .product-review-author_block-right{padding-right:0 !important;}
}

/* ═══════════════════════════════════════════════════════════
   V2 — 2 stacked rows:
   Row 1: gallery (695) | info-wrap (695)        col gap 50px
   Row 2: sections (1105) | related (275)        col gap 50px
   Row gap: 30px
   ═══════════════════════════════════════════════════════════ */
.prod-page-wrap.prod-page-style--v2{width:100% !important;max-width:1440px !important;padding-left:15px !important;padding-right:15px !important;box-sizing:border-box !important;}

.prod-page-style--v2 .prod-v2-layout{display:flex;flex-direction:column;gap:30px;width:100%;}
.prod-page-style--v2 .prod-v2-row{display:flex;gap:50px;align-items:flex-start;width:100%;}

.prod-page-style--v2 .prod-v2-cell{min-width:0;}
.prod-page-style--v2 .prod-v2-cell--gallery{flex:1 1 0;min-width:0;max-width:695px;display:flex;flex-direction:column;gap:20px;}
.prod-page-style--v2 .prod-v2-cell--info{flex:1 1 0;min-width:0;max-width:695px;}
.prod-page-style--v2 .prod-v2-cell--sections{flex:1 1 0;min-width:0;max-width:1105px;}
.prod-page-style--v2 .prod-v2-cell--related{flex:0 0 275px;max-width:275px;min-width:0;}

.prod-page-style--v2 .prod-v2-cell--info .prod-info-wrap{display:flex;flex-direction:column;gap:14px;width:100%;}
.prod-page-style--v2 .prod-v2-cell--sections .prod-sections-wrap{display:flex;flex-direction:column;gap:30px;width:100%;}

.prod-page-style--v2 .prod-v2-cell--info .prod-info-card,
.prod-page-style--v2 .prod-v2-cell--info .prod-side-card{max-width:none !important;width:100% !important;}

.prod-page-style--v2 .prod-v2-cell--related .prod-content-right{width:100%;max-width:none;margin:0;padding:0;}
.prod-page-style--v2 .prod-v2-cell--related .prod-side-slider-wrap,
.prod-page-style--v2 .prod-v2-cell--related .prod-side-swiper,
.prod-page-style--v2 .prod-v2-cell--related .swiper-wrapper{width:100%;}
.prod-page-style--v2 .prod-v2-cell--related .product-card-wrapper{width:100%;max-width:275px;}

@media (max-width:1499px){
  .prod-page-style--v2 .prod-v2-row{gap:24px;}
  /* flex-basis:0 + flex-grow:1 => pure equal division without content-induced overflow
     (previous calc(50% - 12px) allowed content min-width to exceed basis and balloon the cell) */
  .prod-page-style--v2 .prod-v2-cell--gallery,
  .prod-page-style--v2 .prod-v2-cell--info{flex:1 1 0 !important;width:auto !important;max-width:none !important;min-width:0 !important;}
  .prod-page-style--v2 .prod-v2-cell--sections{flex:1 1 0 !important;width:auto !important;max-width:none !important;min-width:0 !important;}
  .prod-page-style--v2 .prod-v2-cell--related{flex:0 0 275px !important;width:275px !important;max-width:275px !important;min-width:0 !important;}
}
/* ═══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE REWRITE (≤991px)
   ─────────────────────────────────────────────────────────────────────
   Clean single-column layout. Everything inside #product-product is forced
   to width:100%; box-sizing:border-box. No flex/grid for layout — just
   normal block flow stacked vertically. Cards, selects, buttons, images
   all scale with viewport.

   Why this is needed:
   • Original design uses fixed-px widths (695/1105/275/950/450) and deep
     flex/grid nesting. On narrow viewports, min-content in flex children
     (like swiper-slide{width:100%} inside swiper-wrapper{width:100%})
     creates runaway growth. Slides hit 214 582 px. Page goes horizontal.
   • Viewport-relative widths (calc(100vw - NNpx)) on swiper container
     give Swiper a deterministic number to measure on init.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width:991px){

  /* 1. Root container — never exceeds viewport */
  #product-product{width:100% !important;max-width:100% !important;box-sizing:border-box !important;padding-left:12px !important;padding-right:12px !important;}

  /* 2. Layout wrappers — plain block flow */
  #product-product .prod-page-layout,
  #product-product .prod-content,
  #product-product .prod-v2-layout,
  #product-product .prod-v2-row,
  #product-product .prod-v2-row--top,
  #product-product .prod-v2-row--bottom,
  #product-product .prod-columns{display:block !important;margin:0 !important;padding:0 !important;width:100% !important;max-width:100% !important;box-sizing:border-box !important;}

  /* Spacing between rows/columns */
  #product-product .prod-v2-row + .prod-v2-row{margin-top:20px !important;}
  #product-product .prod-v2-cell + .prod-v2-cell,
  #product-product .prod-col-left + .prod-col-right{margin-top:20px !important;}

  /* 3. Cells — single-column full-width blocks */
  #product-product .prod-v2-cell,
  #product-product .prod-v2-cell--gallery,
  #product-product .prod-v2-cell--info,
  #product-product .prod-v2-cell--sections,
  #product-product .prod-v2-cell--related,
  #product-product .prod-col-left,
  #product-product .prod-col-right{display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;flex:none !important;padding:0 !important;margin:0 !important;}

  /* 4. Content wrappers inside cells */
  /* Mobile section gap = 24px between major blocks per Figma (info card →
     Shipping → File guidelines → Delivery list etc.). */
  #product-product .prod-info-wrap,
  #product-product .prod-sections-wrap,
  #product-product .prod-content-right{display:flex !important;flex-direction:column !important;gap:24px !important;width:100% !important;max-width:100% !important;min-width:0 !important;margin:0 !important;padding:0 !important;}

  /* 5. Cards — full width. Mobile per Figma: zero inner padding on the info
     card so price/title/options align with the page gutter; the existing
     side/section cards keep their padding for visual separation. */
  #product-product .prod-info-card{width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;padding:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;}
  #product-product .prod-side-card,
  #product-product .prod-section-card,
  #product-product .prod-attr-card,
  #product-product .prod-file-guidelines-card{width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;padding:16px !important;}

  /* 6. Gallery — viewport-relative width so Swiper measures right.
        No inner padding per Figma mobile: image edge-to-edge, pagination
        dots sit directly under the image with 8px gap (margin-top set on
        .prod-gallery-pagination earlier). */
  #product-product .prod-gallery{display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;padding:0 !important;box-sizing:border-box !important;}
  #product-product .prod-gallery__main{width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;order:1 !important;margin-bottom:0 !important;}
  #product-product .prod-gallery__thumbs{display:none !important;}

  /* Main swiper on the gallery */
  #product-product .prod-main-swiper{width:100% !important;max-width:100% !important;min-width:0 !important;overflow:hidden !important;box-sizing:border-box !important;}

  /* 7. Slide — plain block, image centered, no runaway flex growth */
  #product-product .prod-main-slide{display:flex !important;align-items:center !important;justify-content:center !important;padding:16px !important;box-sizing:border-box !important;min-height:0 !important;}
  /* ТЗ BR-04: width:100% — маленькое фото растягивается до ширины слайда
     (height:auto хранит пропорцию — без обрезки/искажений). */
  #product-product .prod-main-slide img{width:100% !important;max-width:100% !important;height:auto !important;display:block !important;margin:0 auto !important;}

  /* 8. Form controls + action rows */
  #product-product .prod-actions,
  #product-product .prod-meta,
  #product-product .prod-price-row,
  #product-product .prod-option{width:100% !important;max-width:100% !important;box-sizing:border-box !important;}
  #product-product .prod-actions{flex-wrap:wrap !important;gap:12px !important;align-items:stretch !important;margin-bottom:24px !important;}
  /* Qty-степпер нового зразка (як у кошику): компакт 76×44, вертикальні ▲▼. */
  #product-product .prod-qty{
    flex:0 0 76px !important;
    width:76px !important;
    max-width:76px !important;
    height:44px !important;
  }
  #product-product .prod-qty .prod-qty-input{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100%;
    text-align:center !important;
  }
  #product-product .prod-btn-cart{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    height:44px !important;
    padding:0 16px !important;
    gap:8px !important;
    font-size:14px !important;
  }
  #product-product .prod-btn-quick{
    flex:1 1 100% !important;
    min-width:0 !important;
    height:44px !important;
    font-size:13px !important;
  }
  /* Кнопка "Add to Cart" на мобілі — БЕЗ іконки (тільки назва), як і на десктопі:
     у налаштуваннях шаблона іконки для цієї кнопки немає, тому "+"-глиф прибрано. */
  #product-product .prod-option select.form-control,
  #product-product .prod-option input.form-control,
  #product-product .prod-option textarea.form-control{width:100% !important;max-width:100% !important;box-sizing:border-box !important;}

  /* 9. File guidelines — stack label/value vertically on mobile (otherwise
        .prod-fg-row is flex:space-between which forces row min-content wide) */
  #product-product .prod-file-guidelines-card .prod-fg-row{flex-direction:column !important;align-items:flex-start !important;gap:2px !important;}
  #product-product .prod-file-guidelines-card .prod-fg-value{text-align:left !important;max-width:100% !important;width:100% !important;}
  #product-product .prod-file-guidelines-card .prod-fg-label{flex:0 0 auto !important;max-width:100% !important;}

  /* 10. Word-wrap for long text */
  #product-product .prod-section-body,
  #product-product .prod-attr-val,
  #product-product .prod-attr-key,
  #product-product .prod-fg-value,
  #product-product .prod-fg-label,
  #product-product .prod-short-text,
  #product-product .prod-title,
  #product-product .breadcrumb a,
  #product-product .breadcrumb li{overflow-wrap:break-word !important;word-wrap:break-word !important;word-break:break-word !important;}

  /* 11. Anchor tabs — scroll inside, never push parent width */
  #product-product .prod-anchor-tabs{max-width:100% !important;overflow-x:auto !important;flex-wrap:nowrap !important;}

  /* 12. Related/"You may also like" slider — also cap */
  #product-product .prod-yml,
  #product-product .prod-related-grid-wrap,
  #product-product .prod-related-swiper,
  #product-product .prod-yml-swiper{width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;}
}

/* ═══════════════════════════════════════════════════════════════
   Mobile (≤767) — Block ordering on the product page.
   Placed AFTER the ≤991 reset block above so it overrides
   `display:block !important` on .prod-columns / .prod-col-*.

   Target order: gallery → info-card (price/options/cart)
                 → file-guidelines → sections (description/specs/reviews).
   We unwrap the two columns via `display:contents` so their inner
   blocks become direct flex children of .prod-columns, then place
   them with `order:`.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:767px){
  /* Hide recommended-products slider — placed here to override the
     `#product-product .prod-content-right{display:flex !important}`
     reset earlier in the ≤991 block. */
  #product-product .prod-content-right,
  #product-product .prod-col-right .prod-content-right{display:none !important;}

  #product-product .prod-columns{display:flex !important;flex-direction:column !important;gap:20px !important;}
  #product-product .prod-columns > .prod-col-left,
  #product-product .prod-columns > .prod-col-right{display:contents !important;}
  #product-product .prod-columns > .prod-col-left > .prod-gallery{order:1 !important;}
  #product-product .prod-columns > .prod-col-right > .prod-info-wrap{order:2 !important;}
  #product-product .prod-columns > .prod-col-right .prod-side-card,
  #product-product .prod-columns > .prod-col-right > .prod-file-guidelines-card{order:3 !important;}
  #product-product .prod-columns > .prod-col-left > .prod-sections-wrap{order:4 !important;}
}

/* ═══════════════════════════════════════════════════════════════
   Gallery lightbox — full-screen overlay for enlarged image viewing
   with prev/next navigation, thumbnail strip, counter, close button.
   ═══════════════════════════════════════════════════════════════ */
.prod-lightbox{
  position:fixed;inset:0;z-index:99999;
  display:flex;align-items:center;justify-content:center;
  background:rgba(15,15,15,.92);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  animation:prodLightboxIn .2s ease;
  padding:24px 100px;
}
.prod-lightbox[hidden]{display:none !important;}
/* When lightbox is open, hide the underlying product gallery panels so
   they don't show through behind the modal */
body.prod-lightbox-open .prod-gallery,
body.prod-lightbox-open .prod-gallery__thumbs,
body.prod-lightbox-open .prod-gallery__main,
body.prod-lightbox-open .prod-thumbs-swiper{
  visibility:hidden;
}
/* Inner "card" container that holds thumbs + stage as one centered block */
.prod-lightbox > .prod-lightbox__content{
  display:flex;flex-direction:row-reverse;align-items:stretch;gap:12px;
  max-width:880px;width:100%;
  height:min(720px, 84vh);
}
@keyframes prodLightboxIn{from{opacity:0;}to{opacity:1;}}
.prod-main-slide{cursor:zoom-in;}
.prod-main-slide img{pointer-events:none;user-select:none;}

.prod-lightbox__close{
  position:absolute;top:18px;right:18px;z-index:3;
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.1);border:none;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .15s,transform .15s;
}
.prod-lightbox__close:hover{background:rgba(255,255,255,.2);transform:scale(1.05);}

.prod-lightbox__arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;border-radius:50%;
  background:rgba(255,255,255,.1);border:none;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .15s,opacity .15s;
}
.prod-lightbox__arrow:hover{background:rgba(255,255,255,.2);}
.prod-lightbox__arrow[disabled]{opacity:.3;cursor:default;}
.prod-lightbox__arrow--prev{left:22px;}
.prod-lightbox__arrow--next{right:22px;}

/* Layout 1:1 with Figma reference:
   centered modal card with compact thumb column LEFT
   + main image area RIGHT, prev/next OUTSIDE, counter at bottom */
.prod-lightbox__thumbs{
  flex:0 0 auto;
  /* Две колонки превью: миниатюры заполняют высоту в 2 столбца, а вертикальный
     скролл появляется ТОЛЬКО когда они не влезают даже в два столбца. */
  display:grid;grid-template-columns:repeat(2,56px);gap:4px;
  align-content:start;justify-items:center;
  padding:0;align-self:flex-start;
  max-height:100%;
  overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;
}
.prod-lightbox__thumbs::-webkit-scrollbar{width:4px;}
.prod-lightbox__thumbs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:2px;}
.prod-lightbox__thumb{
  position:relative;flex:0 0 56px;width:56px;height:56px;
  border:2px solid transparent;border-radius:6px;
  background:#fff;cursor:pointer;padding:0;box-sizing:border-box;overflow:hidden;
  transition:border-color .15s,opacity .15s;opacity:.85;
}
.prod-lightbox__thumb:hover{opacity:1;}
.prod-lightbox__thumb.is-active{border-color:#1a1a1a;opacity:1;}
.prod-lightbox__thumb img,.prod-lightbox__thumb video{
  width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;
  transform:scale(1.2);transform-origin:center;
}
.prod-lightbox__thumb-vbadge{
  position:absolute;bottom:2px;left:2px;right:2px;background:rgba(0,0,0,.65);color:#fff;
  border-radius:3px;padding:1px 0;font-size:8px;font-weight:600;letter-spacing:.05em;
  text-align:center;pointer-events:none;
}
.prod-lightbox__thumb-vplay{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;text-shadow:0 1px 4px rgba(0,0,0,.6);pointer-events:none;
}

.prod-lightbox__stage{
  flex:1 1 auto;display:flex;align-items:center;justify-content:center;
  /* ТЗ BR-04: в открытой галерее НЕ должно быть белого фона — вертикальные фото
     давали белые поля по бокам. Фото лежит прямо на тёмном оверлее. */
  background:transparent;
  overflow:hidden;box-sizing:border-box;position:relative;
  min-height:0;
}
.prod-lightbox__img,.prod-lightbox__stage video{
  max-width:100%;max-height:100%;
  object-fit:contain;display:block;
  animation:prodLightboxImgIn .25s ease;
}
.prod-lightbox__stage video{background:#000;}
@keyframes prodLightboxImgIn{from{opacity:0;transform:scale(.97);}to{opacity:1;transform:scale(1);}}

/* Close button — top-right OUTSIDE the card. White circle so it's visible on dark backdrop. */
.prod-lightbox__close{
  position:absolute;top:24px;right:24px;z-index:5;
  width:36px;height:36px;border-radius:50%;
  background:#fff;border:none;color:#1a1a1a;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .15s,box-shadow .15s;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.prod-lightbox__close:hover{transform:scale(1.06);box-shadow:0 4px 12px rgba(0,0,0,.3);}
.prod-lightbox__close svg{width:18px;height:18px;}

/* Prev/Next arrows — beside the card */
.prod-lightbox__arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:36px;height:36px;border-radius:50%;
  background:#fff;border:none;color:#1a1a1a;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .15s,box-shadow .15s;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.prod-lightbox__arrow:hover{transform:translateY(-50%) scale(1.05);box-shadow:0 4px 12px rgba(0,0,0,.2);}
.prod-lightbox__arrow svg{width:16px;height:16px;}
.prod-lightbox__arrow[disabled]{opacity:.3;cursor:default;}
/* Arrows live INSIDE the stage (position:relative) so they flank the image 1:1 with the macro. */
.prod-lightbox__arrow--prev{left:12px;}
.prod-lightbox__arrow--next{right:12px;}

.prod-lightbox__counter{
  position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  z-index:3;color:#fff;font-size:13px;font-weight:500;letter-spacing:.5px;
  background:transparent;padding:0;
}

@media (max-width:991px){
  .prod-lightbox{padding:16px;}
  .prod-lightbox > .prod-lightbox__content{flex-direction:column-reverse;max-height:92vh;}
  .prod-lightbox__thumbs{
    /* На узких экранах превью идут горизонтальной лентой снизу (сбрасываем grid). */
    display:flex;flex-direction:row;
    grid-template-columns:none;scrollbar-gutter:auto;
    flex:0 0 56px;width:100%;height:56px;
    overflow-x:auto;overflow-y:hidden;
  }
  .prod-lightbox__thumb{flex:0 0 48px;width:48px;height:48px;}
  .prod-lightbox__arrow{width:32px;height:32px;}
  .prod-lightbox__arrow--prev{left:8px;}
  .prod-lightbox__arrow--next{right:8px;}
  .prod-lightbox__close{top:10px;right:10px;}
}

/* ═══════════════════════════════════════════════════════════════
   Breadcrumb — home icon in first li (replaces text of the home link)
   ═══════════════════════════════════════════════════════════════ */
.prod-breadcrumb li:first-child a{display:inline-flex;align-items:center;justify-content:center;color:inherit;}
.prod-breadcrumb-home{display:block;color:currentColor;}

/* ═══════════════════════════════════════════════════════════════
   Breadcrumb on mobile/narrow screens — single line with horizontal
   scroll (instead of wrapping to 2-3 lines with long product names).
   Last item truncates with ellipsis if too long to fit.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:991px){
  .prod-breadcrumb{
    flex-wrap:nowrap !important;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    white-space:nowrap;
    padding-bottom:2px;
  }
  .prod-breadcrumb::-webkit-scrollbar{display:none;height:0;}
  .prod-breadcrumb li{flex-shrink:0;}
  .prod-breadcrumb li:last-child{min-width:0;flex-shrink:1;overflow:hidden;}
  .prod-breadcrumb li:last-child a{
    display:inline-block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Gap between gallery block and next sibling (File guidelines / info
   card / description). On mobile/tablet layout becomes display:block
   which kills the 20px gap from the flex parent — restore explicitly.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width:991px){
  #product-product .prod-gallery + .prod-side-card,
  #product-product .prod-gallery + .prod-file-guidelines-card,
  #product-product .prod-gallery + .prod-info-card,
  #product-product .prod-gallery + .prod-info-wrap,
  #product-product .prod-gallery + .prod-sections-wrap,
  #product-product .prod-v2-cell > * + *,
  #product-product .prod-v2-cell--gallery > * + *,
  #product-product .prod-col-left > * + *,
  #product-product .prod-col-right > * + *{
    margin-top:20px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Anchor tabs — horizontal scroll with hidden scrollbar + smooth
   touch swiping on mobile.
   ═══════════════════════════════════════════════════════════════ */
.prod-anchor-tabs{
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  scroll-behavior:smooth;
}
.prod-anchor-tabs::-webkit-scrollbar{display:none;height:0;}
@media (max-width:991px){
  .prod-anchor-tabs{
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .prod-anchor-tab{flex:0 0 auto !important;white-space:nowrap;}
}

/* ═══════════════════════════════════════════════════════════════
   Gallery — sticker/label positioning on main image (top-left)
   + wishlist heart on main image (top-right) + Swiper pagination
   ═══════════════════════════════════════════════════════════════ */
.prod-gallery__main{position:relative;}
.prod-gallery-labels{position:absolute;top:12px;left:12px;z-index:4;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:flex-start;pointer-events:none;margin:0;padding:0;}
.prod-gallery-labels .product-labels--item{display:inline-block;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.08);}
.prod-gallery-labels .product-labels--item.product-labels--square{border-radius:0 !important;}

/* Вишлист на странице товара — ТОТ ЖЕ вид, что в модулях: голое сердце .ot-heart
   (white ring idle → solid red active, drop-shadow), без кружка/рамки/тени. */
/* Дії галереї — авто-стек колонкою у top-right. Кнопки static всередині,
   тож приховані тумблерами (wishlist/compare) не лишають дірок. */
.prod-gallery-actions{position:absolute;top:12px;right:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;}
.prod-gallery-wishlist{position:relative;width:40px;height:40px;background:transparent;border:none;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all .15s;}
.prod-gallery-wishlist .ot-heart{width:30px;height:28px;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));}
.prod-gallery-wishlist .ot-heart path{stroke:none !important;}
.prod-gallery-wishlist .ot-heart-ring{fill:#FFFFFF;}
.prod-gallery-wishlist .ot-heart-solid{display:none;fill:#E53935 !important;}
.prod-gallery-wishlist.active-like .ot-heart-ring{display:none;}
.prod-gallery-wishlist.active-like .ot-heart-solid{display:block;}

/* Compare — под сердцем, в таком же голом виде (белая иконка + drop-shadow, без
   кружка/рамки/тени). compare.toggle показывает тост «Додано до порівняння». */
.prod-gallery-compare{position:relative;width:40px;height:40px;background:transparent;border:none;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:#FFFFFF;transition:all .15s;}
.prod-gallery-compare svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));}
.prod-gallery-compare:hover{box-shadow:none;}
.prod-gallery-compare.active-like{color:#EC2424;}

/* Share товаром — под compare, В ТАКОМ ЖЕ виде, что и вишлист-сердце: голая иконка
   (белая + drop-shadow), без кружка/рамки/тени. Копіює URL; .is-copied → «галка». */
.prod-gallery-share{position:relative;width:40px;height:40px;background:transparent;border:none;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:#FFFFFF;transition:all .15s;}
.prod-gallery-share svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));}
.prod-gallery-share:hover{box-shadow:none;}
.prod-gallery-share__ok{display:none;}
.prod-gallery-share.is-copied{color:#0fa379;}
.prod-gallery-share.is-copied .prod-gallery-share__ico{display:none;}
.prod-gallery-share.is-copied .prod-gallery-share__ok{display:block;}

/* Пагинация главного слайдера — ПОД изображением, по макету.
   Figma 243:24273 (mobile 375): блок галереи vertical gap 8 → [фото] + [ряд точек];
   точка 12×6 радиус 50 #DDDDDD, активная 20×6 #332723, между точками 6.
   Раньше правило было `position:absolute; bottom:12px` — точки лежали ПОВЕРХ фото
   (и перекрывали кадр), а «static» стоял только в мобильной медиа ≤500px, из-за чего
   на планшетных ширинах они снова оказывались на картинке. */
.prod-gallery-pagination{position:static;left:auto;right:auto;bottom:auto;z-index:auto;display:flex;justify-content:center;align-items:center;gap:6px;margin-top:8px;padding:0;text-align:center;pointer-events:none;}
.prod-gallery-pagination .swiper-pagination-bullet,
.prod-gallery-pagination span.swiper-pagination-bullet{display:inline-block;width:12px;height:6px;border-radius:50px;background:#DDDDDD;opacity:1;margin:0;cursor:pointer;pointer-events:auto;transition:width .2s,background .2s;}
.prod-gallery-pagination .swiper-pagination-bullet-active,
.prod-gallery-pagination span.swiper-pagination-bullet-active{background:#332723;width:20px;border-radius:50px;}
/* Video slide → its pagination bullet is a play triangle (not a dot/bar). */
.prod-gallery-pagination .swiper-pagination-bullet.is-video,
.prod-gallery-pagination span.swiper-pagination-bullet.is-video{
  /* Цвета — те же, что у обычных точек (см. блок выше, значения из Figma). */
  width:9px;height:10px;border-radius:0 !important;background:#DDDDDD;
  clip-path:polygon(0 0,100% 50%,0 100%);
}
.prod-gallery-pagination .swiper-pagination-bullet.is-video.swiper-pagination-bullet-active,
.prod-gallery-pagination span.swiper-pagination-bullet.is-video.swiper-pagination-bullet-active{
  width:11px !important;height:12px !important;border-radius:0 !important;background:#332723 !important;
}

/* Wishlist heart lives in the top-right of the gallery image at every viewport.
   Previously the title-row variant doubled it on desktop; per Figma the heart
   sits on the image only. */
.prod-title-row .prod-icon-actions .prod-icon-btn.wishlist,
.prod-title-row .prod-icon-actions button[onclick*="wishlist"]{display:none !important;}
@media (max-width:767px){
  .prod-gallery-actions{top:10px;right:10px;gap:5px;}
  .prod-gallery-wishlist{width:36px;height:36px;}
  .prod-gallery-compare{width:36px;height:36px;}
  .prod-gallery-share{width:36px;height:36px;}
  .prod-gallery-labels{top:10px;left:10px;gap:5px;}
  .prod-gallery-labels .product-labels--item{padding:5px 8px;font-size:11px;}
}

/* ════════════════════════════════════════════════════════════════════════════
   "Group options" modal — full-screen sheet on ≤500 that hosts select/color/
   image options, with a sticky "Save" footer. Above 500 the trigger is hidden
   and .prod-opts-shell behaves like a plain container (header/footer hidden,
   options render inline). DOM is not moved — only CSS toggles, so OpenCart's
   form submit picks up the user's selections without extra wiring.
   ════════════════════════════════════════════════════════════════════════════ */
.prod-opts-trigger,
.prod-opts-modal-header,
.prod-opts-modal-footer{display:none;}

/* ── prod-option-chips: chip-style picker for <select> options in the
   mobile modal. Hidden by default — the desktop layout keeps the native
   <select>. The selected chip border + bg highlight matches Figma colour
   swatch styling so size/type picks look consistent with colour/template. */
.prod-option-chips{display:none;}
/* Figma "Select an option" value pill: h36, radius 100, padding 0 12, gap 6, 14px Regular.
   Border #DDDDDD unselected / #131314 selected, white bg both states (chips are modal-only). */
.prod-option-chip{
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; margin:0; padding:0 12px; gap:6px;
  background:#fff; border:1px solid #DDDDDD; border-radius:100px;
  font-size:14px; font-weight:400; color:#131314;
  cursor:pointer; user-select:none; transition:border-color .15s;
}
.prod-option-chip:hover{border-color:#bfbfbf;}
.prod-option-chip input{position:absolute; opacity:0; pointer-events:none;}
.prod-option-chip input:checked + .prod-option-chip-label{font-weight:500;}
.prod-option-chip:has(input:checked){background:#fff; border-color:#131314;}
.prod-option-sep{color:#131314; font-weight:500;}
.prod-option-current{color:#7D7D7D; font-weight:400;}

@media (max-width:500px){
  .prod-opts-trigger{
    display:flex; align-items:center; gap:8px; width:100%;
    /* Hard-locked height per Figma so a stale tail span (legacy DOM) can't
       balloon the row across multiple lines. Single-line summary only. */
    height:48px; min-height:48px; max-height:48px;
    margin:0 0 16px; padding:0 18px;
    background:#fff; border:1px solid #DDDDDD; border-radius:999px;
    font:inherit; font-size:14px; color:#131314; text-align:left; cursor:pointer;
    overflow:hidden; white-space:nowrap;
    -webkit-tap-highlight-color:transparent;
  }
  .prod-opts-trigger-head{flex:1 1 auto; min-width:0; font-weight:600; color:#131314; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  /* Hide any leftover tail span from older HTML so it can't wrap to a new line. */
  .prod-opts-trigger-tail{display:none !important;}
  .prod-opts-trigger-cta{display:inline-flex; align-items:center; gap:4px; color:#131314; font-weight:500; flex:0 0 auto; white-space:nowrap;}
  .prod-opts-trigger:hover{border-color:#bfbfbf;}

  /* Inline state — options + add-ons hidden; trigger replaces them. */
  .prod-opts-shell.is-modalable{display:none;}

  /* Active modal state — body class triggers it. */
  body.prod-opts-modal-open{overflow:hidden;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable{
    position:fixed; inset:0; z-index:1050;
    display:flex; flex-direction:column;
    background:#fff;
    overflow:hidden;
  }

  /* Figma title row: padding 6px 12px, 20px Semibold, no divider. */
  .prod-opts-shell.is-modalable .prod-opts-modal-header{
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 12px; border-bottom:0;
    font-size:20px; font-weight:600; color:#131314;
    flex:0 0 auto;
  }
  .prod-opts-modal-title{font-size:20px; font-weight:600; line-height:1.21; color:#131314;}
  .prod-opts-modal-close{
    width:32px; height:32px; border:0; background:transparent; color:#131314;
    display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
  }

  /* Figma body "Filters": padding 0 12 24, 16px top gap to first group, gap 16. */
  .prod-opts-shell.is-modalable > .prod-opts-modal-body{
    flex:1 1 auto; overflow-y:auto;
    padding:16px 12px 24px;
    display:flex; flex-direction:column; gap:16px;
  }

  /* Figma footer: padding 10 12, top border #DDD + soft shadow, Save h44 radius8 #392923 14/500. */
  .prod-opts-shell.is-modalable .prod-opts-modal-footer{
    display:block; padding:10px 12px; border-top:1px solid #DDDDDD;
    background:#fff; flex:0 0 auto; box-shadow:0 0 15px rgba(0,0,0,.2);
  }
  .prod-opts-modal-save{
    display:block; width:100%; height:44px; border:0; border-radius:8px;
    background:var(--otc-btn-primary, #392923); color:var(--otc-btn-primary-text, #fff);
    font-size:14px; font-weight:500; cursor:pointer;
  }
  .prod-opts-modal-save:hover{background:var(--otc-btn-primary-hover, #4d382e);}

  /* Inside the modal: select-options swap to chip rendering per Figma.
     Hide the native <select> AND the PrettySelect wrapper (.ps-shell with
     its .ps-toggle button) — the plugin renders the visible dropdown UI,
     not the raw <select>, so hiding only the native element is not enough. */
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option--select select,
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option--select select.form-control,
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option--select .ps-shell,
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option--select .ps-toggle{display:none !important;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option--select .prod-option-chips{display:flex !important; flex-wrap:wrap; gap:12px; margin-top:16px;}

  /* ── Figma "Select an option" 1:1 — group labels, dividers, swatches ── */
  /* Group label: 16px Medium #131314 + current value 16px Regular #7D7D7D, gap 8. */
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option-label{
    font-size:16px !important; font-weight:500 !important; color:#131314 !important;
    margin-bottom:0 !important; display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option-current,
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-current{
    font-size:16px !important; font-weight:400 !important; color:#7D7D7D !important;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-option-sep,
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-sep{color:#131314 !important; margin-left:0 !important;}

  /* Divider line (#DDDDDD) between option groups, with 16px breathing room each side. */
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-opts-modal-body > .prod-option + .prod-option{
    border-top:1px solid #DDDDDD; padding-top:16px;
  }

  /* Colour swatches: 32px dot inside a 3px ring; selected ring = #131314. Row gap 6. */
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-row{gap:6px; margin-top:16px;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-swatch{
    padding:3px; border:1px solid transparent; border-radius:100px; line-height:0;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-dot{
    width:32px !important; height:32px !important;
    box-shadow:0 0 0 1px rgba(0,0,0,.06) inset !important;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-swatch:has(input:checked){border-color:#131314;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-color-swatch input:checked + .prod-color-dot{
    box-shadow:0 0 0 1px rgba(0,0,0,.06) inset !important;
  }

  /* Image toggles (Design Template): fill the row, padding 6, radius 10, inner image radius 6. */
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-image-row{gap:11px; margin-top:16px; flex-wrap:nowrap;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-image-swatch{flex:1 1 0 !important; min-width:0;}
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-image-tile{
    width:100% !important; height:auto !important; padding:6px !important; border-radius:10px !important; border:1px solid #DDDDDD !important;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-image-tile img{
    width:100% !important; height:auto !important; max-width:100% !important; max-height:none !important;
    aspect-ratio:1/1; object-fit:cover; border-radius:6px;
  }
  body.prod-opts-modal-open .prod-opts-shell.is-modalable .prod-image-swatch input:checked + .prod-image-tile{
    border-color:#131314; box-shadow:none;
  }

  /* Hide the floating bottom navigation while the options modal is open so
     the Save button isn't covered. JS removes the body class on close /
     Save click, which restores the nav automatically. */
  body.prod-opts-modal-open .ot-mobile-nav{display:none !important;}
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — single source of truth for section spacing.
   24px between EVERY top-level block, no inner card padding, no leftover
   margin-top from older "+" sibling rules. The .prod-sections-wrap +
   .prod-info-wrap + .prod-content-right wrappers do the gap via flex; all
   other vertical spacing is zeroed out so it can't compound.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  /* 1. The three vertical stacks own the spacing. */
  #product-product .prod-info-wrap,
  #product-product .prod-sections-wrap,
  #product-product .prod-content-right{
    display:flex !important; flex-direction:column !important;
    gap:24px !important;
    margin:0 !important; padding:0 !important;
  }

  /* 2. Sections / cards have no inner padding, no border, no background
        (per Figma — content lives flush with the page gutter). */
  #product-product .prod-section,
  #product-product .prod-section-card,
  #product-product .prod-attr-card,
  #product-product .prod-info-card,
  #product-product .prod-side-card,
  #product-product .prod-file-guidelines-card{
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* 3. Kill every legacy margin-top between adjacent sections / cards.
        gap:24px on the wrapper above is now the only thing creating space.
        The `section.prod-section + section.prod-section` form is needed
        to out-specify the inline twig <style> at product.twig:7-10 that
        sets margin-top:24px !important on the same shape. */
  #product-product.prod-page-style--v1 .prod-sections-wrap > section.prod-section,
  #product-product.prod-page-style--v1 .prod-sections-wrap > section.prod-section + section.prod-section,
  #product-product .prod-page-style--v1 .prod-sections-wrap > section.prod-section,
  #product-product .prod-page-style--v1 .prod-sections-wrap > section.prod-section + section.prod-section,
  #product-product .prod-sections-wrap > .prod-section,
  #product-product .prod-sections-wrap > .prod-section + .prod-section,
  #product-product .prod-attr-card + .prod-attr-card,
  #product-product .prod-section-card + .prod-section-card,
  #product-product .prod-page-style--v1 .prod-attr-card + .prod-attr-card,
  #product-product .prod-page-style--v1 .prod-section-card + .prod-section-card{
    margin-top:0 !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — every direct child of .prod-info-card sits 24px below the
   previous one. Older rules sprinkled margin-bottom:8/12/14/18/24px AND
   margin-top:6/8/18px across .prod-meta / .prod-title-row / .prod-price-row /
   .prod-rating-row / .prod-addons / .prod-personal / .prod-actions — those
   compounded with each other and with the wrapper's gap, producing visible
   "lopsided" spacing. Flatten the card into a flex column with a single
   gap:24px source of truth.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  /* The info-card itself owns the gap between its top-level rows. */
  #product-product .prod-info-card{
    display:flex !important; flex-direction:column !important; gap:24px !important;
  }
  /* All direct children — kill every legacy vertical margin. */
  #product-product .prod-info-card > *{
    margin-top:0 !important; margin-bottom:0 !important;
  }
  /* The unnamed wrapper <div> at the end of .prod-info-card holds
     trigger / opts-shell / addons / personal / actions. Apply the same
     flex+gap so those blocks also sit 24px apart with no margin compounds. */
  #product-product .prod-info-card > div:last-child{
    display:flex !important; flex-direction:column !important; gap:24px !important;
  }
  #product-product .prod-info-card > div:last-child > *{
    margin-top:0 !important; margin-bottom:0 !important;
  }
  /* Inline <style> nodes still occupy a flex slot via the wrapper — hide them
     so the gap doesn't account for an empty row at the top. .prod-opts-shell
     is the modalable shell which is `display:none` outside the modal open
     state — but flex still allocates a gap slot for it; force display:none so
     it doesn't either. (The modal-open state already promotes it to
     position:fixed via earlier rules, which removes it from flow.) */
  #product-product .prod-info-card style,
  #product-product .prod-info-card > div:last-child > style{display:none !important;}
  body:not(.prod-opts-modal-open) #product-product .prod-opts-shell.is-modalable{display:none !important;}
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — kill .prod-page-wrap's 40px bottom padding so the gap between
   the last product-page section (e.g. OCF "Gift certificates") and the footer
   (which already has its own margin-top:40px) is exactly 40px, not 80px.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  #product-product.prod-page-wrap,
  #product-product.prod-page-wrap.prod-page-style--v1,
  #product-product.prod-page-wrap.prod-page-style--v2{
    padding-bottom:0 !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — restore 24px between adjacent characteristics groups inside
   the Specifications tab. Earlier mobile cleanup zeroed every legacy
   "+ .prod-attr-card" margin-top globally; this puts the per-group spacing
   back where it belongs — inside #tab-specification only.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  #product-product #tab-specification .prod-attr-card + .prod-attr-card,
  #product-product .prod-page-style--v1 #tab-specification .prod-attr-card + .prod-attr-card{
    margin-top:24px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — pagination per Figma sits OUTSIDE the image frame.
   .prod-gallery__main wraps both the slide and the pagination, and has a
   light-gray bg + rounded-radius + overflow:hidden — so visually the dots end
   up INSIDE the frame. Strip the bg/radius/overflow on mobile so the image
   sits directly on the page body and the dots row reads as "below the image",
   matching the Figma reference.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  #product-product .prod-gallery__main{
    background:transparent !important;
    border-radius:0 !important;
    overflow:visible !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE ≤500 — main price font-size = 24px per Figma. Older rule
   `.prod-page-style--v1 .prod-price-new { font-size:30px }` had higher
   specificity than my plain `.prod-price-new { 24px }` mobile-only rule and
   was winning the cascade, so the price stayed at 30px on mobile. Match the
   same v1 selector + !important to force 24px on the breakpoint.
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:500px){
  #product-product .prod-price-new,
  #product-product .prod-page-style--v1 .prod-price-new{font-size:24px !important;}
}
/* «Free» у способа доставки — зелёным, цветом акционной цены из настроек шаблона (макет). */
.prod-delivery-price.prod-delivery-price--free{color:var(--otc-actual-special-color,#1a9e5c);font-weight:500;}
