/* Книжкова полиця (12.11.2026) — за макетами makety/polytsia (стилі pk-*). JS — nk-shelf.js */

/* ---------- Картка книги ---------- */
.prd_page.nk-shelf { display: inline-flex; align-items: stretch; gap: 6px; flex-wrap: wrap; vertical-align: top; overflow: visible; position: relative; z-index: 60; }
.nk-shelf [hidden], .nk-shelf .btn[hidden], .prd_page.nk-shelf .pk-read[hidden], .prd_page.nk-shelf .pk-sq[hidden] { display: none !important; }
/* тема робить .btn-group зліпленим (float, margin -1px) — у полиці кнопки окремі, як у макеті */
.prd_page.nk-shelf { margin-left: 6px; }
/* тема ставить групі display:inline-block — тоді кнопки стають за базовою лінією й «Прочитано» з'їжджає вниз */
.productpage .form-group.qty .btn-group.prd_page.nk-shelf, .btn-group.prd_page.nk-shelf { display: inline-flex !important; align-items: center; vertical-align: top; }
.prd_page.nk-shelf > .btn, .prd_page.nk-shelf .pk-more > .btn { vertical-align: top; box-sizing: border-box; height: 42px !important; }
.prd_page.nk-shelf > .btn, .prd_page.nk-shelf > .pk-more, .prd_page.nk-shelf .pk-more > .btn { float: none !important; margin: 0 !important; position: relative; }
.nk-shelf .pk-sq { width: 42px; min-width: 42px; height: 42px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; color: #fff; border-radius: 0; }
.nk-shelf .pk-ico { display: block; }
.pk-bm .pk-bm-body { fill: none; }
.pk-bm .pk-bm-plus { stroke: currentColor; }
.pk-bm.is-on .pk-bm-body { fill: currentColor; }
.pk-bm.is-on .pk-bm-plus { stroke: #2a2a2a; }
.nk-shelf .pk-read { height: 42px; padding: 0 16px !important; border: 1px solid #222 !important; background: #fff !important; color: #222 !important;
  font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  display: inline-flex !important; align-items: center; gap: 6px; border-radius: 0; }
.nk-shelf .pk-read .pk-check { display: none; }
.nk-shelf .pk-read.is-on { background: #222 !important; color: #fff !important; }
.nk-shelf .pk-read.is-on .pk-check { display: block; }
.nk-shelf .pk-read:focus-visible, .nk-shelf .pk-sq:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.pk-more { position: relative; display: inline-flex; }
.pk-more .pk-eye { display: none; }
.prd_page.nk-shelf .pk-more .btn.is-nope { background: #fff !important; color: #222 !important; border: 1px solid #222 !important; }
.pk-more .is-nope .pk-dots { display: none; }
.pk-more .is-nope .pk-eye { display: block; }
.pk-menu { position: absolute; top: 48px; left: 0; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.16); z-index: 70; white-space: nowrap; }
.pk-menu button, .pk-tmenu button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 12px 16px; border: 0; background: none; text-align: left; font: 600 13px Montserrat, sans-serif; color: #222; cursor: pointer; }
.pk-menu button:hover, .pk-tmenu button:hover, .pk-menu button:focus-visible, .pk-tmenu button:focus-visible { background: #f2f2f2; outline: none; }
.nk-wl-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #222; margin-left: 4px; }

/* ---------- Панелі під кнопками ---------- */
.pk-slot:empty { display: none; }
.pk-panel { margin: 14px 0 18px; border: 1px solid #e5e5e5; background: #fafafa; padding: 16px 20px; font-family: Montserrat, sans-serif; color: #222; max-width: 738px; }
.pk-ptitle { font-family: 'Cormorant Garamond', 'Cormorant', serif; font-size: 22px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.pk-sub { font-size: 13px; color: #666; margin-bottom: 8px; }
.pk-stars { display: flex; gap: 6px; }
.pk-star { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; }
.pk-star:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.pk-ok { font-size: 12px; color: #2e7d32; margin: 6px 0; }
.pk-err { font-size: 12px; color: #c62828; margin-top: 6px; }
.pk-panel textarea { width: 100%; min-height: 64px; border: 1px solid #ddd; padding: 10px; font: 13px Montserrat, sans-serif; margin: 6px 0 10px; resize: vertical; }
.pk-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-btn { height: 40px; padding: 0 18px !important; text-transform: uppercase; font-size: 12px !important; }
.pk-ghost { height: 40px; padding: 0 18px !important; border: 1px solid #222 !important; background: #fff !important; color: #222 !important; text-transform: uppercase; font-size: 12px !important; }
.pk-covers { display: flex; gap: 8px; margin: 6px 0 12px; flex-wrap: wrap; }
.pk-covers img { width: 46px; height: 69px; object-fit: cover; }
.pk-quote { font-size: 13px; color: #444; line-height: 1.6; margin: 8px 0 6px; font-style: italic; white-space: pre-line; }
.pk-link { font-size: 13px; font-weight: 600; color: #222; text-decoration: underline; }
.pk-panel--nope { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; }
.pk-panel--nope svg { flex: none; margin-top: 3px; }

/* ---------- Обкладинки в списках ---------- */
.nk-card__wish.pk-dots { color: #222; }
.nk-card__wish.pk-dots .pk-ico { width: 16px; height: 16px; margin: auto; }
.nk-card__wish.pk-dots .pk-bm-i { display: none; }
.nk-card__wish.pk-dots.is-active .pk-bm-i { display: block; }
.nk-card__wish.pk-dots.is-active .pk-dots-i { display: none; }
.pk-tile-read .nk-card__cover img { filter: grayscale(1); opacity: .5; }
.pk-tile-read .nk-card__body { opacity: .55; }
.pk-tile-nope .nk-card__cover img { filter: grayscale(1); opacity: .28; }
.pk-tile-nope .nk-card__body { opacity: .35; }
.nk-card__badge.pk-badge { display: inline-flex !important; align-items: center; gap: 4px; background: #222 !important; color: #fff !important; }
.nk-card__badge.pk-badge svg { width: 12px; height: 12px; }
.nk-card__badge.pk-badge--lib { background: #fff !important; color: #222 !important; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.pk-tmenu { position: absolute; right: 8px; bottom: 52px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.22); z-index: 6; min-width: 170px; }
.pk-tmenu button { padding: 10px 12px; font-size: 12px; border-top: 1px solid #eee; white-space: nowrap; }
.pk-tmenu button:first-child { border-top: 0; }
.pk-tmenu small { font-weight: 400; color: #888; }

/* Відгук людини без покупки в нас (П129) */
.nk-review-elsewhere { font-weight: 400; color: #777; font-size: 12px; }

@media (max-width: 767px) {
  .pk-tmenu { left: 6px; right: 6px; min-width: 0; bottom: 48px; }
  .pk-tmenu button { white-space: normal; font-size: 11.5px; padding: 9px 10px; line-height: 1.25; }
  .nk-wl-note { flex-basis: 100%; margin: 4px 0 0; }
}
/* на телефоні тема робить «Купити» нижчою (36px) — рівняємось на неї */
@media (max-width: 767px) {
  .prd_page.nk-shelf > .btn, .prd_page.nk-shelf .pk-more > .btn { height: 36px !important; }
  .nk-shelf .pk-sq { width: 36px; min-width: 36px; }
  .nk-shelf .pk-read { padding: 0 12px !important; font-size: 12px; }
  .pk-menu { top: 42px; left: auto; right: 0; }
}

/* Тема ставить .form-group.qty overflow:hidden (так вона тримає float-и всередині) — це обрізало
   меню «⋯ → Не цікаво» до тонкої смужки (Микола, 13.11). flow-root тримає float-и так само, без обрізання. */
.productpage .form-group.qty { overflow: visible !important; display: flow-root; }
