/* Картка товару в три шари 1:1 з БАЗОЮ (Павло 31.10): список → картка-перегляд (інфо зліва, велика галерея справа)
   → «Редагувати». Правила перенесено з D:\ABRA BAZA\public\style.css ДОСЛІВНО (розміри, пропорції, flex-ланцюг висоти —
   за ним у БАЗІ місяць добивались, щоб фото було потрібної величини на 100% і 150%); лише префікс .e0-bd — шар складу ЦРМ
   (.e0-ov-panel.e0-bd = .detail-panel БАЗИ) — і --primary БАЗИ = #2f8fff ЦРМ. Рядки style.css БАЗИ — в дужках. */

/* ---- Картка-перегляд: шапка нерухома, ліва колонка гортається сама, права — без прокрутки (490–494) ---- */
.e0-ov-panel.e0-bd.pv-panel { display:flex; flex-direction:column; overflow:hidden; }
.e0-bd.pv-panel .detail-head { flex-shrink:0; }
/* Кнопки шапки — над назвою, як у БАЗІ (480: top:0). Спільне .e0-bd (etap0.css) ставить їх top:22px — на рядок
   назви, і довга назва товару йшла ПІД кнопки (Павло 19.11). */
.e0-bd.pv-panel .detail-head-actions { top:0; flex-wrap:wrap; align-items:center; }
.e0-bd.pv-panel .detail-grid { flex:1; min-height:0; }
.e0-bd.pv-panel .detail-side { overflow-y:auto; height:100%; padding-right:8px; gap:0; }
.e0-bd.pv-panel .detail-main { overflow:hidden; height:100%; display:flex; flex-direction:column; min-height:0; }

/* ---- Ліва колонка (805–852, 901–903) ---- */
.e0-bd .pv-storage { background:#fff; border:1px solid #d0d5dd; border-radius:6px; margin-bottom:16px; }
.e0-bd .pv-storage-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; font-size:14px; }
.e0-bd .pv-storage-name { display:flex; align-items:center; gap:10px; font-weight:500; min-width:0; }
.e0-bd .pv-storage-name svg { width:22px; height:22px; flex-shrink:0; color:rgba(18,18,18,.5); }
.e0-bd .pv-block { background:#f2f4f7; border-radius:6px; margin-bottom:16px; display:flow-root; }
.e0-bd .pv-sep { height:1px; background:#eaecf0; }
.e0-bd .pv-row { display:grid; grid-template-columns:37% 1fr; gap:8px; align-items:center; padding:10px 16px; }
.e0-bd .pv-label { font-size:14px; color:rgba(18,18,18,.75); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.e0-bd .pv-value { display:flex; align-items:center; gap:8px; min-width:0; font-size:14px; font-weight:500; color:#121212; }
.e0-bd .pv-price { font-size:20px; font-weight:500; }
.e0-bd .pv-props .pv-value { font-weight:400; color:#333; }
.e0-bd .pv-props-gap { height:16px; }
.e0-bd .pv-block > .qcomment { margin:16px; }
.e0-bd .pv-tabs { display:grid; grid-template-columns:1fr 1fr; gap:3px; padding:3px; background:#eef0f4; border-radius:9px; margin-bottom:12px; }
.e0-bd .pv-tab { display:flex; align-items:center; justify-content:center; gap:5px; padding:6px 6px; border:none; border-radius:7px; background:transparent; font:inherit; font-size:12.5px; font-weight:600; color:#667085; white-space:nowrap; cursor:pointer; }
.e0-bd .pv-tab.active { background:#fff; color:#1f2430; box-shadow:0 1px 2px rgba(16,24,40,.10); }
.e0-bd .condition-badge { display:inline-block; padding:2px 10px; border-radius:6px; font-size:12px; font-weight:700; }
.e0-bd .condition-badge.used { background:#fef3c7; color:#92400e; }
.e0-bd .condition-badge.new { background:#dcfce7; color:#166534; }

/* ---- Карусель: базова (1142–1161) — вузька, у «Редагувати» ---- */
.e0-bd .carousel-main, .e0-bd .carousel-thumbs { user-select:none; }
.e0-bd .carousel-main { position:relative; width:100%; aspect-ratio:4 / 3; border-radius:8px; overflow:hidden; background:#f3f4f6; display:flex; align-items:center; justify-content:center; }
.e0-bd .carousel-main img { width:100%; height:100%; object-fit:cover; display:block; }
.e0-bd .carouselArrow { position:absolute; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:50%; border:none; background:rgba(255,255,255,.85); color:#333; font-size:18px; line-height:32px; text-align:center; cursor:pointer; padding:0; box-shadow:0 1px 4px rgba(0,0,0,.2); transition:background .12s ease, color .12s ease; }
.e0-bd .carouselArrow:hover { background:#555; color:#fff; }
.e0-bd .carouselArrow.left { left:8px; }
.e0-bd .carouselArrow.right { right:8px; }
.e0-bd .carouselRemove { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.55); color:#fff; border:none; border-radius:50%; width:22px; height:22px; font-size:12px; cursor:pointer; padding:0; }
.e0-bd .carousel-thumbs { display:flex; gap:6px; margin-top:8px; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; padding-bottom:4px; scrollbar-width:thin; }
.e0-bd .carousel-thumbs::-webkit-scrollbar { height:6px; }
.e0-bd .carousel-thumbs::-webkit-scrollbar-thumb { background:#cfd4dc; border-radius:3px; }
.e0-bd .carousel-thumb { flex:0 0 auto; width:68px; height:48px; object-fit:cover; border-radius:5px; border:2px solid transparent; cursor:pointer; opacity:.7; background:rgba(18,18,18,.05); }
.e0-bd .carousel-thumb.active { border-color:#2f8fff; opacity:1; }

/* ---- Карусель картки-перегляду (1195–1241, 2057–2069): фото займає все над стрічкою, стрічка прижата до низу ---- */
.e0-bd .pv-carousel { width:100%; max-width:100%; margin:0; position:relative; display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.e0-bd .pv-carousel .carousel-main { position:static; max-width:100%; width:fit-content; margin:0 auto; overflow:visible; aspect-ratio:auto; height:auto; background-repeat:no-repeat; cursor:zoom-in;
  flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; background:transparent; }
.e0-bd .pv-carousel .carousel-main img { border-radius:8px; display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.e0-bd .pv-carousel .carousel-main.zoomed { cursor:zoom-out; }
.e0-bd .pv-carousel .carousel-main.zoomed img { opacity:0; }
.e0-bd .pv-carousel.zoom-active { max-width:100%; }
.e0-bd .pv-carousel.zoom-active .carousel-main { max-width:900px; }
.e0-bd .pv-carousel.zoom-active .carousel-main img { max-width:900px; max-height:620px; }
.e0-bd .pv-carousel .carouselArrow { width:48px; height:48px; font-size:27px; line-height:48px; background:rgba(102,112,133,.28); color:#fff; box-shadow:none; }
.e0-bd .pv-carousel .carouselArrow:hover { background:rgba(52,64,84,.85); color:#fff; }
.e0-bd .pv-carousel .carouselArrow.left { left:0; }
.e0-bd .pv-carousel .carouselArrow.right { right:0; }
.e0-bd .pv-carousel .carousel-thumb { width:92px; height:66px; }
.e0-bd .pv-carousel .carousel-thumbs { margin-top:auto; flex-shrink:0; justify-content:flex-start; }

/* ---- ЦРМ (нове, немає в БАЗІ): підпис деталі комплекту над стрічкою; поворот ↺↻ — лише в «Редагувати» (шар 3, Павло 31.10) ---- */
.e0-bd .pv-cap { flex-shrink:0; text-align:center; font-size:13px; color:#667085; padding:6px 0 0; min-height:20px; }
.e0-bd .pv-cap b { color:#1f2430; font-weight:600; }
.e0-bd .pv-rot { position:absolute; left:8px; top:8px; display:flex; gap:6px; z-index:1; }
.e0-bd .pv-rot button { width:34px; height:34px; border-radius:50%; border:none; background:rgba(102,112,133,.28); color:#fff; font-size:17px; cursor:pointer; }
.e0-bd .pv-rot button:hover { background:rgba(52,64,84,.85); }
.e0-bd .carousel-thumb-sep { flex:0 0 auto; align-self:stretch; width:1px; background:#d0d5dd; margin:0 4px; }

/* ---- Коментар у сірому блоці картки-перегляду — на всю ширину, як у БАЗІ (style.css 860–868) ---- */
.e0-bd .pv-block .qcomment-input { display:block; width:100%; box-sizing:border-box; min-height:72px; padding:12px 14px 30px; overflow-y:hidden;
  border:1px solid #e3e6ec; border-radius:10px; background:#fff; resize:none; font-family:inherit; font-size:13.5px; line-height:1.45; color:#1f2430; transition:border-color .12s; }
