/* Preserve reference geometry while WordPress supplies editable content and commerce. */
.wp-site-blocks>header,.wp-site-blocks>footer,.wp-site-blocks>main{margin:0}
.wp-site-blocks>header,.nm-reference-header{display:contents}
.nm-reference{margin:0!important}
.nm-reference .wp-block-nejmasiv-photo{display:block}
.nm-reference a{text-decoration:none}
.nm-reference .prose a,.nm-reference .link{text-decoration:underline}
.nm-reference .label .ring{display:inline-block;vertical-align:middle}
.nm-reference .wp-block-nejmasiv-reference-product{min-width:0}
.nm-reference .card__media img{width:100%}
.nm-reference [hidden]{display:none!important}
:where(.nm-reference) ul,:where(.nm-reference) ol{list-style:none;margin:0;padding:0}
:where(.nm-reference) svg{display:block;vertical-align:middle}
:where(.nm-reference button){background:transparent;border:0 solid #e5e7eb}
.nm-reference .acc__item summary{list-style:none}
.nm-reference .acc__item summary::-webkit-details-marker{display:none}
body:has(.nm-reference){font-size:16px;line-height:1.5}
@media(min-width:1024px){body:has(.nm-reference){font-size:17px}}
body.admin-bar .head{top:32px}
@media(max-width:782px){body.admin-bar .head{top:46px}}
.editor-styles-wrapper .nm-reference :where(.reveal,.rise){opacity:1!important;transform:none!important}
/* Label mark: a short ochre line instead of the lamella square (client: looked like a broken image). */
.nm-reference .ring{box-shadow:none}
.nm-reference .ring--mark{width:18px;height:2px;margin-top:0;border-radius:2px;background:currentColor;color:var(--ochre)}
.nm-reference .ring--mark rect{display:none}
.nm-reference .band--ink .ring--mark,.nm-reference .label--light .ring--mark{color:var(--honey)}
.nm-reference .select{border:1px solid var(--line);border-radius:var(--r);padding:10px 38px 10px 14px;font-size:.875rem;line-height:1.5}
.nm-reference .field select{border:1px solid var(--line);border-radius:var(--r);padding:13px 42px 13px 15px;font-size:inherit}
.nm-cart-toast{position:fixed;right:24px;bottom:24px;z-index:9999;background:var(--ink);color:#fff;padding:18px 24px;border-radius:8px;box-shadow:var(--shadow)}
.nm-cart-toast a{color:var(--honey);margin-left:16px}
.nm-reference-native-add .single_add_to_cart_button{background:var(--ink)!important;color:#fff!important;border:0;border-radius:var(--r);padding:17px 28px;font:inherit}
.nm-reference-native-add .quantity input{height:56px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
/* Editor-only wrappers must occupy the same grid tracks as the rendered product. */
.editor-styles-wrapper .is-root-container>.nm-reference{max-width:none!important;width:100%}
.editor-styles-wrapper .nm-reference .wp-block-nejmasiv-reference-product{margin:0;min-width:0}
.editor-styles-wrapper .nm-reference .rise{animation:none!important;clip-path:none!important}
.editor-styles-wrapper .nm-reference .reveal{mask-image:none!important;-webkit-mask-image:none!important}
@media(min-width:1100px){.editor-styles-wrapper .hero__inner>.wp-block-nejmasiv-reference-product{grid-column:6/13}}
.nm-reference :focus-visible{outline:2px solid var(--ochre);outline-offset:2px;border-radius:var(--r)}
.nm-reference .band--ink :focus-visible,.nm-reference .topbar :focus-visible{outline-color:var(--honey)}
/* WooCommerce adds a global label margin on account pages; source forms use grid gap. */
.woocommerce-page .nm-reference label{margin-bottom:0}
/* Native Woo image rules must not change the reference logo's square box. */
.woocommerce-page .nm-reference .brand img{height:42px}
@media(max-width:560px){.woocommerce-page .nm-reference .brand img{height:36px}}

/* Keep the summary and delivery information together; short windows scroll naturally. */
[data-nm-cart-aside]{align-self:start}
[data-nm-cart-aside] .souhrn{position:static}
@media(min-width:1024px){
 [data-nm-cart-aside].nm-cart-aside--sticky{position:sticky;top:var(--nm-cart-sticky-top)}
}

/* Product-backed collection navigation; the established palette and type remain. */
.nm-catalog-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s5)}
.nm-catalog-tile{display:flex;flex-direction:column;min-width:0;background:var(--paper);border-radius:var(--r-lg);overflow:hidden;color:var(--ink);text-decoration:none}
.nm-catalog-tile>img{width:100%;height:250px;object-fit:contain;padding:var(--s5);background:#fff;transition:transform .25s}
.nm-catalog-tile:hover>img{transform:scale(1.025)}
.nm-catalog-tile__body{padding:var(--s5);display:grid;gap:var(--s3)}
.nm-catalog-tile .badge{white-space:nowrap;font-size:12px;padding:6px 9px;background:var(--honey-20,#f7e5c7);border-radius:6px}
.nm-catalog-tiles--woods{grid-template-columns:1.4fr 1fr 1fr}.nm-catalog-tile--wood:first-child{outline:2px solid var(--honey)}
.nm-catalog-tiles--categories{grid-template-columns:repeat(4,minmax(0,1fr))}.nm-catalog-tiles--categories .nm-catalog-tile>img{height:160px}
.nm-catalog-tiles--categories .t-h4{font-size:18px}.nm-catalog-tiles--categories .badge{font-size:11px}
.nm-product-description{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:var(--s8);margin-top:var(--s9)}
.nm-product-description .prose h2{font-size:var(--text-xl,24px);margin-top:24px}.nm-product-description table{width:100%;border-collapse:collapse}.nm-product-description td,.nm-product-description th{padding:12px;text-align:left;border-bottom:1px solid var(--ink-15)}
.nm-reference-native-add .variations{width:100%;margin:20px 0}.nm-reference-native-add .variations th{text-align:left;font-size:14px;padding-right:12px}.nm-reference-native-add .variations td{padding:8px 0}.nm-reference-native-add select{width:100%;padding:12px;border:1px solid #bac2b8;border-radius:6px;background:#fff;font:inherit;color:var(--ink)}
.nm-reference-native-add .single_add_to_cart_button{background:var(--ink)!important;color:#fff!important;border-radius:8px!important;padding:16px 24px!important}.nm-reference-native-add .quantity input{height:50px;width:72px;border:1px solid #bac2b8;border-radius:6px;margin-right:10px}.nm-reference-native-add .woocommerce-variation-price{font-size:24px;font-weight:700;margin:12px 0}
.nm-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}.nm-pagination [aria-current]{background:var(--ink);color:#fff}
@media(max-width:1000px){.nm-catalog-tiles--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.nm-catalog-tiles--woods{grid-template-columns:repeat(3,minmax(0,1fr))}.nm-catalog-tile__body .flex{flex-wrap:wrap}.nm-product-description{grid-template-columns:1fr}}
@media(max-width:640px){.nm-catalog-tiles,.nm-catalog-tiles--woods{grid-template-columns:1fr}.nm-catalog-tiles--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.nm-catalog-tiles--categories .nm-catalog-tile__body{padding:16px}.nm-catalog-tile>img{height:220px}.nm-catalog-tiles--categories .nm-catalog-tile>img{height:140px}.nm-reference-native-add .variations th,.nm-reference-native-add .variations td{display:block}}
.nm-material-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--s8);align-items:center}
.nm-reference .shead{display:flex;justify-content:space-between;align-items:end;gap:var(--s6);margin-bottom:var(--s6)}.nm-reference .shead>div{max-width:65ch}
.nm-reference .grid-prod--3{grid-template-columns:repeat(3,minmax(0,1fr))}.nm-reference.foot .foot__grid{grid-template-columns:1.5fr 1fr 1fr 1fr}
.nm-reference .acc details{padding:var(--s4) 0;border-bottom:1px solid var(--line-2)}.nm-reference .acc details p{max-width:75ch;margin-top:var(--s4);color:var(--ink-70)}.nm-reference .acc summary{font-size:18px;font-weight:600;cursor:pointer}
@media(max-width:900px){.nm-material-grid{grid-template-columns:1fr}.nm-reference .grid-prod--3{grid-template-columns:repeat(2,minmax(0,1fr))}.nm-reference.foot .foot__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nm-reference .shead{align-items:start;flex-direction:column}}
@media(max-width:520px){.nm-reference .grid-prod--3{grid-template-columns:1fr}.nm-reference.foot .foot__grid{grid-template-columns:1fr}}

.facet__upravy{max-height:340px;overflow:auto}

/* Native product detail 0.8.0: one price, delivery term, surface swatches only. */
.nm-reference-native-add .woocommerce-variation-price{display:none!important}
.nm-reference-native-add .variations tr.nm-native-hidden-row{display:none!important}
.nm-reference-native-add table.variations,.nm-reference-native-add table.variations tbody{display:block;width:100%}
.nm-reference-native-add table.variations tr{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.nm-reference-native-add table.variations th,.nm-reference-native-add table.variations td{display:block;padding:0;text-align:left}
.nm-reference-native-add table.variations th label{font-size:14px;font-weight:600;color:var(--ink)}
.nm-native-swatches-wrap{margin:4px 0 24px}
.nm-native-swatches__head{font-size:14px;font-weight:600;color:var(--ink);margin:0 0 10px}
.nm-native-swatches__head strong{font-weight:500;color:var(--ink-70)}
.nm-native-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}
.nm-native-swatches button{display:flex;flex-direction:column;align-items:stretch;gap:6px;height:100%;padding:4px 4px 6px;border:1px solid var(--line-2);border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;text-align:center;transition:border-color .15s,box-shadow .15s}
.nm-native-swatches button:hover{border-color:var(--ink-45)}
.nm-native-swatches button:focus-visible{outline:2px solid var(--ochre);outline-offset:2px}
.nm-native-swatches button[aria-checked="true"]{border:2px solid var(--ink);padding:3px 3px 5px;box-shadow:0 0 0 1px var(--ink)}
.nm-native-swatches button[aria-checked="true"] small{font-weight:700}
.nm-native-swatches button.is-unavailable{opacity:.45}
.nm-native-swatches__img{display:block;aspect-ratio:1/1;width:100%;border-radius:3px;overflow:hidden;background:var(--surface-2)}
.nm-native-swatches__img img,.nm-native-swatches__img>span{display:block;width:100%;height:100%;object-fit:cover}
.nm-native-swatches small{display:flex;align-items:center;justify-content:center;min-height:2.5em;font-size:11px;line-height:1.25}
.nm-native-reset{margin-top:12px}
.nm-reference-native-add a.reset_variations.nm-native-reset__btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid var(--line);border-radius:var(--r);background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:500;line-height:1.2;text-decoration:none;cursor:pointer}
.nm-reference-native-add a.reset_variations.nm-native-reset__btn:hover{border-color:var(--ink);background:var(--surface-2)}
.nm-reference-native-add .woocommerce-variation-availability p,.nm-native-delivery{display:flex;align-items:center;gap:8px;margin:0 0 16px;font-size:15px;font-weight:500;color:var(--ink)}
.nm-reference-native-add .woocommerce-variation-availability p::before{content:"";flex:none;width:18px;height:18px;background:var(--ochre);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat}
.nm-native-delivery svg{color:var(--ochre)}
.nm-reference-native-add .woocommerce-variation-availability p.out-of-stock{color:#a33}
.nm-reference-native-add .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}.nm-reference-native-add .woocommerce-variation-add-to-cart .quantity input{height:100%;min-height:52px}
/* Larger logo with the retail/wholesale line (client request 30. 9.). */
.nm-reference .brand{gap:12px}
.nm-reference .brand img{width:58px;height:58px}
.nm-reference .brand__name{font-size:1.3125rem}
.nm-reference .brand__sub{font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ochre)}
@media(max-width:1023px){.nm-reference .brand img{width:46px;height:46px}.nm-reference .brand__name{font-size:1.0625rem}.nm-reference .brand__sub{display:block;font-size:.625rem}}
@media(max-width:767px){.nm-reference .brand{gap:8px;flex:0 1 auto;min-width:0}.nm-reference .brand img{width:38px;height:38px}.nm-reference .brand__text{min-width:0}.nm-reference .brand__name{font-size:.9375rem}.nm-reference .brand__sub{font-size:.5625rem;letter-spacing:.02em;line-height:1.2}}
@media(max-width:767px){.nm-native-swatches{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}}
/* Wholesale segment notices (0.9.0). */
.nm-reference .card__ws{flex-basis:100%;font-size:.6875rem;font-weight:600;color:var(--ochre)}
.nm-reference .nm-ws-note,.nm-reference .nm-ws-account{background:var(--honey-soft);border-radius:var(--r);padding:var(--s3) var(--s4);color:var(--ink);font-size:.875rem;margin:0 0 var(--s4)}
/* QR platba po objednávce (doplněk nejmasiv-sprava 0.4.0). */
.nm-qr{margin:24px 0;padding:24px;border-radius:var(--r,8px);background:#fff;border:1px solid var(--line-2,#dde3da)}
.nm-qr__title{margin:0 0 16px;font-size:1.25rem;font-weight:800;letter-spacing:-.01em}
.nm-qr__body{display:flex;flex-wrap:wrap;align-items:center;gap:24px}
.nm-qr__code{flex:none;width:200px;height:200px}
.nm-qr__table{border-collapse:collapse;font-size:15px}
.nm-qr__note{margin:16px 0 0;font-size:14px;color:var(--ink-70,#4a5a4c)}
/* Filtry ve výpisu: přichycený panel je vyšší než okno, proto vlastní posuvník (jinak jsou spodní filtry dostupné až na konci stránky). */
@media (min-width:1100px){
 .nm-reference .filters--desk{max-height:calc(100vh - var(--stack) - var(--s4) * 2);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 .nm-reference .filters--desk::-webkit-scrollbar{width:6px}
 .nm-reference .filters--desk::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
}
