:root {
    --nb-bg: #ffffff;
    --nb-text: #22252d;
    --nb-muted: #727681;
    --nb-border: #ece7df;
    --nb-accent: #bd8f49;
    --nb-accent-soft: #f7f1e7;
    --nb-success: #237a4b;
    --nb-danger: #b42318;
    --nb-shadow: 0 12px 36px rgba(28, 30, 35, 0.07);
}

.home .entry-header,
.home .entry-title { display: none !important; }

.nb-app { width: 100%; color: var(--nb-text); }
.nb-app *, .nb-site-header * { box-sizing: border-box; }
.nb-app button, .nb-app input, .nb-app select,
.nb-site-header button, .nb-site-header input { font-family: inherit; }

/* Header */
.nb-site-header { position: sticky; top: 0; z-index: 9990; width: 100%; color: var(--nb-text); background: var(--nb-bg); border-bottom: 1px solid var(--nb-border); box-shadow: 0 8px 30px rgba(28,30,35,.06); }
body.admin-bar .nb-site-header { top: 32px; }
.nb-header-inner { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.nb-header-main .nb-header-inner { min-height: 82px; display: grid; grid-template-columns: auto minmax(280px,1fr) auto; align-items: center; gap: 24px; }
.nb-brand { display: flex; align-items: center; min-width: 130px; max-width: 170px; }
.nb-brand .custom-logo-link,
.nb-brand-logo-link { display: inline-flex; align-items: center; max-width: 100%; text-decoration: none; line-height: 0; }
.nb-brand-picture { display: inline-flex; align-items: center; max-width: 100%; line-height: 0; }
.nb-brand .custom-logo,
.nb-brand-logo { display: block; width: auto; max-width: 170px; max-height: 50px; object-fit: contain; }
.nb-brand-text { color: var(--nb-text); font-size: 21px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.nb-sku-search { position: relative; width: 100%; min-width: 0; height: 50px; padding: 5px; display: flex; align-items: center; border: 1px solid var(--nb-border); border-radius: 16px; background: #fafafa; transition: .2s ease; }
.nb-sku-search:focus-within { background: #fff; border-color: var(--nb-accent); box-shadow: 0 0 0 4px rgba(189,143,73,.12); }
.nb-sku-input { width: 100%; min-width: 0; height: 100%; padding: 0 15px; border: 0 !important; outline: 0; background: transparent !important; color: var(--nb-text); font-size: 14px; box-shadow: none !important; unicode-bidi: plaintext; }
.nb-sku-input::placeholder { color: #92959d; }
.nb-sku-button { height: 40px; min-width: 104px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; background: var(--nb-text); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.nb-sku-button:disabled { opacity: .7; cursor: wait; }
.nb-sku-results { position: absolute; top: calc(100% + 10px); right: 0; left: 0; z-index: 150; overflow: hidden; border: 1px solid var(--nb-border); border-radius: 17px; background: #fff; box-shadow: 0 18px 45px rgba(23,26,33,.16); }
.nb-sku-state { min-height: 76px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--nb-muted); text-align: center; font-size: 13px; }
.nb-sku-state.is-error { color: var(--nb-danger); background: #fff8f7; }
.nb-sku-loader { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid var(--nb-border); border-top-color: var(--nb-accent); border-radius: 50%; animation: nb-spin .8s linear infinite; }
.nb-sku-card { padding: 13px; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; background: #fff; }
.nb-sku-card-media { width: 96px; height: 96px; overflow: hidden; display: block; background: #f5f5f5; border-radius: 13px; }
.nb-sku-card-image { width: 100% !important; height: 100% !important; display: block; object-fit: cover; }
.nb-sku-card-content { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.nb-sku-card-title { display: block; overflow: hidden; color: var(--nb-text); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.nb-sku-card-code { margin-top: 3px; color: var(--nb-muted); font-size: 11px; }
.nb-sku-card-details { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.nb-sku-card-price { display: flex; flex-direction: column; gap: 1px; }
.nb-sku-card-price span { color: var(--nb-muted); font-size: 10px; }
.nb-sku-card-price strong { color: var(--nb-text); font-size: 13px; }
.nb-sku-card-stock { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.nb-sku-card-stock.is-in-stock { color: var(--nb-success); background: #edf8f2; }
.nb-sku-card-stock.is-out-of-stock { color: var(--nb-danger); background: #fff0ee; }
.nb-sku-card-button { min-height: 35px; padding: 7px 11px; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; background: var(--nb-accent); border-radius: 10px; font-size: 11px; font-weight: 800; text-decoration: none; }

.nb-header-actions { display: flex; align-items: center; gap: 10px; }
.nb-header-action { position: relative; min-height: 46px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--nb-text); background: #fff; border: 1px solid var(--nb-border); border-radius: 14px; text-decoration: none; transition: .2s ease; }
.nb-header-action:hover { color: var(--nb-text); background: var(--nb-accent-soft); border-color: rgba(189,143,73,.45); transform: translateY(-1px); }
.nb-action-text { font-size: 13px; font-weight: 700; white-space: nowrap; }
.nb-cart-count { position: absolute; top: -7px; left: -6px; min-width: 21px; height: 21px; padding-inline: 5px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--nb-accent); border: 2px solid #fff; border-radius: 999px; font-size: 10px; font-weight: 800; }

.nb-header-bottom { border-top: 1px solid var(--nb-border); }
.nb-header-bottom .nb-header-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nb-category-menu, .nb-support-menu { position: relative; }
.nb-category-toggle { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--nb-accent); border: 0; border-radius: 13px; font-size: 14px; font-weight: 800; cursor: pointer; }
.nb-category-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 140; width: min(390px, calc(100vw - 32px)); max-height: min(70vh,600px); overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nb-border); border-radius: 18px; box-shadow: 0 20px 50px rgba(24,27,34,.16); }
.nb-category-panel-header { min-height: 56px; padding: 8px 10px; display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; align-items: center; gap: 6px; border-bottom: 1px solid var(--nb-border); }
.nb-category-title { overflow: hidden; color: var(--nb-text); text-align: center; font-size: 14px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.nb-category-back,.nb-category-close { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-text); background: #f8f8f8; border: 0; border-radius: 11px; cursor: pointer; }
.nb-category-list-view { padding: 10px; overflow-y: auto; overscroll-behavior: contain; }
.nb-category-row { width: 100%; min-height: 48px; margin: 0 0 7px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--nb-text); background: #fafafa; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 800; text-align: right; cursor: pointer; transition: .2s ease; }
.nb-category-row:hover { background: var(--nb-accent-soft); border-color: rgba(189,143,73,.22); transform: translateX(-2px); }
.nb-category-row-arrow { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: #fff; border-radius: 9px; }
.nb-category-empty { padding: 22px 15px; color: var(--nb-muted); text-align: center; font-size: 13px; }

.nb-header-support { padding: 4px; display: flex; align-items: center; gap: 9px; color: var(--nb-text); background: transparent; border: 0; border-radius: 13px; cursor: pointer; }
.nb-support-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.nb-support-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 12px; }
.nb-support-label { color: var(--nb-text); font-size: 12px; font-weight: 800; }
.nb-support-phone { color: var(--nb-muted); direction: ltr; font-size: 11px; }
.nb-support-arrow { display: inline-flex; transition: transform .2s ease; }
.nb-header-support[aria-expanded="true"] .nb-support-arrow { transform: rotate(180deg); }
.nb-support-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 145; width: 285px; padding: 10px; background: #fff; border: 1px solid var(--nb-border); border-radius: 17px; box-shadow: 0 20px 50px rgba(24,27,34,.16); }
.nb-support-item { min-height: 60px; padding: 10px; display: flex; align-items: center; gap: 11px; color: var(--nb-text); border-radius: 12px; text-decoration: none; }
.nb-support-item:hover { color: var(--nb-text); background: var(--nb-accent-soft); }
.nb-support-item-icon { width: 39px; height: 39px; flex: 0 0 39px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 11px; }
.nb-support-item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.nb-support-item strong { font-size: 13px; }
.nb-support-item small { color: var(--nb-muted); font-size: 11px; }

/* Control zone: filter + reserved service cards */
.nb-control-zone { width: min(1280px, calc(100% - 32px)); margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(420px, 1fr); gap: 18px; align-items: stretch; }
.nb-advanced-filter, .nb-service-reserve, .nb-central-container { background: #fff; border: 1px solid var(--nb-border); border-radius: 22px; box-shadow: var(--nb-shadow); }
.nb-advanced-filter { padding: 20px; }
.nb-filter-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--nb-border); }
.nb-filter-heading-icon { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 13px; }
.nb-filter-heading strong { display: block; font-size: 16px; }
.nb-filter-heading small { display: block; margin-top: 3px; color: var(--nb-muted); font-size: 11px; }
.nb-product-filter { padding-top: 17px; }
.nb-dynamic-filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.nb-filter-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.nb-filter-field > label { color: var(--nb-text); font-size: 12px; font-weight: 800; }
.nb-required-mark { margin-right: 3px; color: var(--nb-danger); }
.nb-filter-field select, .nb-filter-field input { width: 100%; min-height: 43px; padding: 8px 11px; color: var(--nb-text); background: #fafafa; border: 1px solid var(--nb-border); border-radius: 11px; outline: 0; font-size: 12px; transition: .2s ease; }
.nb-filter-field select:focus, .nb-filter-field input:focus { background: #fff; border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(189,143,73,.10); }
.nb-filter-field.is-invalid select, .nb-filter-field.is-invalid input { border-color: var(--nb-danger); background: #fff8f7; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.nb-field-error { min-height: 16px; color: var(--nb-danger); font-size: 10px; }
.nb-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-filter-summary-error { margin-top: 13px; padding: 11px 13px; color: var(--nb-danger); background: #fff8f7; border: 1px solid #f3c6c1; border-radius: 11px; font-size: 11px; }
.nb-filter-actions { margin-top: 15px; display: flex; align-items: center; gap: 9px; }
.nb-filter-submit, .nb-filter-reset { min-height: 43px; padding: 9px 18px; border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-filter-submit { color: #fff; background: var(--nb-accent); }
.nb-filter-reset { color: var(--nb-text); background: var(--nb-accent-soft); }
.nb-filter-schema-loading, .nb-filter-notice { grid-column: 1 / -1; min-height: 90px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--nb-muted); background: #fafafa; border-radius: 13px; text-align: center; font-size: 12px; }
.nb-filter-notice.is-error { color: var(--nb-danger); background: #fff8f7; }

.nb-service-reserve { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 10px; }
.nb-service-card { position: relative; width: 100%; min-height: 108px; padding: 14px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 11px; color: var(--nb-text); background: #fcfbf9; border: 1px solid var(--nb-border); border-radius: 16px; text-align: right; opacity: 1; cursor: pointer; transition: .2s ease; }
.nb-service-card:hover { transform: translateY(-2px); border-color: rgba(189,143,73,.42); background: #fff; box-shadow: 0 10px 24px rgba(28,30,35,.07); }
.nb-service-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 13px; }
.nb-service-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nb-service-card strong { font-size: 12px; line-height: 1.8; }
.nb-service-card small { color: var(--nb-muted); font-size: 10px; line-height: 1.7; }
.nb-service-card-action { position: absolute; top: 8px; left: 8px; padding: 3px 7px; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 999px; font-size: 9px; font-weight: 800; }

/* Central container */
.nb-central-container { width: min(1280px, calc(100% - 32px)); margin: 18px auto 34px; padding: 20px; min-height: 360px; }
.nb-central-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--nb-border); }
.nb-central-heading-wrap { min-width: 0; display: flex; align-items: center; gap: 11px; }
.nb-central-heading-wrap h2 { margin: 0; color: var(--nb-text); font-size: 20px; }
.nb-central-heading-wrap p { margin: 4px 0 0; color: var(--nb-muted); font-size: 12px; }
.nb-central-back { min-height: 40px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--nb-text); background: var(--nb-accent-soft); border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; cursor: pointer; }
.nb-sort-wrap { display: flex; align-items: center; gap: 8px; color: var(--nb-muted); font-size: 11px; }
.nb-sort-wrap select { min-height: 39px; padding: 7px 10px; color: var(--nb-text); background: #fafafa; border: 1px solid var(--nb-border); border-radius: 10px; font-size: 11px; }
.nb-central-loading { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--nb-muted); }
.nb-category-cards { padding-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.nb-category-card { min-height: 145px; padding: 16px; display: grid; grid-template-columns: 64px minmax(0,1fr) 30px; align-items: center; gap: 12px; color: var(--nb-text); background: #fcfbf9; border: 1px solid var(--nb-border); border-radius: 17px; text-align: right; cursor: pointer; transition: .22s ease; }
.nb-category-card:hover { transform: translateY(-3px); border-color: rgba(189,143,73,.4); box-shadow: 0 12px 28px rgba(28,30,35,.08); }
.nb-category-card-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 17px; }
.nb-category-card-svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nb-category-card-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nb-category-card-copy strong { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.nb-category-card-copy small { color: var(--nb-muted); font-size: 11px; }
.nb-category-card-arrow { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: #fff; border-radius: 9px; }
.nb-products-view { padding-top: 16px; }
.nb-results-summary { margin-bottom: 12px; color: var(--nb-muted); font-size: 12px; }
.nb-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.nb-product-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nb-border); border-radius: 17px; transition: .2s ease; }
.nb-product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(28,30,35,.08); }
.nb-product-card-media { aspect-ratio: 1 / .82; overflow: hidden; display: block; background: #f5f5f5; }
.nb-product-card-media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.nb-product-card-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.nb-product-card-title { color: var(--nb-text); font-size: 13px; font-weight: 800; text-decoration: none; line-height: 1.8; }
.nb-product-card-sku { color: var(--nb-muted); font-size: 10px; }
.nb-product-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nb-product-card-price { color: var(--nb-text); font-size: 12px; }
.nb-product-card-stock { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.nb-product-card-stock.is-in-stock { color: var(--nb-success); background: #edf8f2; }
.nb-product-card-stock.is-out-of-stock { color: var(--nb-danger); background: #fff0ee; }
.nb-product-card-button { margin-top: auto; min-height: 37px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--nb-accent); border-radius: 10px; font-size: 11px; font-weight: 800; text-decoration: none; }
.nb-load-more { min-height: 43px; margin: 18px auto 0; padding: 8px 18px; display: block; color: var(--nb-text); background: var(--nb-accent-soft); border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-empty-state { grid-column: 1 / -1; min-height: 180px; padding: 25px; display: flex; align-items: center; justify-content: center; color: var(--nb-muted); background: #fafafa; border: 1px dashed var(--nb-border); border-radius: 16px; text-align: center; font-size: 13px; }

/* Service forms */
.nb-service-view { padding-top: 18px; }
.nb-service-templates, .nb-honeypot { display: none !important; }
.nb-service-form { width: 100%; }
.nb-service-advisory { margin-bottom: 16px; padding: 14px 16px; color: var(--nb-text); background: #fffaf1; border: 1px solid rgba(189,143,73,.28); border-radius: 14px; }
.nb-service-advisory strong { display: block; margin-bottom: 4px; color: var(--nb-accent); font-size: 13px; }
.nb-service-advisory p { margin: 0; color: var(--nb-muted); font-size: 11px; line-height: 2; }
.nb-service-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.nb-service-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.nb-service-field.is-wide { grid-column: 1 / -1; }
.nb-service-field > label { color: var(--nb-text); font-size: 12px; font-weight: 800; }
.nb-service-field input,
.nb-service-field select,
.nb-service-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--nb-text); background: #fafafa; border: 1px solid var(--nb-border); border-radius: 12px; outline: 0; font-size: 12px; line-height: 1.8; transition: .2s ease; }
.nb-service-field textarea { min-height: 112px; resize: vertical; }
.nb-service-field input[type="file"] { min-height: 52px; padding: 9px; cursor: pointer; }
.nb-service-field input:focus,
.nb-service-field select:focus,
.nb-service-field textarea:focus { background: #fff; border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(189,143,73,.10); }
.nb-service-field.is-invalid input,
.nb-service-field.is-invalid select,
.nb-service-field.is-invalid textarea { border-color: var(--nb-danger); background: #fff8f7; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.nb-service-field-error { min-height: 16px; color: var(--nb-danger); font-size: 10px; }
.nb-service-field-help { color: var(--nb-muted); font-size: 10px; }
.nb-service-form-notice { margin-top: 15px; padding: 12px 14px; color: var(--nb-danger); background: #fff8f7; border: 1px solid #f3c6c1; border-radius: 12px; font-size: 11px; }
.nb-service-form-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.nb-service-submit,
.nb-service-cancel,
.nb-service-return { min-height: 44px; padding: 9px 20px; border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-service-submit { color: #fff; background: var(--nb-accent); }
.nb-service-submit:disabled { opacity: .65; cursor: wait; }
.nb-service-cancel { color: var(--nb-text); background: var(--nb-accent-soft); }
.nb-service-success { min-height: 310px; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--nb-text); background: linear-gradient(180deg,#fbfdfb,#fff); border: 1px solid #d9eee1; border-radius: 18px; text-align: center; }
.nb-service-success-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--nb-success); border-radius: 50%; font-size: 28px; font-weight: 900; }
.nb-service-success h3 { margin: 0; font-size: 20px; }
.nb-service-success p { max-width: 680px; margin: 0; color: var(--nb-muted); font-size: 12px; line-height: 2; }
.nb-tracking-code { margin-top: 4px; padding: 11px 16px; display: flex; align-items: center; gap: 10px; color: var(--nb-text); background: var(--nb-accent-soft); border-radius: 12px; }
.nb-tracking-code span { color: var(--nb-muted); font-size: 11px; }
.nb-tracking-code strong { font-size: 15px; letter-spacing: .5px; }
.nb-service-countdown strong { color: var(--nb-accent); font-size: 15px; }
.nb-service-return { color: #fff; background: var(--nb-text); }

.nb-service-field.is-conditional[hidden],
.nb-window-repeater[hidden] { display: none !important; }

.nb-window-repeater {
    margin-top: 18px;
    padding: 16px;
    background: #fcfcfc;
    border: 1px solid var(--nb-border);
    border-radius: 16px;
}
.nb-window-repeater.is-invalid { border-color: var(--nb-danger); box-shadow: 0 0 0 3px rgba(180,35,24,.06); }
.nb-window-repeater-intro { margin-bottom: 14px; }
.nb-window-repeater-intro strong { display: block; margin-bottom: 4px; color: var(--nb-text); font-size: 13px; }
.nb-window-repeater-intro p { margin: 0; color: var(--nb-muted); font-size: 11px; line-height: 2; }
.nb-window-list { display: flex; flex-direction: column; gap: 14px; }
.nb-window-item { padding: 14px; background: #fff; border: 1px solid var(--nb-border); border-radius: 14px; }
.nb-window-item-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nb-window-item-head strong { color: var(--nb-text); font-size: 12px; }
.nb-window-remove {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--nb-danger);
    background: #fff8f7;
    border: 1px solid #f1c8c3;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.nb-window-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.nb-window-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.nb-window-field.is-wide { grid-column: 1 / -1; }
.nb-window-field > label { color: var(--nb-text); font-size: 11px; font-weight: 800; }
.nb-window-field input,
.nb-window-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--nb-text);
    background: #fafafa;
    border: 1px solid var(--nb-border);
    border-radius: 11px;
    outline: 0;
    font-size: 11px;
    transition: .2s ease;
}
.nb-window-field input:focus,
.nb-window-field select:focus { background: #fff; border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(189,143,73,.10); }
.nb-window-field.is-invalid input,
.nb-window-field.is-invalid select { border-color: var(--nb-danger); background: #fff8f7; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.nb-window-add {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    color: var(--nb-text);
    background: var(--nb-accent-soft);
    border: 1px dashed rgba(189,143,73,.55);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.nb-window-summary-error { display: block; margin-top: 8px; }

/* Icons and visibility */
.nb-svg-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nb-search-icon,.nb-action-icon,.nb-menu-icon,.nb-menu-arrow,.nb-support-arrow { display: inline-flex; align-items: center; justify-content: center; }
.nb-search-icon .nb-svg-icon { width: 20px; height: 20px; }
.nb-menu-arrow .nb-svg-icon,.nb-support-arrow .nb-svg-icon { width: 17px; height: 17px; }
.nb-support-icon .nb-svg-icon,.nb-support-item-icon .nb-svg-icon { width: 19px; height: 19px; }
.nb-menu-arrow { transition: transform .2s ease; }
.nb-category-toggle[aria-expanded="true"] .nb-menu-arrow { transform: rotate(180deg); }
.nb-site-header [hidden], .nb-app [hidden] { display: none !important; }
@keyframes nb-spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
    .nb-control-zone { grid-template-columns: minmax(0,1.35fr) minmax(390px,1fr); }
    .nb-dynamic-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nb-category-cards,.nb-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 768px) {
    body.admin-bar .nb-site-header { top: 46px; }
    .nb-header-inner { width: calc(100% - 20px); }
    .nb-header-main .nb-header-inner { min-height: 70px; padding-block: 8px; grid-template-columns: 88px minmax(0,1fr) 88px; gap: 8px; }
    .nb-brand { min-width: 0; max-width: 88px; justify-content: flex-start; }
    .nb-brand .custom-logo,
    .nb-brand-logo { max-width: 88px; max-height: 38px; }
    .nb-brand-picture { max-width: 88px; }
    .nb-brand-text { max-width: 88px; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
    .nb-sku-search { height: 46px; padding: 4px; border-radius: 13px; }
    .nb-sku-input { padding: 0 9px; font-size: 12px; }
    .nb-sku-button { width: 38px; min-width: 38px; height: 36px; padding: 0; border-radius: 10px; }
    .nb-search-text,.nb-action-text { display: none; }
    .nb-sku-results { position: fixed; top: 145px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 170px); overflow-y: auto; }
    body.admin-bar .nb-sku-results { top: 190px; max-height: calc(100vh - 215px); }
    .nb-sku-card { grid-template-columns: 84px minmax(0,1fr); gap: 11px; }
    .nb-sku-card-media { width: 84px; height: 84px; }
    .nb-sku-card-details { align-items: flex-start; flex-direction: column; gap: 5px; }
    .nb-header-actions { justify-content: flex-end; gap: 5px; }
    .nb-header-action { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 12px; }
    .nb-cart-count { top: -7px; left: -5px; }
    .nb-header-bottom .nb-header-inner { min-height: 56px; padding-block: 8px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
    .nb-category-toggle { width: 100%; min-height: 44px; padding-inline: 12px; gap: 7px; font-size: 12px; }
    .nb-category-panel { position: fixed; top: 145px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 170px); }
    body.admin-bar .nb-category-panel { top: 190px; max-height: calc(100vh - 215px); }
    .nb-support-menu { width: 100%; }
    .nb-header-support { width: 100%; justify-content: center; text-align: center; }
    .nb-support-copy { align-items: center; text-align: center; }
    .nb-support-icon { width: 35px; height: 35px; flex: 0 0 35px; }
    .nb-support-label { font-size: 11px; white-space: nowrap; }
    .nb-support-phone,.nb-support-arrow { display: none; }
    .nb-support-panel { right: auto; left: 0; width: min(280px, calc(100vw - 30px)); }

    .nb-control-zone { width: calc(100% - 20px); margin-top: 18px; grid-template-columns: 1fr; gap: 14px; }
    .nb-advanced-filter { padding: 14px; }
    .nb-dynamic-filter-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nb-service-reserve { order: 2; grid-template-rows: none; grid-template-columns: 1fr; }
    .nb-service-card { min-height: 88px; }
    .nb-service-form-grid { grid-template-columns: 1fr; gap: 11px; }
    .nb-service-field.is-wide { grid-column: auto; }
    .nb-window-repeater { padding: 12px; }
    .nb-window-item { padding: 12px; }
    .nb-window-grid { grid-template-columns: 1fr; gap: 10px; }
    .nb-window-field.is-wide { grid-column: auto; }
    .nb-central-container { width: calc(100% - 20px); margin-top: 14px; padding: 14px; border-radius: 18px; }
    .nb-central-toolbar { align-items: flex-start; flex-direction: column; }
    .nb-sort-wrap { width: 100%; justify-content: space-between; }
    .nb-sort-wrap select { flex: 1; }
    .nb-category-cards,.nb-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .nb-category-card { min-height: 125px; padding: 12px; grid-template-columns: 50px minmax(0,1fr); }
    .nb-category-card-icon { width: 50px; height: 50px; border-radius: 14px; }
    .nb-category-card-svg { width: 34px; height: 34px; }
    .nb-category-card-arrow { display: none; }
    .nb-category-card-copy strong { font-size: 12px; white-space: normal; }
    .nb-product-card-body { padding: 10px; }
    .nb-product-card-title { font-size: 11px; }
    .nb-product-card-meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .nb-dynamic-filter-fields { grid-template-columns: 1fr; }
    .nb-price-range { grid-template-columns: 1fr; }
    .nb-filter-actions { flex-direction: column; }
    .nb-filter-submit,.nb-filter-reset { width: 100%; }
    .nb-service-form-actions { flex-direction: column; }
    .nb-service-submit,.nb-service-cancel,.nb-service-return { width: 100%; }
    .nb-service-success { min-height: 280px; padding: 24px 14px; }
    .nb-window-item-head { align-items: flex-start; flex-direction: column; }
    .nb-window-remove { width: 100%; }
    .nb-tracking-code { width: 100%; justify-content: center; flex-direction: column; gap: 3px; }
    .nb-category-cards,.nb-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nb-category-card { min-height: 116px; padding: 10px; gap: 8px; }
    .nb-category-card-copy small { font-size: 9px; }
}

/* ==================================================
 * Online sewn curtain calculator — v2.0
 * ================================================== */
.nb-service-reserve { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.nb-service-card.is-order-card { border-color: rgba(189,143,73,.48); background: linear-gradient(135deg,#fffdf8,#fbf3e5); }
.nb-service-card.is-order-card .nb-service-icon { color: #9d6d23; background: #fff4dc; }
.nb-curtain-builder-view { width: 100%; }
.nb-curtain-builder { display: grid; gap: 16px; }
.nb-curtain-builder-note { padding: 16px 18px; border: 1px solid rgba(189,143,73,.35); border-radius: 16px; background: linear-gradient(135deg,#fffdf9,#fbf5e9); }
.nb-curtain-builder-note strong { display: block; margin-bottom: 5px; font-size: 16px; }
.nb-curtain-builder-note p { margin: 0; color: var(--nb-muted); font-size: 12px; line-height: 2; }
.nb-curtain-builder-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.nb-curtain-builder-progress span { padding: 10px 12px; border: 1px solid var(--nb-border); border-radius: 12px; color: var(--nb-muted); background: #fafafa; text-align: center; font-size: 11px; font-weight: 800; }
.nb-curtain-builder-progress span.is-active { color: var(--nb-accent); border-color: rgba(189,143,73,.35); background: var(--nb-accent-soft); }
.nb-curtain-window-list { display: grid; gap: 14px; }
.nb-curtain-window { padding: 16px; border: 1px solid var(--nb-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(28,30,35,.045); }
.nb-curtain-window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--nb-border); }
.nb-curtain-window-head > div { display: flex; flex-direction: column; gap: 3px; }
.nb-curtain-window-head strong { font-size: 15px; }
.nb-curtain-window-head small { color: var(--nb-muted); font-size: 10px; }
.nb-curtain-window-head button { min-height: 36px; padding: 0 12px; color: #b42318; background: #fff4f2; border: 1px solid #ffd5cf; border-radius: 10px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.nb-curtain-section { margin-top: 14px; padding: 14px; background: #fbfbfa; border: 1px solid #efefed; border-radius: 15px; }
.nb-curtain-section h4 { margin: 0 0 12px; font-size: 13px; }
.nb-curtain-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.nb-curtain-grid label { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-curtain-grid label > span { color: var(--nb-text); font-size: 10px; font-weight: 800; line-height: 1.7; }
.nb-curtain-grid input,.nb-curtain-grid select,.nb-curtain-picker-search input { width: 100%; min-height: 44px; padding: 0 11px; color: var(--nb-text); background: #fff; border: 1px solid var(--nb-border); border-radius: 11px; font: inherit; font-size: 12px; outline: none; }
.nb-curtain-grid input:focus,.nb-curtain-grid select:focus,.nb-curtain-picker-search input:focus { border-color: rgba(189,143,73,.65); box-shadow: 0 0 0 3px rgba(189,143,73,.1); }
.nb-curtain-final-height,.nb-curtain-side-rule,.nb-curtain-inline-note { margin: 10px 0 0; padding: 10px 12px; color: #4d5560; background: #fff; border: 1px dashed #dadada; border-radius: 11px; font-size: 10px; line-height: 1.9; }
.nb-curtain-final-height.is-over-limit { color: #a11b1b; background: #fff5f5; border-color: #f3b8b8; }
.nb-curtain-component-toggles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.nb-curtain-component-toggles label { min-height: 48px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--nb-border); border-radius: 12px; cursor: pointer; }
.nb-curtain-component-toggles input { width: 18px; height: 18px; accent-color: var(--nb-accent); }
.nb-curtain-component-toggles span { font-size: 11px; font-weight: 800; }
.nb-curtain-component-toggles label:has(input:checked) { border-color: rgba(189,143,73,.55); background: var(--nb-accent-soft); }
.nb-curtain-component-toggles label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.nb-curtain-product-choice { margin-bottom: 11px; display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 10px; align-items: stretch; }
.nb-curtain-product-choice > button,.nb-curtain-add-window,.nb-curtain-calculate,.nb-curtain-builder-cancel,.nb-curtain-quote-actions button,.nb-curtain-picker-search button,.nb-curtain-picker-more { min-height: 44px; padding: 0 16px; border: 0; border-radius: 11px; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; transition: .2s ease; }
.nb-curtain-product-choice > button,.nb-curtain-add-window { color: var(--nb-accent); background: #fff; border: 1px solid rgba(189,143,73,.45); }
.nb-curtain-product-choice > button:hover,.nb-curtain-add-window:hover { background: var(--nb-accent-soft); }
.nb-curtain-selected-product { min-height: 56px; padding: 7px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 9px; background: #fff; border: 1px solid var(--nb-border); border-radius: 12px; }
.nb-curtain-selected-product img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; }
.nb-curtain-selected-product span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nb-curtain-selected-product strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.nb-curtain-selected-product small { color: var(--nb-muted); font-size: 9px; line-height: 1.6; }
.nb-curtain-add-window { justify-self: start; }
.nb-curtain-builder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nb-curtain-calculate { color: #fff; background: var(--nb-accent); box-shadow: 0 8px 18px rgba(189,143,73,.23); }
.nb-curtain-calculate:hover { filter: brightness(.95); transform: translateY(-1px); }
.nb-curtain-builder-cancel { color: var(--nb-text); background: #f3f3f2; border: 1px solid var(--nb-border); }
.nb-curtain-builder-message { padding: 13px 15px; border-radius: 13px; font-size: 11px; line-height: 1.9; }
.nb-curtain-builder-message p { margin: 0; }
.nb-curtain-builder-message button { margin-top: 8px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 9px; background: #fff; color: inherit; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.nb-curtain-builder-message.is-error { color: #9b1c1c; background: #fff1f1; border: 1px solid #f1b7b7; }
.nb-curtain-builder-message.is-success { color: #166534; background: #effcf3; border: 1px solid #b8e3c5; }
.nb-curtain-quote { scroll-margin-top: 130px; }
.nb-curtain-quote-card { overflow: hidden; border: 1px solid var(--nb-border); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(28,30,35,.06); }
.nb-curtain-quote-head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: linear-gradient(135deg,#a67834,#c6974e); }
.nb-curtain-quote-head > div { display: flex; flex-direction: column; gap: 3px; }
.nb-curtain-quote-head strong { font-size: 15px; }
.nb-curtain-quote-head small { opacity: .9; font-size: 9px; }
.nb-curtain-quote-head > span { font-size: 16px; font-weight: 900; white-space: nowrap; }
.nb-curtain-quote-window { padding: 15px 18px; border-bottom: 1px solid #ededeb; }
.nb-curtain-quote-window h4 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nb-curtain-quote-window h4 small { padding: 2px 7px; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 999px; font-size: 8px; }
.nb-curtain-quote-measure { margin-bottom: 10px; color: var(--nb-muted); font-size: 9px; }
.nb-curtain-quote-row { padding: 9px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; border-top: 1px dashed #e4e4e1; }
.nb-curtain-quote-row > span { display: flex; flex-direction: column; gap: 3px; }
.nb-curtain-quote-row > span:last-child { align-items: flex-end; }
.nb-curtain-quote-row strong { font-size: 11px; }
.nb-curtain-quote-row small { color: var(--nb-muted); font-size: 9px; line-height: 1.7; }
.nb-curtain-quote-subtotal { margin-top: 8px; padding-top: 10px; display: flex; justify-content: space-between; border-top: 1px solid #ececea; font-size: 11px; }
.nb-curtain-quote-total { padding: 15px 18px; display: grid; gap: 8px; background: #faf9f6; }
.nb-curtain-quote-total > div { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.nb-curtain-quote-total .is-grand { padding-top: 10px; border-top: 1px solid #dfddd8; font-size: 14px; }
.nb-curtain-quote-total .is-grand strong { color: var(--nb-accent); font-size: 16px; }
.nb-curtain-quote-disclaimer { margin: 0; padding: 12px 18px; color: #7a5d29; background: #fff9ec; border-top: 1px solid #f0dfb9; font-size: 9px; line-height: 1.9; }
.nb-curtain-quote-actions { margin-top: 12px; display: flex; gap: 10px; }
.nb-curtain-quote-actions button:first-child { color: #fff; background: var(--nb-accent); }
.nb-curtain-quote-actions button:last-child { color: var(--nb-text); background: #f2f2f1; border: 1px solid var(--nb-border); }
body.nb-modal-open { overflow: hidden; }
.nb-curtain-picker[hidden] { display: none !important; }
.nb-curtain-picker { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.nb-curtain-picker-backdrop { position: absolute; inset: 0; background: rgba(14,17,22,.64); backdrop-filter: blur(3px); }
.nb-curtain-picker-dialog { position: relative; z-index: 1; width: min(820px,100%); max-height: min(760px,calc(100vh - 40px)); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.nb-curtain-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nb-curtain-picker-head > div { display: flex; flex-direction: column; gap: 3px; }
.nb-curtain-picker-head strong { font-size: 15px; }
.nb-curtain-picker-head small { color: var(--nb-muted); font-size: 9px; }
.nb-curtain-picker-head > button { width: 38px; height: 38px; color: #5b616b; background: #f2f2f1; border: 0; border-radius: 10px; font-size: 23px; cursor: pointer; }
.nb-curtain-picker-search { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 8px; }
.nb-curtain-picker-search button { color: #fff; background: var(--nb-accent); }
.nb-curtain-picker-results { min-height: 180px; padding: 3px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; overflow-y: auto; }
.nb-curtain-picker-card { padding: 8px; display: grid; gap: 8px; color: var(--nb-text); background: #fff; border: 1px solid var(--nb-border); border-radius: 13px; text-align: right; cursor: pointer; }
.nb-curtain-picker-card:hover { border-color: rgba(189,143,73,.55); box-shadow: 0 8px 18px rgba(28,30,35,.07); }
.nb-curtain-picker-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; background: #f4f4f2; }
.nb-curtain-picker-card > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nb-curtain-picker-card strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.nb-curtain-picker-card small { color: var(--nb-muted); font-size: 8px; line-height: 1.7; }
.nb-curtain-picker-card b { color: var(--nb-accent); font-size: 10px; }
.nb-curtain-picker-empty { grid-column: 1/-1; min-height: 150px; display: grid; place-items: center; color: var(--nb-muted); font-size: 11px; text-align: center; }
.nb-curtain-picker-empty.is-error { color: #a11b1b; }
.nb-curtain-picker-more { align-self: center; color: var(--nb-accent); background: var(--nb-accent-soft); }

@media (max-width: 1024px) {
    .nb-curtain-component-toggles { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nb-curtain-picker-results { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 768px) {
    .nb-service-reserve { grid-template-rows: none; }
    .nb-curtain-builder-progress { grid-template-columns: 1fr; }
    .nb-curtain-builder-progress span { text-align: right; }
    .nb-curtain-window { padding: 12px; border-radius: 15px; }
    .nb-curtain-section { padding: 11px; }
    .nb-curtain-grid { grid-template-columns: 1fr; }
    .nb-curtain-product-choice { grid-template-columns: 1fr; }
    .nb-curtain-component-toggles { grid-template-columns: 1fr 1fr; }
    .nb-curtain-builder-actions,.nb-curtain-quote-actions { flex-direction: column; }
    .nb-curtain-builder-actions button,.nb-curtain-quote-actions button,.nb-curtain-add-window { width: 100%; }
    .nb-curtain-quote-head { align-items: flex-start; flex-direction: column; }
    .nb-curtain-quote-row { grid-template-columns: 1fr; }
    .nb-curtain-quote-row > span:last-child { align-items: flex-start; }
    .nb-curtain-picker { padding: 8px; }
    .nb-curtain-picker-dialog { max-height: calc(100vh - 16px); padding: 12px; border-radius: 16px; }
    .nb-curtain-picker-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
    .nb-curtain-window-head { align-items: flex-start; flex-direction: column; }
    .nb-curtain-window-head button { width: 100%; }
    .nb-curtain-component-toggles { grid-template-columns: 1fr; }
    .nb-curtain-picker-search { grid-template-columns: 1fr; }
    .nb-curtain-picker-search button { width: 100%; }
    .nb-curtain-picker-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .nb-curtain-picker-card { padding: 6px; }
}

/* ==================================================
 * Parche Market custom footer — v2.2
 * ================================================== */
.nb-site-footer,
.nb-site-footer * { box-sizing: border-box; }
.nb-site-footer {
    position: relative;
    width: 100%;
    margin-top: 52px;
    overflow: hidden;
    color: var(--nb-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(189,143,73,.12), transparent 28%),
        linear-gradient(180deg,#f8f6f2 0%,#f0ede7 100%);
    border-top: 1px solid #e3ddd3;
}
.nb-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg,transparent,var(--nb-accent),#d6b477,var(--nb-accent),transparent);
}
.nb-footer-shell {
    position: relative;
    width: min(1280px,calc(100% - 32px));
    margin-inline: auto;
    padding: 42px 0 18px;
}
.nb-footer-grid {
    display: grid;
    grid-template-columns: minmax(0,1.45fr) minmax(190px,.82fr) minmax(190px,.82fr) minmax(185px,.72fr);
    gap: 16px;
    align-items: stretch;
}
.nb-footer-card {
    min-width: 0;
    padding: 22px;
    color: var(--nb-text);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(218,210,198,.9);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(37,32,25,.055);
}
.nb-footer-brand-card { display: flex; flex-direction: column; }
.nb-footer-branding { display: flex; flex-direction: column; gap: 3px; }
.nb-footer-branding strong { color: #29251f; font-size: 24px; font-weight: 950; letter-spacing: -.35px; }
.nb-footer-branding span { color: var(--nb-accent); font-size: 11px; font-weight: 900; }
.nb-footer-intro {
    margin: 14px 0 17px;
    color: #666157;
    font-size: 11px;
    font-weight: 500;
    line-height: 2.05;
    text-align: justify;
}
.nb-footer-contact-list { margin-top: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nb-footer-contact-list > a,
.nb-footer-contact-list > div {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f4a42;
    background: #faf8f4;
    border: 1px solid #eee8de;
    border-radius: 11px;
    text-decoration: none;
}
.nb-footer-contact-list > div { grid-column: 1/-1; align-items: flex-start; }
.nb-footer-contact-list > a:hover { color: var(--nb-accent); border-color: rgba(189,143,73,.35); background: var(--nb-accent-soft); }
.nb-footer-contact-list span { width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: #fff; border-radius: 8px; }
.nb-footer-contact-list .nb-svg-icon { width: 15px; height: 15px; }
.nb-footer-contact-list b { min-width: 0; color: inherit; font-size: 9.5px; font-weight: 800; line-height: 1.8; overflow-wrap: anywhere; }
.nb-footer-toggle {
    width: 100%;
    min-height: 38px;
    padding: 0 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #29251f;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eee9e1;
    font: inherit;
    cursor: default;
}
.nb-footer-toggle span { position: relative; font-size: 13px; font-weight: 950; }
.nb-footer-toggle span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -14px;
    width: 42px;
    height: 2px;
    background: var(--nb-accent);
    border-radius: 999px;
}
.nb-footer-toggle i { display: none; color: var(--nb-accent); font-style: normal; transition: transform .2s ease; }
.nb-footer-toggle i .nb-svg-icon { width: 17px; height: 17px; }
.nb-footer-panel { padding-top: 17px; }
.nb-footer-panel ul { margin: 0; padding: 0; display: grid; gap: 2px; list-style: none; }
.nb-footer-panel li { margin: 0; padding: 0; }
.nb-footer-panel a {
    position: relative;
    min-height: 35px;
    padding: 7px 16px 7px 4px;
    display: flex;
    align-items: center;
    color: #625d54;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: none;
    transition: .2s ease;
}
.nb-footer-panel a::before {
    content: "";
    position: absolute;
    right: 1px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--nb-accent);
    border-left: 2px solid var(--nb-accent);
    transform: rotate(-45deg);
}
.nb-footer-panel a:hover { padding-right: 20px; color: var(--nb-accent); }
.nb-footer-trust-card { display: flex; flex-direction: column; }
.nb-footer-trust-heading { padding-bottom: 13px; display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid #eee9e1; }
.nb-footer-trust-heading strong { color: #29251f; font-size: 13px; font-weight: 950; }
.nb-footer-trust-heading small { color: #8a857d; font-size: 8.5px; }
.nb-footer-trust-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.nb-footer-trust-item {
    min-height: 116px;
    padding: 9px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #faf9f6;
    border: 1px solid #e9e3da;
    border-radius: 14px;
}
.nb-footer-badge-content { width: 100%; min-height: 94px; display: grid; place-items: center; }
.nb-footer-badge-content a { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; }
.nb-footer-badge-content img,
.nb-footer-badge-content iframe { width: auto !important; max-width: 100% !important; height: auto; max-height: 96px; object-fit: contain; border: 0; }
.nb-footer-badge-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #817b71; text-align: center; }
.nb-footer-badge-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: #fff; border: 1px solid #ece5da; border-radius: 13px; box-shadow: 0 7px 18px rgba(37,32,25,.055); }
.nb-footer-badge-icon .nb-svg-icon { width: 23px; height: 23px; }
.nb-footer-badge-placeholder strong { color: #4e4941; font-size: 10px; font-weight: 900; }
.nb-footer-badge-placeholder small { color: #9a958d; font-size: 8px; }
.nb-footer-bottom {
    min-height: 58px;
    margin-top: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #746f66;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(218,210,198,.78);
    border-radius: 15px;
}
.nb-footer-bottom p { margin: 0; font-size: 9.5px; font-weight: 700; line-height: 1.8; }
.nb-footer-socials { display: flex; align-items: center; gap: 7px; }
.nb-footer-socials a { min-height: 32px; padding: 6px 11px; display: inline-flex; align-items: center; justify-content: center; color: #5c574f; background: #fff; border: 1px solid #e8e2d9; border-radius: 9px; font-size: 9px; font-weight: 900; text-decoration: none; }
.nb-footer-socials a:hover { color: var(--nb-accent); border-color: rgba(189,143,73,.38); }

@media (max-width: 1024px) {
    .nb-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nb-footer-brand-card { grid-row: span 2; }
}

@media (max-width: 768px) {
    .nb-site-footer { margin-top: 32px; }
    .nb-footer-shell { width: calc(100% - 20px); padding: 28px 0 12px; }
    .nb-footer-grid { grid-template-columns: 1fr; gap: 10px; }
    .nb-footer-brand-card { grid-row: auto; }
    .nb-footer-card { padding: 16px; border-radius: 16px; }
    .nb-footer-branding strong { font-size: 21px; }
    .nb-footer-intro { margin-block: 11px 14px; font-size: 10.5px; line-height: 2; }
    .nb-footer-contact-list { grid-template-columns: 1fr 1fr; }
    .nb-footer-contact-list > a { min-height: 40px; padding-inline: 8px; }
    .nb-footer-contact-list b { font-size: 8.5px; }
    .nb-footer-accordion { padding: 0 15px; }
    .nb-footer-toggle { min-height: 54px; padding: 0; cursor: pointer; }
    .nb-footer-toggle span::after { display: none; }
    .nb-footer-toggle i { display: inline-flex; }
    .nb-footer-accordion.is-open .nb-footer-toggle i { transform: rotate(180deg); }
    .nb-footer-panel { padding: 3px 0 12px; }
    .nb-footer-panel[hidden] { display: none !important; }
    .nb-footer-panel a { min-height: 36px; }
    .nb-footer-trust-heading { align-items: center; text-align: center; }
    .nb-footer-trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .nb-footer-trust-item { min-height: 108px; padding: 7px; }
    .nb-footer-badge-content { min-height: 90px; }
    .nb-footer-badge-content img,.nb-footer-badge-content iframe { max-height: 88px; }
    .nb-footer-bottom { min-height: 0; padding: 13px; align-items: center; flex-direction: column; text-align: center; }
    .nb-footer-bottom p { font-size: 8.5px; }
}

@media (max-width: 420px) {
    .nb-footer-contact-list { grid-template-columns: 1fr; }
    .nb-footer-contact-list > div { grid-column: auto; }
    .nb-footer-trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .nb-footer-trust-item { min-height: 98px; }
    .nb-footer-badge-placeholder strong { font-size: 9px; }
}


/* ==================================================
 * Footer information drawer — v2.2
 * ================================================== */
body.nb-footer-drawer-open { overflow: hidden !important; }
.nb-footer-drawer,
.nb-footer-drawer * { box-sizing: border-box; }
.nb-footer-drawer[hidden] { display: none !important; }
.nb-footer-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    direction: rtl;
    pointer-events: none;
}
.nb-footer-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(26,23,19,.52);
    border: 0;
    opacity: 0;
    cursor: pointer;
    transition: opacity .28s ease;
}
.nb-footer-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(570px,92vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #3d3933;
    background: #fff;
    border-left: 1px solid #e8e1d7;
    box-shadow: -26px 0 70px rgba(24,20,15,.2);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
    outline: none;
}
.nb-footer-drawer.is-open { pointer-events: auto; }
.nb-footer-drawer.is-open .nb-footer-drawer-backdrop { opacity: 1; }
.nb-footer-drawer.is-open .nb-footer-drawer-panel { transform: translateX(0); }
.nb-footer-drawer-header {
    flex: 0 0 auto;
    min-height: 82px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg,#fff,#fbfaf7);
    border-bottom: 1px solid #ece6dd;
}
.nb-footer-drawer-header > div { min-width: 0; }
.nb-footer-drawer-header small { display: block; margin-bottom: 3px; color: var(--nb-accent); font-size: 10px; font-weight: 900; }
.nb-footer-drawer-header h2 { margin: 0; color: #28241f; font-size: 20px; font-weight: 950; line-height: 1.5; }
.nb-footer-drawer-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f594f;
    background: #f7f4ef;
    border: 1px solid #e9e2d8;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s ease;
}
.nb-footer-drawer-close:hover { color: #fff; background: var(--nb-accent); border-color: var(--nb-accent); }
.nb-footer-drawer-close .nb-svg-icon { width: 20px; height: 20px; }
.nb-footer-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 24px 44px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(189,143,73,.45) transparent;
}
.nb-footer-drawer-body::-webkit-scrollbar { width: 7px; }
.nb-footer-drawer-body::-webkit-scrollbar-thumb { background: rgba(189,143,73,.38); border-radius: 999px; }
.nb-footer-document-lead {
    margin-bottom: 17px;
    padding: 16px 17px;
    color: #575148;
    background: #fbf8f2;
    border: 1px solid #eee5d9;
    border-right: 4px solid var(--nb-accent);
    border-radius: 14px;
}
.nb-footer-drawer-body section { margin: 0 0 19px; padding-bottom: 18px; border-bottom: 1px solid #eee9e1; }
.nb-footer-drawer-body section:last-child { border-bottom: 0; }
.nb-footer-drawer-body h3 { margin: 0 0 8px; color: #2f2a24; font-size: 14px; font-weight: 950; line-height: 1.8; }
.nb-footer-drawer-body p { margin: 0 0 9px; color: #625d54; font-size: 12px; font-weight: 500; line-height: 2.05; text-align: justify; }
.nb-footer-drawer-body p:last-child { margin-bottom: 0; }
.nb-footer-drawer-body ul { margin: 0 0 10px; padding: 0 19px 0 0; color: #625d54; }
.nb-footer-drawer-body li { margin: 5px 0; font-size: 12px; line-height: 1.9; }
.nb-footer-drawer-body a { color: var(--nb-accent); font-weight: 800; text-decoration: none; }
.nb-footer-document-signature { padding: 14px 16px; color: #51483d !important; background: var(--nb-accent-soft); border-radius: 13px; font-weight: 900 !important; text-align: center !important; }
.nb-footer-note { padding: 10px 12px; background: #fff8e9; border: 1px solid #f0dfb7; border-radius: 10px; }
.nb-footer-drawer-contact-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.nb-footer-drawer-contact-grid a { min-height: 68px; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #4f4940; background: #faf8f4; border: 1px solid #ebe4da; border-radius: 13px; transition: .2s ease; }
.nb-footer-drawer-contact-grid a:hover { color: var(--nb-accent); border-color: rgba(189,143,73,.45); transform: translateY(-1px); }
.nb-footer-drawer-contact-grid span { color: #918a80; font-size: 9px; font-weight: 800; }
.nb-footer-drawer-contact-grid strong { font-size: 11px; font-weight: 950; overflow-wrap: anywhere; }
.nb-footer-faq-list { display: grid; gap: 9px; }
.nb-footer-faq-list details { overflow: hidden; background: #fff; border: 1px solid #e9e2d8; border-radius: 13px; transition: .2s ease; }
.nb-footer-faq-list details[open] { border-color: rgba(189,143,73,.48); box-shadow: 0 8px 22px rgba(58,46,29,.055); }
.nb-footer-faq-list summary { position: relative; min-height: 52px; padding: 13px 42px 13px 14px; display: flex; align-items: center; color: #3e3932; font-size: 11.5px; font-weight: 900; line-height: 1.8; list-style: none; cursor: pointer; }
.nb-footer-faq-list summary::-webkit-details-marker { display: none; }
.nb-footer-faq-list summary::before,
.nb-footer-faq-list summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 13px; height: 2px; background: var(--nb-accent); border-radius: 999px; transform: translateY(-50%); transition: transform .2s ease; }
.nb-footer-faq-list summary::after { transform: translateY(-50%) rotate(90deg); }
.nb-footer-faq-list details[open] summary::after { transform: translateY(-50%) rotate(0); }
.nb-footer-faq-list details > div { padding: 0 15px 14px; }
.nb-footer-faq-list details > div p { padding-top: 12px; border-top: 1px solid #eee8df; font-size: 11.5px; }

@media (max-width: 640px) {
    .nb-footer-drawer-panel { width: 100%; max-width: none; border-left: 0; }
    .nb-footer-drawer-header { min-height: 72px; padding: 13px 14px; }
    .nb-footer-drawer-header h2 { font-size: 17px; }
    .nb-footer-drawer-body { padding: 16px 14px 32px; }
    .nb-footer-drawer-body p,.nb-footer-drawer-body li { font-size: 11px; }
    .nb-footer-drawer-contact-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .nb-footer-drawer-contact-grid a { min-height: 62px; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .nb-footer-drawer-backdrop,.nb-footer-drawer-panel { transition: none; }
}

/* v2.2.1 — prevent Astra/global button styles from coloring the drawer backdrop */
.nb-footer-drawer > .nb-footer-drawer-backdrop,
.nb-footer-drawer > .nb-footer-drawer-backdrop:hover,
.nb-footer-drawer > .nb-footer-drawer-backdrop:focus,
.nb-footer-drawer > .nb-footer-drawer-backdrop:active {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: rgba(26,23,19,.52) !important;
    background-image: none !important;
    color: transparent !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.nb-footer-drawer > .nb-footer-drawer-backdrop { opacity: 0 !important; }
.nb-footer-drawer.is-open > .nb-footer-drawer-backdrop { opacity: 1 !important; }
.nb-footer-drawer > .nb-footer-drawer-panel { z-index: 2; }


/* ==================================================
 * Fabric quantity engine — v2.4.1
 * ================================================== */
.nb-product-card-order { margin-top: 2px; padding-top: 9px; border-top: 1px dashed var(--nb-border); }
.nb-product-card-order-rule { margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--nb-muted); font-size: 9px; line-height: 1.7; }
.nb-card-in-cart { flex: 0 0 auto; color: var(--nb-success); font-size: 8px; font-weight: 950; white-space: nowrap; }
.nb-product-card-order-row { display: grid; grid-template-columns: minmax(104px,.9fr) minmax(105px,1.1fr); gap: 7px; }
.nb-quantity-control { min-height: 38px; display: grid; grid-template-columns: 34px minmax(38px,1fr) 34px; align-items: stretch; overflow: hidden; border: 1px solid var(--nb-border); border-radius: 10px; background: #fff; direction: ltr; }
.nb-qty-button { min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #f7f4ef; color: var(--nb-text); font-size: 18px; font-weight: 800; cursor: pointer; }
.nb-qty-button:hover { color: var(--nb-accent); background: var(--nb-accent-soft); }
.nb-qty-input { width: 100% !important; min-width: 0; padding: 0 3px !important; border: 0 !important; border-inline: 1px solid var(--nb-border) !important; border-radius: 0 !important; background: #fff !important; color: var(--nb-text); text-align: center; font-size: 11px; font-weight: 800; box-shadow: none !important; appearance: textfield; }
.nb-qty-input::-webkit-inner-spin-button,.nb-qty-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.nb-card-add-to-cart { min-height: 38px; padding: 6px 8px; border: 0; border-radius: 10px; background: var(--nb-text); color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.nb-card-add-to-cart:hover { background: var(--nb-accent); }
.nb-card-add-to-cart:disabled { opacity: .5; cursor: not-allowed; }
.nb-card-add-to-cart.is-loading { opacity: .7; pointer-events: none; }
.nb-card-order-message { margin-top: 6px; padding: 6px 7px; border-radius: 8px; background: #edf8f2; color: var(--nb-success); font-size: 9px; line-height: 1.7; }
.nb-card-order-message.is-error { color: var(--nb-danger); background: #fff0ee; }
.nb-fabric-order-rule { margin: 0 0 10px; padding: 9px 11px; display: flex; flex-wrap: wrap; gap: 6px 15px; color: var(--nb-text); background: #fffaf1; border: 1px solid rgba(189,143,73,.25); border-radius: 10px; font-size: 12px; line-height: 1.8; }
.nb-fabric-order-rule span { color: var(--nb-muted); }
.nb-cart-fabric-rule { margin-top: 5px; color: var(--nb-muted); font-size: 11px; font-weight: 500; }
.quantity.nb-qty-enhanced { width: fit-content; min-height: 42px; display: inline-grid !important; grid-template-columns: 40px minmax(56px,74px) 40px; align-items: stretch; overflow: hidden; border: 1px solid var(--nb-border); border-radius: 11px; background: #fff; direction: ltr; }
.quantity.nb-qty-enhanced .qty { width: 100% !important; min-width: 0 !important; height: 100% !important; margin: 0 !important; padding: 0 4px !important; border: 0 !important; border-inline: 1px solid var(--nb-border) !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; appearance: textfield; }
.quantity.nb-qty-enhanced .qty::-webkit-inner-spin-button,.quantity.nb-qty-enhanced .qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity.nb-qty-enhanced .nb-woo-qty-button { padding: 0; border: 0; background: #f7f4ef; color: var(--nb-text); font-size: 20px; font-weight: 800; cursor: pointer; }
.quantity.nb-qty-enhanced .nb-woo-qty-button:hover { color: var(--nb-accent); background: var(--nb-accent-soft); }

@media (max-width: 480px) {
    .nb-product-card-order-row { grid-template-columns: 1fr; }
    .nb-card-add-to-cart { width: 100%; }
    .nb-product-card-order-rule { min-height: 30px; }
}

/* ==================================================
 * AJAX cart drawer — v2.4.1
 * ================================================== */
body.nb-cart-drawer-open { overflow: hidden !important; }
.nb-cart-drawer,
.nb-cart-drawer * { box-sizing: border-box; }
.nb-cart-drawer[hidden] { display: none !important; }
.nb-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    pointer-events: none;
    direction: rtl;
}
.nb-cart-drawer-backdrop,
.nb-cart-drawer-backdrop:hover,
.nb-cart-drawer-backdrop:focus,
.nb-cart-drawer-backdrop:active {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: rgba(22,18,13,.48) !important;
    box-shadow: none !important;
    opacity: 0;
    cursor: pointer;
    transition: opacity .24s ease;
}
.nb-cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(490px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--nb-text);
    background: #fff;
    border-left: 1px solid var(--nb-border);
    box-shadow: -20px 0 50px rgba(35,28,20,.16);
    transform: translateX(105%);
    transition: transform .27s ease;
    outline: 0;
}
.nb-cart-drawer.is-open { pointer-events: auto; }
.nb-cart-drawer.is-open .nb-cart-drawer-backdrop { opacity: 1; }
.nb-cart-drawer.is-open .nb-cart-drawer-panel { transform: translateX(0); }
.nb-cart-drawer.is-busy .nb-cart-drawer-panel { cursor: wait; }
.nb-cart-drawer-header {
    min-height: 78px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--nb-border);
}
.nb-cart-drawer-header small { display: block; margin-bottom: 2px; color: var(--nb-accent); font-size: 10px; font-weight: 900; }
.nb-cart-drawer-header h2 { margin: 0; color: var(--nb-text); font-size: 21px; font-weight: 950; line-height: 1.4; }
.nb-cart-drawer-close,
.nb-cart-drawer-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    color: var(--nb-text);
    background: #f8f6f2;
    border: 1px solid var(--nb-border);
    border-radius: 11px;
    cursor: pointer;
    transition: .18s ease;
}
.nb-cart-drawer-close { width: 42px; height: 42px; }
.nb-cart-drawer-remove { width: 32px; height: 32px; color: var(--nb-danger); background: #fff8f7; border-color: #f1d2ce; }
.nb-cart-drawer-close:hover { color: #fff; background: var(--nb-accent); border-color: var(--nb-accent); }
.nb-cart-drawer-remove:hover { color: #fff; background: var(--nb-danger); border-color: var(--nb-danger); }
.nb-cart-drawer-close .nb-svg-icon { width: 20px; height: 20px; }
.nb-cart-drawer-remove .nb-svg-icon { width: 16px; height: 16px; }
.nb-cart-drawer-body {
    min-height: 0;
    padding: 16px 16px 28px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fbfaf8;
}
.nb-cart-drawer-body::-webkit-scrollbar { width: 7px; }
.nb-cart-drawer-body::-webkit-scrollbar-thumb { background: rgba(189,143,73,.32); border-radius: 999px; }
.nb-cart-drawer-loading,
.nb-cart-drawer-state,
.nb-cart-drawer-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.nb-cart-drawer-loading span { width: 34px; height: 34px; border: 3px solid #eee7dc; border-top-color: var(--nb-accent); border-radius: 50%; animation: nb-spin .8s linear infinite; }
.nb-cart-drawer-loading p,
.nb-cart-drawer-empty p { margin: 0; color: var(--nb-muted); font-size: 12px; line-height: 1.9; }
.nb-cart-drawer-empty-icon { width: 65px; height: 65px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-accent); background: var(--nb-accent-soft); border-radius: 50%; }
.nb-cart-drawer-empty-icon .nb-svg-icon { width: 29px; height: 29px; }
.nb-cart-drawer-empty h3 { margin: 5px 0 0; font-size: 18px; font-weight: 950; }
.nb-cart-drawer-message {
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid #cce7d6;
    border-radius: 11px;
    color: #17653b;
    background: #f3fcf6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
}
.nb-cart-drawer-message.is-error { color: var(--nb-danger); background: #fff6f5; border-color: #f0cac5; }
.nb-cart-drawer-items { display: flex; flex-direction: column; gap: 11px; }
.nb-cart-drawer-item {
    padding: 12px;
    display: grid;
    grid-template-columns: 82px minmax(0,1fr);
    align-items: start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--nb-border);
    border-radius: 15px;
    box-shadow: 0 7px 22px rgba(42,34,25,.045);
}
.nb-cart-drawer-media { width: 82px; height: 98px; overflow: hidden; background: #f3f1ed; border-radius: 11px; }
.nb-cart-drawer-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nb-cart-drawer-item-content { min-width: 0; }
.nb-cart-drawer-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nb-cart-drawer-item-head > div { min-width: 0; }
.nb-cart-drawer-item-title { display: block; overflow: hidden; color: var(--nb-text); font-size: 12px; font-weight: 950; line-height: 1.75; text-decoration: none; text-overflow: ellipsis; }
.nb-cart-drawer-item-title:hover { color: var(--nb-accent); }
.nb-cart-drawer-item-head small { display: block; margin-top: 2px; color: var(--nb-muted); font-size: 9px; line-height: 1.7; }
.nb-cart-drawer-meta { margin-top: 6px; color: var(--nb-muted); font-size: 9px; line-height: 1.8; }
.nb-cart-drawer-meta dl.variation { margin: 0; }
.nb-cart-drawer-price-row {
    margin-top: 9px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px dashed #e7e1d8;
}
.nb-cart-drawer-price-row span { color: var(--nb-muted); font-size: 10px; }
.nb-cart-drawer-price-row span small { font-size: 8px; }
.nb-cart-drawer-price-row strong { color: var(--nb-text); font-size: 11px; font-weight: 950; white-space: nowrap; }
.nb-cart-drawer-quantity-row { margin-top: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 9px; }
.nb-cart-drawer-quantity-label { min-width: 0; }
.nb-cart-drawer-quantity-label > span { display: block; color: var(--nb-text); font-size: 10px; font-weight: 900; }
.nb-cart-drawer-quantity-label small { display: block; margin-top: 2px; color: var(--nb-muted); font-size: 8px; line-height: 1.6; }
.nb-cart-drawer-qty { width: 126px; min-height: 37px; display: grid; grid-template-columns: 34px minmax(46px,1fr) 34px; overflow: hidden; background: #fff; border: 1px solid var(--nb-border); border-radius: 10px; direction: ltr; }
.nb-cart-drawer-qty button { padding: 0; color: var(--nb-text); background: #f7f4ef; border: 0; font-size: 18px; font-weight: 900; cursor: pointer; }
.nb-cart-drawer-qty button:hover { color: var(--nb-accent); background: var(--nb-accent-soft); }
.nb-cart-drawer-qty input { width: 100%; min-width: 0; height: 37px; margin: 0; padding: 0 3px; color: var(--nb-text); background: #fff; border: 0; border-inline: 1px solid var(--nb-border); border-radius: 0; outline: 0; box-shadow: none; text-align: center; font-size: 11px; font-weight: 900; appearance: textfield; }
.nb-cart-drawer-qty input::-webkit-inner-spin-button,
.nb-cart-drawer-qty input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.nb-cart-drawer-curtain { border-color: rgba(189,143,73,.42); background: linear-gradient(180deg,#fff,#fffdfa); }
.nb-cart-drawer-curtain-lines { margin-top: 8px; padding: 8px 9px; background: #faf8f4; border-radius: 10px; }
.nb-cart-drawer-curtain-lines > div { padding: 4px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: var(--nb-muted); font-size: 9px; line-height: 1.7; border-bottom: 1px solid #eee8df; }
.nb-cart-drawer-curtain-lines > div:last-child { border-bottom: 0; }
.nb-cart-drawer-curtain-lines span { min-width: 0; }
.nb-cart-drawer-curtain-lines b { flex: 0 0 auto; color: var(--nb-text); font-size: 9px; white-space: nowrap; }
.nb-cart-drawer-curtain-details { margin-top: 8px; padding: 7px 9px; background: #fff; border: 1px solid #eee7dd; border-radius: 9px; }
.nb-cart-drawer-curtain-details summary { color: var(--nb-accent); font-size: 9px; font-weight: 900; cursor: pointer; }
.nb-cart-drawer-curtain-details dl { margin: 8px 0 0; }
.nb-cart-drawer-curtain-details dl > div { padding: 5px 0; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; border-bottom: 1px dashed #eee8df; }
.nb-cart-drawer-curtain-details dl > div:last-child { border-bottom: 0; }
.nb-cart-drawer-curtain-details dt { color: var(--nb-muted); font-size: 8px; }
.nb-cart-drawer-curtain-details dd { margin: 0; color: var(--nb-text); font-size: 8px; line-height: 1.8; }
.nb-cart-drawer-coupon,
.nb-cart-drawer-summary {
    margin-top: 13px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--nb-border);
    border-radius: 14px;
}
.nb-cart-drawer-coupon > label,
.nb-cart-drawer-summary h3 { display: block; margin: 0 0 9px; color: var(--nb-text); font-size: 11px; font-weight: 950; }
.nb-cart-drawer-coupon > div { display: grid; grid-template-columns: minmax(0,1fr) 86px; gap: 7px; }
.nb-cart-drawer-coupon input { width: 100%; min-width: 0; height: 41px; margin: 0; padding: 7px 10px; border: 1px solid var(--nb-border); border-radius: 10px; outline: 0; font-size: 10px; }
.nb-cart-drawer-coupon input:focus { border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(189,143,73,.1); }
.nb-cart-drawer-coupon button { padding: 0 8px; color: #fff; background: var(--nb-text); border: 0; border-radius: 10px; font-size: 10px; font-weight: 900; cursor: pointer; }
.nb-cart-drawer-coupon button:hover { background: var(--nb-accent); }
.nb-cart-drawer-total-row { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--nb-muted); font-size: 10px; border-bottom: 1px solid #eee9e1; }
.nb-cart-drawer-total-row:last-child { border-bottom: 0; }
.nb-cart-drawer-total-row strong,
.nb-cart-drawer-total-row b { color: var(--nb-text); font-weight: 900; }
.nb-cart-drawer-coupon-row > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.nb-cart-drawer-coupon-row button { padding: 3px 6px; color: var(--nb-danger); background: #fff7f6; border: 1px solid #f0d0cc; border-radius: 7px; font-size: 8px; font-weight: 900; cursor: pointer; }
.nb-cart-drawer-grand-total { min-height: 46px; margin-top: 4px; color: var(--nb-text); font-size: 12px; font-weight: 950; }
.nb-cart-drawer-grand-total strong { color: var(--nb-accent); font-size: 15px; }
.nb-cart-drawer-empty-all { width: 100%; min-height: 42px; margin-top: 12px; padding: 8px 10px; color: var(--nb-danger); background: #fff7f6; border: 1px solid #efc7c2; border-radius: 11px; font-size: 10px; font-weight: 950; cursor: pointer; }
.nb-cart-drawer-empty-all:hover { color: #fff; background: var(--nb-danger); border-color: var(--nb-danger); }
.nb-cart-drawer-actions { margin-top: 13px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.nb-cart-drawer-secondary,
.nb-cart-drawer-checkout { min-height: 44px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 10px; font-weight: 950; text-align: center; text-decoration: none; cursor: pointer; }
.nb-cart-drawer-secondary { color: var(--nb-text); background: #fff; border: 1px solid var(--nb-border); }
.nb-cart-drawer-secondary:hover { color: var(--nb-accent); border-color: var(--nb-accent); }
.nb-cart-drawer-checkout { color: #fff; background: var(--nb-accent); border: 1px solid var(--nb-accent); }
.nb-cart-drawer-checkout:hover { color: #fff; filter: brightness(.94); }

@media (max-width: 600px) {
    .nb-cart-drawer-panel { width: 100%; max-width: none; border-left: 0; }
    .nb-cart-drawer-header { min-height: 70px; padding: 12px 13px; }
    .nb-cart-drawer-header h2 { font-size: 18px; }
    .nb-cart-drawer-body { padding: 12px 10px 22px; }
    .nb-cart-drawer-item { padding: 10px; grid-template-columns: 72px minmax(0,1fr); gap: 9px; border-radius: 13px; }
    .nb-cart-drawer-media { width: 72px; height: 88px; }
    .nb-cart-drawer-item-title { font-size: 11px; }
    .nb-cart-drawer-quantity-row { align-items: flex-start; flex-direction: column; }
    .nb-cart-drawer-qty { width: 100%; }
    .nb-cart-drawer-actions { grid-template-columns: 1fr; }
    .nb-cart-drawer-secondary,.nb-cart-drawer-checkout { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nb-cart-drawer-backdrop,.nb-cart-drawer-panel { transition: none; }
}


/* Cart action feedback */
.nb-cart-toast-region {
    position: fixed;
    z-index: 100000;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    width: min(92vw, 520px);
    transform: translateX(-50%);
    pointer-events: none;
    direction: rtl;
}
.nb-cart-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(32, 111, 76, .16);
    border-radius: 14px;
    background: rgba(247, 253, 249, .98);
    color: #174c36;
    box-shadow: 0 14px 40px rgba(25, 35, 45, .18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nb-cart-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.nb-cart-toast.is-updated { background: rgba(247, 250, 255, .98); color: #234f84; border-color: rgba(35, 91, 151, .18); }
.nb-cart-toast.is-error { background: rgba(255, 246, 245, .98); color: #9c2f2a; border-color: rgba(171, 56, 47, .18); }
.nb-cart-toast-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcefe5;
    color: #176842;
    font-size: 17px;
    font-weight: 900;
}
.nb-cart-toast.is-updated .nb-cart-toast-icon { background: #e3edf9; color: #245c98; }
.nb-cart-toast.is-error .nb-cart-toast-icon { background: #f8dedb; color: #a3302b; }
.nb-cart-toast-text { min-width: 0; flex: 1 1 auto; }
@media (max-width: 600px) {
    .nb-cart-toast-region { width: calc(100vw - 24px); bottom: max(14px, env(safe-area-inset-bottom)); }
    .nb-cart-toast { padding: 11px 12px; border-radius: 13px; font-size: 12px; }
}


/* ==================================================
 * Product-to-curtain bridge — v2.5.0
 * ================================================== */
.nb-single-curtain-cta{margin:18px 0 0;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;border:1px solid rgba(189,143,73,.35);border-radius:16px;background:linear-gradient(135deg,#fffdf9,#fbf5e9)}
.nb-single-curtain-cta>div{display:flex;flex-direction:column;gap:5px}.nb-single-curtain-cta strong{font-size:14px}.nb-single-curtain-cta span{color:var(--nb-muted,#6b7280);font-size:11px;line-height:1.9}
.nb-single-curtain-cta>a{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;color:#fff!important;background:var(--nb-accent,#bd8f49);border-radius:11px;text-decoration:none!important;font-size:11px;font-weight:900;white-space:nowrap}
.nb-cart-curtain-cta{margin-top:11px;padding:10px 11px;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:9px;align-items:center;color:var(--nb-text,#20242b)!important;background:linear-gradient(135deg,#fffaf0,#f8edd9);border:1px solid rgba(189,143,73,.32);border-radius:12px;text-decoration:none!important}
.nb-cart-curtain-cta>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;color:var(--nb-accent,#bd8f49);background:#fff;border-radius:9px}.nb-cart-curtain-cta svg{width:18px;height:18px}.nb-cart-curtain-cta b{font-size:10px}.nb-cart-curtain-cta small{color:var(--nb-muted,#6b7280);font-size:8px;margin-top:2px}
.nb-curtain-start-product{padding:13px 15px;border:1px solid rgba(189,143,73,.4);border-radius:15px;background:#fffaf2;box-shadow:0 8px 22px rgba(28,30,35,.04)}
.nb-curtain-start-product>[data-curtain-start-product-card]{max-width:520px}.nb-curtain-start-product .nb-curtain-selected-product{border-color:rgba(189,143,73,.35)}.nb-curtain-start-product p{margin:8px 0 0;color:#5f6470;font-size:10px;line-height:1.9}.nb-curtain-start-loading{padding:12px;color:var(--nb-muted,#6b7280);font-size:11px}
@media(max-width:700px){.nb-single-curtain-cta{grid-template-columns:1fr}.nb-single-curtain-cta>a{width:100%}}

/* ==================================================
 * Curtain builder refinements — v2.6.0
 * ================================================== */
.nb-curtain-field-help{display:block;margin-top:2px;color:var(--nb-muted);font-size:8px;line-height:1.75;font-weight:500}
.nb-curtain-start-product{padding:8px 10px;display:flex;align-items:center;gap:10px;border-radius:12px}
.nb-curtain-start-product>[data-curtain-start-product-card]{max-width:none;min-width:0;flex:1}
.nb-curtain-start-product .nb-curtain-start-chip{min-height:44px;padding:5px;grid-template-columns:36px minmax(0,1fr);gap:7px;border:0;background:transparent}
.nb-curtain-start-product .nb-curtain-start-chip img{width:36px;height:36px;border-radius:8px}
.nb-curtain-start-product .nb-curtain-start-chip strong{font-size:10px}
.nb-curtain-start-product .nb-curtain-start-chip small{font-size:8px}
.nb-curtain-start-product p{max-width:290px;margin:0;padding-right:10px;border-right:1px solid rgba(189,143,73,.24);font-size:8px;line-height:1.7}
.nb-curtain-selected-product{min-height:48px;padding:5px;grid-template-columns:38px minmax(0,1fr);gap:7px}
.nb-curtain-selected-product img{width:38px;height:38px;border-radius:8px}
.nb-curtain-selected-product strong{font-size:10px}
.nb-curtain-selected-product small{font-size:8px}
.nb-curtain-product-choice{grid-template-columns:150px minmax(0,1fr);gap:8px}
.nb-curtain-product-choice>button{min-height:40px;padding:0 12px}
.nb-curtain-picker-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;background:#faf8f4;border:1px solid var(--nb-border);border-radius:10px}
.nb-curtain-picker-nav button{padding:0;color:var(--nb-accent);background:none;border:0;font:inherit;font-size:9px;font-weight:900;cursor:pointer}
.nb-curtain-picker-nav span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--nb-muted);font-size:9px}
.nb-curtain-picker-categories{min-height:180px;padding:3px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(82px,auto);align-content:start;align-items:stretch;gap:9px;overflow-y:auto}
.nb-curtain-picker-category{min-height:82px;height:auto;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--nb-text)!important;background:linear-gradient(135deg,#fff,#fbf7ef)!important;border:1px solid var(--nb-border);border-radius:13px;text-align:right;cursor:pointer;transition:.2s ease}
.nb-curtain-picker-category:hover,.nb-curtain-picker-category:focus,.nb-curtain-picker-category:focus-visible,.nb-curtain-picker-category:active{color:var(--nb-text)!important;background:linear-gradient(135deg,#fff,#fbf7ef)!important;border-color:rgba(189,143,73,.55);box-shadow:0 8px 18px rgba(28,30,35,.07);transform:translateY(-1px);outline:none}
.nb-curtain-picker-category span{min-width:0;display:flex;flex:1 1 auto;flex-direction:column;gap:4px}
.nb-curtain-picker-category strong{display:-webkit-box;overflow:hidden;color:var(--nb-text)!important;white-space:normal;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:11px;line-height:1.75}
.nb-curtain-picker-category small{color:var(--nb-muted)!important;font-size:8px;line-height:1.65}
.nb-curtain-picker-category b{flex:0 0 auto;color:var(--nb-accent)!important;font-size:24px;font-weight:400}
.nb-cart-curtain-cta{margin-top:8px;min-height:42px;padding:7px 9px;grid-template-columns:28px minmax(0,1fr);column-gap:7px;border-radius:10px}
.nb-cart-curtain-cta>span{width:28px;height:28px;border-radius:8px}
.nb-cart-curtain-cta svg{width:16px;height:16px}
.nb-cart-curtain-cta b{font-size:9px;line-height:1.4}
.nb-cart-curtain-cta small{font-size:7px;line-height:1.4}
.nb-single-curtain-cta{padding:11px 12px;gap:10px;border-radius:13px}
.nb-single-curtain-cta strong{font-size:12px}.nb-single-curtain-cta span{font-size:9px;line-height:1.7}.nb-single-curtain-cta>a{min-height:40px;padding:0 13px;font-size:10px}

@media(max-width:700px){
  .nb-curtain-start-product{align-items:stretch;flex-direction:column;gap:4px}
  .nb-curtain-start-product p{max-width:none;padding:5px 0 0;border-right:0;border-top:1px solid rgba(189,143,73,.2)}
  .nb-curtain-product-choice{grid-template-columns:1fr}
  .nb-curtain-picker-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .nb-curtain-picker-categories{grid-auto-rows:minmax(78px,auto)}
  .nb-curtain-picker-category{min-height:78px;padding:9px}
  .nb-curtain-picker-category strong{font-size:10px;line-height:1.8}
}

/* Curtain cart editing — v2.7.0 */
.nb-curtain-edit-notice {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #76511e;
    background: #fff8e9;
    border: 1px solid rgba(189,143,73,.45);
    border-radius: 13px;
}
.nb-curtain-edit-notice strong { font-size: 12px; font-weight: 950; }
.nb-curtain-edit-notice span { font-size: 10px; line-height: 1.9; }
.nb-cart-drawer-curtain-actions { margin-top: 9px; }
.nb-cart-drawer-curtain-actions button {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    color: var(--nb-accent);
    background: var(--nb-accent-soft);
    border: 1px solid rgba(189,143,73,.45);
    border-radius: 10px;
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    cursor: pointer;
    transition: .2s ease;
}
.nb-cart-drawer-curtain-actions button:hover { background: #f7ecd8; }
.nb-cart-drawer-curtain-actions button:disabled { opacity: .62; cursor: wait; }


/* ==================================================
 * Curtain multi-fabric workflow and side rhinestone option — v2.8.0
 * ================================================== */
.nb-curtain-cart-shelf{margin:14px 0;padding:12px;border:1px solid #e7dfd4;border-radius:14px;background:#fffaf4}.nb-curtain-cart-shelf-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.nb-curtain-cart-shelf-head strong{font-size:14px}.nb-curtain-cart-shelf-head small{font-size:11px;color:#777}.nb-curtain-cart-shelf>[data-curtain-cart-shelf-items]{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}.nb-curtain-cart-shelf-card{min-width:180px;display:flex;align-items:center;gap:8px;padding:7px;border:1px solid #eadfce;border-radius:11px;background:#fff}.nb-curtain-cart-shelf-card img{width:42px;height:42px;object-fit:cover;border-radius:8px}.nb-curtain-cart-shelf-card span{min-width:0}.nb-curtain-cart-shelf-card strong,.nb-curtain-cart-shelf-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nb-curtain-cart-shelf-card strong{font-size:12px}.nb-curtain-cart-shelf-card small{font-size:10px;color:#777;margin-top:3px}
.nb-curtain-cart-role-options{display:flex;gap:7px;overflow-x:auto;margin:8px 0 12px;padding-bottom:3px}.nb-curtain-cart-product-chip{min-width:170px;border:1px solid #ddd2c1;background:#fff;border-radius:11px;padding:6px;display:flex;align-items:center;gap:7px;text-align:right;cursor:pointer}.nb-curtain-cart-product-chip:hover{border-color:#b88b4a;background:#fffaf2}.nb-curtain-cart-product-chip img{width:38px;height:38px;object-fit:cover;border-radius:7px}.nb-curtain-cart-product-chip span{min-width:0}.nb-curtain-cart-product-chip strong,.nb-curtain-cart-product-chip small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nb-curtain-cart-product-chip strong{font-size:11px}.nb-curtain-cart-product-chip small{font-size:9px;color:#777;margin-top:2px}
.nb-curtain-negin-option{margin-top:12px;padding:10px 12px;border:1px dashed #c7a875;border-radius:11px;background:#fffaf0}.nb-curtain-negin-option label{display:flex;align-items:center;gap:8px;font-weight:700}.nb-curtain-negin-option small{display:block;margin:5px 25px 0 0;color:#76664f;font-size:11px}
.nb-cart-multi-curtain-cta{width:100%;margin:12px 0;border:1px solid #c7a875;border-radius:13px;background:#fff8e9;padding:11px 12px;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px;text-align:right;cursor:pointer}.nb-cart-multi-curtain-cta span{grid-row:1/3;color:var(--nb-accent,#bd8f49)}.nb-cart-multi-curtain-cta svg{width:22px;height:22px}.nb-cart-multi-curtain-cta b{color:var(--nb-text,#22252d)!important;font-size:13px;line-height:1.6}.nb-cart-multi-curtain-cta small{color:#76664f!important;font-size:10px;line-height:1.6;margin-top:2px}
.nb-raw-checkout-dialog{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px}.nb-raw-checkout-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.48)}.nb-raw-checkout-panel{position:relative;width:min(520px,100%);max-height:82vh;overflow:auto;background:#fff;border-radius:18px;padding:16px;box-shadow:0 24px 70px rgba(0,0,0,.22);direction:rtl}.nb-raw-checkout-head{display:flex;justify-content:space-between;gap:12px;align-items:start;border-bottom:1px solid #eee;padding-bottom:11px}.nb-raw-checkout-head strong,.nb-raw-checkout-head small{display:block}.nb-raw-checkout-head small{font-size:11px;color:#777;margin-top:4px}.nb-raw-checkout-head button{border:0;background:#f2f2f2;border-radius:50%;width:30px;height:30px;font-size:20px}.nb-raw-checkout-list{display:grid;gap:8px;margin:13px 0}.nb-raw-checkout-list label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e7e1d9;border-radius:11px}.nb-raw-checkout-list strong,.nb-raw-checkout-list small{display:block}.nb-raw-checkout-list small{font-size:10px;color:#777;margin-top:3px}.nb-raw-checkout-actions{display:flex;gap:8px;justify-content:flex-end}.nb-raw-checkout-actions button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer}.nb-raw-checkout-actions [data-continue]{background:#1f1f1f;color:#fff}.nb-raw-checkout-actions [data-cancel]{background:#f0f0f0}
@media(max-width:600px){.nb-curtain-cart-shelf-head{display:block}.nb-curtain-cart-shelf-head small{display:block;margin-top:3px}.nb-curtain-cart-shelf-card{min-width:155px}.nb-curtain-cart-product-chip{min-width:150px}.nb-raw-checkout-actions{display:grid;grid-template-columns:1fr 1fr}.nb-raw-checkout-actions button{width:100%}}


/* Homepage cascading filter — v2.8.3 */
.nb-filter-stage-hint {
    grid-column: 1 / -1;
    min-height: 46px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    color: var(--nb-muted);
    background: #faf8f4;
    border: 1px dashed var(--nb-border);
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.8;
}
.nb-filter-field[hidden] { display: none !important; }
.nb-dynamic-filter-fields.is-cascade-loading { position: relative; }
.nb-dynamic-filter-fields.is-cascade-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255,255,255,.55);
    border-radius: 12px;
    pointer-events: none;
}
.nb-filter-field.is-active-step { animation: nbFilterStepIn .22s ease both; }
.nb-filter-field select:disabled,
.nb-filter-field input:disabled { opacity: .62; cursor: not-allowed; background: #f3f3f3; }
@keyframes nbFilterStepIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Curtain conditional order workflow — v2.8.4 */
.nb-curtain-copy-step,.nb-curtain-onboarding{margin-top:14px;padding:14px;border:1px solid rgba(189,143,73,.35);border-radius:15px;background:linear-gradient(135deg,#fffdf8,#fbf6eb)}
.nb-curtain-copy-step>strong,.nb-curtain-onboarding>h4{display:block;margin:0 0 7px;font-size:13px}.nb-curtain-copy-step>p{margin:0;color:var(--nb-muted);font-size:10px;line-height:1.9}.nb-curtain-copy-step>div{margin-top:11px;display:flex;flex-wrap:wrap;gap:8px}.nb-curtain-copy-step button,.nb-curtain-build-form{min-height:42px;padding:0 14px;border:1px solid rgba(189,143,73,.5);border-radius:11px;background:#fff;color:var(--nb-accent);font:inherit;font-size:10px;font-weight:900;cursor:pointer}.nb-curtain-copy-step button:first-child,.nb-curtain-build-form{color:#fff;background:var(--nb-accent)}
.nb-curtain-onboarding>.nb-curtain-grid{align-items:end}.nb-curtain-setup-install-fields{display:contents}.nb-curtain-build-form{margin-top:12px}.nb-curtain-setup-error{margin:10px 0 0;padding:9px 11px;color:#9b1c1c;background:#fff1f1;border:1px solid #f1b7b7;border-radius:10px;font-size:10px;line-height:1.8}.nb-curtain-window.is-ready>.nb-curtain-window-head{border-bottom-color:rgba(189,143,73,.45)}
.nb-curtain-punch-side-note{margin:10px 0;padding:11px 12px;color:#704c17;background:#fff7e7;border:1px solid #ead0a0;border-radius:11px;font-size:10px;font-weight:750;line-height:1.9}
[data-curtain-details][hidden],[data-curtain-copy-step][hidden],[data-curtain-setup-step][hidden],[data-curtain-setup-install-fields][hidden]{display:none!important}
@media(max-width:700px){.nb-curtain-copy-step>div{display:grid;grid-template-columns:1fr}.nb-curtain-copy-step button,.nb-curtain-build-form{width:100%}}


/* ==================================================
 * Curtain builder mobile containment and action timing — v2.8.7
 * ================================================== */
[data-curtain-calculate][hidden] { display: none !important; }
.nb-central-container.is-curtain-builder-mode {
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder-view,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder > *,
.nb-central-container.is-curtain-builder-mode .nb-curtain-window-list,
.nb-central-container.is-curtain-builder-mode .nb-curtain-window,
.nb-central-container.is-curtain-builder-mode [data-curtain-details],
.nb-central-container.is-curtain-builder-mode .nb-curtain-section,
.nb-central-container.is-curtain-builder-mode .nb-curtain-onboarding,
.nb-central-container.is-curtain-builder-mode .nb-curtain-copy-step,
.nb-central-container.is-curtain-builder-mode .nb-curtain-grid,
.nb-central-container.is-curtain-builder-mode .nb-curtain-product-choice,
.nb-central-container.is-curtain-builder-mode .nb-curtain-component-toggles,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder-actions,
.nb-central-container.is-curtain-builder-mode .nb-curtain-quote,
.nb-central-container.is-curtain-builder-mode .nb-curtain-quote-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder *,
.nb-central-container.is-curtain-builder-mode .nb-central-toolbar *,
.nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap {
    min-width: 0;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder strong,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder small,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder p,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder span,
.nb-central-container.is-curtain-builder-mode .nb-curtain-builder label,
.nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap h2,
.nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap p {
    overflow-wrap: anywhere;
    word-break: normal;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-grid input,
.nb-central-container.is-curtain-builder-mode .nb-curtain-grid select,
.nb-central-container.is-curtain-builder-mode .nb-curtain-grid textarea,
.nb-central-container.is-curtain-builder-mode .nb-curtain-picker-search input {
    max-width: 100%;
    min-width: 0;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-cart-role-options,
.nb-central-container.is-curtain-builder-mode .nb-curtain-cart-shelf > [data-curtain-cart-shelf-items] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.nb-central-container.is-curtain-builder-mode .nb-curtain-cart-shelf-card { min-width: 180px; }
.nb-central-container.is-curtain-builder-mode .nb-curtain-cart-product-chip { min-width: 170px; }

@media (max-width: 768px) {
    .nb-central-container.is-curtain-builder-mode {
        width: calc(100% - 12px);
        margin-inline: auto;
        padding: 8px;
        border-radius: 14px;
    }
    .nb-central-container.is-curtain-builder-mode .nb-central-toolbar {
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding-bottom: 10px;
    }
    .nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap {
        width: 100%;
        max-width: 100%;
    }
    .nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap h2 {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
        white-space: normal;
    }
    .nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap p {
        font-size: 11px;
        line-height: 1.8;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-builder {
        gap: 12px;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-builder-note,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-cart-shelf,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-window,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-section,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-onboarding,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-copy-step {
        padding: 10px;
        border-radius: 12px;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-window-head {
        width: 100%;
        max-width: 100%;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-grid,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-product-choice,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-component-toggles {
        grid-template-columns: minmax(0,1fr);
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-grid input,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-grid select,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-grid textarea,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-picker-search input {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-grid select {
        text-overflow: ellipsis;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-build-form,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-add-window,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-builder-actions button,
    .nb-central-container.is-curtain-builder-mode .nb-curtain-product-choice > button {
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-cart-shelf-card {
        min-width: min(155px, 78vw);
    }
    .nb-central-container.is-curtain-builder-mode .nb-curtain-cart-product-chip {
        min-width: min(150px, 76vw);
    }
}


/* ==================================================
 * WooCommerce visual system — v2.8.8
 * ================================================== */
.nb-woocommerce-ui .related.products,
.nb-woocommerce-ui section.related,
.nb-woocommerce-ui .woocommerce-products-header,
.nb-woocommerce-ui .storefront-sorting { display: none !important; }

.nb-woocommerce-ui .woocommerce,
.nb-woocommerce-ui .woocommerce-page { color: var(--nb-text); }

/* Notices: success, information and validation errors */
.nb-woocommerce-ui .woocommerce-notices-wrapper:empty { display: none; }
.nb-woocommerce-ui .woocommerce-message,
.nb-woocommerce-ui .woocommerce-info,
.nb-woocommerce-ui .woocommerce-error,
.nb-woocommerce-ui .wc-block-components-notice-banner {
    position: relative;
    margin: 14px 0 !important;
    padding: 14px 54px 14px 16px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    color: var(--nb-text) !important;
    background: #fffaf1 !important;
    border: 1px solid rgba(189,143,73,.32) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 24px rgba(28,30,35,.05) !important;
    font-size: 13px;
    line-height: 1.9;
    list-style: none !important;
}
.nb-woocommerce-ui .woocommerce-message::before,
.nb-woocommerce-ui .woocommerce-info::before,
.nb-woocommerce-ui .woocommerce-error::before,
.nb-woocommerce-ui .wc-block-components-notice-banner::before {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    left: auto !important;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #fff !important;
    background: var(--nb-accent) !important;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 950;
    transform: translateY(-50%);
}
.nb-woocommerce-ui .woocommerce-error,
.nb-woocommerce-ui .wc-block-components-notice-banner.is-error {
    color: #8d2720 !important;
    background: #fff7f5 !important;
    border-color: #efc7c2 !important;
}
.nb-woocommerce-ui .woocommerce-error::before,
.nb-woocommerce-ui .wc-block-components-notice-banner.is-error::before {
    content: "!" !important;
    background: var(--nb-danger) !important;
}
.nb-woocommerce-ui .woocommerce-info::before { content: "i" !important; }
.nb-woocommerce-ui .woocommerce-message a.button,
.nb-woocommerce-ui .woocommerce-info a.button,
.nb-woocommerce-ui .woocommerce-error a.button {
    margin-inline-start: auto !important;
    float: none !important;
}

/* Shared WooCommerce buttons */
.nb-woocommerce-ui .woocommerce a.button,
.nb-woocommerce-ui .woocommerce button.button,
.nb-woocommerce-ui .woocommerce input.button,
.nb-woocommerce-ui .woocommerce #respond input#submit,
.nb-woocommerce-ui .wc-block-components-button {
    min-height: 46px !important;
    padding: 10px 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nb-accent) !important;
    border-radius: 12px !important;
    background: var(--nb-accent) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: filter .18s ease, transform .18s ease;
}
.nb-woocommerce-ui .woocommerce a.button:hover,
.nb-woocommerce-ui .woocommerce button.button:hover,
.nb-woocommerce-ui .woocommerce input.button:hover,
.nb-woocommerce-ui .woocommerce #respond input#submit:hover,
.nb-woocommerce-ui .wc-block-components-button:hover {
    color: #fff !important;
    filter: brightness(.94);
    transform: translateY(-1px);
}
.nb-woocommerce-ui .woocommerce a.button.alt,
.nb-woocommerce-ui .woocommerce button.button.alt,
.nb-woocommerce-ui .woocommerce input.button.alt { background: var(--nb-accent) !important; }
.nb-woocommerce-ui .woocommerce button.button:disabled,
.nb-woocommerce-ui .woocommerce button.button.disabled,
.nb-woocommerce-ui .woocommerce input.button:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Single product purchase row */
.nb-woocommerce-ui.single-product div.product form.cart {
    margin: 18px 0 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}
.nb-woocommerce-ui.single-product div.product form.cart .nb-fabric-order-rule {
    flex: 1 0 100%;
}
.nb-woocommerce-ui.single-product div.product form.cart .quantity.nb-qty-enhanced {
    min-height: 50px;
    grid-template-columns: 48px minmax(72px,94px) 48px;
    border-radius: 13px;
}
.nb-woocommerce-ui.single-product div.product form.cart .single_add_to_cart_button {
    min-width: 235px !important;
    min-height: 50px !important;
    margin: 0 !important;
    border-color: var(--nb-accent) !important;
    background: var(--nb-accent) !important;
    color: #fff !important;
    border-radius: 13px !important;
    font-size: 14px !important;
}
.nb-woocommerce-ui.single-product div.product form.cart .single_add_to_cart_button.is-loading {
    opacity: .72;
    pointer-events: none;
}

/* Classic cart and checkout cards */
.nb-woocommerce-ui.woocommerce-cart .woocommerce-cart-form,
.nb-woocommerce-ui.woocommerce-cart .cart-collaterals,
.nb-woocommerce-ui.woocommerce-checkout form.checkout,
.nb-woocommerce-ui.woocommerce-checkout #order_review,
.nb-woocommerce-ui.woocommerce-checkout .woocommerce-billing-fields,
.nb-woocommerce-ui.woocommerce-checkout .woocommerce-shipping-fields,
.nb-woocommerce-ui.woocommerce-checkout .woocommerce-additional-fields,
.nb-woocommerce-ui .woocommerce-form-coupon,
.nb-woocommerce-ui .woocommerce-form-login {
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid var(--nb-border) !important;
    border-radius: 17px !important;
    box-shadow: var(--nb-shadow) !important;
}
.nb-woocommerce-ui.woocommerce-cart table.shop_table,
.nb-woocommerce-ui.woocommerce-checkout table.shop_table {
    overflow: hidden;
    border: 1px solid var(--nb-border) !important;
    border-radius: 14px !important;
    background: #fff;
}
.nb-woocommerce-ui.woocommerce-cart table.shop_table th,
.nb-woocommerce-ui.woocommerce-cart table.shop_table td,
.nb-woocommerce-ui.woocommerce-checkout table.shop_table th,
.nb-woocommerce-ui.woocommerce-checkout table.shop_table td {
    padding: 13px 12px !important;
    border-color: #eee8df !important;
}
.nb-woocommerce-ui .woocommerce form .form-row input.input-text,
.nb-woocommerce-ui .woocommerce form .form-row textarea,
.nb-woocommerce-ui .woocommerce form .form-row select,
.nb-woocommerce-ui .select2-container .select2-selection--single,
.nb-woocommerce-ui .wc-block-components-text-input input,
.nb-woocommerce-ui .wc-block-components-combobox .wc-block-components-combobox-control input {
    min-height: 48px !important;
    padding: 10px 13px !important;
    color: var(--nb-text) !important;
    background: #fff !important;
    border: 1px solid var(--nb-border) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    box-shadow: none !important;
}
.nb-woocommerce-ui .woocommerce form .form-row textarea { min-height: 110px !important; }
.nb-woocommerce-ui .woocommerce form .form-row input.input-text:focus,
.nb-woocommerce-ui .woocommerce form .form-row textarea:focus,
.nb-woocommerce-ui .woocommerce form .form-row select:focus,
.nb-woocommerce-ui .select2-container--open .select2-selection--single {
    border-color: var(--nb-accent) !important;
    box-shadow: 0 0 0 4px rgba(189,143,73,.12) !important;
    outline: 0 !important;
}
.nb-woocommerce-ui .woocommerce-checkout-payment {
    padding: 14px !important;
    background: #fbf8f3 !important;
    border: 1px solid var(--nb-border) !important;
    border-radius: 14px !important;
}
.nb-woocommerce-ui #place_order { width: 100% !important; min-height: 54px !important; }

/* Empty-cart experience */
.nb-woocommerce-ui .nb-woo-empty-cart {
    max-width: 680px;
    min-height: 185px;
    margin: 26px auto 14px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    text-align: right;
    background: linear-gradient(135deg,#fffdf9,#faf3e7);
    border: 1px solid rgba(189,143,73,.32);
    border-radius: 20px;
    box-shadow: var(--nb-shadow);
}
.nb-woocommerce-ui .nb-woo-empty-cart-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    color: var(--nb-accent);
    background: #fff;
    border: 1px solid rgba(189,143,73,.22);
    border-radius: 50%;
}
.nb-woocommerce-ui .nb-woo-empty-cart-icon .nb-svg-icon { width: 29px; height: 29px; }
.nb-woocommerce-ui .nb-woo-empty-cart h2 { margin: 0 0 6px; color: var(--nb-text); font-size: 22px; font-weight: 950; }
.nb-woocommerce-ui .nb-woo-empty-cart p { margin: 0; color: var(--nb-muted); font-size: 13px; line-height: 1.9; }
.nb-woocommerce-ui .return-to-shop { text-align: center; }
.nb-woocommerce-ui .return-to-shop .button { min-width: 220px; }

/* WooCommerce Blocks cart/checkout */
.nb-woocommerce-ui .wc-block-cart,
.nb-woocommerce-ui .wc-block-checkout {
    color: var(--nb-text);
    font-family: inherit;
}
.nb-woocommerce-ui .wc-block-components-sidebar,
.nb-woocommerce-ui .wc-block-components-main,
.nb-woocommerce-ui .wc-block-components-order-summary,
.nb-woocommerce-ui .wp-block-woocommerce-cart-order-summary-block,
.nb-woocommerce-ui .wp-block-woocommerce-checkout-order-summary-block {
    border-color: var(--nb-border) !important;
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    .nb-woocommerce-ui .woocommerce-message,
    .nb-woocommerce-ui .woocommerce-info,
    .nb-woocommerce-ui .woocommerce-error,
    .nb-woocommerce-ui .wc-block-components-notice-banner {
        padding: 13px 48px 13px 12px !important;
        align-items: flex-start;
        flex-direction: column;
        font-size: 12px;
    }
    .nb-woocommerce-ui .woocommerce-message a.button,
    .nb-woocommerce-ui .woocommerce-info a.button,
    .nb-woocommerce-ui .woocommerce-error a.button { width: 100%; margin: 8px 0 0 !important; }
    .nb-woocommerce-ui.single-product div.product form.cart {
        display: grid !important;
        grid-template-columns: minmax(0,1fr);
    }
    .nb-woocommerce-ui.single-product div.product form.cart .quantity.nb-qty-enhanced,
    .nb-woocommerce-ui.single-product div.product form.cart .single_add_to_cart_button {
        width: 100% !important;
        min-width: 0 !important;
    }
    .nb-woocommerce-ui.woocommerce-cart .woocommerce-cart-form,
    .nb-woocommerce-ui.woocommerce-cart .cart-collaterals,
    .nb-woocommerce-ui.woocommerce-checkout form.checkout,
    .nb-woocommerce-ui.woocommerce-checkout #order_review,
    .nb-woocommerce-ui.woocommerce-checkout .woocommerce-billing-fields,
    .nb-woocommerce-ui.woocommerce-checkout .woocommerce-shipping-fields,
    .nb-woocommerce-ui.woocommerce-checkout .woocommerce-additional-fields {
        padding: 12px !important;
        border-radius: 14px !important;
    }
    .nb-woocommerce-ui .nb-woo-empty-cart {
        margin: 18px 0 12px;
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    .nb-woocommerce-ui .nb-woo-empty-cart h2 { font-size: 19px; }
}

/* ==================================================
 * Smart single-product return + branded confirmation — v2.8.9
 * ================================================== */
.nb-product-smart-back-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 10px;
    direction: rtl;
}
.nb-product-smart-back {
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--nb-text);
    background: #fffaf2;
    border: 1px solid rgba(189,143,73,.28);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(40,32,20,.07);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    text-decoration: none !important;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nb-product-smart-back:hover,
.nb-product-smart-back:focus-visible {
    color: var(--nb-accent);
    border-color: rgba(189,143,73,.58);
    box-shadow: 0 10px 28px rgba(40,32,20,.11);
    transform: translateY(-1px);
    outline: none;
}
.nb-product-smart-back-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
}
.nb-product-smart-back-icon .nb-svg-icon { width: 20px; height: 20px; }

.nb-confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 100200;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.nb-confirm-dialog.is-open {
    opacity: 1;
    visibility: visible;
}
.nb-confirm-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(22,24,29,.56);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: default;
}
.nb-confirm-panel {
    position: relative;
    width: min(440px, 100%);
    padding: 24px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 14px 16px;
    align-items: start;
    color: var(--nb-text);
    background: linear-gradient(145deg,#fff,#fffaf2);
    border: 1px solid rgba(189,143,73,.35);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0,0,0,.25);
    transform: translateY(10px) scale(.98);
    transition: transform .2s ease;
}
.nb-confirm-dialog.is-open .nb-confirm-panel { transform: translateY(0) scale(1); }
.nb-confirm-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #9b3a31;
    background: #fff2ef;
    border: 1px solid rgba(184,64,51,.2);
    border-radius: 50%;
    font-size: 25px;
    font-weight: 950;
}
.nb-confirm-copy { min-width: 0; }
.nb-confirm-copy h2 {
    margin: 0 0 7px;
    color: var(--nb-text);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.6;
}
.nb-confirm-copy p {
    margin: 0;
    color: var(--nb-muted);
    font-size: 13px;
    line-height: 1.9;
}
.nb-confirm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.35fr);
    gap: 10px;
    margin-top: 4px;
}
.nb-confirm-actions button {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.nb-confirm-actions button:hover:not(:disabled) { transform: translateY(-1px); }
.nb-confirm-actions button:focus-visible { outline: 3px solid rgba(189,143,73,.2); outline-offset: 2px; }
.nb-confirm-actions button:disabled { opacity: .58; cursor: wait; }
.nb-confirm-cancel {
    color: var(--nb-text);
    background: #fff;
    border: 1px solid var(--nb-border);
}
.nb-confirm-accept {
    color: #fff;
    background: #a64137;
    border: 1px solid #a64137;
    box-shadow: 0 8px 20px rgba(166,65,55,.2);
}

@media (max-width: 600px) {
    .nb-product-smart-back-wrap {
        width: calc(100% - 20px);
        margin: 10px auto 8px;
    }
    .nb-product-smart-back {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        font-size: 13px;
    }
    .nb-confirm-dialog { padding: 12px; align-items: flex-end; }
    .nb-confirm-panel {
        width: 100%;
        padding: 19px 16px 16px;
        grid-template-columns: 46px minmax(0,1fr);
        gap: 12px;
        border-radius: 20px 20px 14px 14px;
    }
    .nb-confirm-icon { width: 46px; height: 46px; font-size: 22px; }
    .nb-confirm-copy h2 { font-size: 17px; }
    .nb-confirm-copy p { font-size: 12px; }
    .nb-confirm-actions { grid-template-columns: 1fr; }
    .nb-confirm-accept { order: -1; }
}


/* ==================================================
 * UI polish: modal, product tabs, desktop cards, mobile services — v2.9.0
 * ================================================== */

/* The backdrop is deliberately not a button. Keep every interaction state
 * visually identical so theme-wide button hover rules cannot paint it blue. */
.nb-confirm-dialog > .nb-confirm-backdrop,
.nb-confirm-dialog > .nb-confirm-backdrop:hover,
.nb-confirm-dialog > .nb-confirm-backdrop:focus,
.nb-confirm-dialog > .nb-confirm-backdrop:focus-visible,
.nb-confirm-dialog > .nb-confirm-backdrop:active {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: transparent !important;
    background-color: rgba(22,24,29,.56) !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    cursor: default !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Branded single-product tabs: remove theme/WooCommerce blue rules. */
.nb-woocommerce-ui.single-product .woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 28px !important;
    border: 0 !important;
    background: transparent !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs {
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--nb-border) !important;
    background: transparent !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs::before,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs::after,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs::before,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs::after {
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--nb-border) !important;
    border-radius: 11px !important;
    background: #f8f5ef !important;
    box-shadow: none !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li::before,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li::after,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li::before,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li::after {
    display: none !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li a,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li a {
    padding: 9px 14px !important;
    display: block !important;
    color: var(--nb-text) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li.active,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li.active {
    border-color: rgba(189,143,73,.52) !important;
    background: var(--nb-accent-soft) !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li.active a,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li.active a,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.tabs li a:hover,
.nb-woocommerce-ui.single-product .woocommerce-tabs ul.wc-tabs li a:hover {
    color: var(--nb-accent) !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.nb-woocommerce-ui.single-product .woocommerce-tabs .panel {
    margin: 0 !important;
    padding: 22px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(189,143,73,.28) !important;
    background: transparent !important;
    box-shadow: none !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2,
.nb-woocommerce-ui.single-product .woocommerce-tabs .panel h2,
.nb-woocommerce-ui.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3,
.nb-woocommerce-ui.single-product .woocommerce-tabs .panel h3 {
    color: var(--nb-text) !important;
    border-color: var(--nb-border) !important;
}
.nb-woocommerce-ui.single-product .woocommerce-tabs .woocommerce-Tabs-panel a,
.nb-woocommerce-ui.single-product .woocommerce-tabs .panel a {
    color: var(--nb-accent) !important;
}

/* Denser desktop catalogue: four cards per row on wide screens. */
@media (min-width: 1180px) {
    .nb-product-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 12px;
    }
    .nb-product-card { border-radius: 15px; }
    .nb-product-card-media { aspect-ratio: 1 / .70; }
    .nb-product-card-body { padding: 10px 11px 11px; gap: 7px; }
    .nb-product-card-title { font-size: 12px; line-height: 1.65; }
    .nb-product-card-sku { font-size: 9px; }
    .nb-product-card-price { font-size: 11px; }
    .nb-product-card-order { padding-top: 7px; }
    .nb-product-card-order-rule { margin-bottom: 5px; font-size: 8px; }
    .nb-product-card-order-row { grid-template-columns: minmax(92px,.9fr) minmax(96px,1.1fr); gap: 6px; }
    .nb-quantity-control,
    .nb-card-add-to-cart { min-height: 35px; }
    .nb-product-card-button { min-height: 34px; font-size: 10px; }
}

/* Mobile service cards: reserve a real row for the badge instead of
 * absolutely positioning it over the title. */
@media (max-width: 768px) {
    .nb-service-card {
        min-height: 150px;
        padding: 12px;
        grid-template-columns: 44px minmax(0,1fr);
        grid-template-rows: auto minmax(0,1fr);
        grid-template-areas:
            "icon action"
            "icon copy";
        align-items: start;
        column-gap: 10px;
        row-gap: 6px;
    }
    .nb-service-card .nb-service-icon {
        grid-area: icon;
        width: 44px;
        height: 44px;
        margin-top: 24px;
    }
    .nb-service-card > span:nth-child(2) {
        grid-area: copy;
        min-width: 0;
        padding: 0;
    }
    .nb-service-card-action {
        position: static;
        grid-area: action;
        justify-self: start;
        align-self: start;
        margin: 0;
        padding: 3px 8px;
        line-height: 1.5;
        white-space: nowrap;
    }
    .nb-service-card strong { font-size: 12px; line-height: 1.75; }
    .nb-service-card small { font-size: 10px; line-height: 1.75; }
}

@media (max-width: 420px) {
    .nb-service-card {
        min-height: 158px;
        padding: 10px;
        grid-template-columns: 40px minmax(0,1fr);
        column-gap: 8px;
    }
    .nb-service-card .nb-service-icon {
        width: 40px;
        height: 40px;
        margin-top: 24px;
    }
    .nb-service-card-action { font-size: 8px; padding-inline: 6px; }
    .nb-service-card strong { font-size: 11px; }
    .nb-service-card small { font-size: 9px; }
}

/* ==================================================
 * Mobile filter + catalogue density and product meta — v2.9.1
 * ================================================== */

/* Product-category links on single-product pages must follow the brand,
 * never the theme/WooCommerce default blue link treatment. */
.nb-woocommerce-ui.single-product div.product .product_meta a,
.nb-woocommerce-ui.single-product div.product .posted_in a,
.nb-woocommerce-ui.single-product div.product .tagged_as a {
    color: var(--nb-text) !important;
    text-decoration: none !important;
    font-weight: 800;
    border-bottom: 1px solid rgba(189,143,73,.35);
    transition: color .18s ease, border-color .18s ease;
}
.nb-woocommerce-ui.single-product div.product .product_meta a:hover,
.nb-woocommerce-ui.single-product div.product .product_meta a:focus-visible,
.nb-woocommerce-ui.single-product div.product .posted_in a:hover,
.nb-woocommerce-ui.single-product div.product .posted_in a:focus-visible,
.nb-woocommerce-ui.single-product div.product .tagged_as a:hover,
.nb-woocommerce-ui.single-product div.product .tagged_as a:focus-visible {
    color: var(--nb-accent) !important;
    border-bottom-color: var(--nb-accent);
    outline: 0;
}

@media (max-width: 768px) {
    /* Compact the filter without reducing tap comfort. Generic theme form
     * margins are reset here because they were stretching every stage. */
    .nb-advanced-filter {
        padding: 12px;
    }
    .nb-filter-heading {
        gap: 9px;
        padding-bottom: 10px;
    }
    .nb-filter-heading-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }
    .nb-filter-heading strong {
        font-size: 14px;
        line-height: 1.5;
    }
    .nb-filter-heading small {
        margin-top: 1px;
        font-size: 10px;
        line-height: 1.6;
    }
    .nb-product-filter {
        padding-top: 10px;
    }
    .nb-product-filter > .nb-filter-field,
    .nb-dynamic-filter-fields > .nb-filter-field {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 4px;
    }
    .nb-dynamic-filter-fields {
        margin-top: 8px;
        column-gap: 8px;
        row-gap: 8px;
    }
    .nb-filter-field > label {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px;
        line-height: 1.6;
    }
    .nb-filter-field select,
    .nb-filter-field input {
        min-height: 42px;
        height: 42px;
        margin: 0 !important;
        padding-block: 6px;
        font-size: 16px;
        line-height: 1.35;
    }
    .nb-field-error:empty {
        display: none;
    }
    .nb-field-error {
        min-height: 0;
        margin: 0;
        line-height: 1.45;
    }
    .nb-filter-stage-hint {
        min-height: 40px;
        padding: 9px 11px;
        font-size: 10px;
        line-height: 1.65;
    }
    .nb-filter-actions {
        margin-top: 10px;
        gap: 7px;
    }
    .nb-filter-submit,
    .nb-filter-reset {
        min-height: 41px;
    }

    /* Shorter, equalised two-column product cards. */
    .nb-product-card {
        height: 100%;
    }
    .nb-product-card-media {
        aspect-ratio: 1 / .72;
    }
    .nb-product-card-body {
        padding: 8px;
        gap: 5px;
    }
    .nb-product-card-title {
        min-height: calc(2 * 1.55em);
        max-height: calc(2 * 1.55em);
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 10.5px;
        line-height: 1.55;
    }
    .nb-product-card-sku {
        min-height: 16px;
        margin: 0;
        font-size: 8.5px;
        line-height: 1.6;
    }
    .nb-product-card-meta {
        min-height: 29px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 6px;
    }
    .nb-product-card-price {
        font-size: 10px;
        line-height: 1.5;
    }
    .nb-product-card-stock {
        padding: 3px 6px;
        font-size: 8px;
    }
    .nb-product-card-order {
        margin-top: auto;
        padding-top: 6px;
    }
    .nb-product-card-order-rule {
        min-height: 0;
        margin-bottom: 4px;
        overflow: hidden;
        font-size: 8px;
        line-height: 1.55;
        white-space: nowrap;
    }
    .nb-product-card-order-rule > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nb-product-card-order-row {
        gap: 5px;
    }
    .nb-quantity-control,
    .nb-card-add-to-cart {
        min-height: 35px;
    }
    .nb-quantity-control {
        grid-template-columns: 31px minmax(34px,1fr) 31px;
    }
    .nb-qty-button {
        font-size: 16px;
    }
    .nb-qty-input {
        font-size: 16px;
    }
    .nb-card-add-to-cart {
        padding: 5px 6px;
        font-size: 9px;
        line-height: 1.45;
    }
    .nb-product-card-button {
        min-height: 34px;
        margin-top: 5px;
        font-size: 9.5px;
    }
}

@media (max-width: 480px) {
    .nb-dynamic-filter-fields {
        row-gap: 7px;
    }
    .nb-product-card-order-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .nb-product-card-order-rule {
        min-height: 0;
    }
}

/* Guided order revision — v2.14.34 */
.nb-curtain-order-revision-note{
    margin:14px 0;
    padding:14px;
    border:1px solid #e6c87d;
    border-radius:14px;
    background:#fffaf0;
    display:grid;
    gap:8px;
}
.nb-curtain-order-revision-note strong{font-size:15px;color:#17243b}
.nb-curtain-order-revision-note p{margin:0;line-height:1.9;color:#5f6470;font-size:13px}
.nb-curtain-order-revision-note textarea{
    width:100%;
    min-height:96px;
    resize:vertical;
    border:1px solid #d6d9de;
    border-radius:10px;
    padding:11px 12px;
    background:#fff;
    color:#17243b;
    box-sizing:border-box;
}
.nb-curtain-order-revision-note textarea:focus{outline:0;border-color:#c99631;box-shadow:0 0 0 3px rgba(201,150,49,.14)}
.nb-curtain-order-revision-reason{display:grid;gap:4px;padding:10px 12px;border-radius:10px;background:#fff;border:1px solid #ead9af}
.nb-curtain-order-revision-reason strong{font-size:13px;color:#9a6a12}
.nb-curtain-order-revision-reason span{line-height:1.9;color:#313844}

/* ==================================================
 * Unified order revision hub — v2.14.37
 * ================================================== */
.nb-order-revision-hub{direction:rtl;display:grid;gap:14px;max-width:980px;margin:0 auto;padding:4px 0 28px}
.nb-order-revision-alert,.nb-order-revision-section,.nb-order-revision-total{background:#fff;border:1px solid #e3e6ea;border-radius:16px;padding:16px;box-shadow:0 5px 18px rgba(21,31,48,.05)}
.nb-order-revision-alert{background:#fff9ea;border-color:#e8c873;display:grid;gap:7px}
.nb-order-revision-alert strong{font-size:17px;color:#8c5e0b}.nb-order-revision-alert p{margin:0;line-height:1.9;color:#252a31}.nb-order-revision-alert small{line-height:1.8;color:#6b6252}
.nb-order-revision-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.nb-order-revision-head>div{display:grid;gap:5px}.nb-order-revision-head strong,.nb-order-revision-section>strong{font-size:17px;color:#17243b}.nb-order-revision-head small,.nb-order-revision-section>p{margin:0;color:#69707d;line-height:1.8;font-size:13px}
.nb-order-revision-head>button,.nb-order-revision-curtain-button,.nb-order-revision-actions button,.nb-order-revision-picker form button{border:0;border-radius:11px;background:#172126;color:#fff;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 3px 0 rgba(0,0,0,.2);transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease}
.nb-order-revision-head>button:active,.nb-order-revision-curtain-button:active,.nb-order-revision-actions button:active,.nb-order-revision-picker form button:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.2)}
.nb-order-revision-head>span{border-radius:999px;background:#f2f3f5;padding:6px 10px;color:#666;font-size:12px}.nb-order-revision-head>span.is-ready{background:#e8f7ee;color:#176b3b}
.nb-order-revision-raw-card{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e4e7eb;border-radius:14px;padding:12px;margin-top:10px;transition:opacity .15s ease,background .15s ease}
.nb-order-revision-raw-card.is-removed{opacity:.55;background:#fff2f2}.nb-order-revision-raw-card>img{width:74px;height:74px;object-fit:cover;border-radius:11px;background:#f2f2f2}
.nb-order-revision-raw-info{display:grid;gap:6px}.nb-order-revision-raw-info strong{font-size:15px;color:#17243b}.nb-order-revision-raw-info small{color:#69707d;line-height:1.7}
.nb-order-revision-raw-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;justify-content:flex-end}.nb-order-revision-raw-controls label{display:grid;gap:5px;color:#5f6470;font-size:12px}.nb-order-revision-qty-wrap{min-width:178px}.nb-order-revision-qty-stepper{direction:ltr;display:grid;grid-template-columns:44px minmax(74px,1fr) 44px;align-items:stretch;border:1px solid #d7dce2;border-radius:11px;overflow:hidden;background:#fff}.nb-order-revision-raw-controls .nb-order-revision-qty-stepper input{width:100%;min-width:0;min-height:44px;border:0;border-right:1px solid #e2e5e9;border-left:1px solid #e2e5e9;border-radius:0;padding:7px 4px;text-align:center;font:inherit;font-weight:800;color:#17243b;background:#fff;appearance:textfield;-moz-appearance:textfield}.nb-order-revision-raw-controls .nb-order-revision-qty-stepper input::-webkit-outer-spin-button,.nb-order-revision-raw-controls .nb-order-revision-qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.nb-order-revision-raw-controls .nb-order-revision-qty-button{min-height:44px;border:0;border-radius:0;background:#f7f8fa;color:#17243b;padding:0;font-size:25px;font-weight:900;line-height:1;box-shadow:none;touch-action:manipulation;transition:background .12s ease,transform .08s ease}.nb-order-revision-raw-controls .nb-order-revision-qty-button:active:not(:disabled){background:#ead8a9;transform:scale(.94)}
.nb-order-revision-raw-controls>button{min-height:44px;border:1px solid #d7dce2;border-radius:10px;background:#fff;color:#27313a;padding:8px 12px;font:inherit;font-weight:700;cursor:pointer;box-shadow:none;transition:background .12s ease,transform .08s ease}.nb-order-revision-raw-controls>button:active:not(:disabled){transform:translateY(1px);background:#f4f5f6}.nb-order-revision-raw-controls button.is-secondary{color:#27313a}.nb-order-revision-raw-controls button.is-danger{color:#a32626;border-color:#edcccc}.nb-order-revision-raw-controls button:disabled{opacity:.45;cursor:not-allowed}
.nb-order-revision-section textarea{display:block;width:100%;box-sizing:border-box;margin-top:12px;border:1px solid #d7dce2;border-radius:12px;padding:12px;resize:vertical;font:inherit;line-height:1.9}.nb-order-revision-section textarea:focus{outline:0;border-color:#c99631;box-shadow:0 0 0 3px rgba(201,150,49,.14)}
.nb-order-revision-total{display:flex;align-items:center;justify-content:space-between;gap:12px}.nb-order-revision-total strong{font-size:20px;color:#17243b}
.nb-order-revision-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px}.nb-order-revision-actions button:first-child{background:#dcae3d;color:#171717}.nb-order-revision-actions button:last-child{background:#fff;color:#27313a;border:1px solid #d7dce2;box-shadow:none}.nb-order-revision-actions button:disabled,.nb-order-revision-actions button.is-loading{opacity:.65;cursor:wait;box-shadow:none;transform:translateY(1px)}
.nb-order-revision-message{border-radius:11px;padding:11px 13px;line-height:1.8}.nb-order-revision-message.is-error{background:#fff0f0;border:1px solid #e6a4a4;color:#8d1e1e}.nb-order-revision-message.is-success{background:#effbf4;border:1px solid #93d5af;color:#176b3b}.nb-order-revision-empty{margin:8px 0;color:#777}
.nb-order-revision-picker{position:fixed;inset:0;z-index:100040;display:grid;place-items:center;padding:16px}.nb-order-revision-picker[hidden]{display:none!important}.nb-order-revision-picker-backdrop{position:absolute;inset:0;background:rgba(12,18,28,.58)}.nb-order-revision-picker-dialog{position:relative;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;background:#fff;border-radius:17px;padding:15px;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.nb-order-revision-picker-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.nb-order-revision-picker-head strong{font-size:18px}.nb-order-revision-picker-head button{width:40px;height:40px;border:1px solid #ddd;border-radius:10px;background:#fff;font-size:24px;cursor:pointer}
.nb-order-revision-picker form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px}.nb-order-revision-picker form input{min-width:0;border:1px solid #d7dce2;border-radius:10px;padding:11px;font:inherit}
.nb-order-revision-result{width:100%;display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;text-align:right;border:1px solid #e2e5e9;background:#fff;border-radius:12px;padding:9px;margin-top:8px;cursor:pointer}.nb-order-revision-result:hover{border-color:#d3a93e;background:#fffaf0}.nb-order-revision-result img{width:58px;height:58px;border-radius:9px;object-fit:cover;background:#f2f2f2}.nb-order-revision-result span{display:grid;gap:3px}.nb-order-revision-result small{color:#707681}.nb-order-revision-result b{color:#8b6413}
@media(max-width:720px){.nb-order-revision-hub{padding:0 10px 24px}.nb-order-revision-alert,.nb-order-revision-section,.nb-order-revision-total{padding:13px;border-radius:13px}.nb-order-revision-head{display:grid}.nb-order-revision-head>button{width:100%}.nb-order-revision-raw-card{grid-template-columns:58px 1fr}.nb-order-revision-raw-card>img{width:58px;height:58px}.nb-order-revision-raw-controls{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:end;justify-content:stretch}.nb-order-revision-qty-wrap{grid-column:1/-1;width:100%;min-width:0}.nb-order-revision-qty-stepper{grid-template-columns:48px minmax(0,1fr) 48px}.nb-order-revision-raw-controls>button{width:100%;min-width:0}.nb-order-revision-actions{grid-template-columns:1fr}.nb-order-revision-total{align-items:flex-start}.nb-order-revision-picker{padding:8px}.nb-order-revision-picker-dialog{border-radius:14px;max-height:90vh}}

/* ==================================================
 * Closed in-page fabric browser for revisions — v2.14.37
 * ================================================== */
body.nb-revision-picker-open{overflow:hidden!important;overscroll-behavior:none}
.nb-order-revision-picker{position:fixed;inset:0;z-index:100080;display:block;padding:0}
.nb-order-revision-picker[hidden]{display:none!important}
.nb-order-revision-picker-backdrop{position:absolute;inset:0;background:rgba(8,15,25,.68);backdrop-filter:blur(3px)}
.nb-order-revision-picker-dialog{position:absolute;inset:14px max(14px,calc((100vw - 1120px)/2));width:auto;max-height:none;overflow:hidden;padding:0;border:1px solid rgba(255,255,255,.6);border-radius:22px;background:#f7f8fa;box-shadow:0 28px 90px rgba(0,0,0,.35);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;direction:rtl}
.nb-order-revision-picker-head{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:12px;margin:0;padding:14px 16px;background:#fff;border-bottom:1px solid #e7e9ed;position:relative;z-index:3}
.nb-order-revision-picker-head>div{display:grid;gap:4px;min-width:0;text-align:center}
.nb-order-revision-picker-head strong{font-size:19px;color:#17243b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-order-revision-picker-head small{font-size:12px;color:#727986;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-order-revision-picker-head .nb-order-revision-picker-back,.nb-order-revision-picker-head .nb-order-revision-picker-close{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e0e3e7;border-radius:13px;background:#fff;color:#17243b;font:inherit;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(22,31,47,.06);transition:transform .1s ease,background .1s ease}
.nb-order-revision-picker-head .nb-order-revision-picker-back:active,.nb-order-revision-picker-head .nb-order-revision-picker-close:active{transform:scale(.94);background:#f1f3f5}
.nb-order-revision-picker-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 16px;background:#fff;border-bottom:1px solid #e7e9ed;position:relative;z-index:2}
.nb-order-revision-picker-toolbar form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0}
.nb-order-revision-picker-toolbar form input{min-width:0;min-height:46px;border:1px solid #d8dde4;border-radius:12px;padding:10px 13px;font:inherit;background:#f9fafb;color:#17243b}
.nb-order-revision-picker-toolbar form input:focus{outline:0;border-color:#c99631;box-shadow:0 0 0 3px rgba(201,150,49,.14);background:#fff}
.nb-order-revision-picker-toolbar form button,.nb-order-revision-picker-clear,.nb-order-revision-picker-more{min-height:46px;border:0;border-radius:12px;padding:10px 16px;background:#172126;color:#fff;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 3px 0 rgba(0,0,0,.18);transition:transform .1s ease,box-shadow .1s ease}
.nb-order-revision-picker-toolbar form button:active,.nb-order-revision-picker-clear:active,.nb-order-revision-picker-more:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.nb-order-revision-picker-clear{background:#fff;color:#27313a;border:1px solid #d8dde4;box-shadow:none}
.nb-order-revision-picker-content{min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.nb-order-revision-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}
.nb-order-revision-category-card{display:grid;grid-template-columns:82px minmax(0,1fr) 28px;align-items:center;gap:12px;min-height:106px;border:1px solid #e0e4e9;border-radius:16px;padding:11px;background:#fff;text-align:right;font:inherit;color:#17243b;cursor:pointer;box-shadow:0 5px 18px rgba(20,31,49,.05);transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
.nb-order-revision-category-card:hover{border-color:#d1ae58;box-shadow:0 8px 24px rgba(20,31,49,.09)}
.nb-order-revision-category-card:active{transform:scale(.985)}
.nb-order-revision-category-media{width:82px;height:82px;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#f5ead0,#eee3c8);display:grid;place-items:center}
.nb-order-revision-category-media img{width:100%;height:100%;object-fit:cover;display:block}
.nb-order-revision-category-fallback{font-size:30px;color:#b78925}
.nb-order-revision-category-copy{display:grid;gap:7px;min-width:0}
.nb-order-revision-category-copy strong{font-size:15px;line-height:1.7;color:#17243b}
.nb-order-revision-category-copy small{font-size:12px;line-height:1.7;color:#737b87}
.nb-order-revision-category-arrow{font-size:30px;color:#c18d20;text-align:center}
.nb-order-revision-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-content:start}
.nb-order-revision-product-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;border:1px solid #e0e4e9;border-radius:17px;padding:12px;background:#fff;box-shadow:0 5px 18px rgba(20,31,49,.05);min-width:0}
.nb-order-revision-product-card.is-selected{border-color:#d9b24f;background:#fffcf4}
.nb-order-revision-product-media{width:150px;aspect-ratio:1/1;border-radius:13px;overflow:hidden;background:#f1f2f4}
.nb-order-revision-product-media img{width:100%;height:100%;object-fit:cover;display:block}
.nb-order-revision-product-body{display:grid;grid-template-rows:auto auto auto 1fr;gap:8px;min-width:0;align-content:start}
.nb-order-revision-product-body>strong{font-size:16px;line-height:1.7;color:#17243b}
.nb-order-revision-product-body>small{font-size:12px;color:#707783;line-height:1.6}
.nb-order-revision-product-chips{display:flex;flex-wrap:wrap;gap:6px}
.nb-order-revision-product-chips span{border:1px solid #e2e5e9;background:#f7f8fa;border-radius:999px;padding:4px 8px;font-size:11px;color:#59616d}
.nb-order-revision-product-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:auto}
.nb-order-revision-product-price{font-size:15px;color:#8d6412;line-height:1.7}
.nb-order-revision-product-select{min-height:42px;border:0;border-radius:11px;padding:8px 13px;background:#dcae3d;color:#171717;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #b78925;transition:transform .1s ease,box-shadow .1s ease}
.nb-order-revision-product-select:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #b78925}
.nb-order-revision-product-select:disabled{background:#eceef1;color:#7a8089;box-shadow:none;cursor:not-allowed}
.nb-order-revision-picker-more{display:block;margin:16px auto 2px;background:#fff;color:#27313a;border:1px solid #d8dde4;box-shadow:none}
.nb-order-revision-picker-foot{padding:10px 16px;background:#fff;border-top:1px solid #e7e9ed;text-align:center;color:#707783;font-size:12px;line-height:1.8}
.nb-order-revision-picker-empty{grid-column:1/-1;min-height:170px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #d9dde3;border-radius:15px;background:#fff;color:#6b727e;padding:20px;text-align:center;line-height:1.9}
.nb-order-revision-picker-empty.is-error,.nb-order-revision-picker-notice.is-error{color:#932626;border-color:#e8b3b3;background:#fff4f4}
.nb-order-revision-picker-notice{grid-column:1/-1;border:1px solid #ddd;border-radius:12px;padding:10px 12px;line-height:1.8;margin-bottom:8px}
.nb-order-revision-picker-spinner{width:22px;height:22px;border:3px solid #e3e6ea;border-top-color:#c18d20;border-radius:50%;animation:nbRevisionSpin .75s linear infinite}
@keyframes nbRevisionSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.nb-order-revision-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nb-order-revision-product-grid{grid-template-columns:1fr}.nb-order-revision-product-card{grid-template-columns:128px minmax(0,1fr)}.nb-order-revision-product-media{width:128px}}
@media(max-width:600px){.nb-order-revision-picker-dialog{inset:0;border:0;border-radius:0;height:100dvh}.nb-order-revision-picker-head{grid-template-columns:42px minmax(0,1fr) 42px;padding:10px 12px}.nb-order-revision-picker-head .nb-order-revision-picker-back,.nb-order-revision-picker-head .nb-order-revision-picker-close{width:40px;height:40px;border-radius:11px}.nb-order-revision-picker-head strong{font-size:17px}.nb-order-revision-picker-toolbar{grid-template-columns:1fr;padding:10px 12px}.nb-order-revision-picker-clear{width:100%}.nb-order-revision-picker-content{padding:12px}.nb-order-revision-category-grid{grid-template-columns:1fr;gap:9px}.nb-order-revision-category-card{grid-template-columns:70px minmax(0,1fr) 24px;min-height:92px;padding:9px}.nb-order-revision-category-media{width:70px;height:70px}.nb-order-revision-product-card{grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px}.nb-order-revision-product-media{width:96px}.nb-order-revision-product-body>strong{font-size:14px}.nb-order-revision-product-bottom{grid-template-columns:1fr;gap:7px}.nb-order-revision-product-select{width:100%}.nb-order-revision-picker-foot{padding:8px 12px;font-size:11px}}

/* ==================================================
 * Isolated order-revision application — v2.14.38
 * ================================================== */
html.nb-order-revision-session,
body.nb-order-revision-session{width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none;background:#f4f2ed!important}
body.nb-order-revision-session #wpadminbar{display:none!important}
body.nb-order-revision-session #naghshbaf-app{
    position:fixed!important;inset:0!important;z-index:2147482000!important;
    width:100vw!important;height:100dvh!important;max-width:none!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
    display:block!important;background:#f5f3ef!important;color:#17243b;
}
body.nb-order-revision-session #naghshbaf-app>.nb-control-zone,
body.nb-order-revision-session #naghshbaf-app>.nb-service-templates{display:none!important}
body.nb-order-revision-session #nb-central-container{
    position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;
    min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;background:#f5f3ef!important;
    display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;
}
body.nb-order-revision-session .nb-central-toolbar{
    min-height:78px!important;margin:0!important;padding:13px max(18px,calc((100vw - 820px)/2))!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
    border:0!important;border-bottom:1px solid #e5ded1!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 4px 20px rgba(32,37,43,.06)!important;position:relative!important;z-index:20!important;
}
body.nb-order-revision-session .nb-central-heading-wrap{width:100%;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;gap:12px!important}
body.nb-order-revision-session .nb-central-heading-wrap:before{
    content:'✓';width:46px;height:46px;border-radius:15px;display:grid;place-items:center;
    background:#efe2bd;color:#8a6415;font-size:22px;font-weight:900;box-shadow:inset 0 0 0 1px #e2cb8d;
}
body.nb-order-revision-session #nb-central-back{display:none!important}
body.nb-order-revision-session .nb-central-heading-wrap>div{min-width:0;display:grid;gap:3px}
body.nb-order-revision-session #nb-central-title{margin:0!important;font-size:20px!important;line-height:1.5!important;color:#17243b!important}
body.nb-order-revision-session #nb-central-subtitle{margin:0!important;font-size:12px!important;line-height:1.7!important;color:#69707a!important}
body.nb-order-revision-session #nb-central-loading{position:absolute;inset:78px 0 0;z-index:15;background:rgba(245,243,239,.88)}
body.nb-order-revision-session #nb-category-cards,
body.nb-order-revision-session #nb-products-view,
body.nb-order-revision-session #nb-service-view{display:none!important}
body.nb-order-revision-session #nb-curtain-builder-view{
    display:block!important;min-height:0!important;height:100%!important;overflow:auto!important;
    padding:18px max(14px,calc((100vw - 820px)/2)) 42px!important;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#f5f3ef;
}
body.nb-order-revision-session .nb-order-revision-hub{max-width:820px!important;margin:0 auto!important;padding:0!important;gap:12px!important}
body.nb-order-revision-session .nb-order-revision-alert,
body.nb-order-revision-session .nb-order-revision-section,
body.nb-order-revision-session .nb-order-revision-total{
    border-color:#e4ded2!important;border-radius:20px!important;box-shadow:0 7px 24px rgba(28,35,43,.055)!important;
}
body.nb-order-revision-session .nb-order-revision-alert{background:linear-gradient(145deg,#fffaf0,#fff7e3)!important;border-color:#e4c77e!important}
body.nb-order-revision-session .nb-order-revision-actions{grid-template-columns:1fr!important;position:sticky;bottom:0;z-index:10;padding:10px 0 2px;background:linear-gradient(to top,#f5f3ef 72%,rgba(245,243,239,0))}
body.nb-order-revision-session .nb-order-revision-actions button{min-height:54px!important;border-radius:15px!important;font-size:15px!important}
body.nb-order-revision-session .nb-order-revision-picker,
body.nb-order-revision-session .nb-order-revision-picker *{box-sizing:border-box;min-width:0}
body.nb-order-revision-session .nb-order-revision-picker-dialog{background:#f5f6f8!important}
body.nb-order-revision-session .nb-order-revision-picker-head,
body.nb-order-revision-session .nb-order-revision-picker-toolbar{background:#fff!important}
body.nb-order-revision-session .nb-order-revision-picker-content{overflow-x:hidden!important;scrollbar-gutter:stable}
body.nb-order-revision-session .nb-order-revision-product-price{direction:rtl;unicode-bidi:plaintext;white-space:normal;color:#926812!important}
body.nb-order-revision-session .nb-order-revision-product-select{white-space:nowrap}
body.nb-order-revision-session .nb-order-revision-picker-foot{background:#fffdf8!important;color:#655f55!important}

@media(max-width:720px){
    body.nb-order-revision-session .nb-central-toolbar{min-height:72px!important;padding:10px 14px!important}
    body.nb-order-revision-session .nb-central-heading-wrap{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important}
    body.nb-order-revision-session .nb-central-heading-wrap:before{width:42px;height:42px;border-radius:13px;font-size:19px}
    body.nb-order-revision-session #nb-central-title{font-size:17px!important}
    body.nb-order-revision-session #nb-central-subtitle{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    body.nb-order-revision-session #nb-curtain-builder-view{padding:12px 10px 30px!important}
    body.nb-order-revision-session .nb-order-revision-alert,
    body.nb-order-revision-session .nb-order-revision-section,
    body.nb-order-revision-session .nb-order-revision-total{padding:14px!important;border-radius:17px!important}
    body.nb-order-revision-session .nb-order-revision-head{gap:9px!important;margin-bottom:10px!important}
    body.nb-order-revision-session .nb-order-revision-raw-card{grid-template-columns:68px minmax(0,1fr)!important;padding:11px!important;border-radius:17px!important;gap:10px!important}
    body.nb-order-revision-session .nb-order-revision-raw-card>img{width:68px!important;height:68px!important;border-radius:13px!important}
    body.nb-order-revision-session .nb-order-revision-raw-info strong{font-size:14px!important;line-height:1.65!important}
    body.nb-order-revision-session .nb-order-revision-raw-info small{font-size:11px!important;line-height:1.65!important}
    body.nb-order-revision-session .nb-order-revision-raw-controls{grid-template-columns:1fr 1fr!important;gap:8px!important}
    body.nb-order-revision-session .nb-order-revision-qty-stepper{grid-template-columns:50px minmax(0,1fr) 50px!important;border-radius:13px!important}
    body.nb-order-revision-session .nb-order-revision-raw-controls>button{min-height:46px!important;border-radius:12px!important}

    body.nb-order-revision-session .nb-order-revision-picker-dialog{inset:0!important;width:100%!important;height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important}
    body.nb-order-revision-session .nb-order-revision-picker-head{grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important;padding:9px 10px!important;min-height:64px}
    body.nb-order-revision-session .nb-order-revision-picker-head>div{text-align:right!important;padding-inline:2px}
    body.nb-order-revision-session .nb-order-revision-picker-head strong{font-size:16px!important;line-height:1.45!important}
    body.nb-order-revision-session .nb-order-revision-picker-head small{font-size:10.5px!important;line-height:1.5!important}
    body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-back,
    body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-close{width:40px!important;height:40px!important;border-radius:12px!important;font-size:25px!important}
    body.nb-order-revision-session .nb-order-revision-picker-toolbar{padding:9px 10px!important;gap:7px!important}
    body.nb-order-revision-session .nb-order-revision-picker-toolbar form{grid-template-columns:minmax(0,1fr) 92px!important;gap:7px!important}
    body.nb-order-revision-session .nb-order-revision-picker-toolbar form input,
    body.nb-order-revision-session .nb-order-revision-picker-toolbar form button{min-height:44px!important;border-radius:12px!important}
    body.nb-order-revision-session .nb-order-revision-picker-toolbar form button{padding:8px 10px!important;font-size:13px!important}
    body.nb-order-revision-session .nb-order-revision-picker-content{padding:10px!important}
    body.nb-order-revision-session .nb-order-revision-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
    body.nb-order-revision-session .nb-order-revision-category-card{grid-template-columns:1fr!important;grid-template-rows:84px auto!important;gap:8px!important;min-height:0!important;padding:8px!important;border-radius:15px!important;align-items:start!important}
    body.nb-order-revision-session .nb-order-revision-category-media{width:100%!important;height:84px!important;border-radius:11px!important}
    body.nb-order-revision-session .nb-order-revision-category-copy{gap:3px!important;text-align:center!important}
    body.nb-order-revision-session .nb-order-revision-category-copy strong{font-size:13px!important;line-height:1.55!important}
    body.nb-order-revision-session .nb-order-revision-category-copy small{font-size:10px!important;line-height:1.5!important}
    body.nb-order-revision-session .nb-order-revision-category-arrow{display:none!important}
    body.nb-order-revision-session .nb-order-revision-product-grid{grid-template-columns:1fr!important;gap:10px!important}
    body.nb-order-revision-session .nb-order-revision-product-card{grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;border-radius:17px!important;align-items:start!important;overflow:hidden!important}
    body.nb-order-revision-session .nb-order-revision-product-media{width:92px!important;height:92px!important;aspect-ratio:auto!important;border-radius:12px!important}
    body.nb-order-revision-session .nb-order-revision-product-body{gap:5px!important;grid-template-rows:auto auto auto auto!important}
    body.nb-order-revision-session .nb-order-revision-product-body>strong{font-size:13.5px!important;line-height:1.55!important}
    body.nb-order-revision-session .nb-order-revision-product-body>small{font-size:10.5px!important}
    body.nb-order-revision-session .nb-order-revision-product-chips{gap:4px!important}
    body.nb-order-revision-session .nb-order-revision-product-chips span{font-size:9.5px!important;padding:3px 6px!important}
    body.nb-order-revision-session .nb-order-revision-product-bottom{grid-template-columns:1fr!important;gap:6px!important;margin-top:3px!important}
    body.nb-order-revision-session .nb-order-revision-product-price{font-size:13px!important;line-height:1.5!important}
    body.nb-order-revision-session .nb-order-revision-product-select{width:100%!important;min-height:42px!important;border-radius:11px!important;padding:7px 9px!important;font-size:13px!important}
    body.nb-order-revision-session .nb-order-revision-picker-foot{padding:7px 10px!important;font-size:10px!important;line-height:1.6!important}
}

@media(max-width:380px){
    body.nb-order-revision-session .nb-order-revision-category-grid{grid-template-columns:1fr!important}
    body.nb-order-revision-session .nb-order-revision-category-card{grid-template-columns:68px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center!important;text-align:right!important}
    body.nb-order-revision-session .nb-order-revision-category-media{width:68px!important;height:68px!important}
    body.nb-order-revision-session .nb-order-revision-category-copy{text-align:right!important}
    body.nb-order-revision-session .nb-order-revision-product-card{grid-template-columns:82px minmax(0,1fr)!important}
    body.nb-order-revision-session .nb-order-revision-product-media{width:82px!important;height:82px!important}
}

/* ==================================================
 * Refined closed revision browser — v2.14.39
 * ================================================== */
body.nb-order-revision-session{
    --nb-revision-ink:#1b252b;
    --nb-revision-muted:#70767a;
    --nb-revision-gold:#c79a49;
    --nb-revision-gold-dark:#9b6c1d;
    --nb-revision-gold-soft:#f6ecd8;
    --nb-revision-warm:#faf8f3;
    --nb-revision-line:#e8e0d3;
}
body.nb-order-revision-session .nb-order-revision-picker-dialog{
    background:var(--nb-revision-warm)!important;
    border-color:#eadfcd!important;
}
body.nb-order-revision-session .nb-order-revision-picker-head{
    background:#fffdf9!important;
    border-bottom:1px solid var(--nb-revision-line)!important;
}
body.nb-order-revision-session .nb-order-revision-picker-head strong{
    color:var(--nb-revision-ink)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-picker-head small{
    color:#817666!important;
}
body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-back,
body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-close{
    border-color:#e7dcc8!important;
    background:#fffaf1!important;
    color:var(--nb-revision-gold-dark)!important;
    box-shadow:none!important;
}
body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-back:active,
body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-close:active{
    background:var(--nb-revision-gold-soft)!important;
    transform:scale(.94)!important;
}
body.nb-order-revision-session .nb-order-revision-picker-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    background:#fffdf9!important;
    border-bottom:1px solid var(--nb-revision-line)!important;
}
body.nb-order-revision-session .nb-order-revision-picker-search-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:center;
}
body.nb-order-revision-session .nb-order-revision-picker-search-row form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 84px!important;
    gap:7px!important;
    margin:0!important;
}
body.nb-order-revision-session .nb-order-revision-picker-toolbar form input{
    min-height:40px!important;
    border-color:#e4dccf!important;
    border-radius:10px!important;
    background:#fff!important;
    padding:8px 11px!important;
    font-size:13px!important;
}
body.nb-order-revision-session .nb-order-revision-picker-toolbar form input:focus{
    border-color:var(--nb-revision-gold)!important;
    box-shadow:0 0 0 3px rgba(199,154,73,.12)!important;
}
body.nb-order-revision-session .nb-order-revision-picker-toolbar form button,
body.nb-order-revision-session .nb-order-revision-picker-clear,
body.nb-order-revision-session .nb-order-revision-picker-more{
    min-height:40px!important;
    border-radius:10px!important;
    padding:7px 12px!important;
    background:var(--nb-revision-ink)!important;
    color:#fff!important;
    box-shadow:0 2px 0 rgba(0,0,0,.16)!important;
    font-size:12.5px!important;
    font-weight:800!important;
}
body.nb-order-revision-session .nb-order-revision-picker-clear,
body.nb-order-revision-session .nb-order-revision-picker-more{
    background:#fff!important;
    color:var(--nb-revision-ink)!important;
    border:1px solid #dfd6c7!important;
    box-shadow:none!important;
}
body.nb-order-revision-session .nb-order-revision-picker-trail{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding:1px 0 2px;
    direction:rtl;
}
body.nb-order-revision-session .nb-order-revision-picker-trail::-webkit-scrollbar{display:none}
body.nb-order-revision-session .nb-order-revision-picker-trail button,
body.nb-order-revision-session .nb-order-revision-picker-trail span{
    flex:0 0 auto;
    min-height:28px;
    border:1px solid #e5dbc9;
    border-radius:999px;
    padding:4px 9px;
    background:#fff;
    color:#62594e;
    font:inherit;
    font-size:10.5px;
    line-height:1.4;
    white-space:nowrap;
}
body.nb-order-revision-session .nb-order-revision-picker-trail button{cursor:pointer}
body.nb-order-revision-session .nb-order-revision-picker-trail button:active{
    background:var(--nb-revision-gold-soft);
    transform:scale(.97);
}
body.nb-order-revision-session .nb-order-revision-picker-trail .is-current{
    border-color:#dfc17d;
    background:var(--nb-revision-gold-soft);
    color:#805812;
    font-weight:800;
}
body.nb-order-revision-session .nb-order-revision-picker-trail i{
    flex:0 0 auto;
    color:#b49b70;
    font-style:normal;
    font-size:16px;
}
body.nb-order-revision-session .nb-order-revision-picker-content{
    background:var(--nb-revision-warm)!important;
}
body.nb-order-revision-session .nb-order-revision-category-card{
    border-color:#e7dfd2!important;
    border-radius:15px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(62,49,28,.045)!important;
}
body.nb-order-revision-session .nb-order-revision-category-card:hover{
    border-color:#d8b66e!important;
    box-shadow:0 7px 18px rgba(94,68,22,.075)!important;
}
body.nb-order-revision-session .nb-order-revision-category-media{
    background:linear-gradient(145deg,#f8efdE,#f0e3ca)!important;
}
body.nb-order-revision-session .nb-order-revision-category-fallback{
    color:var(--nb-revision-gold)!important;
}
body.nb-order-revision-session .nb-order-revision-category-copy strong{
    color:var(--nb-revision-ink)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-category-copy small{
    color:var(--nb-revision-muted)!important;
}
body.nb-order-revision-session .nb-order-revision-category-arrow{
    color:var(--nb-revision-gold)!important;
}
body.nb-order-revision-session .nb-order-revision-product-card{
    border-color:#e7dfd2!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(62,49,28,.045)!important;
}
body.nb-order-revision-session .nb-order-revision-product-card.is-selected{
    border-color:#d7b465!important;
    background:#fffaf0!important;
}
body.nb-order-revision-session .nb-order-revision-product-body>strong{
    color:var(--nb-revision-ink)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-product-chips span{
    border-color:#e8e0d4!important;
    background:#faf8f4!important;
    color:#6b6359!important;
}
body.nb-order-revision-session .nb-order-revision-product-price{
    color:var(--nb-revision-gold-dark)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-product-select{
    min-height:38px!important;
    border-radius:10px!important;
    padding:6px 12px!important;
    background:var(--nb-revision-gold)!important;
    color:#211b12!important;
    box-shadow:0 2px 0 #a97a2d!important;
    font-size:12.5px!important;
    font-weight:900!important;
}
body.nb-order-revision-session .nb-order-revision-product-select:active:not(:disabled){
    transform:translateY(1px)!important;
    box-shadow:0 1px 0 #a97a2d!important;
}
body.nb-order-revision-session .nb-order-revision-product-select:disabled{
    background:#eeeae2!important;
    color:#8a8378!important;
    box-shadow:none!important;
}
body.nb-order-revision-session .nb-order-revision-picker-foot{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:40px;
    padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px))!important;
    background:#fffaf0!important;
    border-top:1px solid #eadfc9!important;
    color:#695f51!important;
    font-size:10.5px!important;
    line-height:1.7!important;
}
body.nb-order-revision-session .nb-order-revision-picker-foot:before{
    content:'✓';
    width:21px;
    height:21px;
    flex:0 0 21px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--nb-revision-gold-soft);
    color:var(--nb-revision-gold-dark);
    font-weight:900;
}
body.nb-order-revision-session .nb-order-revision-actions button{
    min-height:48px!important;
    border-radius:13px!important;
    font-size:14px!important;
    box-shadow:0 2px 0 rgba(0,0,0,.14)!important;
}

@media(max-width:720px){
    body.nb-order-revision-session .nb-order-revision-picker-head{
        min-height:58px!important;
        padding:7px 10px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-back,
    body.nb-order-revision-session .nb-order-revision-picker-head .nb-order-revision-picker-close{
        width:36px!important;
        height:36px!important;
        border-radius:10px!important;
        font-size:23px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-head strong{font-size:15px!important}
    body.nb-order-revision-session .nb-order-revision-picker-head small{font-size:9.5px!important}
    body.nb-order-revision-session .nb-order-revision-picker-toolbar{
        padding:8px 10px!important;
        gap:7px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-search-row{
        grid-template-columns:1fr!important;
        gap:6px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-search-row form{
        grid-template-columns:minmax(0,1fr) 78px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-clear{width:100%!important}
    body.nb-order-revision-session .nb-order-revision-picker-content{padding:9px!important}
    body.nb-order-revision-session .nb-order-revision-category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:8px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-card{
        grid-template-rows:78px auto!important;
        padding:7px!important;
        border-radius:13px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-media{
        height:78px!important;
        border-radius:10px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-copy strong{
        font-size:12.5px!important;
        line-height:1.55!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-copy small{
        font-size:9.5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-grid{gap:8px!important}
    body.nb-order-revision-session .nb-order-revision-product-card{
        grid-template-columns:84px minmax(0,1fr)!important;
        gap:9px!important;
        padding:9px!important;
        border-radius:14px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-media{
        width:84px!important;
        height:84px!important;
        border-radius:11px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-body{gap:4px!important}
    body.nb-order-revision-session .nb-order-revision-product-body>strong{
        font-size:13px!important;
        line-height:1.5!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-bottom{
        grid-template-columns:minmax(0,1fr) auto!important;
        align-items:center!important;
        gap:7px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-price{
        font-size:11.5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-select{
        width:auto!important;
        min-width:120px!important;
        min-height:36px!important;
        padding:5px 9px!important;
        font-size:11.5px!important;
    }
}

@media(max-width:390px){
    body.nb-order-revision-session .nb-order-revision-category-grid{grid-template-columns:1fr!important}
    body.nb-order-revision-session .nb-order-revision-category-card{
        grid-template-columns:64px minmax(0,1fr)!important;
        grid-template-rows:auto!important;
        align-items:center!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-media{
        width:64px!important;
        height:64px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-bottom{
        grid-template-columns:1fr!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-select{
        width:100%!important;
    }
}


/* ==================================================
 * Compact revision cards + explicit in-page category navigation — v2.14.40
 * ================================================== */
body.nb-order-revision-session .nb-order-revision-hub{
    gap:10px!important;
    padding-bottom:18px!important;
}
body.nb-order-revision-session .nb-order-revision-alert,
body.nb-order-revision-session .nb-order-revision-section,
body.nb-order-revision-session .nb-order-revision-total{
    border-radius:14px!important;
    padding:12px!important;
    box-shadow:0 3px 12px rgba(49,38,21,.04)!important;
}
body.nb-order-revision-session .nb-order-revision-head{
    margin-bottom:8px!important;
    gap:7px!important;
}
body.nb-order-revision-session .nb-order-revision-head strong,
body.nb-order-revision-session .nb-order-revision-section>strong{
    font-size:15px!important;
}
body.nb-order-revision-session .nb-order-revision-head small,
body.nb-order-revision-session .nb-order-revision-section>p{
    font-size:11.5px!important;
    line-height:1.7!important;
}
body.nb-order-revision-session .nb-order-revision-head>button,
body.nb-order-revision-session .nb-order-revision-curtain-button{
    min-height:40px!important;
    border-radius:10px!important;
    padding:7px 11px!important;
    font-size:12.5px!important;
    box-shadow:0 2px 0 rgba(0,0,0,.14)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-card{
    grid-template-columns:58px minmax(0,1fr) auto!important;
    gap:9px!important;
    padding:9px!important;
    margin-top:8px!important;
    border-radius:13px!important;
    box-shadow:none!important;
}
body.nb-order-revision-session .nb-order-revision-raw-card>img{
    width:58px!important;
    height:58px!important;
    border-radius:10px!important;
}
body.nb-order-revision-session .nb-order-revision-raw-info{gap:3px!important}
body.nb-order-revision-session .nb-order-revision-raw-info strong{
    font-size:13px!important;
    line-height:1.55!important;
}
body.nb-order-revision-session .nb-order-revision-raw-info small{
    font-size:10.5px!important;
    line-height:1.55!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls{
    gap:6px!important;
}
body.nb-order-revision-session .nb-order-revision-qty-wrap{min-width:148px!important}
body.nb-order-revision-session .nb-order-revision-qty-wrap>span{
    font-size:10.5px!important;
}
body.nb-order-revision-session .nb-order-revision-qty-stepper{
    grid-template-columns:38px minmax(64px,1fr) 38px!important;
    border-radius:9px!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-stepper input,
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-button{
    min-height:38px!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-button{
    font-size:21px!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls>button{
    min-height:38px!important;
    border-radius:9px!important;
    padding:6px 10px!important;
    font-size:11.5px!important;
}
body.nb-order-revision-session .nb-order-revision-section textarea{
    min-height:120px!important;
    border-radius:10px!important;
    padding:10px!important;
    font-size:12.5px!important;
}
body.nb-order-revision-session .nb-order-revision-total strong{font-size:17px!important}
body.nb-order-revision-session .nb-order-revision-actions{
    padding:6px 0 1px!important;
}
body.nb-order-revision-session .nb-order-revision-actions button{
    min-height:44px!important;
    border-radius:11px!important;
    font-size:13px!important;
}
body.nb-order-revision-session .nb-order-revision-picker-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
}
body.nb-order-revision-session .nb-order-revision-picker-nav button{
    min-height:34px;
    border:1px solid #e2d7c5;
    border-radius:9px;
    padding:5px 9px;
    background:#fff;
    color:var(--nb-revision-ink);
    font:inherit;
    font-size:11px;
    font-weight:800;
    line-height:1.4;
    cursor:pointer;
    box-shadow:none;
    transition:background .1s ease,transform .08s ease,border-color .1s ease;
}
body.nb-order-revision-session .nb-order-revision-picker-nav button:first-child{
    background:var(--nb-revision-gold-soft);
    border-color:#dfc584;
    color:var(--nb-revision-gold-dark);
}
body.nb-order-revision-session .nb-order-revision-picker-nav button:active:not(:disabled){
    transform:scale(.98);
    background:#f4ead7;
}
body.nb-order-revision-session .nb-order-revision-picker-nav button:disabled{
    opacity:.45;
    cursor:default;
    background:#f5f3ef;
    color:#8a847b;
    border-color:#e8e3db;
}
body.nb-order-revision-session .nb-order-revision-category-card{
    min-height:0!important;
}
body.nb-order-revision-session .nb-order-revision-product-select{
    min-height:34px!important;
    padding:5px 10px!important;
    font-size:11.5px!important;
}
body.nb-order-revision-session .nb-order-revision-picker-foot{
    min-height:34px!important;
    padding-top:6px!important;
    padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;
    font-size:9.8px!important;
}
body.nb-order-revision-session .nb-order-revision-picker-foot:before{
    width:18px!important;
    height:18px!important;
    flex-basis:18px!important;
    font-size:10px!important;
}
@media(max-width:720px){
    body.nb-order-revision-session .nb-order-revision-alert,
    body.nb-order-revision-session .nb-order-revision-section,
    body.nb-order-revision-session .nb-order-revision-total{
        padding:11px!important;
        border-radius:14px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-card{
        grid-template-columns:54px minmax(0,1fr)!important;
        padding:8px!important;
        border-radius:13px!important;
        gap:8px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-card>img{
        width:54px!important;
        height:54px!important;
        border-radius:10px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-controls{
        grid-column:1/-1!important;
        grid-template-columns:1fr 1fr!important;
        gap:6px!important;
    }
    body.nb-order-revision-session .nb-order-revision-qty-wrap{
        grid-column:1/-1!important;
        min-width:0!important;
    }
    body.nb-order-revision-session .nb-order-revision-qty-stepper{
        grid-template-columns:40px minmax(0,1fr) 40px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-stepper input,
    body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-button,
    body.nb-order-revision-session .nb-order-revision-raw-controls>button{
        min-height:40px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-toolbar{
        gap:6px!important;
        padding:7px 9px!important;
    }
    body.nb-order-revision-session .nb-order-revision-picker-nav{
        position:sticky;
        top:0;
        z-index:3;
    }
    body.nb-order-revision-session .nb-order-revision-picker-nav button{
        min-height:35px!important;
        font-size:10.5px!important;
        padding:5px 7px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-card{
        grid-template-rows:66px auto!important;
        padding:6px!important;
        gap:6px!important;
        border-radius:12px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-media{
        height:66px!important;
        border-radius:9px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-copy strong{
        font-size:11.5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-category-copy small{
        font-size:9px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-card{
        grid-template-columns:74px minmax(0,1fr)!important;
        gap:8px!important;
        padding:8px!important;
        border-radius:13px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-media{
        width:74px!important;
        height:74px!important;
        border-radius:10px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-body>strong{
        font-size:12.5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-chips span{
        font-size:9px!important;
        padding:2px 5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-price{
        font-size:11.5px!important;
    }
    body.nb-order-revision-session .nb-order-revision-product-select{
        min-height:34px!important;
        font-size:11px!important;
    }
}

/* Revision submitted confirmation overlay — v2.14.46 */
body.nb-edit-success-open{overflow:hidden!important}
.nb-edit-success-overlay{position:fixed;inset:0;z-index:100120;display:grid;place-items:center;padding:20px;direction:rtl;isolation:isolate}
.nb-edit-success-overlay.is-closing{opacity:0;transition:opacity .2s ease}
.nb-edit-success-backdrop{position:absolute;inset:0;background:rgba(13,20,28,.56);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.nb-edit-success-card{position:relative;width:min(520px,100%);max-height:min(88vh,680px);overflow:auto;box-sizing:border-box;background:#fff;border:1px solid rgba(201,150,49,.35);border-radius:22px;padding:28px;text-align:center;box-shadow:0 26px 80px rgba(0,0,0,.3);animation:nbEditSuccessIn .26s ease both}
.nb-edit-success-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 15px;border-radius:50%;background:#eaf8ef;color:#197044;font-size:34px;font-weight:900;box-shadow:0 0 0 8px rgba(46,145,85,.08)}
.nb-edit-success-card h2{margin:0 0 11px;color:#17243b;font-size:23px;line-height:1.55}
.nb-edit-success-card p{margin:0;color:#59616d;font-size:14px;line-height:2}
.nb-edit-success-meta{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0;padding:12px;border-radius:13px;background:#f7f4ed;color:#555;font-size:12px}
.nb-edit-success-meta span{display:inline-flex;gap:4px;align-items:center}
.nb-edit-success-card button{width:100%;min-height:48px;border:0;border-radius:12px;background:#172126;color:#fff;padding:12px 18px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.22);transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease}
.nb-edit-success-card button:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.2)}
.nb-edit-success-card button:focus-visible{outline:3px solid rgba(201,150,49,.38);outline-offset:3px}
.nb-order-revision-status-card{position:relative;overflow:hidden}
.nb-order-revision-status-card:before{content:"";position:absolute;inset:0 0 0 auto;width:5px;background:#d2a43d}
.nb-order-revision-status-note{display:block;margin-top:8px;padding:9px 11px;border-radius:9px;background:rgba(255,255,255,.68);color:#625a49;font-size:12px;line-height:1.9}
@keyframes nbEditSuccessIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:640px){
  .nb-edit-success-overlay{place-items:end center;padding:0}
  .nb-edit-success-card{width:100%;max-height:88svh;border-radius:22px 22px 0 0;padding:23px 18px calc(18px + env(safe-area-inset-bottom));animation-name:nbEditSuccessUp}
  .nb-edit-success-card h2{font-size:20px}
  .nb-edit-success-card p{font-size:13px;line-height:1.95}
  .nb-edit-success-icon{width:56px;height:56px;font-size:30px}
  .nb-edit-success-meta{display:grid;gap:6px;text-align:right}
  .nb-edit-success-meta span{justify-content:space-between}
}
@media(max-width:380px){.nb-edit-success-card{padding-right:14px;padding-left:14px}.nb-edit-success-card h2{font-size:18px}.nb-edit-success-card p{font-size:12.5px}}
@media(prefers-reduced-motion:reduce){.nb-edit-success-card,.nb-edit-success-overlay.is-closing{animation:none;transition:none}}
@keyframes nbEditSuccessUp{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:none}}

/* ==================================================
 * Order revision visual polish — v2.14.56
 * Keeps the existing workflow; only refines spacing, cards and controls.
 * ================================================== */
body.nb-order-revision-session{
    --nb-site-gold:#c59643;
    --nb-site-gold-dark:#8f641f;
    --nb-site-gold-soft:#f7eedc;
    --nb-site-ink:#17243b;
    --nb-site-muted:#737985;
    --nb-site-line:#e8dfcf;
    --nb-site-danger:#b63832;
}
body.nb-order-revision-session .nb-order-revision-hub{
    gap:10px!important;
}
body.nb-order-revision-session .nb-order-revision-section,
body.nb-order-revision-session .nb-order-revision-total{
    border:1px solid var(--nb-site-line)!important;
    border-radius:16px!important;
    box-shadow:0 3px 14px rgba(27,35,45,.045)!important;
    background:#fff!important;
}
body.nb-order-revision-session .nb-order-revision-section{
    padding:14px!important;
}
body.nb-order-revision-session .nb-order-revision-head{
    align-items:center!important;
    margin-bottom:10px!important;
}
body.nb-order-revision-session .nb-order-revision-head strong,
body.nb-order-revision-session .nb-order-revision-section>strong{
    color:var(--nb-site-ink)!important;
    font-size:16px!important;
    line-height:1.65!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-head small,
body.nb-order-revision-session .nb-order-revision-section>p{
    color:var(--nb-site-muted)!important;
    font-size:12px!important;
    line-height:1.9!important;
}
body.nb-order-revision-session .nb-order-revision-head>button{
    min-height:42px!important;
    border:1px solid var(--nb-site-gold)!important;
    border-radius:12px!important;
    padding:8px 16px!important;
    background:var(--nb-site-gold)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:850!important;
    box-shadow:0 3px 8px rgba(197,150,67,.22)!important;
}
body.nb-order-revision-session .nb-order-revision-head>button:active{
    transform:translateY(1px)!important;
    background:#b88938!important;
    box-shadow:0 1px 4px rgba(197,150,67,.2)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-card{
    border:1px solid #e7e1d8!important;
    border-radius:14px!important;
    padding:10px!important;
    margin-top:8px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(25,34,44,.035)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-card>img{
    border-radius:11px!important;
    box-shadow:inset 0 0 0 1px rgba(23,36,59,.05)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-info{
    gap:3px!important;
}
body.nb-order-revision-session .nb-order-revision-raw-info strong{
    color:var(--nb-site-ink)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-raw-info small{
    color:var(--nb-site-muted)!important;
}
body.nb-order-revision-session .nb-order-revision-qty-wrap>span{
    color:#625f59!important;
    font-weight:700!important;
}
body.nb-order-revision-session .nb-order-revision-qty-stepper{
    border-color:#ded8cf!important;
    background:#fff!important;
    box-shadow:inset 0 1px 2px rgba(23,36,59,.025)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-button{
    background:#fbf8f2!important;
    color:var(--nb-site-gold-dark)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-button:active:not(:disabled){
    background:var(--nb-site-gold-soft)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls .nb-order-revision-qty-stepper input{
    color:var(--nb-site-ink)!important;
    border-color:#e9e2d7!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls>button.is-secondary{
    border:1px solid #d7bd83!important;
    background:#fffaf1!important;
    color:var(--nb-site-gold-dark)!important;
    font-weight:850!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls>button.is-secondary:active:not(:disabled){
    background:var(--nb-site-gold-soft)!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls>button.is-danger{
    border:1px solid #ecc9c6!important;
    background:#fffafa!important;
    color:var(--nb-site-danger)!important;
    font-weight:800!important;
}
body.nb-order-revision-session .nb-order-revision-raw-controls>button.is-danger:active:not(:disabled){
    background:#fff0ef!important;
}
body.nb-order-revision-session .nb-order-revision-section textarea{
    min-height:112px!important;
    margin-top:10px!important;
    border:1px solid #ddd7cd!important;
    border-radius:12px!important;
    background:#fff!important;
    color:var(--nb-site-ink)!important;
    box-shadow:inset 0 1px 3px rgba(24,34,44,.03)!important;
}
body.nb-order-revision-session .nb-order-revision-section textarea::placeholder{
    color:#a3a7ae!important;
}
body.nb-order-revision-session .nb-order-revision-section textarea:focus{
    border-color:var(--nb-site-gold)!important;
    box-shadow:0 0 0 3px rgba(197,150,67,.13)!important;
}
body.nb-order-revision-session .nb-order-revision-total{
    min-height:58px!important;
    padding:12px 15px!important;
    background:linear-gradient(135deg,#fff,#fcf7ec)!important;
}
body.nb-order-revision-session .nb-order-revision-total span{
    color:#4d535c!important;
    font-size:13px!important;
    font-weight:700!important;
}
body.nb-order-revision-session .nb-order-revision-total strong{
    color:var(--nb-site-gold-dark)!important;
    font-size:18px!important;
    font-weight:900!important;
}
body.nb-order-revision-session .nb-order-revision-actions{
    padding:8px 0 calc(3px + env(safe-area-inset-bottom,0px))!important;
    background:linear-gradient(to top,#f5f3ef 75%,rgba(245,243,239,0))!important;
}
body.nb-order-revision-session .nb-order-revision-actions button,
body.nb-order-revision-session .nb-order-revision-actions button:first-child,
body.nb-order-revision-session .nb-order-revision-actions button:last-child{
    min-height:48px!important;
    border:1px solid var(--nb-site-gold)!important;
    border-radius:13px!important;
    background:var(--nb-site-gold)!important;
    color:#fff!important;
    font-size:13.5px!important;
    font-weight:900!important;
    box-shadow:0 4px 10px rgba(197,150,67,.24)!important;
}
body.nb-order-revision-session .nb-order-revision-actions button:active:not(:disabled){
    transform:translateY(1px)!important;
    background:#b88938!important;
    box-shadow:0 2px 5px rgba(197,150,67,.2)!important;
}
body.nb-order-revision-session .nb-order-revision-actions button:disabled,
body.nb-order-revision-session .nb-order-revision-actions button.is-loading{
    background:#d9c8a6!important;
    border-color:#d9c8a6!important;
    color:#fff!important;
    box-shadow:none!important;
}
@media(max-width:720px){
    body.nb-order-revision-session #nb-curtain-builder-view{
        padding:10px 10px 26px!important;
    }
    body.nb-order-revision-session .nb-order-revision-section{
        padding:11px!important;
        border-radius:14px!important;
    }
    body.nb-order-revision-session .nb-order-revision-head{
        gap:8px!important;
        margin-bottom:8px!important;
    }
    body.nb-order-revision-session .nb-order-revision-head>button{
        width:100%!important;
        min-height:43px!important;
        border-radius:11px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-card{
        padding:9px!important;
        border-radius:13px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-controls{
        gap:7px!important;
    }
    body.nb-order-revision-session .nb-order-revision-raw-controls>button{
        min-height:42px!important;
        border-radius:10px!important;
        font-size:12px!important;
    }
    body.nb-order-revision-session .nb-order-revision-section textarea{
        min-height:106px!important;
    }
    body.nb-order-revision-session .nb-order-revision-total{
        min-height:56px!important;
        padding:11px 13px!important;
        border-radius:14px!important;
    }
    body.nb-order-revision-session .nb-order-revision-total span{
        font-size:12px!important;
    }
    body.nb-order-revision-session .nb-order-revision-total strong{
        font-size:17px!important;
    }
    body.nb-order-revision-session .nb-order-revision-actions button,
    body.nb-order-revision-session .nb-order-revision-actions button:first-child,
    body.nb-order-revision-session .nb-order-revision-actions button:last-child{
        min-height:48px!important;
        border-radius:12px!important;
    }
}

/* ==================================================
 * Sewn-curtain consultation conversion flow — v2.14.57
 * ================================================== */
.nb-service-form--sewn-flow,
.nb-service-form--sewn-flow * { box-sizing: border-box; }
.nb-service-form--sewn-flow { width: 100%; max-width: 920px; margin-inline: auto; overflow: visible; }
.nb-service-form--sewn-flow [hidden] { display: none !important; }
.nb-service-advisory--compact { margin-bottom: 12px; padding: 11px 13px; border-radius: 13px; }
.nb-service-advisory--compact strong { margin-bottom: 2px; font-size: 13px; }
.nb-service-advisory--compact p { font-size: 10.5px; line-height: 1.9; }

.nb-service-flow-progress { width: min(360px,100%); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; direction: rtl; }
.nb-service-flow-progress span { width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; color: #938c82; background: #f5f2ed; border: 1px solid #e8e0d5; border-radius: 50%; font-size: 10px; font-weight: 900; transition: .2s ease; }
.nb-service-flow-progress span.is-active { color: #fff; background: var(--nb-accent); border-color: var(--nb-accent); box-shadow: 0 4px 12px rgba(189,143,73,.18); }
.nb-service-flow-progress i { width: 52px; height: 1px; background: #e7dfd2; }

.nb-service-step,
.nb-service-goal-panel { width: 100%; margin-top: 10px; padding: 12px; background: #fff; border: 1px solid rgba(217,207,192,.78); border-radius: 15px; box-shadow: 0 5px 16px rgba(31,27,20,.035); scroll-margin-top: 130px; }
.nb-service-step.is-open { margin-top: 0; }
.nb-service-step-head { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.nb-service-step-head > span { width: 27px; height: 27px; flex: 0 0 27px; display: inline-flex; align-items: center; justify-content: center; color: #95681f; background: #fbf1dd; border-radius: 9px; font-size: 10px; font-weight: 900; }
.nb-service-step-head > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nb-service-step-head strong { color: var(--nb-text); font-size: 13px; line-height: 1.7; }
.nb-service-step-head small { color: var(--nb-muted); font-size: 9.5px; line-height: 1.7; }

.nb-service-form-grid--compact { gap: 9px 10px; }
.nb-service-form--sewn-flow .nb-service-field { gap: 4px; }
.nb-service-form--sewn-flow .nb-service-field > label { font-size: 10.5px; line-height: 1.7; }
.nb-service-form--sewn-flow .nb-service-field > label small { color: var(--nb-muted); font-size: 9px; font-weight: 500; }
.nb-service-form--sewn-flow .nb-service-field input,
.nb-service-form--sewn-flow .nb-service-field select,
.nb-service-form--sewn-flow .nb-service-field textarea { min-width: 0; max-width: 100%; min-height: 40px; padding: 7px 10px; background: #fdfcfb; border-color: #e4ddd3; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.nb-service-form--sewn-flow .nb-service-field textarea { min-height: 70px; resize: vertical; }
.nb-service-form--sewn-flow .nb-service-field input[type="file"] { min-height: 44px; padding: 6px; }
.nb-service-form--sewn-flow .nb-service-field-error { min-height: 0; font-size: 9px; line-height: 1.6; }
.nb-service-form--sewn-flow .nb-service-field-error:empty { display: none; }
.nb-service-form--sewn-flow .nb-service-field-help { font-size: 9px; line-height: 1.7; }

.nb-service-goal-field { min-width: 0; }
.nb-service-goal-field.is-invalid .nb-service-goal-grid { padding: 5px; background: #fff8f7; border: 1px solid #f1c8c3; border-radius: 13px; }
.nb-service-goal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.nb-service-goal-card { min-width: 0; min-height: 108px; padding: 11px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; color: var(--nb-text); background: #fdfcf9; border: 1px solid #e6ded2; border-radius: 13px; text-align: right; cursor: pointer; transition: .2s ease; }
.nb-service-goal-card:hover { border-color: rgba(189,143,73,.62); transform: translateY(-1px); }
.nb-service-goal-card.is-selected { background: linear-gradient(145deg,#fffaf0,#fbf0dc); border-color: var(--nb-accent); box-shadow: 0 0 0 2px rgba(189,143,73,.10); }
.nb-service-goal-card.is-expert { background: linear-gradient(145deg,#fffdf8,#f8f3e8); }
.nb-service-goal-icon { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; color: #98691f; background: #faefd9; border-radius: 9px; font-size: 13px; font-weight: 900; }
.nb-service-goal-card strong { font-size: 11px; line-height: 1.7; }
.nb-service-goal-card small { color: var(--nb-muted); font-size: 9px; line-height: 1.75; }

.nb-service-step-detail-head { margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.nb-service-step-detail-head strong { color: var(--nb-text); font-size: 13px; }
.nb-service-step-detail-head small { color: var(--nb-muted); font-size: 9.5px; line-height: 1.8; }
.nb-service-optional-grid { margin-top: 10px; }

.nb-service-route-card { padding: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; background: linear-gradient(145deg,#fffaf0,#f8efdf); border: 1px solid rgba(189,143,73,.35); border-radius: 14px; }
.nb-service-route-card strong { color: var(--nb-text); font-size: 14px; line-height: 1.8; }
.nb-service-route-card p { margin: 0; color: var(--nb-muted); font-size: 10.5px; line-height: 1.9; }
.nb-service-route-badge { padding: 3px 8px; color: #8d611c; background: #fff; border: 1px solid rgba(189,143,73,.26); border-radius: 999px; font-size: 8.5px; font-weight: 800; }
.nb-service-builder-button { width: 100%; min-height: 42px; margin-top: 3px; padding: 8px 14px; color: #fff; background: var(--nb-accent); border: 0; border-radius: 10px; font-size: 11px; font-weight: 900; cursor: pointer; }

.nb-service-expert-benefit { margin-bottom: 11px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 9px; background: #f6fbf7; border: 1px solid #d7eadb; border-radius: 13px; }
.nb-service-expert-benefit > span { width: 26px; height: 26px; flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--nb-success); border-radius: 50%; font-size: 11px; font-weight: 900; }
.nb-service-expert-benefit strong { display: block; margin-bottom: 2px; color: var(--nb-text); font-size: 11px; }
.nb-service-expert-benefit p { margin: 0; color: var(--nb-muted); font-size: 9.5px; line-height: 1.85; }

.nb-service-form--sewn-flow .nb-window-repeater { margin-top: 10px; padding: 11px; border-radius: 13px; }
.nb-service-form--sewn-flow .nb-window-repeater-intro { margin-bottom: 9px; }
.nb-service-form--sewn-flow .nb-window-repeater-intro strong { font-size: 11.5px; }
.nb-service-form--sewn-flow .nb-window-repeater-intro p { font-size: 9.5px; line-height: 1.8; }
.nb-service-form--sewn-flow .nb-window-list { gap: 9px; }
.nb-service-form--sewn-flow .nb-window-item { padding: 10px; border-radius: 12px; }
.nb-service-form--sewn-flow .nb-window-item-head { margin-bottom: 8px; }
.nb-service-form--sewn-flow .nb-window-grid { gap: 8px; }
.nb-service-form--sewn-flow .nb-window-field { gap: 4px; }
.nb-service-form--sewn-flow .nb-window-field > label { font-size: 10px; }
.nb-service-form--sewn-flow .nb-window-field input,
.nb-service-form--sewn-flow .nb-window-field select { min-height: 39px; padding: 7px 9px; border-radius: 9px; font-size: 11px; }
.nb-service-form--sewn-flow .nb-window-add { min-height: 38px; margin-top: 9px; border-radius: 9px; font-size: 10px; }
.nb-service-form--sewn-flow .nb-window-remove { min-height: 30px; padding: 4px 9px; font-size: 9px; }

.nb-service-form--sewn-flow .nb-service-form-actions { margin-top: 11px; gap: 8px; }
.nb-service-form--sewn-flow .nb-service-submit,
.nb-service-form--sewn-flow .nb-service-cancel { min-height: 41px; padding: 8px 15px; border-radius: 10px; font-size: 11px; }
.nb-service-form--sewn-flow .nb-service-submit { background: var(--nb-accent); }
.nb-service-form--sewn-flow .nb-service-cancel { color: #7d5a24; background: #fbf4e8; border: 1px solid #ead9bb; }
.nb-service-form--sewn-flow .nb-service-form-notice { margin-top: 10px; padding: 9px 11px; font-size: 10px; }

@media (max-width: 700px) {
    .nb-service-view { padding-top: 10px; }
    .nb-service-form--sewn-flow { width: 100%; max-width: 100%; }
    .nb-service-advisory--compact { margin-bottom: 9px; padding: 9px 10px; }
    .nb-service-flow-progress { margin-bottom: 9px; }
    .nb-service-step,
    .nb-service-goal-panel { margin-top: 8px; padding: 10px; border-radius: 13px; scroll-margin-top: 150px; }
    .nb-service-step-head { margin-bottom: 8px; }
    .nb-service-form-grid--compact { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--sewn-flow .nb-service-field.is-wide { grid-column: 1 / -1; }
    .nb-service-form--sewn-flow .nb-service-field input,
    .nb-service-form--sewn-flow .nb-service-field select,
    .nb-service-form--sewn-flow .nb-service-field textarea,
    .nb-service-form--sewn-flow .nb-window-field input,
    .nb-service-form--sewn-flow .nb-window-field select { font-size: 16px; }
    .nb-service-form--sewn-flow .nb-service-field input,
    .nb-service-form--sewn-flow .nb-service-field select { min-height: 42px; padding-block: 6px; }
    .nb-service-form--sewn-flow .nb-service-field textarea { min-height: 68px; }
    .nb-service-goal-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-goal-card { min-height: 104px; padding: 10px; }
    .nb-service-goal-card.is-expert { grid-column: 1 / -1; min-height: 82px; }
    .nb-service-form--sewn-flow .nb-window-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--sewn-flow .nb-window-field.is-wide { grid-column: 1 / -1; }
    .nb-service-form--sewn-flow .nb-service-form-actions { flex-direction: row; }
    .nb-service-form--sewn-flow .nb-service-submit { flex: 1 1 auto; width: auto; }
    .nb-service-form--sewn-flow .nb-service-cancel { flex: 0 0 auto; width: auto; }
}

@media (max-width: 430px) {
    .nb-service-form-grid--compact { grid-template-columns: 1fr; }
    .nb-service-form--sewn-flow .nb-service-field.is-wide { grid-column: auto; }
    .nb-service-goal-card strong { font-size: 10.5px; }
    .nb-service-goal-card small { font-size: 8.7px; }
    .nb-service-form--sewn-flow .nb-window-grid { grid-template-columns: 1fr; }
    .nb-service-form--sewn-flow .nb-window-field.is-wide { grid-column: auto; }
}
.nb-service-inline-back { margin: -2px 0 9px auto; padding: 3px 0; display: block; color: #8b6426; background: transparent; border: 0; font-size: 9.5px; font-weight: 800; cursor: pointer; }
@media (max-width: 430px) {
    .nb-service-form-grid--compact { grid-template-columns: 1fr 1fr; }
    .nb-service-form--sewn-flow .nb-window-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
    .nb-service-form-grid--compact,
    .nb-service-form--sewn-flow .nb-window-grid { grid-template-columns: 1fr; }
}
.nb-service-inline-back { width: max-content; margin: -2px 0 9px; margin-inline-start: auto; }

/* ==================================================
 * Professional organizational project flow — v2.14.58
 * ================================================== */
.nb-service-form--project-flow { width: 100%; max-width: 100%; }
.nb-service-flow-progress--project { gap: 7px; }
.nb-service-flow-progress--project i { flex: 1 1 22px; min-width: 12px; max-width: 42px; }

.nb-service-form--project-flow .nb-service-step,
.nb-service-form--project-flow .nb-service-goal-panel { width: 100%; margin-top: 10px; padding: 12px; background: #fff; border: 1px solid rgba(217,207,192,.78); border-radius: 15px; box-shadow: 0 5px 16px rgba(31,27,20,.035); scroll-margin-top: 130px; }
.nb-service-form--project-flow .nb-service-form-grid { gap: 9px 10px; }
.nb-service-form--project-flow .nb-service-field { min-width: 0; gap: 4px; }
.nb-service-form--project-flow .nb-service-field > label { font-size: 10.5px; line-height: 1.7; }
.nb-service-form--project-flow .nb-service-field > label small { color: var(--nb-muted); font-size: 9px; font-weight: 500; }
.nb-service-form--project-flow .nb-service-field input,
.nb-service-form--project-flow .nb-service-field select,
.nb-service-form--project-flow .nb-service-field textarea { min-width: 0; max-width: 100%; min-height: 40px; padding: 7px 10px; background: #fdfcfb; border-color: #e4ddd3; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.nb-service-form--project-flow .nb-service-field textarea { min-height: 66px; resize: vertical; }
.nb-service-form--project-flow .nb-service-field input[type="file"] { min-height: 44px; padding: 6px; }
.nb-service-form--project-flow .nb-service-field-error { min-height: 0; font-size: 9px; line-height: 1.6; }
.nb-service-form--project-flow .nb-service-field-error:empty { display: none; }
.nb-service-form--project-flow .nb-service-field-help { font-size: 9px; line-height: 1.7; }

.nb-project-audience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.nb-service-form--project-flow .nb-service-goal-card { min-height: 106px; }
.nb-service-form--project-flow .nb-service-goal-card.is-selected { background: linear-gradient(145deg,#fffaf0,#fbf0dc); border-color: var(--nb-accent); box-shadow: 0 0 0 2px rgba(189,143,73,.10); }
.nb-project-household-route .nb-service-route-card { padding: 14px; }

.nb-service-chip-field { margin-top: 8px; }
.nb-project-chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.nb-project-chip { min-height: 34px; padding: 6px 10px; color: #5f564b; background: #fdfbf7; border: 1px solid #e5ddd2; border-radius: 10px; font-size: 10px; font-weight: 800; line-height: 1.5; cursor: pointer; transition: .18s ease; }
.nb-project-chip:hover { border-color: rgba(189,143,73,.65); }
.nb-project-chip.is-selected { color: #7c5417; background: #fbf0dc; border-color: var(--nb-accent); box-shadow: 0 0 0 2px rgba(189,143,73,.08); }

.nb-project-request-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nb-project-request-card { min-height: 46px; padding: 8px 10px; color: #4f473e; background: #fdfbf8; border: 1px solid #e5ddd2; border-radius: 10px; font-size: 10px; font-weight: 850; line-height: 1.6; text-align: center; cursor: pointer; transition: .18s ease; }
.nb-project-request-card:hover { border-color: rgba(189,143,73,.65); }
.nb-project-request-card.is-selected { color: #7c5417; background: #fbf0dc; border-color: var(--nb-accent); box-shadow: 0 0 0 2px rgba(189,143,73,.08); }

.nb-service-form--project-flow .nb-service-form-actions { margin-top: 11px; gap: 8px; }
.nb-service-form--project-flow .nb-service-submit,
.nb-service-form--project-flow .nb-service-cancel { min-height: 41px; padding: 8px 15px; border-radius: 10px; font-size: 11px; }
.nb-service-form--project-flow .nb-service-submit { background: var(--nb-accent); }
.nb-service-form--project-flow .nb-service-cancel { color: #7d5a24; background: #fbf4e8; border: 1px solid #ead9bb; }
.nb-service-form--project-flow .nb-service-form-notice { margin-top: 10px; padding: 9px 11px; font-size: 10px; }
.nb-service-form--project-flow .nb-service-choice-field.is-invalid > .nb-project-audience-grid,
.nb-service-form--project-flow .nb-service-choice-field.is-invalid > .nb-project-request-grid,
.nb-service-form--project-flow .nb-service-chip-field.is-invalid > .nb-project-chip-grid { padding: 5px; background: #fff8f7; border: 1px solid #f1c8c3; border-radius: 12px; }

@media (max-width: 700px) {
    .nb-service-form--project-flow { width: 100%; max-width: 100%; }
    .nb-service-form--project-flow .nb-service-step,
    .nb-service-form--project-flow .nb-service-goal-panel { margin-top: 8px; padding: 10px; border-radius: 13px; scroll-margin-top: 150px; }
    .nb-service-form--project-flow .nb-service-form-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--project-flow .nb-service-field.is-wide { grid-column: 1 / -1; }
    .nb-service-form--project-flow .nb-service-field input,
    .nb-service-form--project-flow .nb-service-field select,
    .nb-service-form--project-flow .nb-service-field textarea { font-size: 16px; }
    .nb-service-form--project-flow .nb-service-field input,
    .nb-service-form--project-flow .nb-service-field select { min-height: 42px; padding-block: 6px; }
    .nb-service-form--project-flow .nb-service-field textarea { min-height: 66px; }
    .nb-project-audience-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--project-flow .nb-service-goal-card { min-height: 112px; padding: 10px; }
    .nb-project-chip-grid { gap: 6px; }
    .nb-project-chip { flex: 1 1 calc(50% - 6px); min-height: 36px; }
    .nb-project-request-grid { grid-template-columns: 1fr 1fr; }
    .nb-service-flow-progress--project { gap: 5px; }
    .nb-service-flow-progress--project span { width: 25px; height: 25px; flex-basis: 25px; }
    .nb-service-form--project-flow .nb-service-form-actions { flex-direction: row; }
    .nb-service-form--project-flow .nb-service-submit { flex: 1 1 auto; width: auto; }
    .nb-service-form--project-flow .nb-service-cancel { flex: 0 0 auto; width: auto; }
}

@media (max-width: 430px) {
    .nb-service-form--project-flow .nb-service-form-grid { grid-template-columns: 1fr 1fr; }
    .nb-project-audience-grid { grid-template-columns: 1fr; }
    .nb-service-form--project-flow .nb-service-goal-card { min-height: 88px; }
    .nb-project-request-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .nb-service-form--project-flow .nb-service-form-grid,
    .nb-project-request-grid { grid-template-columns: 1fr; }
    .nb-project-chip { flex-basis: 100%; }
}

/* ==================================================
 * Retailer partnership conversion flow — v2.14.59
 * ================================================== */
.nb-service-form--retailer-flow,
.nb-service-form--retailer-flow * { box-sizing: border-box; }
.nb-service-form--retailer-flow { width: 100%; max-width: 100%; margin-inline: auto; }
.nb-service-form--retailer-flow [hidden] { display: none !important; }
.nb-retailer-advisory { background: linear-gradient(145deg,#fffaf1,#f8f0e3); border-color: rgba(189,143,73,.28); }
.nb-service-flow-progress--retailer { gap: 7px; }
.nb-service-flow-progress--retailer i { flex: 1 1 22px; min-width: 12px; max-width: 42px; }

.nb-service-form--retailer-flow .nb-service-step,
.nb-service-form--retailer-flow .nb-service-goal-panel { width: 100%; margin-top: 10px; padding: 12px; background: #fff; border: 1px solid rgba(217,207,192,.78); border-radius: 15px; box-shadow: 0 5px 16px rgba(31,27,20,.035); scroll-margin-top: 130px; }
.nb-service-form--retailer-flow .nb-service-form-grid { gap: 9px 10px; }
.nb-service-form--retailer-flow .nb-service-field { min-width: 0; gap: 4px; }
.nb-service-form--retailer-flow .nb-service-field > label,
.nb-retailer-book-toolbar > label { color: var(--nb-text); font-size: 10.5px; font-weight: 800; line-height: 1.7; }
.nb-service-form--retailer-flow .nb-service-field > label small { color: var(--nb-muted); font-size: 9px; font-weight: 500; }
.nb-service-form--retailer-flow .nb-service-field input,
.nb-service-form--retailer-flow .nb-service-field select,
.nb-service-form--retailer-flow .nb-service-field textarea { min-width: 0; max-width: 100%; min-height: 40px; padding: 7px 10px; background: #fdfcfb; border-color: #e4ddd3; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.nb-service-form--retailer-flow .nb-service-field textarea { min-height: 66px; resize: vertical; }
.nb-service-form--retailer-flow .nb-service-field input[type="file"] { min-height: 44px; padding: 6px; }
.nb-service-form--retailer-flow .nb-service-field-error { min-height: 0; font-size: 9px; line-height: 1.6; }
.nb-service-form--retailer-flow .nb-service-field-error:empty { display: none; }
.nb-service-form--retailer-flow .nb-service-field-help { font-size: 9px; line-height: 1.7; }

.nb-retailer-audience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.nb-service-form--retailer-flow .nb-service-goal-card { min-height: 110px; }
.nb-service-form--retailer-flow .nb-service-goal-icon { width: auto; min-width: 42px; padding-inline: 8px; font-size: 9px; }
.nb-retailer-consumer-route .nb-service-route-card { padding: 14px; }

.nb-retailer-separation-note { margin-bottom: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; background: #f8f5ef; border: 1px solid #e9e1d5; border-radius: 11px; }
.nb-retailer-separation-note strong { color: #705126; font-size: 10.5px; line-height: 1.7; }
.nb-retailer-separation-note span { color: var(--nb-muted); font-size: 9.2px; line-height: 1.8; }
.nb-retailer-service-grid .nb-project-chip { flex: 1 1 calc(33.333% - 7px); min-width: 150px; }

.nb-retailer-sample-pitch { margin-bottom: 11px; padding: 12px; background: linear-gradient(145deg,#fffaf0,#f7eddb); border: 1px solid rgba(189,143,73,.32); border-radius: 13px; }
.nb-retailer-sample-pitch strong { display: block; color: #65491f; font-size: 12px; line-height: 1.8; }
.nb-retailer-sample-pitch p { margin: 3px 0 2px; color: #70675c; font-size: 9.8px; line-height: 1.9; }
.nb-retailer-sample-pitch small { color: #8c7a62; font-size: 8.7px; line-height: 1.8; }
.nb-retailer-book-toolbar { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nb-retailer-book-toolbar span { flex: 0 0 auto; padding: 3px 7px; color: #896126; background: #fbf1df; border-radius: 999px; font-size: 8.5px; font-weight: 850; }
.nb-retailer-book-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.nb-retailer-book-card { min-width: 0; min-height: 76px; padding: 9px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 7px; color: #4e463c; background: #fdfbf8; border: 1px solid #e5ddd2; border-radius: 11px; text-align: right; cursor: pointer; transition: .18s ease; }
.nb-retailer-book-card > span { width: 25px; height: 25px; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; color: #90651f; background: #faefd9; border-radius: 8px; font-size: 8.5px; font-weight: 900; }
.nb-retailer-book-card strong { min-width: 0; font-size: 9.8px; line-height: 1.7; }
.nb-retailer-book-card i { color: #9a9085; font-size: 8.2px; font-style: normal; font-weight: 750; }
.nb-retailer-book-card:hover { border-color: rgba(189,143,73,.65); transform: translateY(-1px); }
.nb-retailer-book-card.is-selected { color: #704d17; background: #fbf0dc; border-color: var(--nb-accent); box-shadow: 0 0 0 2px rgba(189,143,73,.08); }
.nb-retailer-book-card.is-selected i { color: #8b5e18; }
.nb-retailer-book-card.is-selected i::before { content: "✓ "; }
.nb-retailer-skip-books { width: 100%; min-height: 37px; margin-top: 8px; padding: 7px 10px; color: #71685e; background: #f7f4ef; border: 1px dashed #d9cfc1; border-radius: 10px; font-size: 9.5px; font-weight: 800; cursor: pointer; }
.nb-retailer-skip-books.is-selected { color: #80591f; background: #fbf1df; border-style: solid; border-color: rgba(189,143,73,.55); }
.nb-retailer-shipping-panel { margin-top: 10px; padding: 10px; background: #faf8f4; border: 1px solid #e8dfd3; border-radius: 12px; }
.nb-retailer-shipping-head { margin-bottom: 8px; display: flex; flex-direction: column; gap: 1px; }
.nb-retailer-shipping-head strong { color: var(--nb-text); font-size: 10.5px; }
.nb-retailer-shipping-head small { color: var(--nb-muted); font-size: 8.8px; line-height: 1.7; }
.nb-retailer-submit-note { margin-top: 9px; padding: 8px 10px; color: #6f6252; background: #faf6ef; border-radius: 9px; font-size: 9px; line-height: 1.8; }

.nb-service-form--retailer-flow .nb-service-form-actions { margin-top: 11px; gap: 8px; }
.nb-service-form--retailer-flow .nb-service-submit,
.nb-service-form--retailer-flow .nb-service-cancel { min-height: 41px; padding: 8px 15px; border-radius: 10px; font-size: 11px; }
.nb-service-form--retailer-flow .nb-service-submit { background: var(--nb-accent); }
.nb-service-form--retailer-flow .nb-service-cancel { color: #7d5a24; background: #fbf4e8; border: 1px solid #ead9bb; }
.nb-service-form--retailer-flow .nb-service-form-notice { margin-top: 10px; padding: 9px 11px; font-size: 10px; }
.nb-service-form--retailer-flow .nb-service-choice-field.is-invalid > .nb-retailer-audience-grid,
.nb-service-form--retailer-flow .nb-service-chip-field.is-invalid > .nb-retailer-service-grid,
.nb-service-form--retailer-flow .nb-retailer-book-field.is-invalid > .nb-retailer-book-grid { padding: 5px; background: #fff8f7; border: 1px solid #f1c8c3; border-radius: 12px; }

@media (max-width: 700px) {
    .nb-service-form--retailer-flow { width: 100%; max-width: 100%; }
    .nb-service-form--retailer-flow .nb-service-step,
    .nb-service-form--retailer-flow .nb-service-goal-panel { margin-top: 8px; padding: 10px; border-radius: 13px; scroll-margin-top: 150px; }
    .nb-service-form--retailer-flow .nb-service-form-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--retailer-flow .nb-service-field.is-wide { grid-column: 1 / -1; }
    .nb-service-form--retailer-flow .nb-service-field input,
    .nb-service-form--retailer-flow .nb-service-field select,
    .nb-service-form--retailer-flow .nb-service-field textarea { font-size: 16px; }
    .nb-service-form--retailer-flow .nb-service-field input,
    .nb-service-form--retailer-flow .nb-service-field select { min-height: 42px; padding-block: 6px; }
    .nb-retailer-audience-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nb-service-form--retailer-flow .nb-service-goal-card { min-height: 112px; padding: 10px; }
    .nb-retailer-service-grid .nb-project-chip { flex: 1 1 calc(50% - 6px); min-width: 0; }
    .nb-retailer-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .nb-retailer-book-card { min-height: 78px; padding: 8px; }
    .nb-service-flow-progress--retailer { gap: 5px; }
    .nb-service-flow-progress--retailer span { width: 25px; height: 25px; flex-basis: 25px; }
    .nb-service-form--retailer-flow .nb-service-form-actions { flex-direction: row; }
    .nb-service-form--retailer-flow .nb-service-submit { flex: 1 1 auto; width: auto; }
    .nb-service-form--retailer-flow .nb-service-cancel { flex: 0 0 auto; width: auto; }
}

@media (max-width: 430px) {
    .nb-service-form--retailer-flow .nb-service-form-grid { grid-template-columns: 1fr 1fr; }
    .nb-retailer-audience-grid { grid-template-columns: 1fr; }
    .nb-service-form--retailer-flow .nb-service-goal-card { min-height: 88px; }
    .nb-retailer-book-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .nb-retailer-book-grid { grid-template-columns: 1fr 1fr; }
    .nb-retailer-book-card strong { font-size: 9.3px; }
}

@media (max-width: 360px) {
    .nb-service-form--retailer-flow .nb-service-form-grid,
    .nb-retailer-book-grid { grid-template-columns: 1fr; }
    .nb-retailer-service-grid .nb-project-chip { flex-basis: 100%; }
}


/* ==================================================
 * Visible return-to-products button on service flows — v2.14.60
 * ================================================== */
.nb-service-form--sewn-flow .nb-service-inline-back,
.nb-service-form--project-flow .nb-service-inline-back,
.nb-service-form--retailer-flow .nb-service-inline-back {
    width: auto;
    min-height: 40px;
    margin: 0 0 12px;
    margin-inline-start: auto;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #825d22;
    background: #fffaf1;
    border: 1px solid rgba(189,143,73,.48);
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(74,52,20,.055);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nb-service-form--sewn-flow .nb-service-inline-back::before,
.nb-service-form--project-flow .nb-service-inline-back::before,
.nb-service-form--retailer-flow .nb-service-inline-back::before {
    content: "←";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}
.nb-service-form--sewn-flow .nb-service-inline-back:hover,
.nb-service-form--project-flow .nb-service-inline-back:hover,
.nb-service-form--retailer-flow .nb-service-inline-back:hover {
    color: #6f4c17;
    background: #fff6e7;
    border-color: rgba(189,143,73,.72);
    box-shadow: 0 6px 16px rgba(74,52,20,.08);
    transform: translateY(-1px);
}
.nb-service-form--sewn-flow .nb-service-inline-back:focus-visible,
.nb-service-form--project-flow .nb-service-inline-back:focus-visible,
.nb-service-form--retailer-flow .nb-service-inline-back:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(189,143,73,.16), 0 4px 12px rgba(74,52,20,.055);
}
@media (max-width: 600px) {
    .nb-service-form--sewn-flow .nb-service-inline-back,
    .nb-service-form--project-flow .nb-service-inline-back,
    .nb-service-form--retailer-flow .nb-service-inline-back {
        width: 100%;
        min-height: 42px;
        margin: 0 0 11px;
        font-size: 11.5px;
    }
}


/* Compact fixed brand logo in the custom site header — v2.14.61 */
.nb-brand-logo-link:focus-visible { outline: 2px solid rgba(189,143,73,.62); outline-offset: 4px; border-radius: 8px; }


/* Mobile header logo correction + footer brand logo — v2.14.62 */
.nb-footer-brand-logo-link {
    width: min(100%, 285px);
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}
.nb-footer-brand-picture { display: inline-flex; width: 100%; align-items: center; line-height: 0; }
.nb-footer-brand-logo {
    display: block;
    width: 100%;
    max-width: 285px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: right center;
}
.nb-footer-brand-logo-link:focus-visible { outline: 2px solid rgba(189,143,73,.62); outline-offset: 4px; border-radius: 8px; }

@media (max-width: 768px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 116px minmax(0,1fr) 88px; gap: 7px; }
    .nb-brand { width: 116px; max-width: 116px; overflow: visible; }
    .nb-brand-logo-link,
    .nb-brand-picture { width: 116px; max-width: 116px; }
    .nb-brand-logo { width: 116px; max-width: 116px; max-height: 42px; object-position: right center; }
}
@media (max-width: 600px) {
    .nb-footer-brand-logo-link { width: min(100%, 205px); }
    .nb-footer-brand-logo { max-width: 205px; max-height: 62px; object-position: right center; }
}
@media (max-width: 390px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 108px minmax(0,1fr) 84px; gap: 6px; }
    .nb-brand,
    .nb-brand-logo-link,
    .nb-brand-picture { width: 108px; max-width: 108px; }
    .nb-brand-logo { width: 108px; max-width: 108px; max-height: 40px; }
    .nb-header-actions { gap: 4px; }
    .nb-header-action { width: 40px; min-width: 40px; }
}

/* Safe complete mobile logo + compact footer logo — v2.14.63 */
@media (max-width: 768px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 120px minmax(0,1fr) 88px; gap: 7px; }
    .nb-brand,
    .nb-brand-logo-link,
    .nb-brand-picture { width: 120px; max-width: 120px; overflow: visible; }
    .nb-brand-logo {
        display: block;
        width: 120px;
        max-width: 120px;
        height: auto;
        max-height: 42px;
        object-fit: contain;
        object-position: center center;
    }
}
.nb-footer-brand-logo-link { width: min(100%, 225px); }
.nb-footer-brand-logo { max-width: 225px; max-height: 54px; object-position: right center; }
@media (max-width: 600px) {
    .nb-footer-brand-logo-link { width: min(100%, 175px); }
    .nb-footer-brand-logo { max-width: 175px; max-height: 50px; }
}
@media (max-width: 390px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 110px minmax(0,1fr) 84px; gap: 6px; }
    .nb-brand,
    .nb-brand-logo-link,
    .nb-brand-picture { width: 110px; max-width: 110px; }
    .nb-brand-logo { width: 110px; max-width: 110px; max-height: 40px; }
}


/* One complete safe logo in header and footer — v2.14.64 */
.nb-brand-logo-link {
    width: min(100%, 190px);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}
.nb-brand-logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    object-position: right center;
}
.nb-footer-branding { align-items: flex-start; }
.nb-footer-brand-logo-link {
    width: min(100%, 260px);
    display: inline-flex;
    align-items: center;
    overflow: visible;
}
.nb-footer-brand-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    max-height: 68px;
    object-fit: contain;
    object-position: right center;
}
@media (max-width: 768px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 136px minmax(0,1fr) 88px; gap: 7px; }
    .nb-brand,
    .nb-brand-logo-link { width: 136px; max-width: 136px; overflow: visible; }
    .nb-brand-logo { width: 136px; max-width: 136px; max-height: 38px; object-position: right center; }
    .nb-footer-brand-logo-link { width: min(100%, 230px); }
    .nb-footer-brand-logo { max-width: 230px; max-height: 60px; }
}
@media (max-width: 390px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 126px minmax(0,1fr) 84px; gap: 6px; }
    .nb-brand,
    .nb-brand-logo-link { width: 126px; max-width: 126px; }
    .nb-brand-logo { width: 126px; max-width: 126px; max-height: 34px; }
    .nb-footer-brand-logo-link { width: min(100%, 215px); }
    .nb-footer-brand-logo { max-width: 215px; max-height: 56px; }
}


/* ==================================================
 * Visual typography and palette polish — v2.14.65
 * Keeps the established navy/gold/cream identity while improving
 * mobile hierarchy, readability and visual consistency.
 * ================================================== */
:root {
    --nb-text: #1f2937;
    --nb-muted: #626975;
    --nb-accent: #bd8f49;
    --nb-accent-soft: #f8f1e6;
    --nb-border: #e8e1d7;
}

/* Section hierarchy */
.nb-filter-heading strong { font-size: 17px; line-height: 1.55; }
.nb-filter-heading small { color: #68707b; font-size: 11.5px; line-height: 1.75; }
.nb-central-heading-wrap h2 { font-size: 22px; line-height: 1.45; letter-spacing: -.15px; }
.nb-central-heading-wrap p { color: #68707b; font-size: 12.5px; line-height: 1.8; }

/* Homepage service cards */
.nb-service-card { padding: 15px; border-color: #e7dfd4; }
.nb-service-card strong { font-size: 13.5px; line-height: 1.72; }
.nb-service-card small { color: #69717c; font-size: 10.8px; line-height: 1.78; }
.nb-service-card-action { font-size: 9.5px; }

/* Category and product cards */
.nb-category-card-copy strong { font-size: 14.5px; line-height: 1.65; }
.nb-category-card-copy small { color: #69717c; font-size: 11.2px; line-height: 1.7; }
.nb-product-card-title { font-size: 13.5px; line-height: 1.75; }
.nb-product-card-sku,
.nb-results-summary { color: #69717c; }

/* Footer readability and balance */
.nb-footer-intro {
    color: #575e68;
    font-size: 12px;
    line-height: 2;
}
.nb-footer-toggle span,
.nb-footer-trust-heading strong { font-size: 14px; }
.nb-footer-panel a { color: #565d67; font-size: 11.5px; line-height: 1.75; }
.nb-footer-contact-list b { color: #464d57; font-size: 10.5px; line-height: 1.75; }
.nb-footer-trust-heading small { color: #727984; font-size: 9.5px; }

/* Theme back-to-top button: replace unrelated blue with brand navy */
body .scrollToTop,
body .wd-scroll-top,
body [class*="scroll-to-top"] {
    color: #fff !important;
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 22px rgba(31,41,55,.18) !important;
}
body .scrollToTop:hover,
body .wd-scroll-top:hover,
body [class*="scroll-to-top"]:hover {
    color: #fff !important;
    background: #a97935 !important;
    border-color: #a97935 !important;
}

/* Slightly rebalance the mobile header so the search field breathes. */
@media (max-width: 768px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 124px minmax(0,1fr) 88px; }
    .nb-brand,
    .nb-brand-logo-link { width: 124px; max-width: 124px; }
    .nb-brand-logo { width: 124px; max-width: 124px; max-height: 36px; }

    .nb-filter-heading strong { font-size: 16px; }
    .nb-filter-heading small { font-size: 11px; }
    .nb-central-heading-wrap h2 { font-size: 20px; line-height: 1.5; }
    .nb-central-heading-wrap p { font-size: 11.5px; }

    .nb-service-card strong { font-size: 12.5px; }
    .nb-service-card small { font-size: 10.2px; line-height: 1.72; }
    .nb-category-card-copy strong { font-size: 12.5px; line-height: 1.65; }
    .nb-category-card-copy small { font-size: 9.8px; }
    .nb-product-card-title { font-size: 11.5px; }

    .nb-footer-brand-logo-link { width: min(100%, 210px); }
    .nb-footer-brand-logo { max-width: 210px; max-height: 56px; }
    .nb-footer-intro { font-size: 12.5px; line-height: 2; text-align: right; }
    .nb-footer-toggle span { font-size: 14px; }
    .nb-footer-panel a { min-height: 38px; font-size: 11.5px; }
    .nb-footer-contact-list b { font-size: 10.5px; }
}

@media (max-width: 390px) {
    .nb-header-main .nb-header-inner { grid-template-columns: 116px minmax(0,1fr) 84px; }
    .nb-brand,
    .nb-brand-logo-link { width: 116px; max-width: 116px; }
    .nb-brand-logo { width: 116px; max-width: 116px; max-height: 33px; }
    .nb-footer-brand-logo-link { width: min(100%, 198px); }
    .nb-footer-brand-logo { max-width: 198px; max-height: 53px; }
}


/* Keep category toggle on the site palette in every interactive state — v2.14.66 */
body .nb-site-header .nb-category-toggle,
body .nb-site-header .nb-category-toggle:hover,
body .nb-site-header .nb-category-toggle:focus,
body .nb-site-header .nb-category-toggle:focus-visible,
body .nb-site-header .nb-category-toggle:active,
body .nb-site-header .nb-category-toggle[aria-expanded="true"] {
    color: #fff !important;
    background-color: #bd8f49 !important;
    background-image: none !important;
    border-color: #bd8f49 !important;
    outline: none !important;
    box-shadow: 0 7px 18px rgba(189,143,73,.20) !important;
    -webkit-tap-highlight-color: transparent;
}
body .nb-site-header .nb-category-toggle:hover {
    background-color: #a97935 !important;
    border-color: #a97935 !important;
}
body .nb-site-header .nb-category-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(189,143,73,.20), 0 7px 18px rgba(189,143,73,.18) !important;
}

/* ==================================================
 * Curtain builder mobile back button placement — v2.14.68
 * Keep the back action visible without squeezing the long builder title.
 * ================================================== */
@media (max-width: 768px) {
    .nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 9px;
        width: 100%;
    }
    .nb-central-container.is-curtain-builder-mode .nb-central-heading-wrap > div {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        text-align: right;
    }
    .nb-central-container.is-curtain-builder-mode #nb-central-back {
        grid-row: 1;
        width: fit-content;
        min-width: 0;
        min-height: 36px;
        padding: 6px 11px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        justify-self: start;
        border: 1px solid rgba(189,143,73,.34);
        border-radius: 10px;
        background: var(--nb-accent-soft);
        color: var(--nb-text);
        font-size: 11px;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
        box-shadow: none;
    }
    .nb-central-container.is-curtain-builder-mode #nb-central-back svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
    .nb-central-container.is-curtain-builder-mode #nb-central-title {
        margin: 0;
        max-width: 100%;
        font-size: 17px;
        line-height: 1.75;
        text-align: right;
    }
    .nb-central-container.is-curtain-builder-mode #nb-central-subtitle {
        margin-top: 3px;
        max-width: 100%;
        font-size: 11px;
        line-height: 1.8;
        text-align: right;
    }
}


/* Per-window curtain photo — v2.14.69 */
.nb-curtain-window-photo{
    margin-top:14px;
    padding:14px;
    border:1px dashed rgba(198,148,65,.42);
    border-radius:16px;
    background:linear-gradient(180deg,#fffdfa 0%,#fbf7ef 100%);
    display:grid;
    gap:10px;
}
.nb-curtain-window-photo-copy{display:flex;flex-direction:column;gap:3px}
.nb-curtain-window-photo-copy strong{font-size:15px;color:#162238}
.nb-curtain-window-photo-copy strong small{font-size:12px;font-weight:500;color:#7c8492}
.nb-curtain-window-photo-copy span{font-size:12.5px;line-height:1.8;color:#687180}
.nb-curtain-photo-select{
    min-height:44px;
    border:1px solid rgba(198,148,65,.48)!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#9a6b20!important;
    font-weight:700!important;
    box-shadow:none!important;
}
.nb-curtain-photo-preview{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    padding:9px;
    border:1px solid #eadfce;
    border-radius:13px;
    background:#fff;
}
.nb-curtain-photo-preview[hidden]{display:none!important}
.nb-curtain-photo-preview img{width:72px;height:72px;object-fit:cover;border-radius:10px;background:#f4efe7}
.nb-curtain-photo-preview>div:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:4px}
.nb-curtain-photo-preview strong{font-size:13px;color:#162238;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-curtain-photo-preview small{font-size:11.5px;color:#7c8492}
.nb-curtain-photo-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.nb-curtain-photo-actions button{min-height:36px;padding:0 10px!important;border-radius:9px!important;font-size:12px!important;background:#f8f2e8!important;color:#8a611f!important;border:1px solid #ead7b8!important;box-shadow:none!important}
.nb-curtain-photo-actions [data-curtain-photo-remove]{color:#b33232!important;background:#fff6f6!important;border-color:#efcaca!important}
@media (max-width:640px){
    .nb-curtain-window-photo{padding:12px;margin-top:12px}
    .nb-curtain-photo-preview{grid-template-columns:62px minmax(0,1fr)}
    .nb-curtain-photo-preview img{width:62px;height:62px}
    .nb-curtain-photo-actions{grid-column:1/-1;justify-content:stretch}
    .nb-curtain-photo-actions button{flex:1}
}


/* ==================================================
 * Header category menu refinement — v2.14.70
 * Compact, readable and stable on mobile without title truncation.
 * ================================================== */
body.nb-category-menu-open { overflow: hidden !important; }
.nb-category-backdrop,
.nb-category-backdrop:hover,
.nb-category-backdrop:focus,
.nb-category-backdrop:active {
    position: fixed;
    inset: 0;
    z-index: 139;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: rgba(18, 25, 38, .24) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: nb-category-backdrop-in .18s ease both;
}
.nb-category-backdrop[hidden] { display: none !important; }

.nb-category-panel {
    width: min(420px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    overflow: hidden;
    border-color: rgba(189, 143, 73, .28);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(24, 31, 43, .22);
    transform-origin: top right;
}
.nb-category-panel.is-entering { animation: nb-category-panel-in .2s cubic-bezier(.2,.8,.2,1) both; }

.nb-category-panel-header {
    position: relative;
    min-height: 64px;
    padding: 10px 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ece4d9;
    background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
}
.nb-category-title {
    max-width: 100%;
    overflow: visible;
    color: #172238;
    text-align: center;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.65;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}
.nb-category-back,
.nb-category-close {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    color: #172238 !important;
    background: #f8f6f2 !important;
    border: 1px solid #eee7dc !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transform: translateY(-50%);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nb-category-back { right: 10px; }
.nb-category-close { left: 10px; }
.nb-category-back:hover,
.nb-category-close:hover,
.nb-category-back:focus-visible,
.nb-category-close:focus-visible {
    color: #fff !important;
    background: #bd8f49 !important;
    border-color: #bd8f49 !important;
    outline: 0 !important;
}
.nb-category-back:active,
.nb-category-close:active { transform: translateY(-50%) scale(.96); }

.nb-category-list-view {
    max-height: min(58vh, 500px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(189,143,73,.38) transparent;
    background: #fff;
}
.nb-category-list-view::-webkit-scrollbar { width: 6px; }
.nb-category-list-view::-webkit-scrollbar-thumb { background: rgba(189,143,73,.38); border-radius: 99px; }
.nb-category-row,
.nb-category-row:hover,
.nb-category-row:focus,
.nb-category-row:active {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 10px 12px 10px 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 34px;
    align-items: center;
    gap: 10px;
    color: #172238 !important;
    background: #fbfaf8 !important;
    border: 1px solid #eee7dc !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    text-align: right;
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.7;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.nb-category-row:hover,
.nb-category-row:focus-visible {
    background: #fff8ec !important;
    border-color: rgba(189,143,73,.42) !important;
    box-shadow: 0 8px 18px rgba(38,42,50,.06) !important;
    transform: translateX(-2px);
    outline: 0 !important;
}
.nb-category-row:active { transform: scale(.992); }
.nb-category-row-name {
    min-width: 0;
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}
.nb-category-row-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a97935;
    background: #fff;
    border: 1px solid #eee5d8;
    border-radius: 10px;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.nb-category-row:hover .nb-category-row-arrow,
.nb-category-row:focus-visible .nb-category-row-arrow {
    color: #fff;
    background: #bd8f49;
    transform: translateX(-1px);
}
.nb-category-row-arrow .nb-svg-icon { width: 18px; height: 18px; }
.nb-category-empty { padding: 20px 14px; border: 1px dashed #e8ddce; border-radius: 13px; background: #fbfaf8; }

@keyframes nb-category-panel-in {
    from { opacity: 0; transform: translateY(-8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nb-category-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .nb-category-panel {
        top: 146px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 166px);
        border-radius: 20px;
        transform-origin: top center;
    }
    body.admin-bar .nb-category-panel { top: 191px; max-height: calc(100dvh - 211px); }
    .nb-category-panel-header { min-height: 62px; padding: 9px 56px; }
    .nb-category-title { font-size: 15px; line-height: 1.65; }
    .nb-category-back,
    .nb-category-close { width: 40px; height: 40px; }
    .nb-category-list-view {
        max-height: calc(100dvh - 250px);
        padding: 10px;
        gap: 7px;
    }
    body.admin-bar .nb-category-list-view { max-height: calc(100dvh - 295px); }
    .nb-category-row,
    .nb-category-row:hover,
    .nb-category-row:focus,
    .nb-category-row:active {
        min-height: 56px;
        padding: 10px 11px 10px 9px;
        grid-template-columns: minmax(0,1fr) 34px;
        font-size: 13px;
        border-radius: 14px !important;
    }
}

@media (max-width: 390px) {
    .nb-category-panel { right: 8px; left: 8px; border-radius: 18px; }
    .nb-category-panel-header { padding-inline: 52px; }
    .nb-category-title { font-size: 14px; }
    .nb-category-row,
    .nb-category-row:hover,
    .nb-category-row:focus,
    .nb-category-row:active { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .nb-category-panel.is-entering,
    .nb-category-backdrop { animation: none !important; }
    .nb-category-row,
    .nb-category-row-arrow,
    .nb-category-back,
    .nb-category-close { transition: none !important; }
}


/* Central category cards: keep every tap/focus state on the brand palette — v2.14.71 */
body .nb-category-card,
body .nb-category-card:hover,
body .nb-category-card:focus,
body .nb-category-card:focus-visible,
body .nb-category-card:active {
    color: var(--nb-text, #17243b) !important;
    background: linear-gradient(145deg, #fffdfa 0%, #f8f1e6 100%) !important;
    border-color: #e8ddce !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    appearance: none;
}
body .nb-category-card:hover,
body .nb-category-card:focus-visible {
    border-color: rgba(189,143,73,.58) !important;
    box-shadow: 0 10px 25px rgba(66,49,27,.09), 0 0 0 3px rgba(189,143,73,.08) !important;
    transform: translateY(-2px);
}
body .nb-category-card:active {
    color: var(--nb-text, #17243b) !important;
    background: linear-gradient(145deg, #fbf2e3 0%, #f3e4cd 100%) !important;
    border-color: #bd8f49 !important;
    box-shadow: 0 4px 12px rgba(66,49,27,.10), inset 0 0 0 1px rgba(189,143,73,.12) !important;
    transform: scale(.985);
}
body .nb-category-card .nb-category-card-copy strong,
body .nb-category-card:hover .nb-category-card-copy strong,
body .nb-category-card:focus .nb-category-card-copy strong,
body .nb-category-card:focus-visible .nb-category-card-copy strong,
body .nb-category-card:active .nb-category-card-copy strong {
    color: var(--nb-text, #17243b) !important;
}
body .nb-category-card .nb-category-card-copy small,
body .nb-category-card:hover .nb-category-card-copy small,
body .nb-category-card:focus .nb-category-card-copy small,
body .nb-category-card:focus-visible .nb-category-card-copy small,
body .nb-category-card:active .nb-category-card-copy small {
    color: #69717c !important;
}
body .nb-category-card .nb-category-card-icon,
body .nb-category-card:hover .nb-category-card-icon,
body .nb-category-card:focus .nb-category-card-icon,
body .nb-category-card:focus-visible .nb-category-card-icon,
body .nb-category-card:active .nb-category-card-icon {
    color: #a97935 !important;
    background: #fbf0dc !important;
    border: 1px solid rgba(189,143,73,.12);
}
body .nb-category-card .nb-category-card-arrow,
body .nb-category-card:hover .nb-category-card-arrow,
body .nb-category-card:focus .nb-category-card-arrow,
body .nb-category-card:focus-visible .nb-category-card-arrow,
body .nb-category-card:active .nb-category-card-arrow {
    color: #a97935 !important;
    background: #fffaf2 !important;
    border: 1px solid #eee2d1;
}


/* Central hierarchy back button: lock all states to the site brand palette — v2.14.72 */
body #nb-central-back.nb-central-back,
body #nb-central-back.nb-central-back:hover,
body #nb-central-back.nb-central-back:focus,
body #nb-central-back.nb-central-back:focus-visible,
body #nb-central-back.nb-central-back:active {
    min-height: 42px;
    padding: 8px 13px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #17243b !important;
    background-color: #fff8ec !important;
    background-image: none !important;
    border: 1px solid rgba(189,143,73,.55) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(69,49,23,.07) !important;
    outline: 0 !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease !important;
}
body #nb-central-back.nb-central-back svg,
body #nb-central-back.nb-central-back .nb-svg-icon {
    color: #a97935 !important;
    stroke: currentColor !important;
}
body #nb-central-back.nb-central-back:hover,
body #nb-central-back.nb-central-back:focus-visible {
    color: #17243b !important;
    background-color: #fbf0dc !important;
    border-color: #bd8f49 !important;
    box-shadow: 0 7px 17px rgba(69,49,23,.10), 0 0 0 3px rgba(189,143,73,.08) !important;
}
body #nb-central-back.nb-central-back:active {
    color: #fff !important;
    background-color: #a97935 !important;
    border-color: #a97935 !important;
    box-shadow: 0 3px 8px rgba(69,49,23,.14) !important;
    transform: scale(.97) !important;
}
body #nb-central-back.nb-central-back:active svg,
body #nb-central-back.nb-central-back:active .nb-svg-icon {
    color: #fff !important;
}
