/* Zestaw wyprawkowy Neno – kreator */
.nbs { --b: #877364; --bd: #6f5d50; --ink: #2f2722; --soft: #f7f3f0; --line: #ebe2da; --green: #336a5d; --red: #b85656; padding: 26px 0 60px; color: var(--ink); }
.nbs button { font-family: inherit; cursor: pointer; }
.nbs [hidden] { display: none !important; }

/* nagłówek */
.nbs-hero { position: relative; overflow: hidden; margin-bottom: 18px; padding: 30px 32px; border-radius: 28px; background: linear-gradient(150deg, #f7f3f0 0%, #efe5dc 100%); }
.nbs-hero::after { content: ""; position: absolute; right: -70px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.nbs-hero__kicker { display: inline-block; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bd); }
.nbs-hero__title { margin: 0 0 8px; font-family: "Playfair Display", serif; font-style: italic; font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
.nbs-hero__lead { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: 15.5px; line-height: 1.55; color: #5b4f46; }
.nbs-hero__lead strong { display: block; margin-top: 8px; color: var(--green); }

/* kroki */
.nbs-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 10px 8px 8px 2px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.nbs-steps::-webkit-scrollbar { display: none; }
.nbs-steps li { flex: 0 0 auto; scroll-snap-align: start; }
.nbs-steps__btn { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px 0 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
.nbs-steps__btn:hover { border-color: #d9cec5; }
.nbs-steps__ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: var(--soft); color: var(--b); flex-shrink: 0; }
.nbs-steps__txt { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.nbs-steps__txt small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #a39488; }
.nbs-steps__state { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.nbs-steps__btn.is-current { border-color: var(--b); box-shadow: 0 0 0 3px rgba(135, 115, 100, .14); }
.nbs-steps__btn.is-current .nbs-steps__ico { background: var(--b); color: #fff; }
.nbs-steps__btn.is-done .nbs-steps__state { display: inline-flex; background: var(--green); }
.nbs-steps__btn.is-done .nbs-steps__state::before { content: "✓"; }
.nbs-steps__btn.is-skipped { opacity: .72; }
.nbs-steps__btn.is-skipped .nbs-steps__state { display: inline-flex; background: #b5aaa1; }
.nbs-steps__btn.is-skipped .nbs-steps__state::before { content: "–"; }

/* układ */
.nbs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.nbs-panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.nbs-panel__count { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b); }
.nbs-panel__title { margin: 2px 0 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.nbs-panel__desc { margin: 0; font-size: 14.5px; color: #6f6158; }
.nbs-skip { flex-shrink: 0; height: 42px; padding: 0 18px; border: 1px dashed #cbbfb5; border-radius: 999px; background: #fff; color: var(--bd); font-size: 13.5px; font-weight: 700; transition: background .2s, border-color .2s; }
.nbs-skip:hover { background: var(--soft); border-color: var(--b); }

/* karty produktów */
.nbs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nbs-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nbs-card:hover { box-shadow: 0 12px 28px rgba(47, 39, 34, .09); }
.nbs-card.is-picked { border-color: var(--green); box-shadow: 0 0 0 4px rgba(51, 106, 93, .12); }
.nbs-card.is-picked::after { content: "✓"; position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; }
.nbs-card__img { display: block; aspect-ratio: 1 / 1; padding: 12px; background: #fff; }
.nbs-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.nbs-card:hover .nbs-card__img img { transform: scale(1.04); }
.nbs-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 4px 14px 14px; }
.nbs-card__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.nbs-card__sub { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; font-size: 13px; line-height: 1.4; color: #8d7f74; }
.nbs-card__var { width: 100%; height: 38px; margin-top: 2px; padding: 0 10px; border: 1px solid #d9cec5; border-radius: 10px; background: #fff; font-size: 13.5px; color: var(--ink); }
.nbs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.nbs-card__price { display: flex; flex-direction: column; line-height: 1.15; }
.nbs-card__price b { font-size: 18px; color: var(--ink); }
.nbs-card__price del { font-size: 12.5px; color: #a89e96; }
.nbs-card__price del + b { color: var(--red); }
.nbs-card__pick { flex-shrink: 0; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--b); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; transition: background .2s; }
.nbs-card__pick:hover { background: var(--bd); }
.nbs-card.is-picked .nbs-card__pick { background: var(--green); }

.nbs-panel__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.nbs-back { height: 46px; padding: 0 20px; border: 1px solid #d9cec5; border-radius: 999px; background: #fff; color: var(--bd); font-size: 14px; font-weight: 700; }
.nbs-back:hover { background: var(--soft); }
.nbs-next { margin-left: auto; height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; transition: background .2s; }
.nbs-next:hover { background: #4a3e36; }
.nbs-next--cart { background: var(--green); }
.nbs-next--cart:hover { background: #2a574c; }
.nbs-next:disabled { opacity: .5; cursor: default; }

/* podsumowanie (lista) */
.nbs-sumlist, .nbs-side__list { list-style: none; margin: 0; padding: 0; }
.nbs-sumlist li, .nbs-side__list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nbs-sumlist li { padding: 14px 4px; }
.nbs-sumlist img, .nbs-side__list img, .nbs-row__ph { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--soft); object-fit: contain; }
.nbs-sumlist img { width: 68px; height: 68px; }
.nbs-row__ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #b5aaa1; }
.nbs-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nbs-row__txt small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a39488; }
.nbs-row__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.nbs-row__txt em { font-style: normal; font-size: 12px; color: #8d7f74; }
.is-empty .nbs-row__txt strong { font-weight: 500; color: #a39488; }
.nbs-side__list .is-empty { padding: 6px 0; }
.nbs-side__list .is-empty .nbs-row__ph { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.nbs-row__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.nbs-row__x { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: #a39488; font-size: 20px; line-height: 1; }
.nbs-row__x:hover { background: var(--soft); color: var(--red); }
.nbs-row__edit { flex-shrink: 0; height: 32px; padding: 0 12px; border: 1px solid #d9cec5; border-radius: 999px; background: #fff; color: var(--bd); font-size: 12.5px; font-weight: 700; }
.nbs-row__edit:hover { background: var(--soft); }
.nbs-side__list .is-chosen .nbs-row__edit { display: none; }
.nbs-sumlist__total { justify-content: space-between; border-bottom: 0 !important; font-size: 18px; }
.nbs-sumlist__total b { font-size: 24px; }

/* panel boczny */
.nbs-side { position: sticky; top: 130px; }
.nbs-side__card { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(47, 39, 34, .08); }
.nbs-side__toggle { display: none; }
.nbs-side__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.nbs-side__list { max-height: 44vh; overflow-y: auto; }
.nbs-side__sum { margin: 12px 0 0; }
.nbs-side__sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.nbs-side__sum dt { font-weight: 500; color: #6f6158; }
.nbs-side__sum dd { margin: 0; font-weight: 700; }
[data-nbs-row-save] dd, [data-nbs-row-disc] dd { color: var(--green); }
.nbs-side__total { margin-top: 4px; padding-top: 10px !important; border-top: 1px solid var(--line); font-size: 17px !important; }
.nbs-side__total dt { color: var(--ink) !important; font-weight: 700 !important; }
.nbs-side__total dd { font-size: 22px; }
.nbs-side__hint { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--green); }
.nbs-side__hint:empty { display: none; }
.nbs-side__cta { width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 14.5px; font-weight: 700; transition: background .2s; }
.nbs-side__cta:hover:not(:disabled) { background: #2a574c; }
.nbs-side__cta:disabled { background: #cfc5bc; cursor: default; }
.nbs-side__msg { margin: 8px 0 0; font-size: 13px; text-align: center; color: var(--bd); }
.nbs-side__msg:empty { display: none; }

@media (max-width: 1199.98px) {
    .nbs-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .nbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .nbs { padding: 14px 0 120px; }
    .nbs-hero { padding: 22px 18px; border-radius: 22px; }
    .nbs-hero__lead { font-size: 14px; }
    .nbs-layout { grid-template-columns: 1fr; }
    .nbs-panel__head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nbs-steps__btn { height: 50px; padding-right: 12px; }
    .nbs-steps__ico { width: 36px; height: 36px; border-radius: 12px; }
    .nbs-steps__txt { font-size: 13px; }
    .nbs-grid { gap: 10px; }
    .nbs-card__body { padding: 2px 10px 12px; }
    .nbs-card__name { font-size: 14.5px; }
    .nbs-card__foot { flex-direction: column; align-items: stretch; }
    .nbs-card__pick { width: 100%; }
    /* podsumowanie jako pasek na dole ekranu */
    .nbs-side { position: fixed; z-index: 1040; left: 0; right: 0; bottom: 0; top: auto; }
    .nbs-side__card { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px rgba(47, 39, 34, .14); }
    .nbs-side__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 36px; padding: 0 2px; border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--ink); }
    .nbs-side__toggle b { display: inline-flex; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--b); color: #fff; font-size: 12px; }
    .nbs-side__toggle::after { content: "▲"; margin-left: 8px; font-size: 10px; color: #a39488; transition: transform .2s; }
    .nbs-side.is-open .nbs-side__toggle::after { transform: rotate(180deg); }
    .nbs-side__total-mini { margin-left: auto; }
    .nbs-side__body { display: none; max-height: 55vh; overflow-y: auto; }
    .nbs-side.is-open .nbs-side__body { display: block; }
    .nbs-side__title { display: none; }
    .nbs-side__list { max-height: none; }
    .nbs-side__cta { height: 46px; margin-top: 8px; }
}
@media (max-width: 575.98px) {
    .nbs-card__img { padding: 8px; }
    .nbs-card__sub { display: none; }
    .nbs-card__price b { font-size: 16px; }
    .nbs-panel__nav { position: static; }
    .nbs-sumlist img { width: 52px; height: 52px; }
    .nbs-sumlist .nbs-row__edit { padding: 0 10px; }
}

/* czat i strzałka „do góry” nad paskiem zestawu (telefon) */
@media (max-width: 991.98px) {
    body:has(.nbs) iframe.askspot-chat-widget--closed { inset: auto 6px 132px auto !important; }
    body:has(.nbs) #arrowReturn { bottom: 200px !important; }
    body:has(.nbs) #ceneo-widget { display: none !important; }
}
