/* nhwmc-public.css — NHW MilanoColor Plugin — prefisso .nhwmc- */

.nhwmc-catalog {
    --nhwmc-bg:           #F5F5F5;
    --nhwmc-white:        #FFFFFF;
    --nhwmc-border:       #E0E0E0;
    --nhwmc-text:         #333333;
    --nhwmc-muted:        #777777;
    --nhwmc-mil:          #C41E3A;
    --nhwmc-mil-dk:       #A0162E;
    --nhwmc-eur:          #1A4B8C;
    --nhwmc-eur-dk:       #143A6E;
    --nhwmc-accent:       #40429D;
    --nhwmc-accent-dk:    #2E3080;
    --nhwmc-accent-alpha: rgba(64,66,157,.10);
    --nhwmc-radius:       6px;
    --nhwmc-radius-lg:    10px;
    --nhwmc-shadow-sm:    0 1px 3px rgba(0,0,0,.10);
    --nhwmc-shadow-md:    0 4px 12px rgba(0,0,0,.12);
    --nhwmc-shadow-lg:    0 8px 24px rgba(0,0,0,.18);
    --nhwmc-tr:           0.22s ease;
    --nhwmc-drawer-w:     380px;
    --nhwmc-z-overlay:    999990;
    --nhwmc-z-drawer:     999995;
    --nhwmc-z-modal:      999998;
    --nhwmc-z-cart:       999980;

    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nhwmc-text);
    background: var(--nhwmc-bg);
    min-height: 60vh;
    padding: 16px;
    position: relative;
}

.nhwmc-catalog *, .nhwmc-catalog *::before, .nhwmc-catalog *::after { box-sizing: inherit; }

/* ── Header ─────────────────────────────────────────────── */
.nhwmc-header { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }

.nhwmc-search-wrap { position:relative; display:flex; align-items:center; }
.nhwmc-search-icon { position:absolute; left:12px; font-size:16px; color:var(--nhwmc-muted); pointer-events:none; }
.nhwmc-search {
    width:100%; padding:11px 38px 11px 38px;
    border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius);
    background:var(--nhwmc-white); font-size:15px; color:var(--nhwmc-text); outline:none;
    transition:border-color var(--nhwmc-tr), box-shadow var(--nhwmc-tr);
}
.nhwmc-search:focus { border-color:var(--nhwmc-accent); box-shadow:0 0 0 3px var(--nhwmc-accent-alpha); }
.nhwmc-search-clear { position:absolute; right:12px; font-size:20px; color:var(--nhwmc-muted); cursor:pointer; display:none; }
.nhwmc-search-clear.visible { display:block; }

.nhwmc-filters { background:var(--nhwmc-white); border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); }
.nhwmc-filters-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; padding:11px 14px; background:none; border:none; font-size:14px; font-weight:600; cursor:pointer; }
.nhwmc-filters-toggle-icon { transition:transform var(--nhwmc-tr); font-size:11px; }
.nhwmc-filters-toggle[aria-expanded="true"] .nhwmc-filters-toggle-icon { transform:rotate(180deg); }
.nhwmc-filters-body { display:none; padding:12px 14px 14px; border-top:1px solid var(--nhwmc-border); flex-direction:column; gap:10px; }
.nhwmc-filters-body.open { display:flex; }

@media (min-width:768px) {
    .nhwmc-filters-toggle { display:none; }
    .nhwmc-filters { border:none; background:transparent; }
    .nhwmc-filters-body, .nhwmc-filters-body.open {
        display:grid !important; grid-template-columns:1fr 1fr 1fr auto auto; align-items:end; padding:0; border:none; gap:10px;
    }
}

.nhwmc-filter-group { display:flex; flex-direction:column; gap:4px; }
.nhwmc-filter-label { font-size:11px; font-weight:600; color:var(--nhwmc-muted); text-transform:uppercase; letter-spacing:.04em; }
.nhwmc-select { padding:9px 10px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); background:var(--nhwmc-white); font-size:14px; color:var(--nhwmc-text); outline:none; cursor:pointer; }
.nhwmc-select:focus { border-color:var(--nhwmc-accent); }
.nhwmc-select--sm { padding:7px 10px; font-size:13px; }

/* ── Macro-category chips ────────────────────────────────── */
.nhwmc-mcat-section {
    margin-bottom: 10px;
}
.nhwmc-mcat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0 4px;
}
.nhwmc-mcat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #D0D3E8;
    background: #fff;
    background-color: #fff;
    color: #555;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--nhwmc-tr), border-color var(--nhwmc-tr), color var(--nhwmc-tr), box-shadow var(--nhwmc-tr);
    white-space: nowrap;
    line-height: 1.3;
}
.nhwmc-mcat-chip:hover {
    border-color: var(--nhwmc-accent);
    color: var(--nhwmc-accent);
    background: #EEF0FB;
    background-color: #EEF0FB;
}
.nhwmc-mcat-chip.active {
    background: var(--nhwmc-accent) !important;
    background-color: var(--nhwmc-accent) !important;
    border-color: var(--nhwmc-accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(64,66,157,.28);
}
.nhwmc-mcat-chip-icon { font-size: 14px; line-height: 1; }
.nhwmc-mcat-chip-label { line-height: 1; }

/* ── Brand filter bar ────────────────────────────────────── */
.nhwmc-filters-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.nhwmc-filter-group--brand { flex: 0 0 auto; min-width: 180px; }
@media (max-width: 480px) {
    .nhwmc-filter-group--brand { min-width: 0; flex: 1 1 auto; }
    .nhwmc-mcat-chip { padding: 5px 10px; font-size: 12px; }
}

/* ── Toolbar (results count + view toggle) ───────────────── */
.nhwmc-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; min-height:34px; }
.nhwmc-results-info { font-size:13px; color:var(--nhwmc-muted); margin:0; flex:1; }

.nhwmc-view-toggle { display:flex; gap:4px; flex-shrink:0; }
.nhwmc-view-btn {
    width:34px; height:34px; display:flex; align-items:center; justify-content:center;
    border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius);
    background:var(--nhwmc-white); cursor:pointer; color:var(--nhwmc-muted);
    transition:background var(--nhwmc-tr), color var(--nhwmc-tr), border-color var(--nhwmc-tr);
    padding:0;
}
.nhwmc-view-btn:hover { background:#F0F0F0; border-color:#CCC; color:var(--nhwmc-text); }
.nhwmc-view-btn.active { background:var(--nhwmc-accent); color:#fff; border-color:var(--nhwmc-accent); }
.nhwmc-view-btn svg { width:16px; height:16px; fill:currentColor; pointer-events:none; display:block; }

/* ── Loading ─────────────────────────────────────────────── */
.nhwmc-loading { display:none; text-align:center; padding:40px 20px; color:var(--nhwmc-muted); }
.nhwmc-loading.active { display:block; }
.nhwmc-spinner { width:40px; height:40px; margin:0 auto 12px; border:3px solid var(--nhwmc-border); border-top-color:var(--nhwmc-accent); border-radius:50%; animation:nhwmc-spin 0.7s linear infinite; }
@keyframes nhwmc-spin { to { transform:rotate(360deg); } }

/* ── Grid view ───────────────────────────────────────────── */
.nhwmc-grid { display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:480px) { .nhwmc-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px) { .nhwmc-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:1200px) { .nhwmc-grid { grid-template-columns:repeat(4,1fr); } }

/* ── Card ────────────────────────────────────────────────── */
.nhwmc-card { background:var(--nhwmc-white); border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow var(--nhwmc-tr), transform var(--nhwmc-tr); }
.nhwmc-card:hover { box-shadow:var(--nhwmc-shadow-md); transform:translateY(-2px); }

.nhwmc-card-img { width:100%; aspect-ratio:1; background:#F0F0F0; display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--nhwmc-border); overflow:hidden; }
.nhwmc-card-img img { width:100%; height:100%; object-fit:cover; }
.nhwmc-card-img-link { display:block; line-height:0; width:100%; height:100%; }
.nhwmc-card-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; color:#BDBDBD; gap:6px; }
.nhwmc-card-placeholder svg { width:48px; height:48px; fill:#BDBDBD; }
.nhwmc-card-placeholder span { font-size:11px; text-transform:uppercase; letter-spacing:.05em; }

.nhwmc-card-body { padding:12px; display:flex; flex-direction:column; gap:6px; flex:1; }
.nhwmc-badge { display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#fff; width:fit-content; }
.nhwmc-badge--mil { background:var(--nhwmc-mil); }
.nhwmc-badge--eur { background:var(--nhwmc-eur); }
.nhwmc-card-name { font-size:13px; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nhwmc-card-meta { font-size:11px; color:var(--nhwmc-muted); display:flex; flex-direction:column; gap:2px; }
.nhwmc-card-sku { font-family:monospace; font-size:11px; color:var(--nhwmc-muted); background:#F5F5F5; border-radius:3px; padding:1px 5px; width:fit-content; }

.nhwmc-card-footer { display:flex; flex-direction:column; gap:6px; padding:10px 14px 14px; border-top:1px solid var(--nhwmc-border); }
.nhwmc-btn-detail { text-align:center; }

/* ── Buttons ─────────────────────────────────────────────── */
.nhwmc-btn {
    display:inline-flex; align-items:center; justify-content:center;
    gap:6px; padding:9px 18px; border-radius:var(--nhwmc-radius);
    font-size:14px; font-weight:600; cursor:pointer;
    border:2px solid transparent;
    transition:background var(--nhwmc-tr), color var(--nhwmc-tr),
               border-color var(--nhwmc-tr), box-shadow var(--nhwmc-tr);
    white-space:nowrap; line-height:1;
}
.nhwmc-btn:disabled { opacity:.40; cursor:not-allowed; filter:grayscale(.45); box-shadow:none !important; }

/* Primary — blu solido, ombra per risalto */
.nhwmc-btn-primary {
    background:var(--nhwmc-accent); color:#fff; border-color:var(--nhwmc-accent);
    box-shadow:0 2px 8px rgba(64,66,157,.32);
}
.nhwmc-btn-primary:hover:not(:disabled) {
    background:var(--nhwmc-accent-dk); border-color:var(--nhwmc-accent-dk);
    box-shadow:0 4px 14px rgba(64,66,157,.44);
}

/* Ghost — bianco solido, bordo grigio medio visibile */
.nhwmc-btn-ghost {
    background:#fff; color:#3A3A3A; border-color:#B0B4C4;
}
.nhwmc-btn-ghost:hover:not(:disabled) {
    background:#ECEEF8; border-color:var(--nhwmc-accent); color:var(--nhwmc-accent);
}

.nhwmc-btn-sm { padding:6px 13px; font-size:13px; }
.nhwmc-btn-full { width:100%; }

/* Add-to-cart — stessa gerarchia visiva di primary */
.nhwmc-btn-add {
    width:100%; background:var(--nhwmc-accent); color:#fff; border-color:var(--nhwmc-accent);
    box-shadow:0 2px 6px rgba(64,66,157,.24);
}
.nhwmc-btn-add:hover {
    background:var(--nhwmc-accent-dk); border-color:var(--nhwmc-accent-dk);
    box-shadow:0 4px 12px rgba(64,66,157,.36);
}

/* ── Pagination ──────────────────────────────────────────── */
.nhwmc-pagination { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:24px; flex-wrap:wrap; }
.nhwmc-page-btn { min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); background:var(--nhwmc-white); font-size:14px; cursor:pointer; transition:background var(--nhwmc-tr); padding:0 10px; }
.nhwmc-page-btn:hover { background:#F0F0F0; }
.nhwmc-page-btn.active { background:var(--nhwmc-accent); border-color:var(--nhwmc-accent); color:#fff; font-weight:700; }

/* ── Empty ───────────────────────────────────────────────── */
.nhwmc-empty { text-align:center; padding:60px 20px; color:var(--nhwmc-muted); }
.nhwmc-empty-icon { font-size:48px; margin-bottom:12px; }

/* ── Overlay ─────────────────────────────────────────────── */
.nhwmc-overlay { display:none; position:fixed !important; inset:0 !important; background:rgba(0,0,0,.55); z-index:999990 !important; backdrop-filter:blur(2px); }
.nhwmc-overlay.active { display:block; }

/* ── Cart button ─────────────────────────────────────────── */
.nhwmc-cart-btn { position:fixed; bottom:28px; right:24px; z-index:var(--nhwmc-z-cart); width:58px; height:58px; border-radius:50%; background:var(--nhwmc-accent); color:#fff; border:none; cursor:pointer; box-shadow:var(--nhwmc-shadow-lg); display:flex; align-items:center; justify-content:center; transition:background var(--nhwmc-tr), transform var(--nhwmc-tr); }
.nhwmc-cart-btn:hover { background:var(--nhwmc-accent-dk); transform:scale(1.07); }
.nhwmc-cart-icon { font-size:24px; }
.nhwmc-cart-count { position:absolute; top:4px; right:4px; background:#fff; color:var(--nhwmc-accent); font-size:11px; font-weight:700; min-width:18px; height:18px; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:0 4px; box-shadow:0 0 0 2px var(--nhwmc-accent); }

/* ── Drawer ──────────────────────────────────────────────── */
.nhwmc-drawer {
    position: fixed !important;
    top: 0 !important; right: 0 !important;
    height: 100vh !important;
    width: min(var(--nhwmc-drawer-w), 100vw);
    background: #fff !important;
    background-color: #fff !important;
    z-index: 999995 !important;
    box-shadow: -6px 0 40px rgba(0,0,0,.22);
    border-left: 1px solid #D0D4E8;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.nhwmc-drawer.open { transform: translateX(0); }

/* Header blu — chiaramente distinto */
.nhwmc-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    height: 58px;
    background: var(--nhwmc-accent) !important;
    background-color: var(--nhwmc-accent) !important;
    flex-shrink: 0;
}
.nhwmc-drawer-title {
    font-size: 15px; font-weight: 700; margin: 0;
    color: #fff !important;
    display: flex; align-items: center; gap: 8px;
}
.nhwmc-drawer-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.22); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
}
.nhwmc-drawer-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.15) !important;
    background-color: rgba(255,255,255,.15) !important;
    border: none; font-size: 20px; cursor: pointer;
    color: #fff !important; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--nhwmc-tr);
}
.nhwmc-drawer-close:hover {
    background: rgba(255,255,255,.30) !important;
    background-color: rgba(255,255,255,.30) !important;
    color: #fff !important;
}

/* Body — area scorrevole su sfondo grigio-blu chiaro */
.nhwmc-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: #F3F5FB !important;
    background-color: #F3F5FB !important;
}

/* Footer — bianco, sempre visibile */
.nhwmc-drawer-footer {
    padding: 14px 16px;
    border-top: 2px solid #E4E7F3;
    background: #fff !important;
    background-color: #fff !important;
    flex-shrink: 0;
}
.nhwmc-drawer-empty-msg {
    font-size: 13px; color: var(--nhwmc-muted);
    text-align: center; margin: 0 0 10px; line-height: 1.5;
}

/* Item cards — bianche su corpo grigio, con ombra */
.nhwmc-cart-item {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #DDE1F0;
    border-radius: var(--nhwmc-radius-lg);
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(64,66,157,.08);
}
.nhwmc-cart-item-header { display:flex; align-items:flex-start; gap:10px; }
.nhwmc-cart-item-info { flex:1; min-width:0; }
.nhwmc-cart-item-name {
    font-size: 13px; font-weight: 700; line-height: 1.35;
    margin: 0 0 5px; color: var(--nhwmc-text);
}
.nhwmc-cart-item-sku {
    font-family: monospace; font-size: 11px; color: var(--nhwmc-muted);
    background: #F0F2FA; border-radius: 3px; padding: 1px 5px;
    display: inline-block;
}
.nhwmc-cart-item-qty {
    font-size: 12px; color: var(--nhwmc-muted); margin-top: 5px;
}
.nhwmc-cart-item-qty strong { color: var(--nhwmc-accent); }

/* Separatore tra brand/sku e rimuovi */
.nhwmc-cart-item-remove {
    background: none; border: none;
    color: #B0B0B8; cursor: pointer;
    font-size: 18px; padding: 0; line-height: 1;
    flex-shrink: 0; margin-top: 2px;
    transition: color var(--nhwmc-tr);
}
.nhwmc-cart-item-remove:hover { color: var(--nhwmc-mil); }

/* RAL chips nel riepilogo */
.nhwmc-cart-item-rals {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed #E4E7F3;
    display: flex; flex-direction: column; gap: 5px;
}
.nhwmc-cart-ral-chip {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: #555;
    background: #F7F8FC; border-radius: 4px;
    padding: 4px 8px;
}
.nhwmc-ral-swatch {
    width: 16px; height: 16px; border-radius: 3px;
    border: 1px solid rgba(0,0,0,.15); flex-shrink: 0;
}

/* ── Modals ──────────────────────────────────────────────── */
.nhwmc-modal {
    display:none; position:fixed; inset:0;
    z-index: 999998 !important;
    overflow-y:auto; padding:20px 16px;
    align-items:center; justify-content:center;
}
.nhwmc-modal.open { display:flex; }

.nhwmc-modal-box {
    background: #fff !important;
    background-color: #fff !important;
    border-radius:var(--nhwmc-radius-lg);
    box-shadow: 0 12px 48px rgba(0,0,0,.28);
    width:100%; max-height:calc(100vh - 40px);
    display:flex; flex-direction:column;
    animation:nhwmc-modal-in .22s ease;
    border: 1px solid #D8DCF0;
}
.nhwmc-modal-box--product { max-width:600px; }
.nhwmc-modal-box--submit  { max-width:560px; }
@keyframes nhwmc-modal-in { from { opacity:0; transform:scale(.96) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* Header standard (modal prodotto) */
.nhwmc-modal-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 22px; border-bottom:1px solid var(--nhwmc-border);
    flex-shrink:0;
    background: #fff !important; background-color: #fff !important;
}
.nhwmc-modal-title { font-size:17px; font-weight:700; margin:0; color:var(--nhwmc-text); }
.nhwmc-modal-close {
    width:32px; height:32px; border-radius:50%;
    background: #F3F3F6 !important; background-color: #F3F3F6 !important;
    border:none; font-size:20px; cursor:pointer;
    color:var(--nhwmc-muted) !important; line-height:1;
    display:flex; align-items:center; justify-content:center;
    transition:background var(--nhwmc-tr), color var(--nhwmc-tr);
}
.nhwmc-modal-close:hover {
    background: #E4E6F3 !important; background-color: #E4E6F3 !important;
    color: var(--nhwmc-accent) !important;
}

/* Header ACCENT (modal invio preventivo) */
.nhwmc-modal-header--accent {
    background: var(--nhwmc-accent) !important;
    background-color: var(--nhwmc-accent) !important;
    border-bottom: none;
    padding: 18px 22px;
    gap: 12px;
}
.nhwmc-modal-header--accent .nhwmc-modal-title { color:#fff; font-size:18px; }
.nhwmc-modal-header--accent .nhwmc-modal-subtitle {
    font-size:12px; color:rgba(255,255,255,.75); margin:3px 0 0; font-weight:400;
}
.nhwmc-modal-header--accent .nhwmc-modal-close {
    background: rgba(255,255,255,.15) !important;
    background-color: rgba(255,255,255,.15) !important;
    color: #fff !important;
}
.nhwmc-modal-header--accent .nhwmc-modal-close:hover {
    background: rgba(255,255,255,.30) !important;
    background-color: rgba(255,255,255,.30) !important;
}

/* Body e footer */
.nhwmc-modal-body {
    padding:20px 22px; overflow-y:auto; flex:1;
    display:flex; flex-direction:column; gap:0;
    background: #fff !important; background-color: #fff !important;
}
.nhwmc-modal-footer {
    display:flex; gap:10px; justify-content:flex-end;
    padding:14px 22px; border-top:1px solid var(--nhwmc-border);
    flex-shrink:0;
    background: #F8F9FD !important; background-color: #F8F9FD !important;
}

/* Input/select/textarea dentro i modal: sempre bianchi */
.nhwmc-modal .nhwmc-input,
.nhwmc-modal .nhwmc-select,
.nhwmc-modal .nhwmc-textarea {
    background: #fff !important; background-color: #fff !important;
    color: var(--nhwmc-text) !important;
}
.nhwmc-modal .nhwmc-input:focus,
.nhwmc-modal .nhwmc-select:focus,
.nhwmc-modal .nhwmc-textarea:focus {
    border-color: var(--nhwmc-accent) !important;
    box-shadow: 0 0 0 3px var(--nhwmc-accent-alpha) !important;
}

/* Sezioni del form preventivo */
.nhwmc-form-section { display:flex; flex-direction:column; gap:12px; padding:18px 0; border-bottom:1px solid #ECEEF8; }
.nhwmc-form-section:last-child { border-bottom:none; padding-bottom:0; }
.nhwmc-form-section-title {
    font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
    color: var(--nhwmc-accent); margin:0 0 4px;
}

/* ── Product detail in modal ─────────────────────────────── */
.nhwmc-product-detail { display:flex; gap:14px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid var(--nhwmc-border); }
.nhwmc-product-detail-img { width:72px; height:72px; border-radius:var(--nhwmc-radius); background:#F0F0F0; border:1px solid var(--nhwmc-border); flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nhwmc-product-detail-img img { width:100%; height:100%; object-fit:cover; }
.nhwmc-product-detail-info { flex:1; }
.nhwmc-product-detail-name { font-size:15px; font-weight:700; margin:0 0 6px; }
.nhwmc-product-detail-meta { font-size:12px; color:var(--nhwmc-muted); display:flex; flex-direction:column; gap:2px; }

/* ── Quantity ────────────────────────────────────────────── */
.nhwmc-qty-wrap { display:flex; align-items:center; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); overflow:hidden; width:fit-content; }
.nhwmc-qty-btn { width:36px; height:36px; background:#F5F5F5; border:none; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background var(--nhwmc-tr); }
.nhwmc-qty-btn:hover { background:var(--nhwmc-border); }
.nhwmc-input--qty { width:64px; text-align:center; border:none; border-left:1px solid var(--nhwmc-border); border-right:1px solid var(--nhwmc-border); height:36px; font-size:15px; font-weight:600; outline:none; padding:0 4px; }

/* ── RAL ─────────────────────────────────────────────────── */
.nhwmc-ral-section { border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); padding:14px; background:#FAFAFA; }
.nhwmc-ral-title { font-size:14px; font-weight:700; margin:0 0 12px; }
.nhwmc-ral-entries { display:flex; flex-direction:column; gap:10px; margin-bottom:10px; }

.nhwmc-ral-row { display:grid; grid-template-columns:130px 1fr 70px auto; gap:6px; align-items:start; background:var(--nhwmc-white); border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); padding:10px; }
@media (max-width:520px) {
    .nhwmc-ral-row { grid-template-columns:1fr 1fr; }
    .nhwmc-ral-row .nhwmc-ral-remove { grid-column:2; justify-self:end; }
    .nhwmc-ral-row .nhwmc-ral-search-wrap { grid-column:1/-1; }
    .nhwmc-ral-row .nhwmc-ral-note { grid-column:1/-1; }
}

.nhwmc-ral-select { padding:7px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:13px; background:var(--nhwmc-white); width:100%; outline:none; }
.nhwmc-ral-search-wrap { position:relative; }
.nhwmc-ral-swatch-preview { position:absolute; left:7px; top:50%; transform:translateY(-50%); width:16px; height:16px; border-radius:3px; border:1px solid rgba(0,0,0,.15); background:#E0E0E0; }
.nhwmc-ral-search { width:100%; padding:7px 8px 7px 30px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:13px; outline:none; }
.nhwmc-ral-search:focus { border-color:var(--nhwmc-accent); }
.nhwmc-ral-dropdown { position:absolute; top:100%; left:0; right:0; z-index:100; background:var(--nhwmc-white); border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); box-shadow:var(--nhwmc-shadow-md); max-height:200px; overflow-y:auto; display:none; margin-top:2px; }
.nhwmc-ral-dropdown.open { display:block; }
.nhwmc-ral-option { display:flex; align-items:center; gap:8px; padding:8px 10px; cursor:pointer; font-size:13px; transition:background var(--nhwmc-tr); }
.nhwmc-ral-option:hover { background:#F5F5F5; }
.nhwmc-ral-option-swatch { width:18px; height:18px; border-radius:3px; border:1px solid rgba(0,0,0,.12); flex-shrink:0; }
.nhwmc-ral-qty { padding:7px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:13px; width:100%; outline:none; text-align:center; }
.nhwmc-ral-note { grid-column:1/-1; padding:6px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:12px; resize:vertical; min-height:48px; outline:none; font-family:inherit; width:100%; }
.nhwmc-ral-note:focus, .nhwmc-ral-qty:focus { border-color:var(--nhwmc-accent); }
.nhwmc-ral-remove { background:none; border:none; color:var(--nhwmc-muted); cursor:pointer; font-size:20px; padding:0; line-height:1; transition:color var(--nhwmc-tr); align-self:center; }
.nhwmc-ral-remove:hover { color:var(--nhwmc-mil); }

/* ── Form ────────────────────────────────────────────────── */
.nhwmc-form-group { display:flex; flex-direction:column; gap:5px; }
.nhwmc-form-row { display:grid; gap:12px; }
.nhwmc-form-row--2 { grid-template-columns:1fr; }
@media (min-width:480px) { .nhwmc-form-row--2 { grid-template-columns:1fr 1fr; } }
.nhwmc-label { font-size:13px; font-weight:600; color:var(--nhwmc-text); }
.nhwmc-input { padding:9px 12px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:14px; outline:none; width:100%; transition:border-color var(--nhwmc-tr), box-shadow var(--nhwmc-tr); }
.nhwmc-input:focus { border-color:var(--nhwmc-accent); box-shadow:0 0 0 3px var(--nhwmc-accent-alpha); }
.nhwmc-textarea { padding:9px 12px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:14px; outline:none; resize:vertical; min-height:72px; font-family:inherit; width:100%; transition:border-color var(--nhwmc-tr), box-shadow var(--nhwmc-tr); }
.nhwmc-textarea:focus { border-color:var(--nhwmc-accent); box-shadow:0 0 0 3px var(--nhwmc-accent-alpha); }
.nhwmc-form-hint { font-size:12px; color:var(--nhwmc-muted); margin:0; }
.nhwmc-checkbox-label { display:flex; align-items:flex-start; gap:8px; font-size:13px; cursor:pointer; line-height:1.4; }
.nhwmc-checkbox { margin-top:2px; accent-color:var(--nhwmc-accent); width:15px; height:15px; flex-shrink:0; }
.nhwmc-checkbox-label a { color:var(--nhwmc-accent); }
.nhwmc-form-error { background:#FFF3F4; border:1px solid #F8C0C7; border-radius:var(--nhwmc-radius); padding:10px 14px; color:#C41E3A; font-size:13px; }

/* ── Success ─────────────────────────────────────────────── */
.nhwmc-success-screen { text-align:center; padding:20px 0; }
.nhwmc-success-icon { width:64px; height:64px; background:#EEF0FB; color:var(--nhwmc-accent); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; margin:0 auto 16px; }
.nhwmc-success-title { font-size:20px; font-weight:700; margin:0 0 10px; }
.nhwmc-success-msg { color:var(--nhwmc-muted); font-size:14px; line-height:1.5; margin:0 0 16px; }

/* ── List view ───────────────────────────────────────────── */
.nhwmc-list-view {
    display:flex; flex-direction:column; gap:0;
    border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius-lg);
    overflow:hidden; background:var(--nhwmc-white);
}

.nhwmc-row {
    display:grid;
    grid-template-columns: 38px 148px 176px 1fr 46px 168px;
    align-items:center;
    column-gap:10px;
    padding:9px 14px;
    border-bottom:1px solid var(--nhwmc-border);
    min-height:50px;
    transition:background var(--nhwmc-tr);
}
.nhwmc-row:last-child { border-bottom:none; }
.nhwmc-row:hover { background:rgba(64,66,157,.04); }

.nhwmc-row-store  { display:flex; align-items:center; }
.nhwmc-row-sku    { font-family:monospace; font-size:11px; color:var(--nhwmc-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nhwmc-row-brand  { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--nhwmc-text); }
.nhwmc-row-family { font-weight:400; color:var(--nhwmc-muted); }
.nhwmc-row-name   { font-size:13px; font-weight:500; color:var(--nhwmc-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nhwmc-row-um     { font-size:11px; color:var(--nhwmc-muted); text-align:center; white-space:nowrap; }
.nhwmc-row-actions { display:flex; gap:6px; justify-content:flex-end; align-items:center; }

/* list buttons compact */
.nhwmc-row-actions .nhwmc-btn-sm { padding:5px 10px; font-size:12px; }
.nhwmc-row-actions .nhwmc-btn-add { width:auto; }

/* mobile list */
@media (max-width:767px) {
    .nhwmc-row {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 2px;
        padding: 10px 12px;
        min-height: auto;
    }
    .nhwmc-row-store   { grid-row:1; grid-column:1; align-self:center; }
    .nhwmc-row-name    { grid-row:1; grid-column:2; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .nhwmc-row-actions { grid-row:1; grid-column:3; align-self:center; }
    .nhwmc-row-sku     { grid-row:2; grid-column:1; font-size:11px; color:var(--nhwmc-muted); align-self:center; }
    .nhwmc-row-brand   { grid-row:2; grid-column:2 / 4; font-size:11px; color:var(--nhwmc-muted); font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .nhwmc-row-um      { display:none; }
}

/* ── Product detail page ──────────────────────────────────── */
.nhwmc-product-page { max-width:1200px; margin:0 auto; padding:20px 16px 60px; }
.nhwmc-breadcrumb { font-size:13px; color:var(--nhwmc-muted); margin-bottom:24px; }
.nhwmc-breadcrumb a { color:var(--nhwmc-accent); text-decoration:none; }
.nhwmc-breadcrumb a:hover { text-decoration:underline; }
.nhwmc-product-hero { display:grid; grid-template-columns:1fr; gap:32px; }
@media (min-width:768px) { .nhwmc-product-hero { grid-template-columns:1fr 1.4fr; align-items:start; } }
.nhwmc-product-hero-img { background:#f8f8f8; border-radius:12px; overflow:hidden; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.nhwmc-product-hero-img img { width:100%; height:100%; object-fit:contain; }
.nhwmc-product-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#BDBDBD; font-size:14px; padding:40px; }
.nhwmc-product-placeholder svg { width:72px; height:72px; }
.nhwmc-product-title { font-size:clamp(22px,4vw,32px); font-weight:800; margin:12px 0 6px; color:var(--nhwmc-text); line-height:1.2; }
.nhwmc-product-subtitle { font-size:16px; color:var(--nhwmc-muted); font-style:italic; margin:0 0 16px; }
.nhwmc-product-meta-row { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.nhwmc-meta-item { font-size:13px; color:var(--nhwmc-muted); }
.nhwmc-meta-item strong { color:var(--nhwmc-text); }
.nhwmc-product-sku { font-size:13px; color:var(--nhwmc-muted); margin:0 0 16px; }
.nhwmc-variants { margin-bottom:20px; }
.nhwmc-variant-btns { display:flex; flex-wrap:wrap; gap:8px; }
.nhwmc-variant-btn { padding:8px 16px; border:2px solid var(--nhwmc-border); border-radius:6px; background:#fff; font-size:14px; cursor:pointer; transition:all .15s; }
.nhwmc-variant-btn:hover { border-color:var(--nhwmc-accent); color:var(--nhwmc-accent); }
.nhwmc-variant-btn.active { border-color:var(--nhwmc-accent); background:var(--nhwmc-accent); color:#fff; font-weight:600; }
.nhwmc-product-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.nhwmc-btn-lg { padding:13px 28px; font-size:15px; font-weight:700; }
.nhwmc-cart-msg { padding:10px 16px; border-radius:6px; font-size:14px; font-weight:600; }
.nhwmc-cart-msg--ok { background:#EEF0FB; color:var(--nhwmc-accent); border:1px solid #B8BBE0; }
.nhwmc-product-sections { margin-top:48px; display:grid; gap:32px; }
.nhwmc-product-section { padding:28px; background:#fff; border:1px solid var(--nhwmc-border); border-radius:12px; }
.nhwmc-section-title { font-size:18px; font-weight:700; margin:0 0 16px; color:var(--nhwmc-text); border-bottom:2px solid var(--nhwmc-border); padding-bottom:10px; }
.nhwmc-section-body.nhwmc-prose { font-size:14px; line-height:1.75; color:var(--nhwmc-muted); }
.nhwmc-specs-table { width:100%; border-collapse:collapse; font-size:13px; }
.nhwmc-specs-table th { width:40%; text-align:left; padding:8px 12px; background:#f8f8f8; border:1px solid var(--nhwmc-border); font-weight:600; color:var(--nhwmc-text); vertical-align:top; }
.nhwmc-specs-table td { padding:8px 12px; border:1px solid var(--nhwmc-border); color:var(--nhwmc-muted); vertical-align:top; }
.nhwmc-specs-table tr:nth-child(even) th, .nhwmc-specs-table tr:nth-child(even) td { background:#fcfcfc; }

/* ── Delivery / Toggle ───────────────────────────────────── */
.nhwmc-delivery-section { background:#f8fafc; border:1px solid var(--nhwmc-border); border-radius:8px; padding:14px 16px; margin:8px 0; }
.nhwmc-toggle-label { display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.nhwmc-toggle-check { display:none; }
.nhwmc-toggle-track { width:40px; height:22px; background:#ccc; border-radius:11px; position:relative; transition:background .2s; flex-shrink:0; }
.nhwmc-toggle-check:checked ~ .nhwmc-toggle-track { background:var(--nhwmc-accent); }
.nhwmc-toggle-thumb { position:absolute; top:3px; left:3px; width:16px; height:16px; background:#fff; border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.nhwmc-toggle-check:checked ~ .nhwmc-toggle-track .nhwmc-toggle-thumb { transform:translateX(18px); }
.nhwmc-toggle-text { font-size:14px; font-weight:600; color:var(--nhwmc-text); }
.nhwmc-delivery-fields { margin-top:14px; }

/* ── Shared page-level UI on product page ────────────────── */
.nhwmc-btn-detail { white-space:nowrap; }

/* ── 6 colonne su schermi larghi ──────────────────────────── */
@media (min-width:1400px) { .nhwmc-grid { grid-template-columns:repeat(6,1fr); } }

/* ── Varianti nel card (formato / confezione) ─────────────── */
.nhwmc-card-variants { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0; }
.nhwmc-card-variant-chip { font-size:11px; padding:2px 7px; border:1px solid var(--nhwmc-border); border-radius:20px; background:#F5F5F5; color:var(--nhwmc-muted); cursor:pointer; white-space:nowrap; transition:all .15s; }
.nhwmc-card-variant-chip:hover,.nhwmc-card-variant-chip.active { border-color:var(--nhwmc-accent); background:var(--nhwmc-accent); color:#fff; }

/* ── Cascading filter badges ─────────────────────────────── */
.nhwmc-filter-group select option[data-count="0"] { display:none; }
.nhwmc-filter-group .nhwmc-select:disabled { opacity:.5; cursor:not-allowed; }

/* ── Filtri extra (cat_omog, merch_group) ─────────────────── */
@media (min-width:768px) {
    .nhwmc-filters-body, .nhwmc-filters-body.open {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto !important;
    }
}

/* ── Variante nel modale prodotto ─────────────────────────── */
.nhwmc-modal-variants { border-top:1px solid var(--nhwmc-border); padding-top:10px; }
.nhwmc-modal-variant-btns { display:flex; flex-wrap:wrap; gap:6px; }
/* .nhwmc-variant-btn already defined in product page section — reuses those styles */

/* ── Link nel nome card ───────────────────────────────────── */
.nhwmc-card-name-link { color:inherit; text-decoration:none; }
.nhwmc-card-name-link:hover { color:var(--nhwmc-accent); }

/* ══════════════════════════════════════════════════════════
   RAL CARD — nuova UI con swatch visivo grande
   ══════════════════════════════════════════════════════════ */
.nhwmc-ral-entries { display:flex; flex-direction:column; gap:12px; margin-bottom:12px; }

.nhwmc-ral-card {
    background:var(--nhwmc-white);
    border:1px solid var(--nhwmc-border);
    border-radius:var(--nhwmc-radius);
    overflow:hidden;
}
.nhwmc-ral-card-hdr {
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 12px; background:#F8F8F8; border-bottom:1px solid var(--nhwmc-border);
    gap:10px;
}
.nhwmc-select-sm {
    padding:5px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius);
    font-size:13px; background:var(--nhwmc-white); outline:none; cursor:pointer;
    color:var(--nhwmc-text); flex:1;
}
.nhwmc-select-sm:focus { border-color:var(--nhwmc-accent); }

.nhwmc-ral-card-body { display:flex; align-items:stretch; gap:0; }

.nhwmc-ral-big-swatch {
    width:64px; min-height:100%; flex-shrink:0;
    background:#E8E8E8;
    border-right:1px solid var(--nhwmc-border);
    transition:background .3s;
    position:relative;
    display:flex; align-items:center; justify-content:center;
}
.nhwmc-ral-big-swatch--set::after {
    content:'✓'; color:rgba(255,255,255,.85);
    font-size:20px; font-weight:700;
    text-shadow:0 1px 3px rgba(0,0,0,.4);
}
@media (max-width:480px) {
    .nhwmc-ral-big-swatch { width:48px; }
}

.nhwmc-ral-card-controls {
    flex:1; padding:10px 12px; display:flex; flex-direction:column; gap:8px; min-width:0;
}
.nhwmc-ral-selected-label {
    font-size:12px; font-weight:600; color:var(--nhwmc-accent); line-height:1.3;
    min-height:16px;
}

/* Ricerca RAL Classic */
.nhwmc-ral-classic-ctrl { display:flex; gap:6px; align-items:center; position:relative; }
.nhwmc-ral-search { flex:1; padding:7px 10px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:13px; outline:none; }
.nhwmc-ral-search:focus { border-color:var(--nhwmc-accent); }
.nhwmc-ral-browse { flex-shrink:0; white-space:nowrap; }
.nhwmc-ral-dropdown { position:absolute; top:100%; left:0; right:0; z-index:200; background:var(--nhwmc-white); border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); box-shadow:var(--nhwmc-shadow-md); max-height:200px; overflow-y:auto; display:none; margin-top:2px; }
.nhwmc-ral-dropdown.open { display:block; }
.nhwmc-ral-option { display:flex; align-items:center; gap:8px; padding:8px 10px; cursor:pointer; font-size:13px; transition:background var(--nhwmc-tr); }
.nhwmc-ral-option:hover { background:#F5F5F5; }
.nhwmc-ral-option-swatch { width:18px; height:18px; border-radius:3px; border:1px solid rgba(0,0,0,.12); flex-shrink:0; }

/* Controlli manuali (Sikkens/Herbol/Custom) */
.nhwmc-ral-manual-ctrl { display:flex; gap:8px; align-items:center; }
.nhwmc-color-picker {
    width:38px; height:32px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius);
    padding:2px; cursor:pointer; background:none; outline:none; flex-shrink:0;
}
.nhwmc-color-picker:focus { border-color:var(--nhwmc-accent); }

/* Qty inline */
.nhwmc-ral-qty-wrap { display:flex; align-items:center; gap:6px; }
.nhwmc-ral-qty-lbl { font-size:12px; color:var(--nhwmc-muted); white-space:nowrap; }
.nhwmc-ral-qty { width:72px; padding:6px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:13px; outline:none; text-align:center; }
.nhwmc-ral-qty:focus { border-color:var(--nhwmc-accent); }

.nhwmc-ral-note { padding:6px 8px; border:1px solid var(--nhwmc-border); border-radius:var(--nhwmc-radius); font-size:12px; resize:vertical; min-height:44px; outline:none; font-family:inherit; width:100%; color:var(--nhwmc-text); }
.nhwmc-ral-note:focus { border-color:var(--nhwmc-accent); }
.nhwmc-ral-remove { background:none; border:none; color:var(--nhwmc-muted); cursor:pointer; font-size:20px; padding:0 4px; line-height:1; transition:color var(--nhwmc-tr); }
.nhwmc-ral-remove:hover { color:#C41E3A; }

/* Conferma colore nella card RAL */
.nhwmc-ral-confirm-btn { align-self:flex-start; }
.nhwmc-ral-confirmed {
    display:inline-flex; align-items:center; gap:5px;
    font-size:12px; font-weight:600; color:#2E7D32;
    background:#E8F5E9; border:1px solid #A5D6A7;
    border-radius:20px; padding:3px 10px;
    align-self:flex-start;
}
.nhwmc-ral-card--confirmed {
    border-color:#A5D6A7;
    box-shadow:0 0 0 2px rgba(76,175,80,.15);
}

/* ══════════════════════════════════════════════════════════
   RAL PALETTE MODAL
   ══════════════════════════════════════════════════════════ */
.nhwmc-modal-box--palette {
    max-width:720px; width:100%;
    max-height:calc(100vh - 32px);
    display:flex; flex-direction:column;
}
.nhwmc-palette-toolbar {
    padding:12px 20px; border-bottom:1px solid var(--nhwmc-border); flex-shrink:0;
    display:flex; flex-direction:column; gap:10px;
}
.nhwmc-palette-search {
    width:100%; padding:9px 14px; border:1.5px solid var(--nhwmc-border);
    border-radius:var(--nhwmc-radius); font-size:14px; outline:none;
    transition:border-color var(--nhwmc-tr), box-shadow var(--nhwmc-tr);
    color:var(--nhwmc-text);
}
.nhwmc-palette-search:focus { border-color:var(--nhwmc-accent); box-shadow:0 0 0 3px var(--nhwmc-accent-alpha); }
.nhwmc-palette-series { display:flex; flex-wrap:wrap; gap:6px; }
.nhwmc-series-btn {
    padding:4px 10px; border:1px solid var(--nhwmc-border); border-radius:20px;
    background:var(--nhwmc-white); font-size:12px; cursor:pointer; color:var(--nhwmc-muted);
    transition:all var(--nhwmc-tr); white-space:nowrap;
}
.nhwmc-series-btn:hover { border-color:var(--nhwmc-accent); color:var(--nhwmc-accent); }
.nhwmc-series-btn.active { background:var(--nhwmc-accent); border-color:var(--nhwmc-accent); color:#fff; font-weight:600; }

.nhwmc-palette-body { flex:1; overflow-y:auto; padding:14px 16px; }
.nhwmc-palette-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(48px,1fr));
    gap:6px;
}
.nhwmc-pswatch {
    aspect-ratio:1; border-radius:6px; cursor:pointer; position:relative;
    border:2.5px solid transparent; transition:transform .12s, border-color .12s, box-shadow .12s;
    display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
    overflow:hidden;
}
.nhwmc-pswatch:hover { transform:scale(1.1); box-shadow:0 3px 10px rgba(0,0,0,.25); z-index:2; }
.nhwmc-pswatch.selected { border-color:#fff; box-shadow:0 0 0 3px var(--nhwmc-accent); transform:scale(1.08); }
.nhwmc-pswatch-code {
    font-size:9px; font-weight:700; color:rgba(255,255,255,.9);
    background:rgba(0,0,0,.38); width:100%; text-align:center; padding:2px 1px;
    letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.nhwmc-palette-preview {
    display:flex; align-items:center; gap:14px;
    padding:14px 20px; border-top:1px solid var(--nhwmc-border);
    background:#FAFAFA; flex-shrink:0;
}
.nhwmc-palette-preview-swatch {
    width:52px; height:52px; border-radius:8px; flex-shrink:0;
    background:#E0E0E0; border:1px solid rgba(0,0,0,.1);
    box-shadow:var(--nhwmc-shadow-sm);
}
.nhwmc-palette-preview-info { flex:1; min-width:0; }
.nhwmc-palette-preview-code { display:block; font-size:15px; font-weight:700; color:var(--nhwmc-text); }
.nhwmc-palette-preview-name { display:block; font-size:13px; color:var(--nhwmc-muted); }

/* Pulsanti di conferma/azione principale: outline blu a riposo, solid blu in hover */
#nhwmc-confirm-add,
#nhwmc-page-add-cart,
#nhwmc-request-quote,
#nhwmc-palette-confirm {
    background:       #EEF0FB !important;
    background-color: #EEF0FB !important;
    color:            var(--nhwmc-accent) !important;
    border-color:     var(--nhwmc-accent) !important;
    box-shadow:       none !important;
    filter:           none !important;
    opacity:          1 !important;
}
#nhwmc-confirm-add:hover,
#nhwmc-page-add-cart:hover,
#nhwmc-request-quote:hover,
#nhwmc-palette-confirm:hover:not(:disabled) {
    background:       #40429D !important;
    background-color: #40429D !important;
    color:            #fff !important;
    border-color:     #40429D !important;
    box-shadow:       0 4px 14px rgba(64,66,157,.42) !important;
}
#nhwmc-confirm-add:disabled,
#nhwmc-page-add-cart:disabled,
#nhwmc-request-quote:disabled,
#nhwmc-palette-confirm:disabled {
    background-color: #E5E5E8 !important;
    color:            #888 !important;
    border-color:     #C0C0C8 !important;
    box-shadow:       none !important;
    filter:           none !important;
    opacity:          1 !important;
    cursor:           not-allowed !important;
}

/* ══════════════════════════════════════════════════════════
   OVERRIDE ELEMENTOR / THEME — reset colori rossi/rosa
   ══════════════════════════════════════════════════════════ */

/* Reset ereditarietà tema su tutto il contesto plugin */
.nhwmc-catalog,
.nhwmc-product-page,
.nhwmc-modal,
.nhwmc-drawer,
.nhwmc-overlay {
    --e-global-color-accent:     var(--nhwmc-accent);
    --e-global-color-text:       var(--nhwmc-text);
    color-scheme: light;
}

/* Link interni al plugin: sempre blu, mai rossi */
.nhwmc-catalog a,
.nhwmc-product-page a {
    color: var(--nhwmc-accent) !important;
    text-decoration: none;
}
.nhwmc-catalog a:hover,
.nhwmc-product-page a:hover {
    color: var(--nhwmc-accent-dk) !important;
    text-decoration: underline;
}
/* eccetto i link di navigazione neutri */
.nhwmc-card-name-link,
.nhwmc-breadcrumb a { color:inherit !important; text-decoration:none; }
.nhwmc-card-name-link:hover { color:var(--nhwmc-accent) !important; }
.nhwmc-breadcrumb a:hover { color:var(--nhwmc-accent) !important; }

/* Tutti i <button> nel contesto plugin: reset e usa solo variabili plugin */
.nhwmc-catalog button,
.nhwmc-product-page button,
.nhwmc-modal button,
.nhwmc-drawer button {
    font-family: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
}
/* Override specifico hover Elementor su .nhwmc-btn */
.nhwmc-btn-primary:hover:not(:disabled),
.nhwmc-btn-add:hover,
.nhwmc-cart-btn:hover {
    background-color: var(--nhwmc-accent-dk) !important;
    border-color:     var(--nhwmc-accent-dk) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(64,66,157,.44) !important;
}
/* Ghost button hover: azzurrino, bordo e testo blu — mai rosso */
.nhwmc-btn-ghost:hover:not(:disabled) {
    background-color: #ECEEF8 !important;
    border-color:     var(--nhwmc-accent) !important;
    color:            var(--nhwmc-accent) !important;
}
/* Ghost base: bianco solido, bordo grigio visibile */
.nhwmc-btn-ghost:not(:hover):not(:disabled) {
    background-color: #fff !important;
    border-color: #B0B4C4 !important;
    color: #3A3A3A !important;
}
/* Focus ring: sempre blu */
.nhwmc-catalog button:focus-visible,
.nhwmc-product-page button:focus-visible,
.nhwmc-catalog input:focus-visible,
.nhwmc-product-page input:focus-visible,
.nhwmc-catalog select:focus-visible,
.nhwmc-product-page select:focus-visible,
.nhwmc-catalog textarea:focus-visible,
.nhwmc-product-page textarea:focus-visible,
.nhwmc-modal input:focus-visible,
.nhwmc-modal select:focus-visible,
.nhwmc-modal textarea:focus-visible {
    outline: 2px solid var(--nhwmc-accent) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--nhwmc-accent-alpha) !important;
}
/* Badge colori: MIL=rosso istituzionale, EUR=blu — mai override da tema */
.nhwmc-badge--mil { background: var(--nhwmc-mil)  !important; color:#fff !important; }
.nhwmc-badge--eur { background: var(--nhwmc-eur)  !important; color:#fff !important; }
/* Accent buttons: forza colore blu + ombra per risalto */
.nhwmc-btn-primary,
.nhwmc-btn-add {
    background-color: var(--nhwmc-accent) !important;
    border-color:     var(--nhwmc-accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(64,66,157,.32) !important;
}
.nhwmc-btn-primary:disabled,
.nhwmc-btn-add:disabled {
    box-shadow: none !important;
}
.nhwmc-page-btn.active,
.nhwmc-view-btn.active,
.nhwmc-series-btn.active,
.nhwmc-variant-btn.active,
.nhwmc-card-variant-chip.active {
    background-color: var(--nhwmc-accent) !important;
    border-color:     var(--nhwmc-accent) !important;
    color: #fff !important;
}
/* Swatch toggle & cart badge */
.nhwmc-cart-btn { background-color: var(--nhwmc-accent) !important; }
.nhwmc-cart-count { background:#fff !important; color:var(--nhwmc-accent) !important; }

/* ═══════════════════════════════════════════════════════════════
   v1.5.1 — SIDEBAR REDESIGN + MONTSERRAT + BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ── Font: Montserrat ───────────────────────────────────────── */
.nhwmc-catalog,
.nhwmc-product-page,
.nhwmc-modal,
.nhwmc-drawer {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* ── Catalog: grid layout with sidebar ─────────────────────── */
.nhwmc-catalog {
    display: grid !important;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "sidebar main";
    min-height: 100vh !important;
    padding: 0 !important;
    background: #F4F5FB !important;
    background-color: #F4F5FB !important;
    gap: 0;
    align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.nhwmc-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    height: 100vh;
    background: #1A1D2E;
    background-color: #1A1D2E;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.14) transparent;
    border-right: 1px solid rgba(255,255,255,.06);
    z-index: 10;
}
.nhwmc-sidebar::-webkit-scrollbar { width: 4px; }
.nhwmc-sidebar::-webkit-scrollbar-track { background: transparent; }
.nhwmc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 2px; }

/* Sidebar header */
.nhwmc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.nhwmc-sidebar-brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}
.nhwmc-sidebar-close {
    display: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1) !important;
    background-color: rgba(255,255,255,.1) !important;
    border: none;
    color: rgba(255,255,255,.65) !important;
    font-size: 20px; cursor: pointer; line-height: 1;
    align-items: center; justify-content: center;
    transition: background .2s;
    font-family: inherit;
}
.nhwmc-sidebar-close:hover {
    background: rgba(255,255,255,.2) !important;
    background-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
}

/* Sidebar search */
.nhwmc-sidebar-search-wrap {
    position: relative;
    padding: 12px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nhwmc-sidebar-search-icon {
    position: absolute;
    left: 26px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: rgba(255,255,255,.38);
    pointer-events: none;
}
.nhwmc-sidebar-search {
    width: 100%;
    padding: 9px 32px 9px 34px;
    background: rgba(255,255,255,.08) !important;
    background-color: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.88) !important;
    outline: none;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}
.nhwmc-sidebar-search::placeholder { color: rgba(255,255,255,.32); }
.nhwmc-sidebar-search:focus {
    background: rgba(255,255,255,.13) !important;
    background-color: rgba(255,255,255,.13) !important;
    border-color: rgba(64,66,157,.8);
    box-shadow: 0 0 0 3px rgba(64,66,157,.18);
}
.nhwmc-sidebar-search-wrap .nhwmc-search-clear {
    position: absolute;
    right: 26px; top: 50%; transform: translateY(-50%);
    font-size: 18px; cursor: pointer;
    color: rgba(255,255,255,.35);
    display: none;
}
.nhwmc-sidebar-search-wrap .nhwmc-search-clear.visible { display: block; }
.nhwmc-sidebar-search-wrap .nhwmc-search-clear:hover { color: rgba(255,255,255,.75); }

/* Sidebar nav */
.nhwmc-sidebar-nav {
    flex: 1;
    padding: 6px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: visible;
}

/* "Tutti" top-level button */
.nhwmc-sidebar-nav > .nhwmc-cat-btn {
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 4px;
}

/* Cat buttons */
.nhwmc-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 18px;
    background: none !important;
    background-color: transparent !important;
    border: none;
    color: rgba(255,255,255,.62) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background .16s, color .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1;
    position: relative;
}
.nhwmc-cat-btn:hover {
    background: rgba(255,255,255,.07) !important;
    background-color: rgba(255,255,255,.07) !important;
    color: rgba(255,255,255,.9) !important;
}
.nhwmc-cat-btn.active {
    background: rgba(64,66,157,.42) !important;
    background-color: rgba(64,66,157,.42) !important;
    color: #fff !important;
    font-weight: 600;
}
.nhwmc-cat-btn.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #40429D;
    border-radius: 0 2px 2px 0;
}
.nhwmc-cat-icon {
    width: 17px; height: 17px; flex-shrink: 0; opacity: .55;
}
.nhwmc-cat-btn.active .nhwmc-cat-icon,
.nhwmc-cat-btn:hover .nhwmc-cat-icon { opacity: 1; }

/* Category image chips */
.nhwmc-cat-img-wrap {
    width: 26px; height: 26px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.1);
}
.nhwmc-cat-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: .72; transition: opacity .18s;
}
.nhwmc-cat-btn:hover .nhwmc-cat-img-wrap img,
.nhwmc-cat-btn.active .nhwmc-cat-img-wrap img { opacity: 1; }
.nhwmc-cat-btn.active .nhwmc-cat-img-wrap { border-color: rgba(255,255,255,.28); }

/* Group accordion */
.nhwmc-group { margin-bottom: 2px; }
.nhwmc-group-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px 18px 7px;
    background: none !important;
    background-color: transparent !important;
    border: none;
    color: rgba(255,255,255,.32) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    transition: color .16s;
    font-family: inherit;
    line-height: 1;
}
.nhwmc-group-hd:hover { color: rgba(255,255,255,.52) !important; }
.nhwmc-group-icon { width: 13px; height: 13px; flex-shrink: 0; opacity: .55; }
.nhwmc-group-label { flex: 1; }
.nhwmc-group-arrow {
    width: 13px; height: 13px; flex-shrink: 0; opacity: .4;
    transition: transform .22s;
}
.nhwmc-group:not(.open) .nhwmc-group-arrow { transform: rotate(-90deg); }
.nhwmc-group-body { display: none; }
.nhwmc-group.open .nhwmc-group-body { display: block; }
.nhwmc-group-body .nhwmc-cat-btn { padding-left: 18px; }

/* Sidebar brand */
.nhwmc-sidebar-brand {
    padding: 14px 14px 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.nhwmc-sidebar-section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    margin-bottom: 7px;
}
.nhwmc-sidebar-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,.08) !important;
    background-color: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.82) !important;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s;
}
.nhwmc-sidebar-select:focus {
    border-color: rgba(64,66,157,.7);
    box-shadow: 0 0 0 3px rgba(64,66,157,.16);
}
.nhwmc-sidebar-select option { background: #1E2138; color: #fff; }

/* Sidebar footer */
.nhwmc-sidebar-footer {
    padding: 10px 14px 22px;
    flex-shrink: 0;
}
.nhwmc-sidebar-reset {
    width: 100%;
    padding: 9px 14px;
    background: rgba(255,255,255,.05) !important;
    background-color: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.45) !important;
    cursor: pointer;
    text-align: center;
    transition: background .18s, color .18s;
    font-family: inherit;
    letter-spacing: .02em;
    line-height: 1;
}
.nhwmc-sidebar-reset:hover {
    background: rgba(255,255,255,.11) !important;
    background-color: rgba(255,255,255,.11) !important;
    color: rgba(255,255,255,.8) !important;
}

/* ── Main area ──────────────────────────────────────────────── */
.nhwmc-main {
    grid-area: main;
    padding: 22px 18px;
    min-width: 0;
}

/* ── Toolbar in main ────────────────────────────────────────── */
.nhwmc-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px !important;
    flex-wrap: wrap;
    min-height: 38px;
}
.nhwmc-results-info {
    flex: 1 !important;
    font-size: 13px !important;
    color: var(--nhwmc-muted) !important;
    margin: 0 !important;
    min-width: 0;
}

/* Mobile filter toggle (hidden on desktop) */
.nhwmc-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1A1D2E !important;
    background-color: #1A1D2E !important;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: .02em;
    line-height: 1;
    transition: background .18s;
}
.nhwmc-sidebar-toggle:hover {
    background: #2A2E45 !important;
    background-color: #2A2E45 !important;
}

/* ── Active filters badge bar ───────────────────────────────── */
.nhwmc-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.nhwmc-active-filter-cat,
.nhwmc-active-filter-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(64,66,157,.09);
    border: 1px solid rgba(64,66,157,.22);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #40429D;
}

/* ── Sidebar mobile overlay ─────────────────────────────────── */
.nhwmc-sidebar-overlay { display: none; }

/* ── Grid adjustments for sidebar layout ────────────────────── */
.nhwmc-main .nhwmc-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1180px) { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1500px) { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(4, 1fr); } }

/* ══════════════════════════════════════════════════════════════
   MOBILE (≤1023px): fixed sidebar, slides in from left
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .nhwmc-catalog {
        grid-template-columns: 1fr !important;
        grid-template-areas: "main" !important;
    }
    .nhwmc-sidebar {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 280px;
        height: 100vh !important;
        z-index: 999985 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        grid-area: unset;
    }
    .nhwmc-sidebar.open { transform: translateX(0); }
    .nhwmc-sidebar-close { display: flex !important; }
    .nhwmc-sidebar-toggle { display: flex !important; }
    .nhwmc-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 999984;
        backdrop-filter: blur(2px);
    }
    .nhwmc-sidebar-overlay.active { display: block; }
    .nhwmc-main { padding: 14px 12px; }
    .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .nhwmc-main .nhwmc-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   BUTTON SYSTEM — Elementor-proof, Montserrat, brand blue
   ══════════════════════════════════════════════════════════════ */

/* Font reset on all buttons in plugin context */
.nhwmc-catalog button,
.nhwmc-product-page button,
.nhwmc-modal button,
.nhwmc-drawer button {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Primary: solid blue */
.nhwmc-catalog .nhwmc-btn-primary,
.nhwmc-modal .nhwmc-btn-primary,
.nhwmc-drawer .nhwmc-btn-primary {
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
    border-color: #40429D !important;
    box-shadow: 0 2px 8px rgba(64,66,157,.30) !important;
}
.nhwmc-catalog .nhwmc-btn-primary:hover:not(:disabled),
.nhwmc-modal .nhwmc-btn-primary:hover:not(:disabled),
.nhwmc-drawer .nhwmc-btn-primary:hover:not(:disabled) {
    background: #2E3080 !important;
    background-color: #2E3080 !important;
    border-color: #2E3080 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(64,66,157,.44) !important;
}

/* Add-to-cart: solid blue */
.nhwmc-catalog .nhwmc-btn-add,
.nhwmc-product-page .nhwmc-btn-add {
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
    border-color: #40429D !important;
    box-shadow: 0 2px 6px rgba(64,66,157,.22) !important;
}
.nhwmc-catalog .nhwmc-btn-add:hover,
.nhwmc-product-page .nhwmc-btn-add:hover {
    background: #2E3080 !important;
    background-color: #2E3080 !important;
    border-color: #2E3080 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(64,66,157,.36) !important;
}

/* Confirm / quote / palette: outline → solid on hover */
#nhwmc-confirm-add,
#nhwmc-page-add-cart,
#nhwmc-request-quote,
#nhwmc-palette-confirm {
    background: #EEF0FB !important;
    background-color: #EEF0FB !important;
    color: #40429D !important;
    border-color: #40429D !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}
#nhwmc-confirm-add:hover,
#nhwmc-page-add-cart:hover,
#nhwmc-request-quote:hover,
#nhwmc-palette-confirm:hover:not(:disabled) {
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
    border-color: #40429D !important;
    box-shadow: 0 4px 14px rgba(64,66,157,.42) !important;
}
#nhwmc-confirm-add:disabled,
#nhwmc-page-add-cart:disabled,
#nhwmc-request-quote:disabled,
#nhwmc-palette-confirm:disabled {
    background-color: #E5E5E8 !important;
    color: #888 !important;
    border-color: #C0C0C8 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Ghost: white with grey border */
.nhwmc-catalog .nhwmc-btn-ghost,
.nhwmc-modal .nhwmc-btn-ghost,
.nhwmc-drawer .nhwmc-btn-ghost {
    background: #fff !important;
    background-color: #fff !important;
    color: #3A3A3A !important;
    border-color: #B0B4C4 !important;
}
.nhwmc-catalog .nhwmc-btn-ghost:hover:not(:disabled),
.nhwmc-modal .nhwmc-btn-ghost:hover:not(:disabled),
.nhwmc-drawer .nhwmc-btn-ghost:hover:not(:disabled) {
    background: #ECEEF8 !important;
    background-color: #ECEEF8 !important;
    border-color: #40429D !important;
    color: #40429D !important;
}

/* Active states: pagination, view-toggle, series, variants */
.nhwmc-page-btn.active,
.nhwmc-view-btn.active,
.nhwmc-series-btn.active,
.nhwmc-variant-btn.active,
.nhwmc-card-variant-chip.active {
    background: #40429D !important;
    background-color: #40429D !important;
    border-color: #40429D !important;
    color: #fff !important;
}

/* Cart float — sempre visibile su catalogo e scheda prodotto */
.nhwmc-cart-btn {
    display: flex !important;
    position: fixed !important;
    bottom: 28px !important;
    right: 24px !important;
    z-index: 999980 !important;
    background: #40429D !important;
    background-color: #40429D !important;
}
.nhwmc-cart-btn:hover {
    background: #2E3080 !important;
    background-color: #2E3080 !important;
}
.nhwmc-cart-count--hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   v1.5.2 — SIDEBAR LIGHT + COLLAPSE + LIST THUMB + 6-COL GRID
   ══════════════════════════════════════════════════════════════ */

/* ── Sidebar: tema chiaro (override dark v1.5.1) ─────────────── */
.nhwmc-sidebar {
    background:       #FFFFFF !important;
    background-color: #FFFFFF !important;
    color:            #2D2F4E !important;
    border-right:     1px solid #E4E8F6 !important;
}
.nhwmc-sidebar::-webkit-scrollbar-thumb { background: rgba(64,66,157,.15) !important; }

.nhwmc-sidebar-header {
    background:    #F5F7FF !important;
    border-bottom: 1px solid #E4E8F6 !important;
}
.nhwmc-sidebar-brand-name {
    color:       #2D2F4E !important;
    font-weight: 700 !important;
}

/* Collapser button (desktop only) */
.nhwmc-sidebar-collapser {
    display:       flex;
    align-items:   center;
    justify-content: center;
    width:         26px;
    height:        26px;
    border-radius: 6px;
    border:        1px solid #DCE2F5 !important;
    background:    #EEF0FF !important;
    background-color: #EEF0FF !important;
    color:         #40429D !important;
    cursor:        pointer;
    flex-shrink:   0;
    transition:    background .15s, color .15s, transform .25s;
    padding:       0;
}
.nhwmc-sidebar-collapser:hover {
    background:       #40429D !important;
    background-color: #40429D !important;
    color:            #fff !important;
}
.nhwmc-catalog.sidebar-collapsed .nhwmc-sidebar-collapser svg { transform: rotate(180deg); }
@media (max-width: 1023px) { .nhwmc-sidebar-collapser { display: none !important; } }

/* Close button — light */
.nhwmc-sidebar-close {
    background:       rgba(64,66,157,.08) !important;
    background-color: rgba(64,66,157,.08) !important;
    color:            #40429D !important;
    border:           1px solid #DCE2F5 !important;
}
.nhwmc-sidebar-close:hover {
    background:       #40429D !important;
    background-color: #40429D !important;
    color:            #fff !important;
}

/* Search — light */
.nhwmc-sidebar-search {
    background:       #F0F3FF !important;
    background-color: #F0F3FF !important;
    border:           1px solid #DCE2F5 !important;
    color:            #2D2F4E !important;
}
.nhwmc-sidebar-search::placeholder { color: rgba(45,47,78,.4) !important; }
.nhwmc-sidebar-search:focus {
    background:   #fff !important;
    border-color: #40429D !important;
    box-shadow:   0 0 0 3px rgba(64,66,157,.1) !important;
}
.nhwmc-sidebar-search-icon { color: rgba(45,47,78,.35) !important; }
.nhwmc-sidebar-search-wrap .nhwmc-search-clear { color: rgba(45,47,78,.35) !important; }
.nhwmc-sidebar-search-wrap .nhwmc-search-clear:hover { color: #40429D !important; }

/* Group header — light */
.nhwmc-group-hd {
    color:          #8B93BF !important;
    background:     #F5F7FF !important;
    border-bottom:  1px solid #EEF0FB !important;
    border-top:     none !important;
    padding:        9px 16px !important;
    margin-top:     0 !important;
}
.nhwmc-group-hd:hover { color: #40429D !important; background: #EEF0FF !important; }
.nhwmc-group-hd .nhwmc-group-icon { color: #40429D; opacity: .7; }
.nhwmc-group-hd:hover .nhwmc-group-icon { opacity: 1; }
.nhwmc-group-arrow { color: #B0B8D8; }

/* Cat buttons — light */
.nhwmc-cat-btn {
    color:      #555A7E !important;
    background: transparent !important;
}
.nhwmc-cat-btn:hover {
    background:       #F5F7FF !important;
    background-color: #F5F7FF !important;
    color:            #40429D !important;
}
.nhwmc-cat-btn.active {
    background:       #EEF0FF !important;
    background-color: #EEF0FF !important;
    color:            #40429D !important;
    font-weight:      700 !important;
}
.nhwmc-cat-btn.active::before { background: #40429D !important; }
.nhwmc-cat-btn .nhwmc-cat-icon { color: #8B93BF !important; opacity: .8; }
.nhwmc-cat-btn.active .nhwmc-cat-icon,
.nhwmc-cat-btn:hover  .nhwmc-cat-icon { color: #40429D !important; opacity: 1; }

/* Category image thumbnails */
.nhwmc-cat-img-wrap {
    border:     1px solid #DCE2F5 !important;
    background: #F5F7FF !important;
    border-radius: 6px !important;
    overflow:   hidden !important;
}
.nhwmc-cat-img-wrap img { opacity: .85; filter: none; }
.nhwmc-cat-btn:hover .nhwmc-cat-img-wrap img,
.nhwmc-cat-btn.active .nhwmc-cat-img-wrap img { opacity: 1; }
.nhwmc-cat-btn.active .nhwmc-cat-img-wrap { border-color: rgba(64,66,157,.3) !important; }

/* Brand filter — light */
.nhwmc-sidebar-section-label { color: #8B93BF !important; }
.nhwmc-sidebar-select {
    background:       #F0F3FF !important;
    background-color: #F0F3FF !important;
    border:           1px solid #DCE2F5 !important;
    color:            #2D2F4E !important;
}
.nhwmc-sidebar-select:focus { background: #fff !important; border-color: #40429D !important; }
.nhwmc-sidebar-select option { background: #fff !important; color: #2D2F4E !important; }

/* Sidebar brand section */
.nhwmc-sidebar-brand { border-top: 1px solid #EEF0FB !important; }

/* Reset button — light */
.nhwmc-sidebar-reset {
    background:       #F0F3FF !important;
    background-color: #F0F3FF !important;
    border:           1px solid #DCE2F5 !important;
    color:            #8B93BF !important;
}
.nhwmc-sidebar-reset:hover {
    background:       #40429D !important;
    background-color: #40429D !important;
    color:            #fff !important;
    border-color:     #40429D !important;
}

/* ── Sidebar collapse (desktop) ──────────────────────────────── */
.nhwmc-catalog.sidebar-collapsed {
    grid-template-columns: 0px 1fr !important;
}
.nhwmc-catalog.sidebar-collapsed .nhwmc-sidebar {
    width:      0 !important;
    min-width:  0 !important;
    overflow:   hidden !important;
    padding:    0 !important;
    border:     none !important;
}
/* Show "Filtri" toggle button on desktop when sidebar is collapsed */
@media (min-width: 1024px) {
    .nhwmc-sidebar-toggle { display: none !important; }
    .nhwmc-catalog.sidebar-collapsed .nhwmc-sidebar-toggle { display: flex !important; }
}
/* Smooth transition */
.nhwmc-sidebar {
    transition: width .28s cubic-bezier(.4,0,.2,1),
                min-width .28s cubic-bezier(.4,0,.2,1),
                padding .28s cubic-bezier(.4,0,.2,1) !important;
}
.nhwmc-catalog {
    transition: grid-template-columns .28s cubic-bezier(.4,0,.2,1) !important;
}

/* ── Grid: sempre 6 colonne ───────────────────────────────────── */
.nhwmc-main .nhwmc-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
}
/* Cards più compatte per 6 colonne */
.nhwmc-card-img { height: auto !important; }
.nhwmc-card-img img { height: 110px !important; object-fit: contain !important; }
.nhwmc-card-body { padding: 8px 10px 4px !important; }
.nhwmc-card-name { font-size: 11.5px !important; line-height: 1.35 !important; }
.nhwmc-card-meta { font-size: 10px !important; gap: 2px !important; }
.nhwmc-card-footer { padding: 6px 10px !important; gap: 4px !important; }
.nhwmc-card-footer .nhwmc-btn-add,
.nhwmc-card-footer .nhwmc-btn-detail { font-size: 10.5px !important; padding: 5px 8px !important; }
.nhwmc-card-variants { gap: 3px !important; padding: 4px 0 0 !important; }
.nhwmc-card-variant-chip { font-size: 9.5px !important; padding: 2px 6px !important; }

/* Responsive: adatta colonne su schermi più piccoli */
@media (max-width: 1400px) { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(5, 1fr) !important; } }
@media (max-width: 1100px) { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 900px)  { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px)  { .nhwmc-main .nhwmc-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ── List view: thumbnail ─────────────────────────────────────── */
.nhwmc-list-view .nhwmc-row {
    grid-template-columns: 48px 56px 1fr 2fr 1.5fr 0.6fr 110px !important;
}
.nhwmc-row-thumb {
    display:         flex !important;
    align-items:     center;
    justify-content: center;
    width:           42px;
    height:          42px;
    border-radius:   6px;
    overflow:        hidden;
    background:      #F5F7FF;
    flex-shrink:     0;
    border:          1px solid #E4E8F6;
}
.nhwmc-row-thumb img {
    width:      42px !important;
    height:     42px !important;
    object-fit: contain !important;
    display:    block !important;
}

/* ══════════════════════════════════════════════════════════════
   v1.5.2 FIX — Correzione class names sidebar (match template)
   ══════════════════════════════════════════════════════════════ */

/* .nhwmc-sidebar-hd (era .nhwmc-sidebar-header nel blocco precedente) */
.nhwmc-sidebar-hd {
    background:    #F5F7FF !important;
    border-bottom: 1px solid #E4E8F6 !important;
}
/* .nhwmc-sidebar-logo (era .nhwmc-sidebar-brand-name) */
.nhwmc-sidebar-logo { color: #2D2F4E !important; font-weight: 700 !important; }
/* .nhwmc-sidebar-close-btn (era .nhwmc-sidebar-close) */
.nhwmc-sidebar-close-btn {
    background:       rgba(64,66,157,.08) !important;
    background-color: rgba(64,66,157,.08) !important;
    color:            #40429D !important;
    border:           1px solid #DCE2F5 !important;
}
.nhwmc-sidebar-close-btn:hover {
    background:       #40429D !important;
    background-color: #40429D !important;
    color:            #fff !important;
}
/* .nhwmc-cat-all e .nhwmc-cat-item (erano .nhwmc-cat-btn) */
.nhwmc-cat-all,
.nhwmc-cat-item {
    color:      #555A7E !important;
    background: transparent !important;
    background-color: transparent !important;
}
.nhwmc-cat-all:hover,
.nhwmc-cat-item:hover {
    background:       #F5F7FF !important;
    background-color: #F5F7FF !important;
    color:            #40429D !important;
}
.nhwmc-cat-all.active,
.nhwmc-cat-item.active {
    background:       #EEF0FF !important;
    background-color: #EEF0FF !important;
    color:            #40429D !important;
    font-weight:      700 !important;
}
/* .nhwmc-sidebar-filter-label (era .nhwmc-sidebar-section-label) */
.nhwmc-sidebar-filter-label { color: #8B93BF !important; }
/* .nhwmc-sidebar-filter-section (era .nhwmc-sidebar-brand) */
.nhwmc-sidebar-filter-section { border-top: 1px solid #EEF0FB !important; }

/* ══════════════════════════════════════════════════════════════
   v1.5.3 — INFINITE SCROLL · SIDEBAR TOGGLE · UI FIXES
   ══════════════════════════════════════════════════════════════ */

/* ── Card images: bigger, fill container ─────────────────────── */
.nhwmc-card-img {
    aspect-ratio: 1 !important;
    height: auto !important;
}
.nhwmc-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
}

/* ── Variant buttons: hover grigio/blu, mai rosa/rosso ────────── */
.nhwmc-variant-btn {
    border-color: #D0D3E8 !important;
    color: #555A7E !important;
    background: #fff !important;
}
.nhwmc-variant-btn:hover:not(.active) {
    border-color: var(--nhwmc-accent) !important;
    color: var(--nhwmc-accent) !important;
    background: #EEF0FF !important;
    background-color: #EEF0FF !important;
    box-shadow: none !important;
}
.nhwmc-variant-btn.active {
    border-color: var(--nhwmc-accent) !important;
    background: var(--nhwmc-accent) !important;
    background-color: var(--nhwmc-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nhwmc-card-variant-chip:hover:not(.active) {
    border-color: var(--nhwmc-accent) !important;
    background: #EEF0FF !important;
    background-color: #EEF0FF !important;
    color: var(--nhwmc-accent) !important;
}

/* ── Quantity buttons: compatti e usabili ────────────────────── */
.nhwmc-qty-wrap {
    display: flex !important;
    border: 1.5px solid #D0D3E8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: fit-content !important;
    background: #fff !important;
}
.nhwmc-qty-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    background: #F5F7FF !important;
    background-color: #F5F7FF !important;
    color: #40429D !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, color .15s !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.nhwmc-qty-btn:hover {
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
}
.nhwmc-input--qty {
    width: 52px !important;
    height: 34px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-left: 1px solid #D0D3E8 !important;
    border-right: 1px solid #D0D3E8 !important;
    border-top: none !important;
    border-bottom: none !important;
    text-align: center !important;
    color: #333 !important;
    outline: none !important;
    padding: 0 !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
}
.nhwmc-input--qty::-webkit-outer-spin-button,
.nhwmc-input--qty::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }

/* ── Download button (scheda tecnica) ────────────────────────── */
.nhwmc-btn-download {
    background: #F0F3FF !important;
    background-color: #F0F3FF !important;
    border-color: var(--nhwmc-accent) !important;
    color: var(--nhwmc-accent) !important;
    gap: 8px !important;
}
.nhwmc-btn-download:hover:not(:disabled) {
    background: var(--nhwmc-accent) !important;
    background-color: var(--nhwmc-accent) !important;
    color: #fff !important;
    border-color: var(--nhwmc-accent) !important;
    box-shadow: 0 4px 14px rgba(64,66,157,.36) !important;
}

/* ── Sidebar toggle: sempre visibile su desktop ───────────────── */
@media (min-width: 1024px) {
    .nhwmc-sidebar-toggle {
        display: flex !important;
    }
}

/* ── List view: rimuovi colonna store ────────────────────────── */
.nhwmc-list-view .nhwmc-row {
    grid-template-columns: 48px 1fr 2fr 1.5fr 0.6fr 110px !important;
}

/* ── Infinite scroll: loading indicator ─────────────────────── */
.nhwmc-loading-more {
    display: none;
    text-align: center;
    padding: 24px 20px 16px;
    color: var(--nhwmc-muted);
}
.nhwmc-loading-more.active { display: block; }
#nhwmc-scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* ── Sidebar cat buttons: solo testo, no miniatura ───────────── */
.nhwmc-cat-btn { padding-left: 20px !important; }
.nhwmc-cat-btn .nhwmc-cat-img-wrap { display: none !important; }

/* ── Group headers (Edilizia/Industria/Accessori): label discreta ─ */
.nhwmc-group-hd {
    background:       transparent !important;
    background-color: transparent !important;
    border:           none !important;
    color:            #9099C0 !important;
    font-size:        11px !important;
    font-weight:      700 !important;
    text-transform:   uppercase !important;
    letter-spacing:   .09em !important;
    padding:          14px 20px 4px !important;
    margin-top:       4px !important;
    cursor:           pointer;
}
.nhwmc-group-hd:hover {
    background:       transparent !important;
    background-color: transparent !important;
    color:            #40429D !important;
}
.nhwmc-group-arrow {
    color: #C0C6DE;
    margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════
   v1.5.3 SINGLE PRODUCT PAGE — redesign completo
   ══════════════════════════════════════════════════════════════ */

/* ── Layout hero ─────────────────────────────────────────────── */
.nhwmc-product-hero {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
@media (max-width: 767px) {
    .nhwmc-product-hero { grid-template-columns: 1fr; gap: 24px; }
}
.nhwmc-product-hero-img {
    background: #F8F9FD;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4E8F6;
}
.nhwmc-product-hero-img img {
    width: 100%; height: 100%; object-fit: contain;
}

/* ── Titolo e meta ───────────────────────────────────────────── */
.nhwmc-product-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    margin: 0 0 6px;
    color: #1A1D2E;
    line-height: 1.2;
}
.nhwmc-product-subtitle {
    font-size: 14px;
    color: #777;
    font-style: italic;
    margin: 0 0 14px;
    line-height: 1.5;
}
.nhwmc-product-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}
.nhwmc-meta-item { font-size: 12px; color: #777; }
.nhwmc-meta-item strong { color: #333; }
.nhwmc-meta-chip { color: #CCC; }

/* ── Divisore ────────────────────────────────────────────────── */
.nhwmc-sp-divider {
    border: none;
    border-top: 1px solid #EEF0FB;
    margin: 16px 0;
}

/* ── Selezione formato ───────────────────────────────────────── */
.nhwmc-variants-block { margin-bottom: 4px; }
.nhwmc-variants-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8B93BF;
    margin: 0 0 8px;
}
.nhwmc-variant-btns { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }

/* Variante: visibile su sfondo bianco — product page */
.nhwmc-product-page .nhwmc-variant-btn {
    padding: 8px 14px !important;
    border: 2px solid #D0D4EC !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #555A7E !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all .15s !important;
    position: relative !important;
}
.nhwmc-product-page .nhwmc-variant-btn:hover:not(.active) {
    border-color: #40429D !important;
    color: #40429D !important;
    background: #F0F2FF !important;
    background-color: #F0F2FF !important;
    box-shadow: none !important;
}
.nhwmc-product-page .nhwmc-variant-btn.active {
    border: 2.5px solid #40429D !important;
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(64,66,157,.35) !important;
    padding-left: 28px !important;
}
.nhwmc-product-page .nhwmc-variant-btn.active::before {
    content: "✓";
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}
/* Fallback per contesti senza .nhwmc-product-page */
.nhwmc-variant-btn.active {
    border-color: #40429D !important;
    background: #40429D !important;
    background-color: #40429D !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.nhwmc-variant-sku-line {
    font-size: 11px;
    color: #AAAAAA;
    margin: 2px 0 0;
}
.nhwmc-variant-sku-single { font-size: 12px; color: #AAAAAA; margin: 0 0 2px; }

/* ── Card configurazione (qty + note + colore) ───────────────── */
.nhwmc-config-card {
    background: #F8F9FD;
    border: 1px solid #E4E8F6;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Riga principale: qty + toggle note */
.nhwmc-config-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nhwmc-config-label-sm {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8B93BF;
    white-space: nowrap;
}
.nhwmc-toggle-note-btn {
    margin-left: auto;
    background: none !important;
    border: 1px dashed #C4C8E4 !important;
    border-radius: 20px !important;
    color: #8B93BF !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 12px !important;
    cursor: pointer;
    transition: border-color .15s, color .15s !important;
    white-space: nowrap;
}
.nhwmc-toggle-note-btn:hover,
.nhwmc-toggle-note-btn.active {
    border-color: #40429D !important;
    color: #40429D !important;
    background: #F0F2FF !important;
}
.nhwmc-notes-panel {
    border-top: 1px dashed #DCE2F5;
    padding-top: 10px;
    animation: nhwmc-slide-in .18s ease;
}
.nhwmc-notes-panel .nhwmc-textarea--sm {
    width: 100%;
    font-size: 13px !important;
    min-height: 52px !important;
    resize: none !important;
    border-color: #D8DCF0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
}
@keyframes nhwmc-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nhwmc-ral-section-inline {
    border-top: 1px dashed #DCE2F5;
    padding-top: 12px;
}

/* ── Barra azioni ────────────────────────────────────────────── */
.nhwmc-product-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 6px;
}
.nhwmc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
    box-sizing: border-box;
}
.nhwmc-action-btn--primary {
    background: #40429D;
    background-color: #40429D;
    color: #fff !important;
    border-color: #40429D;
    box-shadow: 0 2px 8px rgba(64,66,157,.28);
    flex: 1 1 auto;
}
.nhwmc-action-btn--primary:hover {
    background: #2E3080;
    background-color: #2E3080;
    border-color: #2E3080;
    box-shadow: 0 4px 14px rgba(64,66,157,.40);
    color: #fff !important;
}
.nhwmc-action-btn--ghost {
    background: #fff;
    background-color: #fff;
    color: #40429D !important;
    border-color: #C4C8E4;
    flex-shrink: 0;
}
.nhwmc-action-btn--ghost:hover {
    background: #ECEEF8;
    background-color: #ECEEF8;
    border-color: #40429D;
    color: #40429D !important;
}
/* SVG icon allineato */
.nhwmc-action-btn svg { flex-shrink: 0; }

/* Responsive: bottoni in colonna su schermi stretti */
@media (max-width: 480px) {
    .nhwmc-product-actions-bar { flex-direction: column; }
    .nhwmc-action-btn { flex: 1 1 100%; }
}

/* ── Sezioni sotto hero ──────────────────────────────────────── */
.nhwmc-product-desc-block,
.nhwmc-product-gallery-block,
.nhwmc-product-specs-block {
    background: #fff;
    border: 1px solid #E8EBF6;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
}
@media (max-width: 600px) {
    .nhwmc-product-desc-block,
    .nhwmc-product-gallery-block,
    .nhwmc-product-specs-block { padding: 20px 18px; }
}
.nhwmc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1D2E;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #EEF0FB;
}
.nhwmc-subsection-title {
    font-size: 14px;
    font-weight: 700;
    color: #40429D;
    margin: 22px 0 8px;
}
.nhwmc-desc-body {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.nhwmc-prose { font-size: 14px; line-height: 1.8; color: #555; }

/* ── Galleria fotografica ────────────────────────────────────── */
.nhwmc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
@media (max-width: 1100px) { .nhwmc-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .nhwmc-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.nhwmc-gallery-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #F0F2FA;
    border: 1px solid #E4E8F6;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}
.nhwmc-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
}
.nhwmc-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Btn extra-small ─────────────────────────────────────────── */
.nhwmc-btn-xs {
    padding: 5px 11px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
}
