/* ============================================================
   bagelgen-designpack.css — оверлей поверх Tilda-экспорта bagelgen.com
   Правки вносить ТОЛЬКО сюда и в js/bagelgen-designpack.js.
   Секции размечены владельцами (FABLE / OPUS-A), append в свою зону.
   Палитра сайта: чёрный фон, циан #70f6ff, золото #ffe59c.
   ============================================================ */
:root {
  --bgp-bg: #000000;
  --bgp-bg-2: #0a0a0c;            /* card/panel surface (near-black) */
  --bgp-panel: #0d0e10;          /* modal/overlay panels */
  --bgp-text: #ffffff;
  --bgp-muted: rgba(255, 255, 255, 0.65); /* secondary text (was --bgp-dim) */
  --bgp-dim: rgba(255, 255, 255, 0.45);   /* tertiary / labels */
  --bgp-line: rgba(255, 255, 255, 0.10);  /* hairline border (was .14) */
  --bgp-line-2: rgba(255, 255, 255, 0.18);/* emphasized / hover border */
  --bgp-accent: #70f6ff;         /* THE single interactive accent */
  --bgp-accent-ink: #001416;     /* text on accent-filled surfaces */
  --bgp-cyan: #70f6ff;           /* alias — legacy references */
  --bgp-gold: #ffe59c;           /* editorial only (eyebrows / h4) */
  --bgp-font-d: "TildaSans", Arial, sans-serif;       /* display (owner rejected the condensed face — match section headings) */
  --bgp-font-b: "TildaSans", Arial, sans-serif;       /* body */
  --bgp-rad: 8px;                /* inner elements (was 16 — de-slop) */
  --bgp-rad-lg: 10px;            /* cards / panels / modal */
  --bgp-rad-btn: 4px;            /* buttons (sharp industrial) */
}

/* ================================================================
   === FABLE: running photo carousel (bgp-car) — замена t1003 ===
   ================================================================ */
#rec613993669 { display: none !important; } /* старая бегущая строка */
.bgp-car { background: #000; padding: 22px 0 26px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.bgp-car-track { display: flex; gap: 10px; width: max-content; padding: 0 10px; cursor: grab; }
.bgp-car.grabbing .bgp-car-track { cursor: grabbing; }
.bgp-car-item { width: 128px; height: 172px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--bgp-line); background: #050505; padding: 0; cursor: pointer; }
.bgp-car-item img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s; pointer-events: none; }
.bgp-car-item:hover img { transform: scale(1.07); }
@media (max-width: 640px) { .bgp-car { padding: 14px 0 16px; } .bgp-car-item { width: 102px; height: 136px; } }
/* лайтбокс карусели */
.bgp-lb { position: fixed; inset: 0; z-index: 99990; background: rgba(0,0,0,0.93);
  display: none; align-items: center; justify-content: center; }
.bgp-lb.open { display: flex; }
.bgp-lb img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.bgp-lb button { position: absolute; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.55); color: #fff; font-size: 22px; line-height: 1; }
.bgp-lb button:hover { background: rgba(112,246,255,0.3); }
.bgp-lb .bgp-lb-x { top: 16px; right: 16px; }
.bgp-lb .bgp-lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.bgp-lb .bgp-lb-n { right: 12px; top: 50%; transform: translateY(-50%); }
.bgp-lb .bgp-lb-c { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font: 600 13px/1 Arial, sans-serif; letter-spacing: 0.08em; }

/* ================================================================
   === FABLE: how-it-works rework (свап с dots, кат текста) ===
   ================================================================ */
/* короткий текст + Read more (элемент 1688850579782 переписывает JS) */
#rec614003315 [data-elem-id="1688850579782"] .tn-atom { font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) {
  #rec614003315 [data-elem-id="1688850579782"] .tn-atom { font-size: 18px !important; line-height: 1.6 !important; }
}
.bgp-more { display: inline-block; margin-top: 12px; color: var(--bgp-cyan); cursor: pointer;
  font-weight: 600; border-bottom: 1px dashed rgba(112,246,255,0.6); }
.bgp-more:hover { border-bottom-style: solid; }
/* полная версия «под катом» — оверлей-карточка */
.bgp-how { position: fixed; inset: 0; z-index: 99980; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; padding: 20px; }
.bgp-how.open { display: flex; }
.bgp-how-card { position: relative; max-width: 680px; max-height: 82vh; overflow: auto;
  background: #0b0b10; border: 1px solid var(--bgp-line); border-radius: var(--bgp-rad-lg);
  padding: 30px 32px; color: #fff; font: 400 16px/1.65 TildaSans, Arial, sans-serif; }
.bgp-how-card h4 { color: var(--bgp-gold); font-size: 21px; margin: 0 0 14px; }
.bgp-how-card a { color: var(--bgp-cyan); }
.bgp-how-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.5); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 640px) { .bgp-how-card { padding: 22px 18px; font-size: 17px; } }

/* ================================================================
   === FABLE: video interludes между витринами + youtube-кнопки ===
   ================================================================ */
#rec615661457, #rec782318526 { display: none !important; } /* заголовок «See it in action!» + старая видео-лента */
.bgp-vid { background: #000; padding: 40px 20px; }
.bgp-vid-in { max-width: 780px; margin: 0 auto; }
.bgp-vid.duo .bgp-vid-in { max-width: 1080px; }
.bgp-vid h3 { color: var(--bgp-gold); font: 600 22px/1.3 TildaSans, Arial, sans-serif;
  margin: 0 0 16px; text-align: center; }
.bgp-vid-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bgp-vid.duo .bgp-vid-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .bgp-vid.duo .bgp-vid-grid { grid-template-columns: 1fr; } }
.bgp-vid-cell { text-align: center; }
.bgp-vid-name { color: var(--bgp-muted); font: 500 15px/1.4 TildaSans, Arial, sans-serif; margin: 0 0 10px; }
.bgp-vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bgp-rad-lg); overflow: hidden;
  border: 1px solid var(--bgp-line); background: #0a0a0a center / cover no-repeat; }
.bgp-vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bgp-vid-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55); background: rgba(0,0,0,0.55); color: #fff; font-size: 26px;
  padding-left: 6px; cursor: pointer; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: background 0.2s, transform 0.2s; }
.bgp-vid-play:hover { background: rgba(112,246,255,0.3); transform: scale(1.06); }
.bgp-yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 20px;
  border-radius: var(--bgp-rad-btn); border: 1.5px solid var(--bgp-cyan); color: var(--bgp-cyan);
  font: 600 14px/1 TildaSans, Arial, sans-serif; text-decoration: none; transition: background 0.2s, color 0.2s; }
.bgp-yt:hover { background: var(--bgp-cyan); color: #000; }
/* бейдж на видео-карточках (вторая лента + видео в цитате t230) */
.t1061__wrap-video, .t230__wrap-video { position: relative; }
.bgp-yt-badge { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: inline-flex;
  align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--bgp-rad-btn); background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.35); color: #fff; font: 600 12px/1 Arial, sans-serif;
  text-decoration: none; }
.bgp-yt-badge:hover { background: var(--bgp-cyan); color: #000; border-color: var(--bgp-cyan); }

/* ================================================================
   === OPUS-A: hero subtitle readability (п.2) ===
   ================================================================ */
/* Подзаголовок hero плохо читается на фоне фото.
   Десктоп-обложка: #rec613983736 .t996__descr (record 996, screen-min 980px)
   Мобильная обложка: #rec614014930 .t001__descr (record 18,  screen-max 980px)
   Тёмная многослойная обводка text-shadow + деликатная полупрозрачная
   тёмная подложка со скруглением и лёгким blur. !important перебивает
   инлайн-стили Tilda. */
#rec613983736 .t996__descr,
#rec614014930 .t001__descr {
  text-shadow:
    0 0 2px #000,
    0 0 8px rgba(0, 0, 0, 0.9),
    0 2px 18px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 0, 0, 0.7) !important;
  color: #ffffff !important;
}
/* локальная тёмная подложка под текстом — деликатно, чтобы отделить от фото */
#rec613983736 .t996__descr {
  display: inline-block !important;
  background: rgba(0, 0, 0, 0.34) !important;
  border-radius: var(--bgp-rad-lg) !important;
  padding: 10px 20px !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#rec614014930 .t001__descr {
  display: inline-block !important;
  background: rgba(0, 0, 0, 0.38) !important;
  border-radius: var(--bgp-rad-lg) !important;
  padding: 8px 14px !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* дочерние span'ы Tilda несут свой цвет — заставим унаследовать светлый */
#rec613983736 .t996__descr span,
#rec614014930 .t001__descr span {
  color: #ffffff !important;
}

/* ================================================================
   === OPUS-A: photo gallery cut + see more (п.8) ===
   ================================================================ */
/* Галерея rec716650012 (t979, ~159 фото) — masonry на position:absolute:
   .t979__grid получает inline style.height, .t979__grid-item позиционируются
   абсолютно (top/left/width/height считает t979_initMasonry). Скрыть отдельные
   плитки через display:none нельзя — останутся дыры и высота не сожмётся.
   Поэтому режем через обёртку .bgp-gal-wrap с max-height+overflow:hidden
   (высоту-кат задаёт JS по факт. позициям плиток). Кнопка снимает .bgp-gal-cut. */
.bgp-gal-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.bgp-gal-wrap.bgp-gal-cut {
  /* max-height проставляется инлайном из JS (в px по факт. ряду) */
  overflow: hidden;
}
.bgp-gal-wrap.bgp-gal-cut::after {
  /* мягкое затемнение у нижней кромки ката */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bgp-bg) 92%);
}
.bgp-gal-wrap:not(.bgp-gal-cut)::after {
  display: none;
}
/* кнопка "See more / Show less" — в стиле сайта: чёрная, циановая рамка/hover */
.bgp-gal-morewrap {
  text-align: center;
  margin: 22px 0 8px;
}
.bgp-gal-more {
  display: inline-block;
  cursor: pointer;
  font: 600 15px/1.2 TildaSans, Arial, sans-serif;
  letter-spacing: 0.02em;
  color: var(--bgp-cyan);
  background: #000;
  border: 1.5px solid var(--bgp-cyan);
  border-radius: var(--bgp-rad-lg);
  padding: 13px 30px;
  transition: background 0.2s ease, color 0.2s ease;
}
.bgp-gal-more:hover,
.bgp-gal-more:focus {
  background: var(--bgp-cyan);
  color: #000;
  outline: none;
}

/* ================================================================
   === REDESIGN 2026-07 (wave 1) ===
   Plasma-style de-slop overlay: cards, cart-pop, section titles.
   Single accent (cyan), flat surfaces, hairline borders, sharp
   buttons. All animation gated on prefers-reduced-motion.
   ================================================================ */

/* ---------- R7: cart counter pop (add-to-cart feedback) ---------- */
@keyframes bgp-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.t706__carticon-counter.bgp-pop { animation: bgp-pop 0.35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .t706__carticon-counter.bgp-pop { animation: none !important; }
}

/* ---------- R2: storefront card overlay (Tilda .t-store__card) ----------
   Selectors confirmed against bagelgen's own tilda-catalog-1.1.min.js
   (t-store__card__imgwrapper / __img / __bgimg / __title / __descr /
    __price / __price-value / __mark / __mark-wrapper / __btn /
    __sold-out-msg). Mirrors teslacoil-designpack card pattern. */
.t-store__card {
  position: relative;
  background: var(--bgp-bg-2) !important;
  border: 1px solid var(--bgp-line) !important;
  border-radius: var(--bgp-rad-lg) !important;
  overflow: hidden;
  box-sizing: border-box !important;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.t-store__card:hover {
  border-color: rgba(112, 246, 255, 0.45) !important;
  box-shadow: 0 18px 60px -18px rgba(112, 246, 255, 0.30);
}
/* image: fixed 3/4 portrait box + cover crop + zoom-on-hover + fade.
   Tilda sizes .t-store__card__imgwrapper with a `padding-bottom:110%`
   ratio hack (358x394 box) and renders the <img> as position:absolute
   inset:0 / margin:auto / max-w/h:100% / object-fit:contain — so tall
   portrait photos (e.g. 701x1248) shrink to ~221px wide with empty side
   bars. Neutralize the padding-bottom hack and drive height from
   aspect-ratio instead, then force the img to cover the box. */
.t-store__card__imgwrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  aspect-ratio: 3 / 4;
  height: auto !important;
  padding-bottom: 0 !important;
}
/* force both the main and hover <img> to fill + crop (was contain,
   max-w/h:100%, margin:auto). object-position centers the crop. */
.t-store__card .t-store__card__imgwrapper img,
.t-store__card .t-store__card__img,
.t-store__card .t-store__card__img_hover {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-position: center;
}
.t-store__card__imgwrapper .t-bgimg,
.t-store__card__imgwrapper .t-store__card__bgimg,
.t-store__card__imgwrapper img {
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.t-store__card:hover .t-store__card__imgwrapper .t-bgimg,
.t-store__card:hover .t-store__card__imgwrapper .t-store__card__bgimg,
.t-store__card:hover .t-store__card__imgwrapper img {
  transform: scale(1.05);
}
.t-store__card__imgwrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.55) 100%);
}
/* text */
.t-store__card__title {
  font-family: var(--bgp-font-d) !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
}
.t-store__card__descr {
  color: var(--bgp-muted) !important;
  font-size: 14px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-store__card__price,
.t-store__card__price-value,
.t-store__card__price-item {
  font-family: var(--bgp-font-d) !important;
  font-weight: 600 !important;
  color: var(--bgp-accent) !important;
}
.t-store__card__price-old,
.t-store__card__price_old {
  color: var(--bgp-dim) !important;
}
/* inner horizontal padding — Tilda base textwrapper is `20px 0 0`
   (zero horizontal) and the btns-wrapper has no horizontal padding
   either, so text/buttons sit flush to the card border. Add matching
   18px side padding to both so nothing touches the edge. */
.t-store__card .t-store__card__textwrapper {
  padding: 18px 18px 0 !important;
}
.t-store__card .t-store__card__btns-wrapper {
  padding: 0 18px !important;
}
/* mark badge — flat, dark ink on cyan */
.t-store__card__mark-wrapper .t-store__card__mark,
.t-store__card__mark {
  background: var(--bgp-accent) !important;
  color: var(--bgp-accent-ink) !important;
  border-radius: var(--bgp-rad-btn) !important;
  font-family: var(--bgp-font-b) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  box-shadow: none !important;
}
/* buy button — flat cyan, sharp radius, dark ink, no glow */
.t-store__card__btn {
  background: var(--bgp-accent) !important;
  color: var(--bgp-accent-ink) !important;
  border: none !important;
  border-radius: var(--bgp-rad-btn) !important;
  font-family: var(--bgp-font-b) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: filter 0.2s;
}
.t-store__card__btn:hover { filter: brightness(1.08); }
/* secondary button (variant/quantity) stays outline */
.t-store__card__btn_second,
.t-store__card__btn-second {
  background: transparent !important;
  color: var(--bgp-accent) !important;
  border: 1px solid var(--bgp-line-2) !important;
  border-radius: var(--bgp-rad-btn) !important;
  box-shadow: none !important;
}
/* sku, muted */
.t-store__card__sku { color: var(--bgp-dim) !important; }
/* sold-out — grayscale the image, plasma-style.
   Tilda flags the card with .js-store-prod-sold-out (confirmed in
   tilda-catalog-1.1.min.js); custom.css renders the "Sold out" label. */
.t-store__card__sold-out-msg { color: var(--bgp-muted) !important; }
.t-store__card.js-store-prod-sold-out .t-store__card__imgwrapper img,
.t-store__card.js-store-prod-sold-out .t-store__card__imgwrapper .t-bgimg,
.t-store__card.js-store-prod-sold-out .t-store__card__imgwrapper .t-store__card__bgimg {
  filter: grayscale(0.55) brightness(0.72);
}
/* mobile: keep title readable, 2-line clamp */
@media (max-width: 640px) {
  .t-store__card__title {
    font-size: 17px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ================================================================
   === REDESIGN 2026-07 (wave 2): product modal (bgm-) — FABLE ===
   z-index ladder: bgm modal 99970 < bgp-how 99980 < lightboxes 99990
   ================================================================ */
body.bgm-lock { overflow: hidden; }

#bgm-back { position: fixed; inset: 0; z-index: 99970; display: none;
  align-items: center; justify-content: center; padding: 28px 16px;
  background: rgba(0, 0, 0, 0.82); }
#bgm-back.on { display: flex; animation: bgm-fade 0.25s ease; }
@keyframes bgm-fade { from { opacity: 0; } }

#bgm { position: relative; box-sizing: border-box; display: grid; grid-template-columns: 440px 1fr;
  width: 100%; max-width: 1040px; max-height: 92vh;
  background: var(--bgp-panel); border: 1px solid var(--bgp-line-2);
  border-radius: var(--bgp-rad-lg); overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
  animation: bgm-rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes bgm-rise { from { opacity: 0; transform: translateY(14px); } }

/* --- media pane --- */
.bgm-media { display: flex; flex-direction: column; min-width: 0; background: #050505;
  border-right: 1px solid var(--bgp-line); }
.bgm-img { position: relative; aspect-ratio: 4 / 5; min-height: 0; flex: 1 1 auto; }
.bgm-slide { position: absolute; inset: 0; }
.bgm-slide img.bgm-ph { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.bgm-slide video.bgm-vid { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.bgm-yt { position: absolute; inset: 0; background: #000 center/cover no-repeat; }
.bgm-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: var(--bgp-rad-btn); cursor: pointer;
  border: 1px solid var(--bgp-line-2); background: rgba(0, 0, 0, 0.6);
  color: #fff; font-size: 22px; }
.bgm-yt-play:hover { border-color: var(--bgp-accent); color: var(--bgp-accent); }
.bgm-yt-link { position: absolute; left: 12px; bottom: 12px; font: 600 12px/1 var(--bgp-font-b);
  color: var(--bgp-accent); text-decoration: none; letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.65); padding: 8px 12px; border-radius: var(--bgp-rad-btn);
  border: 1px solid var(--bgp-line); }
.bgm-yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bgm-nav button { position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; cursor: pointer; z-index: 2;
  border: 1px solid var(--bgp-line-2); border-radius: var(--bgp-rad-btn);
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px; line-height: 1;
  transition: border-color 0.2s, color 0.2s; }
.bgm-nav button:hover { border-color: var(--bgp-accent); color: var(--bgp-accent); }
.bgm-prev { left: 12px; }
.bgm-next { right: 12px; }
.bgm-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; flex: 0 0 auto;
  scrollbar-width: thin; background: #050505; }
.bgm-th { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; cursor: pointer;
  border: 1px solid var(--bgp-line); border-radius: var(--bgp-rad-btn);
  overflow: hidden; background: #000; opacity: 0.65; transition: opacity 0.2s, border-color 0.2s; }
.bgm-th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bgm-th:hover { opacity: 1; }
.bgm-th.on { opacity: 1; border-color: var(--bgp-accent); }

/* --- body pane --- */
.bgm-body { overflow-y: auto; padding: 30px 34px 26px; min-width: 0; }
.bgm-mark { display: inline-block; margin-bottom: 12px; padding: 5px 10px;
  font: 700 11px/1 var(--bgp-font-b); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bgp-accent-ink); background: var(--bgp-accent); border-radius: var(--bgp-rad-btn); }
.bgm-title { margin: 0 0 6px; font: 600 26px/1.2 var(--bgp-font-d); color: #fff;
  letter-spacing: 0.01em; }
.bgm-sku { font: 400 12px/1 var(--bgp-font-b); color: var(--bgp-dim); margin-bottom: 14px; }
.bgm-price { font: 600 24px/1 var(--bgp-font-d); color: var(--bgp-accent); margin: 4px 0 18px; }
.bgm-price-req { color: var(--bgp-muted); font-size: 18px; }
.bgm-priceold { margin-left: 10px; font-size: 16px; color: var(--bgp-dim); }
.bgm-variants { border-top: 1px solid var(--bgp-line); margin: 0 0 18px; }
.bgm-var-row { display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--bgp-line); }
.bgm-var-l { flex: 1; font: 600 15px/1.3 var(--bgp-font-b); color: #fff; }
.bgm-var-p { font: 600 15px/1 var(--bgp-font-d); color: var(--bgp-accent); white-space: nowrap; }
.bgm-var-add { flex: 0 0 auto; padding: 9px 14px; cursor: pointer;
  font: 700 12px/1 var(--bgp-font-b); letter-spacing: 0.04em;
  color: var(--bgp-accent-ink); background: var(--bgp-accent);
  border: 0; border-radius: var(--bgp-rad-btn); transition: filter 0.15s; }
.bgm-var-add:hover { filter: brightness(1.08); }
.bgm-buy, .bgm-req { display: block; width: 100%; max-width: 320px; padding: 15px 28px;
  margin: 0 0 18px; cursor: pointer; font: 700 15px/1 var(--bgp-font-b);
  border-radius: var(--bgp-rad-btn); transition: filter 0.15s, border-color 0.2s; }
.bgm-buy { color: var(--bgp-accent-ink); background: var(--bgp-accent); border: 0; }
.bgm-buy:hover { filter: brightness(1.08); }
.bgm-buy.is-added { filter: none; background: #35d07f; color: #00140a; }
.bgm-req { color: #fff; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--bgp-line-2); }
.bgm-req:hover { border-color: var(--bgp-accent); color: var(--bgp-accent); }
.bgm-dims { display: inline-block; padding: 9px 14px; margin: 0 0 18px;
  border: 1px solid var(--bgp-line); border-radius: var(--bgp-rad);
  font: 500 13px/1.4 var(--bgp-font-b); color: var(--bgp-muted); }
.bgm-dims-l { color: var(--bgp-dim); }
.bgm-desc { font: 400 15px/1.65 var(--bgp-font-b); color: rgba(255, 255, 255, 0.82);
  max-width: 62ch; }
.bgm-desc p { margin: 0 0 12px; }
.bgm-desc ul, .bgm-desc ol { margin: 0 0 12px; padding-left: 20px; }
.bgm-desc li { margin: 0 0 6px; }
.bgm-desc strong { color: #fff; }
.bgm-desc a { color: var(--bgp-accent); text-decoration: underline; }
.bgm-rel { margin-top: 22px; border-top: 1px solid var(--bgp-line); padding-top: 16px; }
.bgm-rel-t { font: 700 11px/1 var(--bgp-font-b); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bgp-dim); margin-bottom: 10px; }
.bgm-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bgm-rel-card { display: block; text-decoration: none; color: #fff; overflow: hidden;
  border: 1px solid var(--bgp-line); border-radius: var(--bgp-rad);
  background: var(--bgp-bg-2); transition: border-color 0.2s; }
.bgm-rel-card:hover { border-color: var(--bgp-line-2); }
.bgm-rel-im { display: block; width: 100%; aspect-ratio: 1; background: #000 center/cover no-repeat; }
.bgm-rel-tt { display: block; padding: 8px 10px 2px; font: 500 12px/1.3 var(--bgp-font-b);
  max-height: 3.2em; overflow: hidden; }
.bgm-rel-pr { display: block; padding: 0 10px 9px; font: 600 12px/1 var(--bgp-font-d);
  color: var(--bgp-accent); }
.bgm-x { position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; cursor: pointer;
  border: 1px solid var(--bgp-line-2); border-radius: var(--bgp-rad-btn);
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 16px; line-height: 1;
  transition: border-color 0.2s, color 0.2s; }
.bgm-x:hover { border-color: var(--bgp-accent); color: var(--bgp-accent); }

/* --- lightbox --- */
#bgm-lb { position: fixed; inset: 0; z-index: 99990; display: none;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.94); }
#bgm-lb.on { display: flex; animation: bgm-fade 0.2s ease; }
.bgm-lb-img { max-width: 94vw; max-height: 92vh; object-fit: contain; display: block; }
#bgm-lb button { position: absolute; width: 44px; height: 44px; cursor: pointer;
  border: 1px solid var(--bgp-line-2); border-radius: var(--bgp-rad-btn);
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 24px; line-height: 1;
  transition: border-color 0.2s, color 0.2s; }
#bgm-lb button:hover { border-color: var(--bgp-accent); color: var(--bgp-accent); }
.bgm-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.bgm-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.bgm-lb-x { top: 16px; right: 16px; font-size: 17px !important; }
.bgm-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font: 600 13px/1 var(--bgp-font-b); color: var(--bgp-muted); letter-spacing: 0.06em; }

/* --- responsive --- */
@media (max-width: 1080px) {
  #bgm { grid-template-columns: 1fr; max-width: 560px; overflow-y: auto; }
  .bgm-media { border-right: 0; border-bottom: 1px solid var(--bgp-line); }
  .bgm-img { aspect-ratio: 3 / 4; flex: none; }
  .bgm-body { overflow-y: visible; }
}
@media (max-width: 640px) {
  #bgm-back { padding: 0; }
  #bgm { max-width: none; width: 100%; height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: 0; }
  .bgm-body { padding: 22px 18px 30px; }
  .bgm-buy, .bgm-req { max-width: none; }
  .bgm-rel-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #bgm-back.on, #bgm, #bgm-lb.on { animation: none; }
  .bgm-th, .bgm-nav button, .bgm-x, .bgm-buy, .bgm-req, .bgm-var-add, .bgm-rel-card { transition: none; }
}

/* ================================================================
   === REDESIGN 2026-07 (wave 2): reveal-on-scroll — OPUS-B ===
   (R4) Fade-rise entrance. JS (bgpRv module) adds .rv right before
   observing each target with an IntersectionObserver that adds .in
   once. Column stagger via .rv-d1/-d2/-d3 (index % 3). The .rv class
   is ONLY ever added by that JS — if the JS errors before tagging,
   nothing is hidden. Anti-flash safety nets live in the JS (3s
   viewport force-reveal; immediate .in when IO is unavailable).
   R10 reduced-motion off-switch folded into the block below.
   ================================================================ */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
/* Transition-conflict fix: .t-store__card.rv (0,2,0) outranks the base
   .t-store__card (0,1,0) transition and would make the hover
   border/shadow snap. Re-declare the card's reveal transition WITH its
   hover properties merged in, so both animate. The reveal transform is
   on the CARD; the hover img-zoom is on the inner <img> (a different
   element) — no property collision. */
.t-store__card.rv {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s, box-shadow 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  /* entrance: everything visible, no motion */
  .rv { opacity: 1 !important; transform: none !important; transition: none; }
  /* R10 audit: neutralize decorative hover-zoom transforms too (layout
     translateY() on lightbox nav is intentionally left untouched). */
  .t-store__card:hover .t-store__card__imgwrapper img,
  .t-store__card:hover .t-store__card__imgwrapper .t-bgimg,
  .t-store__card:hover .t-store__card__imgwrapper .t-store__card__bgimg,
  .bgp-car-item:hover img,
  .bgp-vid-play:hover { transform: none !important; }
}
