/* Nuspace — Shop pages: parts drawn by the shop module (values from mockup option 1). */

/* Visually hidden (screen readers only) */
.ns-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Breadcrumbs */
.ns-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--ink-soft); margin: 0 0 14px; padding: 0; list-style: none; }
.ns-crumbs li { margin: 0; }
.ns-crumbs a { color: var(--ink-soft); text-decoration: none; }
.ns-crumbs a:hover { color: var(--primary); }
.ns-crumbs li + li::before { content: "/"; margin-right: 6px; color: #B9B4AD; }

/* Sub-category chips */
.ns-subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.ns-subcat { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--white); line-height: 1.6; }
.ns-subcat:hover { border-color: var(--primary); color: var(--primary); }
.ns-subcat.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Swatch dot */
.ns-sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; font-style: normal; }

/* Filters */
.ns-filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.ns-filters form { display: grid; gap: 4px; margin: 0; }
.ns-filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.ns-filters-head h2 { font-size: 1.15rem; margin: 0; }
.ns-linkbtn { color: var(--primary); font: 600 .9rem var(--font-text, inherit); text-decoration: none; }
.ns-fgroup { border-top: 1px solid var(--line); padding-block: 4px 14px; }
.ns-fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 10px; font-weight: 600; cursor: pointer; }
.ns-fgroup summary::-webkit-details-marker { display: none; }
.ns-fgroup summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-soft); border-bottom: 1.6px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s; }
.ns-fgroup[open] summary::after { transform: rotate(-135deg); }
.ns-fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .94rem; cursor: pointer; line-height: 1.4; color: var(--ink); font-weight: 400; }
.ns-fopt input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.ns-fopt-n { margin-left: auto; color: var(--ink-soft); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ns-fopts:not(.is-all):not(.is-searching) > .ns-fopt--more, .ns-fopt[hidden] { display: none; }
.ns-fmore { display: inline-flex; margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--primary); font: 600 .9rem var(--font-text, inherit); cursor: pointer; }
.ns-fmore:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-fmore[hidden] { display: none; }
.ns-fsearch { width: 100%; min-height: 40px; margin: 0 0 6px; padding: 0 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-s, 8px); background: var(--white); font: inherit; font-size: .92rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.ns-fsearch:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4, 166, 247, .18); }
.ns-fnone { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; }
.ns-price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding-top: 4px; }
.ns-price-row input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #CFCAC3; border-radius: 8px; font: inherit; font-size: .95rem; background: var(--white); color: var(--ink); -moz-appearance: textfield; }
.ns-price-row input::-webkit-outer-spin-button, .ns-price-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ns-filters-apply { display: none; }
.ns-filters-btn { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 999px; background: var(--primary); color: var(--white); font: 600 .98rem/1 var(--font-text, inherit); cursor: pointer; }
.ns-filters-btn:hover { background: var(--primary-hover); }
.ns-sheet-scrim[hidden] { display: none; }

/* Toolbar */
.ns-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ns-toolbar-count { color: var(--ink-soft); font-size: .95rem; font-variant-numeric: tabular-nums; margin: 0; }
.ns-toolbar-count b { color: var(--ink); font-weight: 600; }
.ns-toolbar-r { display: flex; gap: 10px; align-items: center; }
.ns-sort { min-height: 44px; padding: 8px 38px 8px 14px; border: 1px solid #CFCAC3; border-radius: 999px; font: inherit; font-size: .92rem; color: var(--ink); appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D3936' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center/11px no-repeat; cursor: pointer; }
.ns-filter-toggle { display: none; min-height: 44px; padding: 0 22px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 .98rem/1 var(--font-text, inherit); cursor: pointer; }
.ns-active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ns-achip { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px 6px 14px; border-radius: 999px; background: #E6F6FE; color: var(--primary); font-size: .86rem; font-weight: 500; text-decoration: none; }
.ns-achip::after { content: "×"; font-size: 1.1rem; line-height: 1; }
.ns-empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.ns-empty a { color: var(--primary); font-weight: 600; }

/* Pager */
.ns-pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.ns-pager a, .ns-pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0 12px; }
.ns-pager a:hover { border-color: var(--ink); }
.ns-pager .is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ns-pager .ns-pager-gap { border: 0; }

/* Category text below the products */
.ns-shop-seo { max-width: 72ch; color: var(--ink-soft); }
.ns-shop-seo h2 { font-size: 1.45rem; color: var(--ink); margin: 0 0 14px; }
.ns-shop-seo p { margin: 0 0 12px; }
.ns-shop-seo a { color: var(--primary); }

/* Product page: gallery */
.ns-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.ns-gallery--single { grid-template-columns: minmax(0, 1fr); }
.ns-thumbs { display: grid; gap: 10px; align-content: start; }
.ns-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.ns-thumbs button[aria-pressed="true"] { border: 2px solid var(--primary); }
.ns-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ns-stage { border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; background: var(--white); overflow: hidden; }
.ns-stage img { width: 86%; height: 86%; object-fit: contain; }

/* Product page: facts, finishes, meta */
.ns-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-fact { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--surface-warm); font-size: .88rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
.ns-fact svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.ns-finishes h2 { font: 600 .95rem/1.2 var(--font-text, inherit); margin: 0 0 12px; color: var(--ink); letter-spacing: 0; }
.ns-finishes h2 span { font-weight: 400; color: var(--ink-soft); }
.ns-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-swatch { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 3px var(--white); display: block; }
.ns-swatch:hover { border-color: var(--ink-soft); }
.ns-swatch.is-on { outline: 2px solid var(--primary); outline-offset: 2px; }
.ns-pmeta { font-size: .88rem; color: var(--ink-soft); display: flex; gap: 18px; flex-wrap: wrap; }
.ns-pmeta b { color: var(--ink); font-weight: 500; }

/* Product page: details */
.ns-pdesc h2, .ns-pdocs h2, .ns-pspecs h2 { font-size: 1.45rem; margin: 0 0 16px; }
.ns-pdesc p { color: var(--ink-soft); max-width: 62ch; margin: 0 0 12px; }
.ns-feat { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; }
.ns-pdocs { margin-top: 36px; }
.ns-docs-list { display: grid; gap: 10px; }
.ns-doc { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.ns-doc:hover { border-color: var(--primary); }
.ns-doc-ico { width: 40px; height: 46px; border-radius: 6px; background: #FBEBEB; color: #B3261E; display: grid; place-items: center; font: 700 .7rem/1 var(--font-text, inherit); flex: none; }
.ns-doc-txt { display: grid; }
.ns-doc small { color: var(--ink-soft); font-size: .82rem; }
.ns-doc::after { content: "↓"; margin-left: auto; color: var(--primary); font-weight: 600; }
.ns-spec { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ns-spec th, .ns-spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ns-spec th { font-weight: 500; color: var(--ink-soft); width: 48%; padding-right: 16px; }

/* Header: "Products" marked as the current section */
@media (min-width: 1101px) {
	.ns-in-products #brxe-h00034 > .brx-submenu-toggle, .ns-in-products #brxe-h00034 > .brx-submenu-toggle a { color: var(--primary); }
}

/* Tablet and phone: filters become a bottom sheet */
@media (max-width: 900px) {
	.ns-filter-toggle { display: inline-flex; align-items: center; }
	.ns-filters { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 1002; max-height: 86vh; overflow-y: auto; background: var(--white); border-radius: 18px 18px 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4); transform: translateY(105%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s; }
	.ns-filters.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
	.ns-filters-apply { display: flex; position: sticky; bottom: 0; margin-top: 10px; background: var(--white); padding-top: 8px; }
	.ns-sheet-scrim { position: fixed; inset: 0; z-index: 1001; background: rgba(31,29,27,.5); }
	.ns-gallery { position: static; grid-template-columns: minmax(0, 1fr); }
	.ns-thumbs { grid-template-columns: repeat(5, 64px); order: 2; }
}
@media (max-width: 640px) {
	.ns-toolbar-count { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ns-filters { transition: none !important; }
}
@media (max-width: 900px) { .ns-fsearch { font-size: 16px; } } /* 16px stops iPhones zooming in when the box is tapped. */
/* Instant finish switch: dim the product while the next finish loads (usually a split second). */
#brxe-sppag1.ns-swapping .ns-gallery, #brxe-sppag1.ns-swapping .ns-pinfo { opacity: .55; transition: opacity .15s ease .05s; }
