/* ==========================================================================
   Be Craft — набори: лендинг «Набори тестерів» і конструктори (нашаровування, змішування, тестери). Новий дизайн.
   Префікс .nk-*. База — new-home.css + new-pages.css (.pg-*). Макет: spec 333, розділи 4.31–4.34.
   ========================================================================== */

/* ---------- Конструктор ---------- */
.nk-steps { margin-bottom: 72px; }
.nk-layout { grid-template-columns: minmax(0, 1fr) 384px; gap: 48px; }
.nk-filters { display: grid; gap: 16px; margin-bottom: 40px; }
.nk-filters:empty { display: none; }
.nk-filter { display: flex; gap: 24px; align-items: flex-start; }
.nk-filter__label { flex: 0 0 110px; padding-top: 9px; color: var(--muted); }
.nk-filter .pg-chips { flex: 1; }

.nk-grid { gap: 48px 32px; }
.nk-grid .nk-card:nth-child(n + 13) { display: none; }
.nk-grid.is-expanded .nk-card:nth-child(n + 13) { display: flex; }
.nk-card__media { aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; margin-bottom: 16px; }
.nk-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nk-card .pg-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 400 18px var(--font-head); }
.nk-card .pg-price .woocommerce-Price-amount { font: 600 18px var(--font-head); }
.nk-old { color: var(--muted-2); font-size: 14px; }
.nk-old .woocommerce-Price-amount { font: 400 14px var(--font-head) !important; }
.nk-card .pg-picker-card .pg-btn, .nk-card .nk-add { margin-top: 16px; }
.nk-add { position: relative; width: 100%; min-height: 44px; padding: 0 16px; }
.nk-add__full, .nk-add__done { display: none; }
.nk-products.is-set-full .nk-add:not(.is-added) { opacity: .45; pointer-events: none; }
.nk-products.is-set-full .nk-add:not(.is-added) .nk-add__t { display: none; }
.nk-products.is-set-full .nk-add:not(.is-added) .nk-add__full { display: inline; }
.nk-add.is-loading { opacity: .6; pointer-events: none; }
.nk-add.is-disabled { opacity: .45; pointer-events: none; }
.nk-products.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
.nk-more { margin-top: 56px; }
.nk-more[hidden] { display: none; }
.nk-more button { cursor: pointer; }

/* Панель набору */
.nk-panel { padding: 32px; }
.nk-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.nk-hint { margin-top: 12px; color: var(--muted); }
.nk-cart { margin-top: 20px; }
.nk-cart .pg-set-empty { padding: 20px 0; }
.nk-cart .cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nk-cart .cart-item img { width: 56px; height: 56px; object-fit: cover; background: var(--sand-2); }
.nk-cart .cart-item .name { font: 400 14px/1.35 var(--font-head); color: var(--ink); }
.nk-cart .cart-item .price { margin-top: 4px; font-size: 13px; color: var(--muted); }
.nk-cart .cart-item .price .woocommerce-Price-amount { font-weight: 600; color: var(--ink); }
.nk-cart .cart-item a.trash, .nk-cart .cart-item a.del { display: inline-flex; width: 33px; height: 31px; opacity: .9; }
.nk-cart .cart-item a.trash:hover, .nk-cart .cart-item a.del:hover { opacity: .6; }
.nk-cart .cart-item a.is-loading { opacity: .4; pointer-events: none; }
.nk-cart .totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 20px 0 8px; }
.nk-cart .totals .label, .nk-cart .totals .lbl { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.nk-cart .totals .now, .nk-cart .totals .new { font: 400 28px var(--font-head); color: var(--ink); }
.nk-cart .totals .now .woocommerce-Price-amount, .nk-cart .totals .new .woocommerce-Price-amount { font: 400 28px var(--font-head); }
.nk-cart .totals .old { color: var(--muted-2); text-decoration: line-through; font-size: 14px; }
.nk-cart .totals .badge, .nk-cart .totals .disc { background: var(--ink); color: var(--cream); font-size: 11px; padding: 3px 8px; letter-spacing: .04em; }
.nk-cart .note, .nk-cart .hero-note { font-size: 13px; color: var(--muted); padding: 16px 0; }
.nk-cart .bcqd-nudge, .nk-cart [class*="nudge"] { margin-top: 12px; padding: 12px 14px; background: var(--cream); font-size: 13px; color: var(--muted); }
.nk-qty-row { margin-top: 8px; }
.nk-panel__foot { margin-top: 20px; }
.nk-panel__foot .pg-small { margin-top: 16px; color: var(--muted); }

/* Кнопки «Додати набір у кошик» (розмітка плагіна: #bc-panel-commit / #bc-bar-commit) */
.nk #bc-panel-commit, .nk #bc-bar-commit { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--ink); border: 1px solid var(--ink); color: var(--cream) !important;
  font: 400 13px/1.3 var(--font-body); letter-spacing: .12em; text-transform: none; text-decoration: none; transition: opacity .15s; }
.nk #bc-panel-commit:hover, .nk #bc-bar-commit:hover { opacity: .88; }
.nk #bc-panel-commit.is-disabled, .nk #bc-bar-commit.is-disabled { background: transparent; border-color: var(--line); color: var(--muted-2) !important; pointer-events: none; opacity: 1; }

/* Нижня панель (мобільна) */
.nk-bar { display: none; }

/* FAQ */
.nk-faq { margin-top: 120px; }
.nk-landing .nk-faq { margin-top: 0; }

/* ---------- Лендинг ---------- */
.nk-landing .pg-page-head { padding-bottom: 48px; }
.nk-choice { gap: 32px; margin-bottom: 96px; }
.nk-choice__card { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); color: var(--ink); min-height: 320px; transition: transform .2s; }
.nk-choice__card:hover { transform: translateY(-2px); }
.nk-choice__media { display: block; background: var(--sand-2); overflow: hidden; }
.nk-choice__media img { width: 100%; height: 100%; object-fit: cover; }
.nk-choice__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.nk-choice__title { font: 600 24px/1.25 var(--font-head); }
.nk-choice__text { font-size: 14px; color: var(--muted); }
.nk-choice__price { font: 400 18px var(--font-head); margin-top: auto; }
.nk-choice__body .pg-btn { margin-top: 8px; min-height: 44px; padding: 0 24px; }

.nk-cta { padding: 72px 0; }
.nk-cta__box { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px 64px; background: var(--ink); color: var(--cream); }
.nk-cta__box .pg-h2 { color: var(--cream); margin-top: 12px; }
.nk-cta__box .pg-eyebrow { color: var(--gold); }
.nk-cta__box .pg-lead { color: var(--foot-text); margin-top: 12px; }
.nk-cta__box .pg-btn { background: var(--cream); border-color: var(--cream); color: var(--ink) !important; white-space: nowrap; }

.nk-tiles { gap: 40px 32px; }
.nk-tile { display: flex; flex-direction: column; }
.nk-tile__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; margin-bottom: 16px; }
.nk-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.nk-tile__badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--cream); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; }
.nk-tile__name { font: 400 18px/1.35 var(--font-head); }
.nk-tile__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.nk-tile__price { margin-top: 12px; margin-bottom: 16px; font: 400 18px var(--font-head); flex: 1; }
.nk-tile__price del { color: var(--muted-2); font-size: 14px; margin-right: 8px; }
.nk-tile .pg-btn { min-height: 44px; }

.nk-mono-lead { margin: -24px 0 40px; max-width: 640px; }
.nk-sets { gap: 32px; }
.nk-set { display: grid; grid-template-columns: 1fr 240px; background: var(--cream); overflow: hidden; }
.nk-set__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.nk-set__body h3 { font: 600 22px/1.3 var(--font-head); margin-top: 8px; }
.nk-set__sub { color: var(--muted); font-size: 14px; }
.nk-set__list { margin: 8px 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.nk-set__list li::before { content: "— "; color: var(--muted-2); }
.nk-set__price { font: 400 24px var(--font-head); margin-top: auto; }
.nk-set__media { background: var(--sand-2); }
.nk-set__media img { width: 100%; height: 100%; object-fit: cover; }

.nk-news { padding: 72px 0 96px; }
.nk-news__box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 64px; background: var(--sand); }
.nk-news__box .pg-h2 { margin-top: 12px; }
.nk-news__box .pg-lead { margin-top: 12px; }
.nk-news__form .pg-small { color: var(--muted); display: block; margin-bottom: 8px; }
.nk-news__row { display: flex; gap: 16px; align-items: flex-end; }
.nk-news__row .pg-input { flex: 1; min-width: 0; }
.nk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nk-news .pg-form-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 20px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .nk-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .nk-set { grid-template-columns: 1fr 180px; }
}
@media (max-width: 1023px) {
  .nk-layout { grid-template-columns: minmax(0, 1fr); }
  .nk-main { min-width: 0; }
  .nk-panel { position: static; padding: 24px; order: -1; margin-bottom: 8px; }
  .nk-grid.pg-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .nk-choice, .nk-sets { grid-template-columns: 1fr; }
  .nk-tiles.pg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nk-news__box { grid-template-columns: 1fr; padding: 40px 32px; }
  .nk-cta__box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .nk-faq { margin-top: 72px; }
}
@media (max-width: 767px) {
  .nk-steps { margin-bottom: 40px; }
  .nk-filter { flex-direction: column; gap: 8px; }
  .nk-filter__label { flex: none; padding-top: 0; }
  .nk-filters { margin-bottom: 28px; }
  .nk-filter .pg-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .nk-filter .pg-chips::-webkit-scrollbar { display: none; }
  .nk-filter .pg-chip { flex: 0 0 auto; }
  .nk-grid { gap: 28px 12px; }
  .nk-card h3 { font-size: 14px; }
  .nk-card .pg-price, .nk-card .pg-price .woocommerce-Price-amount { font-size: 16px; }
  .nk-panel { display: none; }
  .nk-panel.is-open { display: block; position: fixed; inset: auto 0 calc(var(--nd-tabbar-h, 57px) + 76px + env(safe-area-inset-bottom)) 0; z-index: 60; max-height: 70vh; overflow-y: auto; margin: 0; box-shadow: 0 -12px 32px rgba(65, 50, 39, .18); }
  .nk-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--nd-tabbar-h, 57px) + env(safe-area-inset-bottom)); z-index: 61; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px; background: var(--bg); border-top: 1px solid var(--line); min-height: 76px; }
  .nk-bar__text { min-width: 0; display: grid; gap: 2px; cursor: pointer; }
  .nk-bar__sum { font-size: 13px; color: var(--ink); line-height: 1.3; }
  .nk-bar__sum .strike, .nk-bar__sum del { color: var(--muted-2); }
  .nk-bar #bc-bar-commit { min-height: 48px; padding: 0 18px; white-space: nowrap; font-size: 12px; }
  .nk .pg-section.nk-faq { margin-top: 56px; }
  .nk { padding-bottom: 96px; }
  .nk-choice__card { grid-template-columns: 1fr; }
  .nk-choice__media { height: 220px; }
  .nk-set { grid-template-columns: 1fr; }
  .nk-set__media { height: 220px; order: -1; }
  .nk-news__row { flex-direction: column; align-items: stretch; }
  .nk-tiles.pg-grid-3 { grid-template-columns: 1fr; }
  .nk-cta__box .pg-btn { width: 100%; }
}
@media (min-width: 768px) { .nk-bar { display: none !important; } }
