/* ============================================================
   eVehicle — NX SHOP LISTING (woocommerce/archive-product.php)
   Hero · vehicle rail · filters (sticky sidebar, bottom sheet at
   ≤1024px) · toolbar · chips · product grid · load more.
   Product cards (li.product.nx-pcard) are styled in nx-core.css.
   Breakpoints: 1024 / 768 / 600 / 480.
   ============================================================ */

.nx-shop { background: var(--nx-bg); overflow-x: clip; }
.nx-shop .ev-wc-main-content { display: contents; } /* WooCommerce wrapper (inc/woocommerce.php) */

/* ── Hero ─────────────────────────────────────────────────── */
.nx-shop-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-height, 108px) + clamp(22px, 3.2vw, 42px)) 0 calc(clamp(26px, 3.6vw, 44px) + 28px);
  color: var(--nx-on-dark);
  background:
    radial-gradient(55% 95% at 100% 0%, rgba(0, 200, 150, .24), transparent 62%),
    radial-gradient(40% 70% at 0% 100%, rgba(125, 255, 214, .07), transparent 70%),
    var(--nx-ink);
}
.nx-shop-hero::before { /* fine grid, faded out towards the edges */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(70% 100% at 75% 0%, #000, transparent 72%);
          mask: radial-gradient(70% 100% at 75% 0%, #000, transparent 72%);
}
.nx-shop-hero-glow {
  position: absolute; z-index: -1; top: -260px; right: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 150, .3), transparent 65%);
  animation: nx-shop-drift 16s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes nx-shop-drift { to { transform: translate3d(-90px, 50px, 0) scale(1.1); } }

.nx-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px;
  font: 500 .8rem/1.3 var(--nx-font); color: var(--nx-on-dark-muted);
}
.nx-crumbs a { color: var(--nx-on-dark-muted); transition: color .2s; }
.nx-crumbs a:hover { color: #fff; }
.nx-crumb-sep { opacity: .4; }

.nx-shop-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.nx-shop-hero-copy { min-width: 0; max-width: 780px; }
.nx-shop-title {
  margin: 12px 0 0; color: #fff; text-wrap: balance;
  font: 700 clamp(2.1rem, 4.6vw, 3.7rem)/1.04 var(--nx-font-display); letter-spacing: -.04em;
}
.nx-shop-title em {
  font-style: normal; color: var(--nx-emerald);
  background: linear-gradient(100deg, var(--nx-emerald), var(--nx-mint));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nx-shop-desc { margin-top: 14px; max-width: 62ch; font: 400 1rem/1.65 var(--nx-font); color: var(--nx-on-dark-muted); }

.nx-shop-stat {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--nx-line-dark);
}
.nx-shop-stat strong { font: 800 2.2rem/1 var(--nx-font-display); letter-spacing: -.04em; color: var(--nx-emerald); }
.nx-shop-stat span { font: 500 .78rem/1.35 var(--nx-font); color: var(--nx-on-dark-muted); }

/* Vehicle rail — quick "fits my vehicle" filter */
.nx-vrail { margin-top: clamp(22px, 3vw, 34px); }
.nx-vrail-track {
  display: flex; gap: 10px; margin: -4px; padding: 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
}
.nx-vrail-track::-webkit-scrollbar { display: none; }
.nx-vpill {
  flex: none; display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 16px 0 6px;
  border-radius: 999px; scroll-snap-align: start; white-space: nowrap;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  font: 600 .88rem/1 var(--nx-font);
  transition: background .25s, border-color .25s, color .25s, box-shadow .3s;
}
.nx-vpill:hover { color: #fff; border-color: rgba(0, 200, 150, .6); background: rgba(0, 200, 150, .12); }
.nx-vpill:focus-visible { outline: 2px solid var(--nx-emerald); outline-offset: 2px; }
.nx-vpill-ic {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0, 200, 150, .14); color: var(--nx-mint); transition: background .25s, color .25s;
}
.nx-vpill-ic svg { display: block; width: 22px; height: 22px; max-width: none; }
.nx-vpill-all .nx-vpill-ic svg { width: 17px; height: 17px; }
.nx-vpill-n {
  display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: var(--nx-on-dark-muted); font: 700 .7rem/1 var(--nx-font);
}
.nx-vpill.is-active {
  background: var(--nx-emerald); border-color: var(--nx-emerald); color: var(--nx-ink);
  box-shadow: 0 14px 30px -14px rgba(0, 200, 150, .9);
}
.nx-vpill.is-active .nx-vpill-ic { background: var(--nx-ink); color: var(--nx-emerald); }
.nx-vpill.is-active .nx-vpill-n { background: rgba(5, 13, 10, .14); color: var(--nx-ink); }

/* ── Body: rounded sheet overlapping the hero ─────────────── */
.nx-shop-body {
  position: relative; z-index: 1; margin-top: -28px; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px);
  background: var(--nx-bg); border-radius: 28px 28px 0 0;
}
.nx-shop-layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 36px; align-items: start; }

/* ── Filters (desktop: sticky card) ───────────────────────── */
.nx-filters {
  position: sticky; top: calc(var(--header-height, 108px) - var(--nx-topbar-h, 0px) + 20px);
  display: flex; flex-direction: column; max-height: calc(100vh - var(--header-height, 108px) + var(--nx-topbar-h, 0px) - 40px);
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 24px;
  box-shadow: 0 18px 40px -32px rgba(5, 13, 10, .4);
}
.nx-filters-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--nx-line); }
.nx-filters-title {
  flex: 1; display: flex; align-items: center; gap: 9px; margin: 0;
  font: 700 1.05rem/1 var(--nx-font-display); letter-spacing: -.02em; color: var(--nx-text);
}
.nx-filters-title svg { color: var(--nx-emerald-600); }
.nx-filters-clear { font: 600 .8rem/1 var(--nx-font); color: var(--nx-emerald-700); text-decoration: underline; text-underline-offset: 3px; }
.nx-filters-close, .nx-sheet-handle, .nx-filters-foot { display: none; }
.nx-filters-form {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px 10px;
  scrollbar-width: thin; scrollbar-color: #cfdcd5 transparent;
}
.nx-filters-form .nx-btn-block { margin-top: 12px; }

/* Groups */
.nx-fgroup { border-bottom: 1px solid var(--nx-line); }
.nx-filters-form > .nx-fgroup:last-of-type { border-bottom: 0; }
.nx-fslot:empty { display: none; }
.nx-fgroup > summary {
  display: flex; align-items: center; gap: 8px; padding: 16px 0; list-style: none; cursor: pointer; user-select: none;
  font: 700 .9rem/1.2 var(--nx-font-display); letter-spacing: -.01em; color: var(--nx-text);
}
.nx-fgroup > summary::-webkit-details-marker { display: none; }
.nx-fgroup > summary:focus-visible { outline: 2px solid var(--nx-emerald); outline-offset: 2px; border-radius: 6px; }
.nx-fgroup-chev { margin-left: auto; color: var(--nx-muted); transition: transform .3s var(--nx-ease); }
.nx-fgroup:not([open]) .nx-fgroup-chev { transform: rotate(-90deg); }
.nx-fgroup-n {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--nx-emerald); color: var(--nx-ink); font: 700 .66rem/1 var(--nx-font);
}
.nx-fgroup > :not(summary) { padding-bottom: 16px; }

/* Category links */
.nx-fcats { display: flex; flex-direction: column; gap: 2px; }
.nx-fcat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 -10px; padding: 9px 10px; border-radius: 12px;
  font: 500 .9rem/1.3 var(--nx-font); color: var(--nx-text); transition: background .2s, color .2s;
}
.nx-fcat:hover { background: var(--nx-bg); color: var(--nx-text); }
.nx-fcat.is-active { background: var(--nx-ink); color: #fff; font-weight: 600; }
.nx-fcat.is-active .nx-opt-n { background: rgba(255, 255, 255, .14); color: #fff; }
.nx-fcats-sub { margin: 2px 0 4px 10px; padding-left: 10px; border-left: 2px solid var(--nx-line); }

/* Option rows (checkbox / radio) */
.nx-opts { display: flex; flex-direction: column; gap: 2px; }
.nx-opt {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin: 0 -10px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  font: 500 .9rem/1.3 var(--nx-font); color: var(--nx-text); transition: background .2s, opacity .2s;
}
.nx-opt:hover { background: var(--nx-bg); }
.nx-opt input, .nx-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.nx-opt-box {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: #fff; border: 1.5px solid #c3d1ca; color: var(--nx-ink);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nx-opt-box::after { /* check mark */
  content: ''; width: 12px; height: 12px; background: currentColor; transform: scale(0); transition: transform .25s var(--nx-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nx-opt-box.is-radio { border-radius: 50%; }
.nx-opt-box.is-radio::after { width: 8px; height: 8px; border-radius: 50%; -webkit-mask: none; mask: none; }
.nx-opt input:checked + .nx-opt-box { background: var(--nx-emerald); border-color: var(--nx-emerald); }
.nx-opt input:checked + .nx-opt-box::after { transform: none; }
.nx-opt input:focus-visible + .nx-opt-box { box-shadow: 0 0 0 3px rgba(0, 200, 150, .35); }
.nx-opt-ic {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: #edf7f2; color: var(--nx-emerald-700);
}
.nx-opt-ic svg { display: block; width: 20px; height: 20px; max-width: none; }
.nx-opt-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.nx-opt-label .nx-stars { font-size: .84rem; }
.nx-opt-n {
  flex: none; display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--nx-bg); color: var(--nx-muted); font: 600 .7rem/1 var(--nx-font);
}
.nx-opt.is-off { opacity: .42; cursor: default; }
.nx-opt.is-off:hover { background: none; }
.nx-opts.is-clamped:not(.is-expanded) .nx-opt.is-extra { display: none; }
.nx-opts-more {
  align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none;
  font: 600 .82rem/1.4 var(--nx-font); color: var(--nx-emerald-700); text-decoration: underline; text-underline-offset: 3px;
}

/* Toggle switches */
.nx-switch { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font: 500 .9rem/1.3 var(--nx-font); }
.nx-switch .nx-opt-label { flex: 1; }
.nx-switch-ui { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #d3ded8; transition: background .25s; }
.nx-switch-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(5, 13, 10, .25); transition: transform .3s var(--nx-ease);
}
.nx-switch input:checked ~ .nx-switch-ui { background: var(--nx-emerald); }
.nx-switch input:checked ~ .nx-switch-ui::after { transform: translateX(18px); }
.nx-switch input:focus-visible ~ .nx-switch-ui { box-shadow: 0 0 0 3px rgba(0, 200, 150, .35); }

/* Price: dual range + fields */
.nx-range { position: relative; height: 28px; margin: 2px 2px 14px; }
.nx-range::before, .nx-range::after { content: ''; position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.nx-range::before { left: 0; right: 0; background: var(--nx-line); }
.nx-range::after { left: var(--a, 0%); right: calc(100% - var(--b, 100%)); background: var(--nx-emerald); }
.nx-range input[type="range"] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.nx-range input[type="range"].is-top { z-index: 2; }
.nx-range input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.nx-range input[type="range"]::-moz-range-track { background: transparent; border: 0; }
.nx-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: #fff; border: 2px solid var(--nx-ink); box-shadow: 0 4px 10px -2px rgba(5, 13, 10, .35);
  transition: transform .2s var(--nx-ease), box-shadow .2s;
}
.nx-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--nx-ink); box-shadow: 0 4px 10px -2px rgba(5, 13, 10, .35);
}
.nx-range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.nx-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 200, 150, .35); }
.nx-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(0, 200, 150, .35); }

.nx-price-fields { display: flex; align-items: flex-end; gap: 8px; }
.nx-price-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nx-price-cap { font: 700 .64rem/1 var(--nx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted); }
.nx-price-in {
  display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 10px;
  background: #fff; border: 1.5px solid var(--nx-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.nx-price-in:focus-within { border-color: var(--nx-emerald); box-shadow: 0 0 0 3px rgba(0, 200, 150, .18); }
.nx-price-in i { font: 600 .85rem/1 var(--nx-font); font-style: normal; color: var(--nx-muted); }
.nx-price-in input {
  width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none;
  font: 600 .95rem/1 var(--nx-font); color: var(--nx-text); -moz-appearance: textfield;
}
.nx-price-in input::-webkit-outer-spin-button, .nx-price-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx-price-dash { padding-bottom: 12px; color: var(--nx-muted); }

/* ── Toolbar + chips ─────────────────────────────────────── */
.nx-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.nx-count { margin: 0; font: 500 .92rem/1.3 var(--nx-font); color: var(--nx-muted); }
.nx-count b { font-weight: 700; color: var(--nx-text); }
.nx-bar-actions { display: flex; align-items: center; gap: 8px; }
.nx-bar-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-text);
  font: 600 .86rem/1 var(--nx-font); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.nx-bar-btn:hover { border-color: var(--nx-text); }
.nx-bar-btn > svg { flex: none; color: var(--nx-emerald-600); }
.nx-filter-btn { display: none; }
.nx-sort { display: flex; min-width: 0; }
.nx-sort .nx-dd-btn::before { /* sort icon */
  content: ''; flex: none; width: 17px; height: 17px; background: var(--nx-emerald-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 7.5 7 4l3.5 3.5M17 20V4M13.5 16.5 17 20l3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 7.5 7 4l3.5 3.5M17 20V4M13.5 16.5 17 20l3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nx-badge-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--nx-emerald); color: var(--nx-ink); font: 700 .68rem/20px var(--nx-font); text-align: center;
}
.nx-badge-count:empty { display: none; }

.nx-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.nx-fchips.is-empty { display: none; }
.nx-fchip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--nx-ink); color: #fff; font: 600 .8rem/1 var(--nx-font); transition: background .2s;
}
.nx-fchip:hover { background: var(--nx-ink-4); color: #fff; }
.nx-fchip svg { opacity: .7; }
.nx-fchip-clear { padding: 0 6px; font: 600 .8rem/1 var(--nx-font); color: var(--nx-muted); text-decoration: underline; text-underline-offset: 3px; }
.nx-fchip-clear:hover { color: var(--nx-text); }

/* ── Results grid ────────────────────────────────────────── */
.nx-results { position: relative; min-height: 240px; transition: opacity .25s ease; }
.nx-results ul.products {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  margin: 0; padding: 0; list-style: none;
}
.nx-results ul.products::before, .nx-results ul.products::after { content: none; display: none; }
.nx-results ul.products li.product { width: auto; float: none; margin: 0; }
.nx-results li.product.nx-in { animation: nx-card-in .55s var(--nx-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes nx-card-in { from { opacity: 0; transform: translateY(16px); } }

.nx-shop.is-loading .nx-results { opacity: .4; pointer-events: none; }
.nx-shop-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--nx-emerald), var(--nx-mint));
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
}
.nx-shop-progress.is-active { opacity: 1; transform: scaleX(.85); transition: transform 2.4s cubic-bezier(.1, .7, .2, 1), opacity .15s; }
.nx-shop-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .25s ease, opacity .35s ease .2s; }

/* Load more + pagination */
.nx-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.nx-more-text { font: 500 .88rem/1.4 var(--nx-font); color: var(--nx-muted); }
.nx-more-text b { color: var(--nx-text); }
.nx-more-bar { width: min(240px, 70%); height: 4px; overflow: hidden; border-radius: 4px; background: var(--nx-line); }
.nx-more-bar span { display: block; height: 100%; border-radius: 4px; background: var(--nx-ink); transition: width .5s var(--nx-ease); }
.nx-more-btn { min-width: 230px; margin-top: 4px; }
.nx-more-btn.loading { opacity: .75; pointer-events: none; }

.nx-results .woocommerce-pagination { margin-top: 22px; }
.nx-results .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.nx-results .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; float: none; }
.nx-results .woocommerce-pagination .page-numbers li > * {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--nx-surface); border: 1px solid var(--nx-line); color: var(--nx-text); font: 600 .86rem/1 var(--nx-font);
  transition: border-color .2s;
}
.nx-results .woocommerce-pagination .page-numbers li > a:hover { border-color: var(--nx-text); }
.nx-results .woocommerce-pagination .page-numbers .current { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }

/* Empty state */
.nx-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(44px, 7vw, 84px) 24px; text-align: center;
  background: var(--nx-surface); border: 1.5px dashed #c9d6cf; border-radius: 24px;
}
.nx-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f6ef; color: var(--nx-emerald-700); }
.nx-empty-title { font: 700 1.3rem/1.2 var(--nx-font-display); letter-spacing: -.02em; color: var(--nx-text); }
.nx-empty-text { max-width: 42ch; color: var(--nx-muted); }
.nx-empty .nx-btn { margin-top: 6px; }

/* Floating "Filters" button (phones/tablets) */
.nx-fab { display: none; }

/* ── ≤1024px: filters become a bottom sheet ──────────────── */
@media (max-width: 1024px) {
  .nx-shop-layout { grid-template-columns: minmax(0, 1fr); }
  .nx-filters {
    position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 1100;
    max-height: 88vh; max-height: 88svh; border: 0; border-radius: 26px 26px 0 0;
    box-shadow: 0 -30px 60px -30px rgba(5, 13, 10, .5);
    transform: translateY(102%); visibility: hidden;
    transition: transform .5s var(--nx-ease), visibility 0s linear .5s;
  }
  .nx-filters.is-open { transform: none; visibility: visible; transition: transform .5s var(--nx-ease), visibility 0s; }
  .nx-sheet-handle { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d0dbd5; }
  .nx-filters-head { position: relative; padding: 22px 14px 14px 20px; }
  .nx-filters-close { display: grid; background: var(--nx-bg); color: var(--nx-text); }
  .nx-filters-form { padding: 2px 20px 14px; }
  .nx-filters-foot {
    display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--nx-surface); border-top: 1px solid var(--nx-line);
  }
  .nx-filters-foot .nx-btn { flex: 1; }
  .nx-filters-foot .nx-btn-primary { flex: 1.7; }
  .nx-filter-btn { display: inline-flex; }

  .nx-results ul.products { gap: 16px; }

  .nx-fab {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 950;
    display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--nx-ink); color: #fff; font: 600 .9rem/1 var(--nx-font); cursor: pointer;
    box-shadow: 0 18px 40px -14px rgba(5, 13, 10, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translate(-50%, 160%); transition: transform .45s var(--nx-ease);
  }
  .nx-fab.is-shown { transform: translate(-50%, 0); }
  .nx-fab > svg { color: var(--nx-emerald); }
  /* iOS zooms into form fields under 16px */
  .nx-price-in input { font-size: 16px; }
}

@media (max-width: 768px) {
  .nx-shop-hero-row { display: block; }
  .nx-shop-stat { display: none; }
  .nx-shop-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nx-vrail-track { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

@media (max-width: 600px) {
  .nx-shop-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .nx-count { font-size: .84rem; }
  .nx-bar-actions > * { flex: 1; min-width: 0; }
  .nx-sort .nx-dd, .nx-sort .nx-dd-btn { width: 100%; }
  .nx-results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .nx-shop-hero { padding-top: calc(var(--header-height, 98px) + 18px); }
  .nx-crumbs { margin-bottom: 12px; font-size: .76rem; }
  .nx-shop-hero .nx-eyebrow { display: none; }
  .nx-shop-title { margin-top: 0; font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .nx-shop-desc { margin-top: 10px; font-size: .92rem; }
  .nx-vrail { margin-top: 20px; }
  .nx-vpill { height: 44px; padding-right: 14px; font-size: .84rem; }
  .nx-vpill-ic { width: 34px; height: 34px; }
  .nx-vpill-ic svg { width: 20px; height: 20px; }
  .nx-shop-body { margin-top: -22px; border-radius: 22px 22px 0 0; padding-top: 20px; }
}

/* Compact cards in the 2-column phone grid */
@media (max-width: 480px) {
  .nx-results ul.products { gap: 10px; }
  .nx-results .nx-fits-label, .nx-results .nx-save { display: none; }
  .nx-results .nx-pcard-body { padding-inline: 4px; }
  .nx-results .nx-pcard-buy { gap: 6px; }
  .nx-results .nx-pcard-badges { top: 8px; left: 8px; }
  .nx-results .nx-pcard-wish { top: 7px; right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-shop-hero-glow, .nx-results li.product.nx-in { animation: none; }
  .nx-filters, .nx-fab, .nx-shop-progress { transition: none !important; }
}
