/* 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; }
/* Hero: product on a soft orchid glow, the house spiral behind the text, the last title line in italic plum. */
.ne-hero__photo { background: radial-gradient(110% 85% at 35% 30%, #ffffff 0%, var(--orchid-mist) 60%, #dccfe9 100%); }
.ne-hero .ne-hero__photo img { padding: 7%; animation: ne-fade .8s ease both, ne-drift 16s ease-in-out .8s infinite alternate; }
.ne-hero__text { position: relative; overflow: hidden; gap: 28px; padding: var(--space-16) clamp(32px, 6vw, 112px);
  background: radial-gradient(70% 60% at 100% 0%, var(--orchid-mist), transparent 70%), var(--surface); }
.ne-hero__text::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 420px; height: 420px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%236e5a8a' stroke-width='.6'%3E%3Cpath d='M50 50a3 3 0 0 1 6 0a6 6 0 0 1-12 0a9 9 0 0 1 18 0a12 12 0 0 1-24 0a15 15 0 0 1 30 0a18 18 0 0 1-36 0a21 21 0 0 1 42 0a24 24 0 0 1-48 0'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .35; pointer-events: none; }
.ne-hero__text > * { position: relative; z-index: 1; }
.ne-hero__kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--orchid); }
.ne-hero__kicker::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.ne-hero__title { font-size: clamp(56px, 5.6vw, 92px); line-height: .98; letter-spacing: -.01em; }
.ne-hero__title em { font-style: italic; color: var(--plum); }
.ne-hero__lead { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.7; color: var(--ink-muted); }
@keyframes ne-drift { to { transform: scale(1.04) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .ne-hero .ne-hero__photo img { animation: ne-fade .8s ease both; } }
/* Hero photos (vertical, 4:5): the photo column takes the photos' own shape, so nothing is cropped; they cross-fade. */
.ne-hero--slides { grid-template-columns: auto 1fr; }
.ne-hero--slides .ne-hero__text { justify-content: center; }
.ne-hero__photo--second { display: none; }
/* Wide screens: a photo on each side, the text between them. */
@media (min-width: 1200px) {
  .ne-hero--pair { grid-template-columns: auto 1fr auto; }
  .ne-hero--pair .ne-hero__photo--second { display: block; }
  .ne-hero.ne-hero--pair .ne-hero__photo--slides { max-width: 32vw; }
}
.ne-hero .ne-hero__photo--slides { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 52vw; background: var(--surface-product); }
.ne-hero__photo--slides::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgb(23 18 27 / .38)); pointer-events: none; }
.ne-hero img.ne-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; mix-blend-mode: normal; opacity: 0;
  transition: opacity 1.4s ease; animation: ne-drift 14s ease-in-out infinite alternate; }
.ne-hero img.ne-hero__slide.is-on { opacity: 1; }
.ne-hero__dots { position: absolute; left: 24px; right: 128px; bottom: 26px; z-index: 1; display: flex; gap: 8px; }
.ne-hero__nav { position: absolute; right: 20px; bottom: 16px; z-index: 1; display: flex; gap: 8px; }
.ne-hero__nav button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / .55); border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.ne-hero__nav button:hover { background: #fff; color: var(--ink); }
.ne-hero__nav [data-step="-1"] .ne-icon { transform: scaleX(-1); }
.ne-hero__dots button { flex: 1; max-width: 64px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.ne-hero__dots i { position: relative; display: block; height: 2px; overflow: hidden; background: rgb(255 255 255 / .4); }
.ne-hero__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ne-hero__dots [aria-current] i::after { animation: ne-progress 6s linear forwards; }
@keyframes ne-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ne-hero img.ne-hero__slide { animation: none; }
  .ne-hero__dots [aria-current] i::after { animation: none; transform: none; }
}
.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-gallery__item:nth-child(even):last-child { grid-column: 1 / -1; } /* an even count leaves the last photo alone: full width */
.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: 34px; }
  .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-hero__title { font-size: 46px; line-height: 48px; }
  .ne-hero--slides { grid-template-columns: 1fr; }
  .ne-hero .ne-hero__photo--slides { aspect-ratio: 4 / 5; max-width: none; }
  .ne-hero__text::after { width: 260px; height: 260px; right: -70px; bottom: -80px; }
  .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-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 96px 96px 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 64px 64px 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-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; }
/* A card switched to another colour stays in place; only its new photo fades in, quickly. */
.ne-card-wrap.is-swapped { animation: none; }
.ne-card-wrap.is-swapped .ne-photo img { animation-duration: .25s; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-services, .ne-pdp__info) > :nth-child(2) { --n: 1; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-services, .ne-pdp__info) > :nth-child(3) { --n: 2; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-services, .ne-pdp__info) > :nth-child(4) { --n: 3; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-services, .ne-pdp__info) > :nth-child(5) { --n: 4; }
:is(.ne-grid, .ne-tiles, .ne-hero__text, .ne-services, .ne-pdp__info) > :nth-child(6) { --n: 5; }
:is(.ne-grid, .ne-tiles, .ne-hero__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); }
/* A photo cell stays a table cell (display: flex on a <td> breaks the table): link field and button on one line. */
.ne-xl__table td.ne-xl__photo { white-space: nowrap; }
.ne-xl__table td.ne-xl__photo .ne-xl__in { display: inline-block; width: calc(100% - 92px); vertical-align: middle; }
.ne-xl__up { display: inline-block; vertical-align: middle; 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); color: var(--ink); }
.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; } }

/* ---------- Sale: berry text with a small "%" seal whose ring keeps rippling out, so the eye goes back to it ---------- */
.ne-header .ne-nav__sale { display: inline-flex; align-items: center; gap: 7px; color: var(--sale); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ne-nav .ne-nav__sale:hover, .ne-nav .ne-nav__sale[aria-current] { border-bottom-color: var(--sale); }
.ne-nav__pct { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sale); color: var(--on-sale);
  font: 700 11px/1 var(--font-sans); font-style: normal; letter-spacing: 0; }
.ne-nav__pct::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--sale); animation: ne-sale-ring 2.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.ne-header .ne-nav__sale:active .ne-nav__pct { transform: scale(.88); }
@keyframes ne-sale-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@media (max-width: 900px) { .ne-header .ne-nav__sale { font-size: 12px; gap: 6px; padding: 8px 4px; } }
@media (prefers-reduced-motion: reduce) { .ne-nav__pct::after { animation: none; opacity: 0; } }
.ne-sheet__nav a.is-sale { color: var(--sale); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ne-tag.ne-tag--sale { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--sale); color: var(--on-sale); font-weight: 600; letter-spacing: .02em; }
.ne-price--sale { color: var(--sale); font-weight: 500; }
.ne-price--old { margin-left: 4px; color: var(--ink-muted); font-size: .88em; text-decoration-thickness: 1px; }

/* ---------- Delivery region: header button and the first-visit choice ---------- */
.ne-regionbtn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 8px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink); font: 400 13px/1 var(--font-sans); cursor: pointer; transition: background-color .3s ease; }
.ne-regionbtn:hover { background: var(--surface-sunken); }
.ne-regionbtn span:empty { display: none; }
.ne-sheet--center { top: 50%; left: 50%; width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: var(--space-8) 24px 24px; display: grid; gap: var(--space-4);
  transform: translate(-50%, -50%); box-shadow: 0 24px 64px rgb(23 18 27 / .18); animation: ne-pop .4s cubic-bezier(.2, .8, .2, 1) both; }
.ne-region__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.ne-region__head .ne-iconbtn { margin: -8px -8px -8px 0; }
[data-locked] .ne-region__head [data-close] { display: none; }
.ne-region__list { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.ne-region .ne-option { width: 100%; align-items: center; background: none; color: var(--ink); font: inherit; text-align: left; }
.ne-region .ne-option:hover, .ne-region .ne-option[aria-pressed="true"] { border-color: var(--ink); }
.ne-region .ne-option > .ne-icon:first-child { flex: none; color: var(--orchid); }
.ne-region .ne-option > .ne-icon:last-child { flex: none; color: var(--ink-muted); }
@keyframes ne-pop { from { opacity: 0; transform: translate(-50%, -46%); } }

/* ---------- Admin: warehouse dashboards ---------- */
.ne-wh { display: grid; gap: var(--space-4); }
.ne-wh__head, .ne-wh__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.ne-wh__bar .ne-chips { margin-right: auto; }
.ne-wh__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-2); }
.ne-wh__tile { display: grid; gap: 4px; align-content: start; padding: var(--space-4) !important; }
.ne-wh__tile b { font: 400 28px/1.15 var(--font-display); }
.ne-wh__tile--alert { border-color: var(--sale); }
.ne-wh__tile--alert b { color: var(--sale); }
.ne-wh__tile--accent { border-color: var(--plum); background: var(--orchid-mist); }
.ne-wh__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.ne-wh__h { font: 500 15px/1.3 var(--font-sans); margin: 0 0 12px; }
.ne-wh__list { display: grid; }
.ne-wh__order, .ne-wh__pre { display: flex; justify-content: space-between; gap: var(--space-4); padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.ne-wh__order > span:last-child { text-align: right; white-space: nowrap; }
.ne-wh__order:hover { background: var(--surface-sunken); }
.ne-wh__table { display: grid; margin-top: var(--space-4); }
.ne-wh__group { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.ne-wh__ghead { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--space-4); align-items: center; margin-bottom: 8px; }
.ne-wh__gtotal { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.ne-wh__gtotal b { font-size: 18px; }
.ne-wh__row { display: grid; grid-template-columns: 1fr 130px 132px; gap: var(--space-4); align-items: center; margin-left: 64px; padding: 6px 8px; border-top: 1px dashed var(--line); }
.ne-wh__row--head { font-size: 12px; color: var(--ink-muted); border-top: 0; padding-top: 0; padding-bottom: 2px; }
.ne-wh__row.is-low { background: color-mix(in srgb, var(--orchid-mist) 55%, transparent); }
.ne-wh__row.is-out { background: color-mix(in srgb, var(--sale) 8%, transparent); }
.ne-wh__row.is-dirty .ne-wh__qty input { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.ne-wh__thumb { width: 48px; }
.ne-wh__color { display: inline-flex; align-items: center; gap: 8px; }
.ne-wh__color i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.ne-wh__qty { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; }
.ne-wh__qty input { height: 34px; padding: 0 4px; text-align: center; }
.ne-wh__qty button { height: 34px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; color: var(--ink); }
.ne-wh__qty button:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) {
  .ne-wh__cols { grid-template-columns: 1fr; }
  .ne-wh__ghead { grid-template-columns: 40px 1fr auto; }
  .ne-wh__row { grid-template-columns: 1fr 116px; margin-left: 0; }
  .ne-wh__row > :nth-child(2) { display: none; }
}

/* ---------- Admin: «Валюта и курсы» ---------- */
.ne-cur { display: grid; gap: var(--space-4); }
.ne-cur__rates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.ne-cur__rates .ne-adm-actions { grid-column: 1 / -1; }
.ne-cur__rate, .ne-cur__conv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ne-cur__rate .ne-input { width: 120px; }
.ne-cur__conv .ne-input { width: 180px; }
.ne-cur__conv b { font: 400 22px/1.2 var(--font-display); }
.ne-cur__thumbs { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.ne-cur__thumbs > span { width: 28px; margin-right: -6px; border: 2px solid var(--surface); border-radius: 50%; overflow: hidden; }
@media (max-width: 900px) { .ne-cur__rates { grid-template-columns: 1fr; } }

/* ---------- Admin: products — Excel / list switch, product form in a modal ---------- */
.ne-adm-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-sunken); }
.ne-adm-switch .ne-chip { border-color: transparent; }
.ne-adm-switch .ne-chip--on { background: var(--surface); border-color: var(--line); }
.ne-adm-modal { overflow-y: auto; }
.ne-adm-modal .ne-adm-modal__box { width: min(860px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; display: block; overflow-y: auto; }
.ne-adm-modal .ne-adm-editor { padding: var(--space-8) var(--space-8) 0; }
.ne-adm-modal__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.ne-adm-modal__head .ne-iconbtn { font-size: 26px; line-height: 1; }
.ne-adm-modal__foot { position: sticky; bottom: 0; margin: 0 calc(-1 * var(--space-8)); padding: var(--space-4) var(--space-8); background: var(--surface); border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .ne-adm-modal .ne-adm-editor { padding: var(--space-4) var(--space-4) 0; }
  .ne-adm-modal__foot { margin: 0 calc(-1 * var(--space-4)); padding: var(--space-4); }
}

/* ---------- Admin view: a plain working bar instead of the shop header ---------- */
.ne-admbar { position: sticky; top: 0; z-index: 20; }
.ne-admbar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 64px; }
.ne-admbar__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 500 15px/1 var(--font-sans); }
.ne-admbar__brand .ne-logo img { height: 34px; }
.ne-admbar__brand > span:last-child { padding-left: 12px; border-left: 1px solid var(--line); }
.ne-admbar__tools { display: flex; align-items: center; gap: var(--space-2); }
.ne-admbar__tools .ne-btn { height: 38px; padding: 0 14px; font-size: 13px; }
@media (max-width: 900px) {
  .ne-admbar__brand > span:last-child { display: none; }
  .ne-admbar__tools .ne-btn { padding: 0 10px; }
}
/* An admin browsing the shop: a quiet way back to the panel. */
.ne-toadmin { position: fixed; left: 16px; bottom: 16px; z-index: 30; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface);
  font: 500 13px/1 var(--font-sans); text-decoration: none; box-shadow: 0 8px 24px rgb(23 18 27 / .2); }
.ne-toadmin:hover { opacity: .9; }

/* ---------- Product page: product photos / «Живые фото» (photos and videos in real life) ---------- */
.ne-media { display: grid; gap: var(--space-4); min-width: 0; }
.ne-media__tabs { display: flex; gap: var(--space-8); border-bottom: 1px solid var(--line); }
.ne-media__tabs button { position: relative; padding: 0 0 12px; border: 0; background: none; color: var(--ink-muted); font: 400 14px/1 var(--font-sans); cursor: pointer; transition: color .3s ease; }
.ne-media__tabs button span { font-size: 12px; color: var(--sale); }
.ne-media__tabs button[aria-selected="true"] { color: var(--ink); }
.ne-media__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ne-media__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.ne-live-block { display: grid; gap: 12px; margin-top: var(--space-8); }
.ne-live-block__title { margin: 0; font: 500 16px/1.3 var(--font-sans); }
.ne-live-block__title span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
/* Live shots fill their frame (no grey product backdrop): they read as real life, not catalogue photos. */
.ne-live { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); animation: ne-fade .4s ease both; }
[data-media-panel][hidden] { display: none !important; } /* .ne-gallery sets display: grid */
.ne-live__item { position: relative; display: block; padding: 0; border: 0; background: var(--surface-sunken); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.ne-live__item:only-child { grid-column: 1 / -1; } /* live shots are vertical (phone): all 4:5, none cropped to landscape */
.ne-live__item img, .ne-live__item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ne-live__item:hover img, .ne-live__item:hover video { transform: scale(1.03); }
.ne-live__kind { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: rgb(23 18 27 / .6); color: #fff; font: 500 12px/1 var(--font-sans); }
.ne-viewer { position: fixed; inset: 0; z-index: 60; background: rgb(10 8 12 / .94); display: grid; place-items: center; animation: ne-fade .25s ease both; }
.ne-viewer[hidden] { display: none; }
.ne-viewer__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 72px; }
.ne-viewer__stage img, .ne-viewer__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.ne-viewer button { position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.ne-viewer button:hover { background: rgb(255 255 255 / .22); }
.ne-viewer__close { top: 16px; right: 16px; }
.ne-viewer__nav { top: 50%; margin-top: -22px; }
.ne-viewer__nav[data-viewer-step="-1"] { left: 16px; }
.ne-viewer__nav[data-viewer-step="-1"] .ne-icon { transform: rotate(180deg); }
.ne-viewer__nav[data-viewer-step="1"] { right: 16px; }
.ne-viewer__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .7); font: 400 13px/1 var(--font-sans); }
@media (max-width: 900px) {
  .ne-live { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-2); margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); scrollbar-width: none; }
  .ne-live::-webkit-scrollbar { display: none; }
  .ne-live__item, .ne-live__item:first-child { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .ne-live__item:only-child { flex-basis: 100%; }
  .ne-viewer__stage { padding: 56px 8px; }
  .ne-viewer__nav { top: auto; bottom: 12px; margin: 0; }
}
/* Admin: a video among the uploaded live media */
.ne-adm-photo video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-sunken); }
.ne-adm-photo { position: relative; }
.ne-adm-photo__kind { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgb(23 18 27 / .6); color: #fff; font-size: 11px; }

/* ---------- Admin: colours from the palette, photos per colour ---------- */
.ne-adm-variant { grid-template-columns: 22px 1fr 96px 96px 40px !important; }
.ne-adm-variant__sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.ne-adm-variant__photos { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ne-adm-vphoto { position: relative; width: 48px; height: 48px; }
.ne-adm-vphoto img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-sunken); }
.ne-adm-vphoto button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) { .ne-adm-variant { grid-template-columns: 22px 1fr 64px 64px 36px !important; } }
td.ne-xl__color { position: relative; }
td.ne-xl__color::before { content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); pointer-events: none; z-index: 1; }
td.ne-xl__color .ne-xl__in { padding-left: 26px; }
/* Light swatches (white, clear, pearl) stay visible on white. */
.ne-swatch, .ne-card__colors i, .ne-wh__color i { box-shadow: inset 0 0 0 1px rgb(23 18 27 / .12); }
/* Gallery photos swap when the shopper picks another colour. */
.ne-gallery.is-swapped { animation: ne-fade .35s ease both; }

/* ---------- Admin: products — one list, a product opens in a panel on the right ---------- */
.ne-adm-bar--sub { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ne-adm-bar--sub .ne-conv--compact { margin-left: 0; }
button.ne-adm-product { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; grid-template-columns: 64px 1fr auto; transition: border-color .25s ease, background-color .25s ease; }
button.ne-adm-product:hover, button.ne-adm-product.is-open { border-color: var(--ink); }
.ne-adm-product__colors { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ne-adm-product__colors i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(23 18 27 / .15); }
.ne-adm-product__stock { display: grid; justify-items: end; gap: 2px; font-size: 13px; white-space: nowrap; }
.ne-adm-drawer { overflow: hidden; }
.ne-adm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); overflow-y: auto; background: var(--surface); box-shadow: -24px 0 64px rgb(23 18 27 / .18);
  animation: ne-drawer-in .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ne-drawer-in { from { transform: translateX(40px); opacity: 0; } }
.ne-adm-drawer .ne-adm-editor { padding: var(--space-8) var(--space-8) 0; }
.ne-adm-drawer .ne-adm-modal__head { position: sticky; top: 0; z-index: 2; margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) 0; padding: var(--space-4) var(--space-8); background: var(--surface); border-bottom: 1px solid var(--line); }
.ne-adm-drawer .ne-adm-modal__head .ne-h1 { font-size: 26px; line-height: 32px; }
.ne-adm-drawer .ne-adm-modal__foot { margin: 0 calc(-1 * var(--space-8)); padding: var(--space-4) var(--space-8); }
.ne-adm-tr { border-top: 1px solid var(--line); padding: 10px 0; }
.ne-adm-tr summary { cursor: pointer; font-weight: 500; }
.ne-adm-tr[open] { display: grid; gap: 12px; }
@media (max-width: 900px) {
  .ne-adm-drawer .ne-adm-editor { padding: var(--space-4) var(--space-4) 0; }
  .ne-adm-drawer .ne-adm-modal__head { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; padding: 12px var(--space-4); }
  .ne-adm-drawer .ne-adm-modal__foot { margin: 0 calc(-1 * var(--space-4)); padding: var(--space-4); }
  button.ne-adm-product { grid-template-columns: 52px 1fr auto; }
}

/* ---------- Catalogue cards: colour dots switch the card to that colour ---------- */
.ne-card-wrap .ne-card__colors { margin-top: 8px; }
.ne-card__color { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(23 18 27 / .15); transition: box-shadow .25s ease, transform .25s ease; -webkit-tap-highlight-color: transparent; }
.ne-card__color:hover { transform: scale(1.12); }
.ne-card__color[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(23 18 27 / .15), 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); }
@media (hover: none) { .ne-card__color { width: 22px; height: 22px; } }

/* ---------- Admin: «Сводка» ---------- */
.ne-sum { display: grid; gap: var(--space-4); }
.ne-sum__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ne-sum__table td, .ne-sum__table th { white-space: nowrap; }
.ne-sum__table tbody tr:last-child td { font-weight: 500; }
.ne-sum__table tr.is-out td { color: var(--sale); }
.ne-sum__chart { position: relative; margin-top: 12px; }
.ne-sum__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ne-sum__base { stroke: var(--line); stroke-width: 1; }
.ne-sum__chart text { fill: var(--ink-muted); font: 400 11px var(--font-sans); }
.ne-sum__bar path { fill: var(--orchid); transition: fill .2s ease; }
.ne-sum__bar:hover path { fill: var(--plum); }
.ne-sum__tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 10px; background: var(--ink); color: var(--surface); font: 500 12px/1.3 var(--font-sans); white-space: nowrap; pointer-events: none; }
.ne-sum__tip[hidden] { display: none; }
.ne-sum .ne-wh__tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ne-sum .ne-wh__tile b { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1200px) { .ne-sum .ne-wh__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ne-sum .ne-wh__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Admin: product photos grouped by colour ---------- */
.ne-adm-phup { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: var(--space-4); background: var(--surface-sunken); }
.ne-adm-phup .ne-field__label { width: 100%; margin: 0; }
.ne-adm-phup .ne-select { flex: 1 1 220px; }
.ne-adm-phgroup { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.ne-adm-phgroup__head { display: flex; align-items: center; gap: 8px; }
.ne-adm-phgroup__head i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(23 18 27 / .15); }
.ne-adm-phgroup__head .ne-small { margin-left: auto; }
.ne-adm-photo__move { height: 30px; font-size: 12px; padding: 0 6px; margin-top: 4px; width: 100%; }
.ne-adm-variant__note { grid-column: 2 / -1; }

/* Product names in warehouses and «Сводка» open the product panel. */
.ne-wh__edit { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.ne-wh__edit:hover, .ne-wh__edit:focus-visible { text-decoration-color: currentColor; }
.ne-wh__thumb[data-edit] { cursor: pointer; }

/* ---------- Admin: stock per colour and per warehouse on every product in «Товары» ---------- */
button.ne-adm-product { align-items: start; }
.ne-adm-stocktab { display: grid; max-width: 520px; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ne-adm-stocktab__row { display: grid; grid-template-columns: 1fr 80px 80px 64px; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px dashed var(--line); }
.ne-adm-stocktab__row > :not(:first-child) { text-align: right; }
.ne-adm-stocktab__row--head { border-top: 0; font-size: 12px; color: var(--ink-muted); }
.ne-adm-stocktab__row--total { border-top: 1px solid var(--ink); font-weight: 600; }
.ne-adm-stocktab__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ne-adm-stocktab__name i { width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(23 18 27 / .15); }
.ne-adm-stocktab .is-zero { color: var(--ink-muted); opacity: .6; font-weight: 400; }
.ne-adm-product__stock { display: grid; justify-items: end; gap: 2px; min-width: 80px; white-space: nowrap; }
.ne-adm-product__stock b { font-size: 18px; }
@media (max-width: 600px) { .ne-adm-stocktab__row { grid-template-columns: 1fr 56px 56px 48px; } }

/* Admin: one plain font everywhere. Its digits are all the same height and width, so numbers are easy to read
   and line up in columns (the shop's serif has old-style digits: «0» looks like «o»). */
.ne-adm-page { --font-display: var(--font-sans); font-variant-numeric: lining-nums tabular-nums; }
.ne-adm-page .ne-h1 { font-size: 28px; line-height: 36px; font-weight: 500; }
.ne-adm-page .ne-h2 { font-weight: 500; }
.ne-adm-page .ne-wh__tile b { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; white-space: normal; overflow: visible; text-overflow: clip; }
.ne-adm-page .ne-cur__conv b { font-weight: 600; }

/* Admin: the discount switch in the product editor. */
.ne-adm-sale { display: grid; gap: 12px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.ne-adm-sale.is-on { border-color: var(--sale); background: color-mix(in srgb, var(--sale) 5%, var(--surface)); }
.ne-adm-sale__switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; justify-self: start; font-size: 16px; }
.ne-adm-sale__switch input { position: absolute; opacity: 0; pointer-events: none; }
.ne-adm-sale__track { position: relative; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--line-strong); transition: background .2s; }
.ne-adm-sale__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.ne-adm-sale__switch input:checked + .ne-adm-sale__track { background: var(--sale); }
.ne-adm-sale__switch input:checked + .ne-adm-sale__track::after { transform: translateX(18px); }
.ne-adm-sale__switch input:focus-visible + .ne-adm-sale__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.ne-adm-sale:not(.is-on) .ne-adm-sale__body { display: none; }
.ne-adm-sale__body { display: grid; gap: 12px; }
.ne-adm-sale__preview { margin: 0; }
.ne-adm-sale__preview s { color: var(--ink-muted); }
.ne-adm-sale__preview b { color: var(--sale); font-size: 16px; }
.ne-adm-flag--sale { background: var(--sale); color: var(--on-sale); border-color: var(--sale); }

/* Photo frames are white once a photo is in them: studio shots have a white background, and blending it into the
   grey frame is not done everywhere (iPhone Safari skips it in the cards' swipeable strip, leaving a white box).
   Frames without a photo (the drawing) stay grey. */
.ne-photo:has(img) { background: #fff; }
