/* Site-level additions to the design system styles: real-page behaviour and the mobile layout. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* the page width never changes when a scrollbar comes or goes, so the header never shifts */
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
body.ne-locked { overflow: hidden; }
:where(.ne-page) img { max-width: 100%; display: block; }
.ne-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--action); color: var(--on-action); padding: 8px 16px; }
.ne-skip:focus { top: 8px; }
.ne-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: var(--space-4); color: var(--ink-muted); font-size: 14px; animation: ne-fade .3s .15s ease both; }
.ne-loading::before { content: ""; width: 36px; height: 36px; border: 1.5px solid var(--line); border-top-color: var(--plum); border-radius: 50%; animation: ne-spin .9s linear infinite; }
.ne-mobile-only { display: none !important; }
.ne-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 14px; }
.ne-iconbtn { text-decoration: none; }
.ne-header__left { display: flex; align-items: center; gap: var(--space-2); }
.ne-header { position: sticky; top: 0; z-index: 20; }
.ne-logo img { object-fit: contain; max-width: none; } /* a % max-width lets the header grid squeeze the logo to 0 */
/* Show the whole product: fit, never crop. White photo backgrounds blend into the grey frame. */
.ne-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; mix-blend-mode: multiply; }
[data-theme="noir"] .ne-photo img { mix-blend-mode: normal; }
.ne-card-wrap { position: relative; }
.ne-card-wrap .ne-wish { position: absolute; top: 6px; right: 6px; z-index: 1; }
.ne-card .ne-photo { transition: opacity .2s; }
.ne-card:hover .ne-photo { opacity: .92; }
.ne-btn.is-disabled { opacity: .45; pointer-events: none; }
.ne-btn:disabled { opacity: 1; }
.ne-wish[aria-pressed="true"] .ne-icon, .ne-wishbtn[aria-pressed="true"] .ne-icon { fill: currentColor; }
.ne-section--rule { border-top: 1px solid var(--line); }
/* The first screen fits the window, so the whole photo is visible without scrolling. */
@media (min-width: 901px) { .ne-hero__photo { aspect-ratio: auto; height: clamp(480px, calc(100svh - 110px), 820px); } }
.ne-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.ne-band__text { display: grid; gap: var(--space-8); max-width: 440px; }
.ne-band__title { font-size: 48px; line-height: 52px; }
.ne-band__photo { width: 420px; justify-self: end; }
.ne-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.ne-account__main { display: grid; gap: var(--space-8); align-content: start; }
.ne-side__out { text-align: left; padding: 10px 0; margin-top: var(--space-4); color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.ne-status--5 { grid-template-columns: repeat(5, 1fr); }
.ne-order-thumbs { display: flex; gap: var(--space-4); margin-top: var(--space-8); }
.ne-order-thumbs .ne-photo { width: 88px; }
.ne-order-items { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.ne-option--off { opacity: .55; cursor: default; }
.ne-checkout__submit { justify-self: start; }
.ne-checkout .ne-announce { display: none; }

/* notices, empty states, toast */
.ne-notice { background: var(--surface-sunken); border: 1px solid var(--line); padding: 12px var(--space-4); font-size: 14px; margin: 0 0 var(--space-4); }
.ne-notice--error { border-color: var(--plum); color: var(--ink); }
.ne-empty { display: grid; justify-items: start; gap: var(--space-4); padding: var(--space-8) 0; grid-column: 1 / -1; }
.ne-empty p { margin: 0; }
.ne-empty--page { padding: var(--space-16) 0; }
.ne-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--action); color: var(--on-action); padding: 12px 20px; font-size: 14px; max-width: calc(100% - 32px); }

/* tabs (sign in / register) */
.ne-auth { max-width: 440px; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.ne-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: var(--space-8); }
.ne-tabs button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 12px 0; cursor: pointer; font-size: 15px; color: var(--ink-muted); }
.ne-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

/* order confirmation */
.ne-thanks { max-width: 640px; padding-top: var(--space-16); padding-bottom: var(--space-16); display: grid; gap: var(--space-8); }
.ne-thanks__head { display: grid; gap: var(--space-4); justify-items: start; }
.ne-thanks__head p { margin: 0; }
.ne-thanks__icon { width: 40px; height: 40px; padding: 8px; border-radius: var(--radius-pill); background: var(--orchid-mist); stroke-width: 1.6; }
.ne-thanks__panel { display: grid; gap: var(--space-4); }
.ne-thanks__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* overlays: menu, search, mobile filters */
.ne-overlay { position: fixed; inset: 0; z-index: 50; background: rgb(23 18 27 / .32); }
.ne-overlay[hidden] { display: none; }
.ne-sheet { position: absolute; background: var(--surface); overflow: auto; }
.ne-sheet--left { top: 0; bottom: 0; left: 0; width: min(380px, 88vw); display: flex; flex-direction: column; }
.ne-sheet--top { top: 0; left: 0; right: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.ne-sheet__nav { display: grid; padding: var(--space-2) 0 var(--space-8); }
.ne-sheet__nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.ne-searchbar { display: flex; align-items: center; gap: var(--space-4); }
.ne-searchbar__input { flex: 1; border: 0; border-bottom: 1px solid var(--ink); height: 52px; font: 400 22px/1 var(--font-display); background: transparent; outline-offset: 4px; }

/* listing: filters column becomes a drawer on small screens */
.ne-overlay--filters { position: static; background: none; display: contents; z-index: auto; }
.ne-overlay--filters[hidden] { display: contents; }
.ne-overlay--filters > .ne-sheet { position: static; overflow: visible; width: auto; display: block; }
.ne-listing--nofilters { grid-template-columns: 1fr; }
.ne-listing--nofilters .ne-filters { display: none !important; }
.ne-listing--nofilters .ne-grid { grid-template-columns: repeat(4, 1fr); }
.ne-toolbar__left { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.ne-sort { display: flex; gap: 8px; align-items: center; }

/* two-thumb price range */
.ne-range input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; }
.ne-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); cursor: pointer; }
.ne-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); cursor: pointer; }
.ne-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.ne-range input[type="range"]::-moz-range-track { background: none; }

/* product page gallery */
.ne-thumb { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; display: block; width: 100%; }
.ne-thumb[aria-current] { border-color: var(--ink); }
.ne-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ne-gallery__item { position: relative; scroll-margin-top: 120px; }
.ne-gallery__item:first-child { grid-column: 1 / -1; }
.ne-pdp__info { top: 120px; }
.ne-mbar { position: fixed; z-index: 15; }

@media (max-width: 1100px) {
  .ne-pdp { grid-template-columns: 1fr 380px; }
  .ne-thumbs { display: none; }
  .ne-grid--4, .ne-listing--nofilters .ne-grid { grid-template-columns: repeat(3, 1fr); }
  .ne-cart { grid-template-columns: 1fr 340px; gap: var(--space-8); }
}

@media (max-width: 900px) {
  .ne-mobile-only { display: revert !important; }
  .ne-drawer__head.ne-mobile-only { display: flex !important; }
  .ne-drawer__foot.ne-mobile-only, .ne-chips.ne-mobile-only { display: grid !important; }
  .ne-chips.ne-mobile-only { display: flex !important; }
  .ne-desktop-only { display: none !important; }
  .ne-wrap { padding: 0 var(--space-4); }
  .ne-announce { font-size: 12px; line-height: 32px; }
  .ne-header__row { height: 64px; }
  .ne-nav { display: none; }
  .ne-logo img { height: 44px; }
  .ne-tools { gap: 0; }
  .ne-display { font-size: 40px; line-height: 44px; }
  .ne-h1 { font-size: 28px; line-height: 34px; }
  .ne-section { padding: var(--space-8) 0; }
  .ne-section__head { margin-bottom: var(--space-4); }
  .ne-listhead { padding: var(--space-4) 0 var(--space-2); flex-wrap: wrap; gap: 8px; }
  .ne-crumbs { padding: 12px 0 0; flex-wrap: wrap; }

  .ne-hero { grid-template-columns: 1fr; min-height: 0; }
  .ne-hero__photo { min-height: 0 !important; aspect-ratio: 4 / 3; }
  .ne-hero__text { padding: var(--space-8) var(--space-4) var(--space-4); gap: var(--space-4); }
  .ne-tiles { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .ne-grid, .ne-grid--4, .ne-listing--nofilters .ne-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-2); }
  .ne-band__row { grid-template-columns: 1fr; padding-top: var(--space-8); padding-bottom: var(--space-8); gap: var(--space-8); min-height: 0; }
  .ne-band__title { font-size: 34px; line-height: 38px; }
  .ne-band__photo { width: 100%; }
  .ne-services { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-4); }
  .ne-footer { padding-top: var(--space-8); }
  .ne-footer__cols { grid-template-columns: 1fr 1fr; }
  .ne-footer__cols > div:first-child { grid-column: 1 / -1; }
  .ne-footer__base { flex-direction: column; gap: 8px; margin-top: var(--space-8); }

  .ne-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
  .ne-chips--scroll::-webkit-scrollbar { display: none; }
  .ne-chip { flex: none; }
  .ne-toolbar { padding: 8px 0; }
  .ne-sort > span { display: none; }
  .ne-listing { grid-template-columns: 1fr; padding-top: var(--space-4); gap: 0; }
  .ne-overlay--filters { position: fixed; inset: 0; z-index: 50; background: rgb(23 18 27 / .32); display: none; }
  .ne-overlay--filters.is-open { display: block; }
  .ne-overlay--filters > .ne-sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); display: flex; flex-direction: column; }
  .ne-filters__body { flex: 1; overflow: auto; padding: 0 var(--space-4); }
  .ne-more { margin-top: var(--space-8); }

  .ne-pdp { grid-template-columns: 1fr; gap: var(--space-4); padding-top: 0; }
  .ne-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0 calc(-1 * var(--space-4)); scrollbar-width: none; }
  .ne-gallery::-webkit-scrollbar { display: none; }
  .ne-gallery__item { flex: 0 0 100%; scroll-snap-align: start; }
  .ne-pdp__info { position: static; gap: var(--space-4); padding-bottom: 96px; }
  .ne-pdp__title { font-size: 30px; line-height: 36px; }
  .ne-sizes { flex-wrap: wrap; }
  .ne-size { min-width: 0; flex: 1; }
  .ne-mbar { display: block !important; left: 0; right: 0; bottom: 0; padding: 12px var(--space-4); background: var(--surface); border-top: 1px solid var(--line); }
  .ne-pdp__info .ne-pdp__actions { display: none; }

  .ne-cart { grid-template-columns: 1fr; gap: var(--space-8); padding-top: var(--space-4); }
  .ne-item { grid-template-columns: 96px 1fr; gap: var(--space-4); padding: var(--space-4) 0; }
  .ne-item__price { grid-column: 2; text-align: left; }
  .ne-item__bottom { flex-wrap: wrap; gap: var(--space-4); }
  .ne-summary { padding: var(--space-4); }
  .ne-form__row { grid-template-columns: 1fr; }
  .ne-checkout__submit { width: 100%; }

  .ne-account { grid-template-columns: 1fr; gap: var(--space-4); padding-top: var(--space-2); }
  .ne-side { display: flex; overflow-x: auto; gap: var(--space-4); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ne-side a, .ne-side__out { flex: none; padding: 10px 0; margin: 0; }
  .ne-side a[aria-current] { border-bottom: 1px solid var(--ink); }
  .ne-panel { padding: var(--space-4); }
  .ne-kv { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .ne-status, .ne-status--5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; font-size: 11px; }
  .ne-auth, .ne-thanks { padding-top: var(--space-8); padding-bottom: var(--space-8); }
}

/* Google sign-in */
.ne-google { gap: 10px; }
.ne-or { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-4) 0; color: var(--ink-muted); font-size: 13px; }
.ne-or::before, .ne-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Admin panel */
.ne-adm-list { display: grid; gap: var(--space-4); }
.ne-adm-order.is-new { border-left: 3px solid var(--plum); }
.ne-adm-order__head { display: flex; justify-content: space-between; gap: var(--space-4); cursor: pointer; font-size: 15px; line-height: 1.5; }
.ne-adm-order__sum { text-align: right; flex: none; }
.ne-adm-order__controls { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-4); margin-top: var(--space-4); }
.ne-adm-order__controls label { display: grid; gap: 4px; }
.ne-adm-order__controls .ne-select { height: 40px; width: auto; min-width: 170px; background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px; }
.ne-adm-bar { display: flex; gap: var(--space-4); }
.ne-adm-bar .ne-btn { flex: none; }
.ne-adm-product { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4); font-size: 15px; line-height: 1.5; }
.ne-adm-flag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--orchid-mist); color: var(--plum); }
.ne-adm-flag--off { background: var(--surface-sunken); color: var(--ink-muted); }
.ne-adm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--plum); color: var(--on-plum); font-size: 12px; }
.ne-adm-editor { gap: var(--space-8); }
.ne-adm-area { height: auto; padding: 12px var(--space-4); line-height: 1.5; resize: vertical; }
.ne-adm-checks { display: flex; flex-wrap: wrap; gap: 4px var(--space-8); border: 0; padding: 0; margin: 0; }
.ne-adm-checks legend { width: 100%; margin-bottom: 4px; }
.ne-adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-4); }
.ne-adm-photo { display: grid; gap: 6px; }
.ne-adm-photo img { aspect-ratio: 1; width: 100%; object-fit: contain; mix-blend-mode: multiply; background: var(--surface-product); }
.ne-adm-photo div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ne-adm-upload { aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--ink-muted); cursor: pointer; font-size: 14px; }
.ne-adm-upload:hover { border-color: var(--ink); color: var(--ink); }
.ne-adm-variants { display: grid; gap: var(--space-2); }
.ne-adm-variant { display: grid; grid-template-columns: 48px 1fr 110px 40px; gap: var(--space-2); align-items: center; }
.ne-adm-variant input[type="color"] { width: 48px; height: 48px; padding: 2px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.ne-adm-actions { display: flex; gap: var(--space-4); }
.ne-adm-table-wrap { overflow-x: auto; }
.ne-adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ne-adm-table th { text-align: left; font-weight: 500; color: var(--ink-muted); font-size: 13px; }
.ne-adm-table th, .ne-adm-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 760px) {
  .ne-adm-bar { flex-direction: column; }
  .ne-adm-product { grid-template-columns: 56px 1fr; }
  .ne-adm-product .ne-btn { grid-column: 1 / -1; }
  .ne-adm-variant { grid-template-columns: 44px 1fr 72px 36px; }
  .ne-adm-order__controls .ne-select { min-width: 0; width: 100%; }
  .ne-adm-order__controls label { flex: 1 1 140px; }
}

/* ---------- Motion: soft page and product appearance ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
/* The header stays put while the page changes beneath it, and stays pinned while scrolling. */
#site-header { display: contents; }
.ne-announce { view-transition-name: ne-announce; }
.ne-header { view-transition-name: ne-header; }
::view-transition-group(ne-header), ::view-transition-group(ne-announce) { animation: none; }
::view-transition-old(ne-header), ::view-transition-old(ne-announce) { display: none; }
::view-transition-new(ne-header), ::view-transition-new(ne-announce) { animation: none; }
@keyframes ne-spin { to { transform: rotate(360deg); } }
@keyframes ne-fade { from { opacity: 0; } }
@keyframes ne-rise { from { opacity: 0; transform: translateY(16px); } }
.ne-page:not(.ne-adm-page) #app > * { animation: ne-fade .5s ease both; }
.ne-card-wrap, .ne-tile, .ne-hero__text > *, .ne-band__text > *, .ne-services > div, .ne-pdp__info > * {
  animation: ne-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n, 0) * 70ms + 80ms);
}
.ne-photo img { animation: ne-fade .8s ease both; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(2) { --n: 1; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(3) { --n: 2; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(4) { --n: 3; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(5) { --n: 4; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(6) { --n: 5; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-band__text, .ne-services, .ne-pdp__info) > :nth-child(n+7) { --n: 6; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .ne-loading::before { animation: ne-spin 1.5s linear infinite !important; }
}

/* ---------- Admin: spreadsheet, site texts, help ---------- */
.ne-wrap--wide { max-width: none; }
.ne-account__main { min-width: 0; }
.ne-xl__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.ne-xl__bar .ne-btn:disabled { opacity: .45; }
.ne-xl__help { margin: var(--space-4) 0; font-size: 14px; color: var(--ink-muted); }
.ne-xl__help summary { cursor: pointer; color: var(--ink); }
.ne-xl__help ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }
.ne-xl { overflow: auto; max-height: 70vh; border: 1px solid var(--line); background: var(--surface); }
.ne-xl__table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; width: max-content; }
.ne-xl__table th, .ne-xl__table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.ne-xl__table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-sunken); font-weight: 500; text-align: left; padding: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ne-xl__table thead th[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.ne-xl__table .ne-xl__num { position: sticky; left: 0; z-index: 1; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 400; text-align: right; padding: 0 8px; white-space: nowrap; }
.ne-xl__table thead .ne-xl__num { z-index: 3; }
.ne-xl__rm { display: none; margin-left: 4px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.ne-xl__table tr:hover .ne-xl__rm, .ne-xl__table tr:focus-within .ne-xl__rm { display: inline; }
.ne-xl__rm:hover { color: var(--plum); }
.ne-xl__in { width: 100%; height: 34px; border: 0; padding: 0 8px; background: transparent; color: var(--ink); font: inherit; }
.ne-xl__in:focus { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--surface); }
.ne-xl__table tr.is-dup td:not(.is-v) .ne-xl__in { color: var(--ink-muted); }
.ne-xl__photo { display: flex; align-items: center; }
.ne-xl__up { flex: none; margin: 0 6px; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 12px; white-space: nowrap; cursor: pointer; background: var(--surface); }
.ne-xl__up:hover { border-color: var(--ink); }
.ne-xl__table tr.is-new td { background: color-mix(in srgb, var(--orchid-mist) 45%, transparent); }
.ne-xl__table tr.is-dirty .ne-xl__num { box-shadow: inset 3px 0 0 var(--plum); color: var(--plum); }
.ne-xl__table td.is-bad { background: #fbe9ea; }
.ne-xl__table td.is-bad .ne-xl__in { box-shadow: inset 0 0 0 1px #b3261e; }
.ne-cms__tabs { margin-bottom: var(--space-4); }
.ne-cms { gap: var(--space-4); }
.ne-cms__field { display: grid; gap: 6px; }
.ne-cms__field--toggle { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px var(--space-4); }
.ne-cms__field--toggle .ne-cms__hint { grid-column: 1 / -1; }
.ne-cms__label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.ne-cms__hint { margin: 0; }
.ne-cms__image { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: start; }
.ne-cms__thumb { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-product); overflow: hidden; }
.ne-cms__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ne-cms__imgctl { display: grid; gap: var(--space-2); }
.ne-cms__imgctl > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.ne-cms__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 var(--space-4); max-height: 320px; overflow: auto; border: 1px solid var(--line); padding: 8px 12px; }
.ne-adm-cats .ne-input { height: 40px; min-width: 120px; }
.ne-adm-cats td { vertical-align: middle; }
.ne-help { line-height: 1.6; font-size: 15px; }
.ne-help .ne-kv { grid-template-columns: 1fr 1fr; }
.ne-help h3 { font-size: 16px; font-weight: 500; margin: var(--space-8) 0 var(--space-2); }
.ne-help ul { padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 640px) {
  .ne-cms__image { grid-template-columns: 80px 1fr; }
  .ne-xl { max-height: 65vh; }
}
.ne-xl__ro { padding: 0 8px; color: var(--ink-muted); }
.ne-pre { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--orchid-mist); color: var(--plum); white-space: nowrap; vertical-align: 1px; }
.ne-xl__req { color: var(--plum); font-weight: 500; margin-left: 2px; }
/* Language menu in the header */
.ne-langmenu { position: relative; }
.ne-langbtn { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 6px 0 10px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); font: 500 12px/1 var(--font-sans); letter-spacing: .08em; cursor: pointer; transition: background-color .3s ease; }
.ne-langbtn:hover, .ne-langbtn[aria-expanded="true"] { background: var(--surface-sunken); }
.ne-langbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ne-langbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ne-langlist { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 184px; padding: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(23, 18, 27, .08); animation: ne-drop .28s cubic-bezier(.2, .8, .2, 1) both; }
.ne-langlist[hidden] { display: none; }
.ne-langlist button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 0; background: none; color: var(--ink); font: 400 14px/1.2 var(--font-sans); text-align: left; cursor: pointer; transition: background-color .25s ease; }
.ne-langlist button:hover, .ne-langlist button:focus-visible { background: var(--surface-sunken); outline: none; }
.ne-langlist__code { font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); }
.ne-langlist button[aria-checked="true"] { font-weight: 500; }
.ne-langlist button[aria-checked="true"] .ne-langlist__code { color: var(--plum); }
.ne-langlist button[aria-checked="true"] .ne-langlist__code::before { content: "● "; font-size: 8px; vertical-align: 2px; }
@keyframes ne-drop { from { opacity: 0; transform: translateY(-6px); } }
.ne-xl__sel { appearance: none; cursor: pointer; padding-right: 22px; background: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%) calc(100% - 13px) 15px / 5px 5px no-repeat, linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%) calc(100% - 8px) 15px / 5px 5px no-repeat; }
.ne-xl__ro .ne-xl__in { color: var(--ink-muted); background: var(--surface-sunken); }
.ne-xl__langs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.ne-cms__langs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); }

/* ---------- Soft press and hover on everything clickable ---------- */
.ne-btn, .ne-chip, .ne-iconbtn, .ne-swatch, .ne-size, .ne-thumb, .ne-wish, .ne-stepper button, .ne-tile, .ne-option, .ne-xl__up {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.ne-btn:active:not(:disabled), .ne-chip:active, .ne-swatch:active, .ne-option:active, .ne-xl__up:active { transform: scale(.97); transition-duration: .12s; }
.ne-iconbtn:hover { background: var(--surface-sunken); }
.ne-iconbtn:active, .ne-wish:active, .ne-stepper button:active:not(:disabled) { transform: scale(.88); transition-duration: .12s; }
.ne-btn--secondary:hover, .ne-btn--ghost:hover { background: var(--surface-sunken); }
.ne-card .ne-photo img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ne-card:hover .ne-photo img { transform: scale(1.03); }
.ne-link, .ne-linkbtn, .ne-nav a, .ne-footer a { transition: color .3s ease, opacity .3s ease, text-decoration-color .3s ease; }
@media (prefers-reduced-motion: reduce) { .ne-btn:active, .ne-iconbtn:active, .ne-card:hover .ne-photo img { transform: none !important; } }

/* ---------- Card photo strip: arrows on hover, swipe on phones ---------- */
.ne-card__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ne-card__track::-webkit-scrollbar { display: none; }
.ne-card__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.ne-card__nav { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; pointer-events: none; }
.ne-card__arrow { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); cursor: pointer; pointer-events: auto; opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
.ne-card__arrow .ne-icon { width: 16px; height: 16px; }
.ne-card__arrow[data-slide="-1"] { left: 10px; transform: translateX(-4px); }
.ne-card__arrow[data-slide="-1"] .ne-icon { transform: rotate(180deg); }
.ne-card__arrow[data-slide="1"] { right: 10px; transform: translateX(4px); }
.ne-card-wrap:hover .ne-card__arrow, .ne-card__arrow:focus-visible { opacity: 1; transform: none; }
.ne-card__arrow:hover { background: var(--surface); }
.ne-card__arrow:active { transform: scale(.9); transition-duration: .12s; }
.ne-card__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.ne-card__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .2; transition: opacity .3s ease, transform .3s ease; }
.ne-card__dots i.is-on { opacity: .75; transform: scale(1.2); }
@media (hover: none) { .ne-card__arrow { opacity: .8; transform: none; width: 30px; height: 30px; margin-top: -15px; } }
