/* noweklocki.pl – zestawy osadzone we wpisach: [zestaw]/[zestawy styl="…"], blok „Zestawy LEGO”, adres zestawu w osobnej linii */
.nk-sets-title { margin: 1.6em 0 .5em; font-weight: 800; font-size: 1.05rem; color: #0B1220; }
.nk-sets { margin: 1.2em 0 1.6em; }
.nk-sets a { text-decoration: none; }
.nk-sets img { margin: 0; border-radius: 0; max-width: 100%; height: auto; }
.nk-sets .price-off { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #E7F5EF; color: #0A7A43; font-style: normal; font-weight: 800; font-size: .78rem; vertical-align: 2px; }
.nk-set-price strong { color: #D01012; font-size: 1.35rem; font-weight: 800; }
.nk-set-price small { color: #5B6B82; }
.nk-set-price.is-none { color: #5B6B82; font-size: .9rem; }
.nk-set-meta { display: block; color: #5B6B82; font-size: .82rem; }
.nk-set-name { display: block; font-weight: 700; color: #0B1220 !important; line-height: 1.3; }

/* polecany – duża karta */
.nk-sets--feature { display: grid; gap: 14px; }
.nk-set-feature { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid #E3E8EF; border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(2, 8, 23, .35); }
.nk-set-img { display: block; aspect-ratio: 4 / 3; background: #fff; border-radius: 12px; overflow: hidden; }
.nk-set-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .35s ease; }
.nk-set-feature:hover .nk-set-img img { transform: scale(1.04); }
.nk-set-body { display: grid; gap: 4px; min-width: 0; }
.nk-set-tax { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0D578C; }
.nk-set-feature .nk-set-name { font-size: 1.12rem; }
.nk-set-pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; }
.nk-set-facts { color: #5B6B82; font-size: .82rem; }
.nk-set-facts .is-good { color: #0A7A43; }
.nk-set-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nk-set-actions .btn { min-height: 40px; padding: 8px 18px; }
@media (max-width: 639px) { .nk-set-feature { grid-template-columns: 1fr; gap: 10px; } .nk-set-img { aspect-ratio: 16 / 10; } .nk-set-actions .btn { flex: 1; text-align: center; justify-content: center; } }

/* lista – ranking */
.nk-sets--list { list-style: none; padding: 0 !important; display: grid; gap: 8px; counter-reset: none; }
.nk-sets--list li::before { content: none !important; }
.nk-set-row { display: grid; grid-template-columns: 32px 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 !important; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid #E3E8EF; border-radius: 14px; }
.nk-set-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #FFCF00; color: #0B1220; font-weight: 800; font-size: .95rem; }
.nk-set-thumb img { width: 64px; height: 64px; object-fit: contain; display: block; }
.nk-set-main { min-width: 0; }
.nk-set-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.nk-set-side .nk-set-price strong { font-size: 1.1rem; }
.nk-set-go { font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .nk-set-row { grid-template-columns: 28px 52px minmax(0, 1fr); } .nk-set-rank { width: 28px; height: 28px; font-size: .85rem; } .nk-set-thumb img { width: 52px; height: 52px; } .nk-set-side { grid-column: 2 / -1; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } }

/* tabela – porównanie */
.nk-sets--table { overflow-x: auto; }
.nk-sets--table table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; border: 1px solid #E3E8EF; border-radius: 14px; overflow: hidden; margin: 0; }
.nk-sets--table th, .nk-sets--table td { padding: 8px 10px; border-bottom: 1px solid #E3E8EF; text-align: left; white-space: nowrap; }
.nk-sets--table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #5B6B82; background: #F5F7FA; }
.nk-sets--table tbody th { white-space: normal; min-width: 200px; }
.nk-sets--table tbody th a { display: flex; align-items: center; gap: 10px; color: #0B1220; font-weight: 600; }
.nk-sets--table tbody th img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.nk-sets--table td b { color: #D01012; }
.nk-sets--table tbody tr:last-child > * { border-bottom: 0; }

/* podgląd w edytorze (bez main.css): przyciski i karty w uproszczeniu */
.editor-styles-wrapper .nk-sets .btn, .block-editor-block-list__layout .nk-sets .btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: #0D578C; color: #fff; font-weight: 700; font-size: .85rem; }
.editor-styles-wrapper .nk-sets .btn-allegro-sm, .block-editor-block-list__layout .nk-sets .btn-allegro-sm { background: #FF5A00; color: #0B1220; }
.block-editor-block-list__layout .post-sets-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.block-editor-block-list__layout .post-sets-inline .card { border: 1px solid #E3E8EF; border-radius: 14px; padding: 8px; background: #fff; }
.block-editor-block-list__layout .post-sets-inline .card img { width: 100%; height: 140px; object-fit: contain; }
.block-editor-block-list__layout .post-sets-inline .card-actions, .block-editor-block-list__layout .post-sets-inline .shop-icons { display: none; }
.nk-blok-picker { padding: 12px; border: 1px dashed #C3CBD6; border-radius: 12px; background: #F8FAFC; }
.nk-blok-picker .nk-blok-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.nk-blok-picker .nk-blok-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #EAF2FB; font-size: 12px; }
.nk-blok-picker .nk-blok-results { display: grid; gap: 2px; margin-top: 6px; max-height: 220px; overflow: auto; }
.nk-blok-picker .nk-blok-results button { justify-content: flex-start; text-align: left; height: auto; padding: 6px 8px; }
.nk-set-actions .btn { white-space: nowrap; }
