/* Native product groups reuse the catalogue photos and serving-format cutouts. */
.nsf-product-selection { display:grid; gap:40px; }
.nsf-category-tabs { display:none; }
.nsf-product-selection[data-tabs-ready] { gap:22px; }
.nsf-product-selection[data-tabs-ready] > .nsf-category-tabs,
.editor-styles-wrapper .nsf-category-tabs { display:flex; flex-wrap:nowrap; order:-1; gap:0; width:100%; padding:4px; margin:0; border-radius:8px; background:color-mix(in srgb,var(--nord-primary) 6%,var(--nord-surface)); }
.nsf-category-tabs > .wp-block-button { flex:1; min-width:0; margin:0; }
.nsf-product-selection .nsf-category-tab .wp-block-button__link { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; padding:10px 8px; border:0; border-radius:5px; background:transparent; color:var(--nord-text); font:600 var(--nord-body-size)/1.25 var(--nord-font-body); }
.nsf-product-selection .nsf-category-tab [aria-selected=true] { background:var(--nord-primary); color:var(--nord-white); box-shadow:0 3px 8px color-mix(in srgb,var(--nord-dark) 12%,transparent); }
.nsf-product-selection .nsf-category-tab .wp-block-button__link:focus-visible { outline:2px solid var(--nord-primary); outline-offset:3px; }
.nsf-category-count { display:grid; place-items:center; min-width:20px; height:20px; padding:0 4px; border-radius:50%; background:color-mix(in srgb,currentColor 15%,transparent); font-size:calc(var(--nord-body-size) * .75); }
.nsf-product-selection .nsf-category-count[hidden],.nsf-product-selection [data-selection-category][hidden] { display:none; }
.nsf-product-selection[data-tabs-ready] .nsf-product-category { display:none; }
.nsf-product-selection .nsf-product-category { margin:0 0 18px; color:var(--nord-primary); font:600 calc(var(--nord-body-size) * 1.5)/1.25 var(--nord-font-heading); }
.nsf-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.nsf-book-product { min-width:0; margin:0; overflow:hidden; border-radius:8px; background:var(--nord-surface); box-shadow:0 8px 28px color-mix(in srgb,var(--nord-dark) 12%,transparent); }
.nsf-product-photo { margin:0; padding:20px 20px 0; aspect-ratio:4/3; }
.nsf-product-photo img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 6px 7px color-mix(in srgb,var(--nord-dark) 12%,transparent)); }
.nsf-product-selection .nsf-product-title { margin:18px 16px 12px; text-align:center; color:var(--nord-text); font:600 calc(var(--nord-body-size) * 1.25)/1.25 var(--nord-font-heading); }
.nsf-product-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 12px 16px; }
.nsf-product-selection .nsf-product-option { position:relative; min-width:0; padding:10px 6px; margin:0; background:transparent; border:1px solid transparent; border-radius:6px; box-shadow:none; }
.nsf-product-selection .nsf-product-option:only-child { grid-column:1/-1; width:100%; max-width:180px; justify-self:center; }
.nsf-product-selection .nsf-product-option.is-selected { background:color-mix(in srgb,var(--nord-primary) 7%,var(--nord-surface)); border-color:var(--nord-primary); }
.nsf-product-selection .nsf-option-image { height:68px; margin:0 0 8px; }
.nsf-product-selection .nsf-option-image img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 4px 5px color-mix(in srgb,var(--nord-dark) 18%,transparent)); }
.nsf-product-selection .wp-block-button.nsf-book-select { display:block; padding:0; margin:0; }
.nsf-product-selection .nsf-option-buttons { justify-content:center; margin:0; }
.nsf-product-selection :is(button.nsf-book-select,.wp-block-button.nsf-book-select .wp-block-button__link) { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; padding:4px 0; border:0; border-radius:0; background:transparent; color:var(--nord-text); font:600 calc(var(--nord-body-size) * .875)/1.3 var(--nord-font-body); text-transform:none; }
.nsf-product-selection button.nsf-book-select::before { content:''; width:16px; height:16px; flex:none; border:1.5px solid var(--nord-primary); border-radius:50%; box-shadow:inset 0 0 0 3px var(--nord-surface); }
.nsf-product-selection button.nsf-book-select[aria-pressed=true]::before { background:var(--nord-primary); }
.nsf-product-selection button.nsf-book-select::after { content:''; position:absolute; inset:0; z-index:1; }
.nsf-product-selection button.nsf-book-select:focus-visible { outline:none; }
.nsf-product-selection button.nsf-book-select:focus-visible::after { outline:2px solid var(--nord-primary); outline-offset:2px; border-radius:6px; }
.nsf-product-selection .nsf-book-counter { position:relative; z-index:2; display:flex; flex:0 0 auto; align-items:center; justify-content:center; gap:6px; width:auto; margin:6px 0 0; padding:0; border:0; background:transparent; overflow:visible; }
.nsf-product-selection .nsf-book-counter .wp-block-button { margin:0; }
.nsf-product-selection .nsf-book-counter button { display:grid; place-items:center; width:36px; height:36px; min-height:36px; margin:0; padding:0; border:0; border-radius:4px; background:color-mix(in srgb,var(--nord-primary) 8%,var(--nord-surface)); color:var(--nord-primary); font:500 calc(var(--nord-body-size) * 1.375)/1 var(--nord-font-body); }
.nsf-product-selection .nsf-book-counter button:disabled { opacity:.35; cursor:not-allowed; }
.nsf-product-selection .nsf-book-counter button::before { content:none; }
.nsf-product-selection .nsf-book-counter :is(output,.nsf-option-count) { min-width:22px; margin:0; text-align:center; font:500 calc(var(--nord-body-size) * 1.25)/1 var(--nord-font-body); color:var(--nord-text); font-variant-numeric:tabular-nums; }
.nsf-product-selection .nsf-book-counter button:focus-visible { outline:2px solid var(--nord-primary); outline-offset:2px; }
.editor-styles-wrapper .nsf-product-grid { display:block; }
.editor-styles-wrapper .nsf-product-selection > .block-editor-inner-blocks > .block-editor-block-list__layout { display:grid; gap:22px; }
.editor-styles-wrapper [data-nord-active-category="food"] [data-nord-selection-category]:not([data-nord-selection-category="food"]),
.editor-styles-wrapper [data-nord-active-category="coffee"] [data-nord-selection-category]:not([data-nord-selection-category="coffee"]),
.editor-styles-wrapper [data-nord-active-category="dessert"] [data-nord-selection-category]:not([data-nord-selection-category="dessert"]) { display:none; }
.editor-styles-wrapper [data-nord-active-category="food"] [data-nord-selection-tab="food"] .wp-block-button__link,
.editor-styles-wrapper [data-nord-active-category="coffee"] [data-nord-selection-tab="coffee"] .wp-block-button__link,
.editor-styles-wrapper [data-nord-active-category="dessert"] [data-nord-selection-tab="dessert"] .wp-block-button__link { background:var(--nord-primary); color:var(--nord-white); }
.editor-styles-wrapper .nsf-product-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.editor-styles-wrapper .nsf-product-options { display:block; }
.editor-styles-wrapper .nsf-product-options > .block-editor-inner-blocks > .block-editor-block-list__layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.editor-styles-wrapper .nsf-book-counter { display:block; }
.editor-styles-wrapper .nsf-book-counter > .block-editor-inner-blocks > .block-editor-block-list__layout { display:flex; align-items:center; justify-content:center; gap:10px; }
.editor-styles-wrapper .nsf-product-selection .wp-block-button__link::after { content:none; }
@media(max-width:1000px) { .nsf-product-grid,.editor-styles-wrapper .nsf-product-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .nsf-product-grid,.editor-styles-wrapper .nsf-product-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns:1fr; }
 .nsf-product-selection { gap:30px; }
 .nsf-product-selection .nsf-option-image { height:82px; }
 .nsf-product-selection .nsf-book-counter button { width:40px; height:40px; }
}
@media(max-width:360px) { .nsf-product-selection .nsf-book-counter { gap:4px; } .nsf-product-selection .nsf-book-counter button { width:34px; height:40px; } }
