.nc-grid { margin: 16px 0 24px; padding: 12px 0; max-width: 860px; clear: both; font-family: inherit; }
.nc-grid .nc-title { margin: 0 0 14px; font-size: 1.1rem; font-weight: 600; }
.nc-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 9px; }
.nc-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; min-width: 620px; }
.nc-item { position: relative; display: flex; flex-direction: column; gap: 5px; align-items: stretch; border: 1px solid #d8dce3; border-radius: 7px; background: #fff; min-width: 0; padding: 7px; color: #1f2937; font: inherit; text-align: center; cursor: pointer; box-shadow: none; }
.nc-item:hover, .nc-item:focus-visible { border-color: #1554a3; box-shadow: 0 0 0 2px rgba(21,84,163,.18); outline: none; }
.nc-item[aria-pressed="true"] { border: 2px solid #1554a3; padding: 6px; box-shadow: 0 0 0 2px rgba(21,84,163,.12); }
.nc-swatch { width: 100%; height: 60px; display: block; border: 1px solid rgba(0,0,0,.13); border-radius: 4px; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.nc-name { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; min-height: 31px; }
.nc-out-of-stock:not([hidden]) { display: block; font-size: 10px; font-weight: 600; color: #a32424; line-height: 1.25; }
.nc-item.nc-unavailable { background: #f6f7f9; opacity: .74; }
.nc-item.nc-unavailable .nc-swatch { filter: grayscale(.25); }
.nc-feedback { font-size: 12px; margin-top: 8px; }
.nc-feedback:empty { display: none; }
.nc-empty { box-sizing: border-box; min-height: 172px; max-width: 780px; background: #d8edff; color: #174470; display: flex; justify-content: center; align-items: center; text-align: center; font-size: 1.15rem; padding: 20px; border-radius: 5px; }

.nc-feedback-warning { color: #982b22; font-weight: 600; }

/* Pictures are product/combination-specific where possible. No distortion. */
.nc-swatch-image { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Keep native radio/select elements in the DOM for theme AJAX and cart logic.
   Hide only the verified colour-group wrapper, never size/container groups. */
.nc-native-color-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* Native colour group: only applied after verified matching to our grid.
   Display:none does not remove form values or event listeners. */
.nc-native-color-hidden { display: none !important; }
/* Colour preview occupies the cover image area; original product image and zoom
   links remain untouched below. No universal vendor image is substituted. */
.nc-color-preview-host { position: relative !important; }
.nc-color-preview { position: absolute !important; inset: 0 !important; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 12px; background: #fff; z-index: 30; pointer-events: none; box-sizing: border-box; }
.nc-color-preview-image { display: block; width: auto !important; max-width: 88% !important; max-height: 78% !important; height: auto !important; object-fit: contain !important; }
.nc-color-preview-label { font-size: 12px; text-align: center; color: #333; max-width: 94%; }

.nc-preview-diagnostic:not([hidden]) { font-size: 12px; margin-top: 5px; color: #975224; }

/* Extra-content hooks can be rendered a second time by ThemeVolty below the
   Description/Reviews/Videos tabs. Only the live grid in the product actions
   should remain visible. These selectors are limited to tab panels, never
   to the product variants or other modules' content. */
.tab-content .nc-grid[data-nc-product],
.tab-pane .nc-grid[data-nc-product],
[role="tabpanel"] .nc-grid[data-nc-product] { display: none !important; }


/* 1.0.6 — avoid pushing Description / Details / Reviews many screens below
   large ranges (Horadam >100 colours). Always retain six columns. */
.nc-palette-toolbar { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: end; margin: 0 0 8px; }
.nc-search-field { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 150px; gap: 5px; }
.nc-search-label { font-size: 12px; color: #343f4b; font-weight: 600; margin: 0; }
.nc-search-input { display: block; box-sizing: border-box; width: 100%; min-height: 36px; padding: 7px 10px; background: #fff; border: 1px solid #c9d0da; border-radius: 5px; color: #212936; font: inherit; font-size: 13px; }
.nc-search-input:focus-visible, .nc-expand-toggle:focus-visible { outline: 2px solid #1554a3; outline-offset: 2px; }
.nc-expand-toggle { background: #fff; color: #194778; border: 1px solid #a7bdd7; border-radius: 5px; padding: 7px 10px; min-height: 36px; font: inherit; font-size: 12px; cursor: pointer; }
.nc-expand-toggle:hover { background: #eaf4ff; }
.nc-expand-toggle[hidden] { display: none !important; }
.nc-grid .nc-scroll { max-height: 385px; overflow-x: auto; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.nc-grid.nc-expanded .nc-scroll { max-height: none; overflow-y: visible; }
.nc-grid .nc-item[hidden] { display: none !important; }
.nc-palette-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; color: #526174; margin: 6px 0 0; }
.nc-no-results:not([hidden]) { font-size: 13px; color: #7b3b29; padding: 10px 0; }
.nc-no-results[hidden] { display: none !important; }
@media (max-width: 767px) {
  .nc-grid .nc-scroll { max-height: 320px; }
  .nc-palette-toolbar { align-items: stretch; }
  .nc-search-field { flex: 1 1 100%; }
}

/* 1.1.0 — accessible full-width palette modal (no global theme override). */
.nc-launch { display:block; width:100%; max-width:600px; margin:16px 0; padding:14px 20px; border:0; border-radius:6px; color:#fff; background:#183a63; font-weight:700; font-size:15px; text-align:center; cursor:pointer; transition:background .15s; }
.nc-launch:hover {background:#285784;}
.nc-launch:focus-visible {outline:3px solid #5ba6ff;outline-offset:2px;}
.nc-modal-root[hidden] {display:none !important;}
.nc-modal-root {position:fixed; inset:0; z-index:100050; font-family:inherit; color:#233047;}
.nc-modal-backdrop {position:absolute;inset:0;background:rgba(18,26,37,.73);}
.nc-modal-dialog {position:relative; display:flex; flex-direction:column; background:#fff; margin:3vh auto; width:min(1240px,96vw); height:94vh; max-height:980px; box-shadow:0 24px 80px rgba(0,0,0,.28); border-radius:12px; outline:0;overflow:hidden;}
.nc-modal-header {display:flex; gap:20px; justify-content:space-between; align-items:flex-start; padding:17px 23px 14px; border-bottom:1px solid #dce2eb;}
.nc-modal-header h2 {font-size:21px;line-height:1.24;font-weight:700;margin:0 0 5px;color:#17293d;}
.nc-modal-header p {color:#586474;font-size:13px;margin:0;}
.nc-modal-close {border:1px solid #dae1e9; background:#fff; border-radius:50%;font:inherit;font-size:26px;line-height:1;min-width:38px;min-height:38px;cursor:pointer;color:#263b57;}
.nc-modal-close:hover {background:#f2f6fa;}
.nc-modal-main {display:grid;grid-template-columns:minmax(0, 1fr) 335px; flex:1;min-height:0;overflow:hidden;}
.nc-palette-panel {padding:14px 18px 20px 22px;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.nc-modal-root .nc-grid {display:flex;flex-direction:column;flex:1;min-height:0;max-width:none;padding:0;margin:0;clear:none;}
.nc-modal-root .nc-palette-toolbar {flex:0 0 auto;display:flex;align-items:flex-end;gap:12px;margin:0 0 9px;}
.nc-modal-root .nc-search-field {flex:1 1 220px;min-width:160px;}
.nc-family-field {display:flex;flex:0 1 195px;flex-direction:column;gap:5px;font-size:12px;font-weight:600;min-width:150px;}
.nc-family-select {display:block;width:100%;height:36px;border-radius:5px;border:1px solid #c9d0da;background:white;color:#1f2937;font:inherit;font-size:13px;padding:4px 8px;}
.nc-modal-root .nc-palette-count {margin:0 0 8px;font-size:12px;color:#5a6674;}
.nc-modal-root .nc-scroll,.nc-modal-root .nc-grid.nc-expanded .nc-scroll {display:block;flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;padding:3px 9px 14px 2px;scrollbar-gutter:stable;}
.nc-modal-root .nc-swatches {min-width:565px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;}
.nc-modal-root .nc-item {padding:6px;min-height:112px;}
.nc-modal-root .nc-swatch {height:59px;}
.nc-modal-root .nc-item .nc-name {font-size:11px;line-height:1.25;min-height:32px;}
.nc-modal-root .nc-item[aria-pressed="true"] {padding:5px;}
.nc-modal-root .nc-no-results,.nc-modal-root .nc-feedback,.nc-modal-root .nc-preview-diagnostic {flex:0 0 auto;}
.nc-modal-root .nc-feedback {margin:4px 0 0;font-size:11px;}
.nc-sidebar {border-left:1px solid #dce2eb;background:#f8fafd;display:flex;flex-direction:column;min-height:0;overflow-y:auto;}
.nc-detail-card,.nc-basket-card {padding:17px 16px;border-bottom:1px solid #dce2eb;}
.nc-basket-card {background:#fff;margin-top:auto;}
.nc-sidebar h3 {font-size:16px;color:#25364b;margin:0 0 11px;font-weight:700;}
.nc-selected-color {display:flex;align-items:center;gap:12px;min-height:55px;margin-bottom:8px;font-size:14px;overflow-wrap:anywhere;}
.nc-selected-image {width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid #dce2eb;border-radius:4px;}
.nc-detail-state {color:#476074;font-size:12px;margin:6px 0;}
.nc-detail-state.nc-error,.nc-batch-feedback.nc-error {color:#a52a23;font-weight:600;}
.nc-option-list {display:flex;flex-direction:column;gap:8px;max-height:250px;overflow-y:auto;}
.nc-option-row {background:#fff;border:1px solid #d9e1ea;border-radius:6px;padding:9px;}
.nc-option-row.nc-option-unavailable {background:#f1f2f4;opacity:.65;}
.nc-option-main {display:flex;gap:9px;align-items:baseline;justify-content:space-between;font-size:12px;}
.nc-option-main strong {font-size:13px;font-weight:600;}
.nc-option-price {font-weight:700;white-space:nowrap;color:#153c6a;}
.nc-option-stock {display:block;font-size:11px;color:#667487;margin-top:3px;}
.nc-option-actions {display:flex;gap:7px;margin-top:8px;}
.nc-option-qty {width:65px;min-height:34px;text-align:center;border:1px solid #c4cedc;border-radius:5px;background:#fff;color:#172a41;}
.nc-option-add {flex:1;border:1px solid #174879;background:#e8f2ff;color:#164475;border-radius:5px;font-weight:600;font-size:11px;padding:6px;cursor:pointer;}
.nc-option-add:hover {background:#d6e9ff;}
.nc-detail-note {color:#6c7480;font-size:11px;line-height:1.35;margin:9px 0 0;}
.nc-selection-count {font-size:11px;font-weight:500;color:#667487;}
.nc-selection-lines {display:flex;flex-direction:column;gap:8px;max-height:178px;overflow-y:auto;font-size:12px;}
.nc-selection-lines p {margin:0;color:#697585;}
.nc-selection-row {border-bottom:1px solid #e3e8ef;padding-bottom:7px;}
.nc-selection-row-title {font-weight:600;line-height:1.35;}
.nc-selection-row-price {color:#566779;font-size:11px;margin:3px 0;}
.nc-remove-line {font-size:11px;color:#8f2424;padding:0;border:none;background:none;cursor:pointer;text-decoration:underline;}
.nc-selection-total {display:flex;justify-content:space-between;gap:8px;margin:13px 0;padding-top:8px;border-top:1px solid #dce2eb;font-size:13px;}
.nc-selection-total strong {font-size:15px;}
.nc-add-all {width:100%;border:none;border-radius:5px;background:#173f6c;color:white;font-weight:700;padding:12px 9px;cursor:pointer;font-size:13px;}
.nc-add-all:disabled {background:#8c9caf;cursor:not-allowed;}
.nc-view-cart:not([hidden]) {display:block;text-align:center;margin:11px 0 0;background:#edf3fa;border-radius:5px;padding:9px;color:#14385f;font-size:13px;font-weight:700;text-decoration:none;}
.nc-view-cart[hidden] {display:none !important;}
.nc-batch-feedback {font-size:12px;line-height:1.4;margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;}
.nc-modal-root button:focus-visible,.nc-modal-root input:focus-visible,.nc-modal-root select:focus-visible {outline:2px solid #2869bb;outline-offset:2px;}
@media (max-width:980px) { .nc-modal-main {grid-template-columns:minmax(0,1fr) 285px;} .nc-modal-root .nc-swatches {min-width:520px;} }
@media (max-width:767px) {
  .nc-modal-dialog {width:100vw;height:100dvh;max-height:none;margin:0;border-radius:0;}
  .nc-modal-header {padding:12px 15px;}
  .nc-modal-header h2 {font-size:18px;}
  .nc-modal-main {display:flex;flex-direction:column;overflow-y:auto;}
  .nc-palette-panel {flex:0 0 auto;height:min(53vh,550px);padding:11px 12px 0;}
  .nc-modal-root .nc-scroll {flex:1;}
  .nc-sidebar {flex:0 0 auto;overflow:visible;border-left:0;border-top:1px solid #dce2eb;}
  .nc-basket-card {margin-top:0;}
  .nc-detail-card,.nc-basket-card {padding:13px 15px;}
  .nc-modal-root .nc-palette-toolbar {gap:8px;}
  .nc-family-field {flex:0 0 150px;min-width:130px;}
  .nc-modal-root .nc-swatches {min-width:540px;}
  .nc-option-list,.nc-selection-lines {max-height:280px;}
}

/* Brand/gamme swatches: preserve the real visual aspect rather than force a shared sample. */
.nc-modal-root .nc-item.nc-visual-photo .nc-swatch {background:#fff;}
.nc-modal-root .nc-item.nc-visual-photo .nc-swatch-image {object-fit:contain;}
.nc-modal-root .nc-item.nc-visual-texture .nc-swatch-image {object-fit:contain;}
.nc-modal-root .nc-item.nc-visual-color .nc-swatch {border:1px solid rgba(0,0,0,.2);}

/* 1.2.0: highlighted sales area; keep native combination inputs and six-column palette. */
.nc-promo-banner {border:1px solid #ead8cc;background:#fffbf7;border-radius:8px;padding:10px 11px;margin:0 0 12px;flex:0 0 auto;max-height:220px;overflow-y:auto;}
.nc-promo-banner h3 {font-size:15px;color:#753a20;margin:0 0 8px;font-weight:700;}
.nc-promo-cards {display:flex;gap:9px;overflow-x:auto;padding-bottom:5px;}
.nc-promo-card {position:relative;display:flex;gap:8px;align-items:center;min-width:205px;max-width:260px;background:white;border:1px solid #e6c5b5;border-radius:7px;padding:21px 8px 7px;text-align:left;cursor:pointer;color:#263449;}
.nc-promo-card:hover,.nc-promo-card:focus-visible {border-color:#b83e25;outline:1px solid #b83e25;}
.nc-promo-badge {position:absolute;top:0;left:0;background:#b92823;color:white;padding:2px 7px;font-size:11px;font-weight:700;border-radius:6px 0 6px 0;}
.nc-promo-image {width:54px;height:54px;flex:none;border:1px solid #ded5d0;border-radius:4px;overflow:hidden;}
.nc-promo-image img {width:100%;height:100%;object-fit:contain;}
.nc-promo-text {display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;line-height:1.3;}
.nc-promo-text small {font-size:10px;color:#885944;}
.nc-promo-text b {color:#a62422;}
/* Featured colors stay in their normal place in the six-column palette. */
.nc-grid .nc-item[data-nc-promoted="1"] {position:relative;}
.nc-grid .nc-item[data-nc-promoted="1"]::before {content:"PROMO";position:absolute;z-index:2;top:2px;left:2px;padding:2px 4px;border-radius:3px;background:#b92823;color:#fff;font-size:9px;line-height:1.2;font-weight:700;pointer-events:none;}
.nc-promo-card[aria-pressed="true"] {border:2px solid #205ab7;outline:2px solid rgba(32,90,183,.17);}
.nc-promo-hint {font-size:11px;color:#755041;margin:-4px 0 9px;}
.nc-option-old-price {text-decoration:line-through;color:#757575;margin-right:5px;font-size:11px;font-weight:400;}
.nc-option-promo {display:inline-block;background:#b92823;color:#fff;font-size:10px;font-weight:700;padding:1px 5px;border-radius:4px;margin-left:4px;}
