/* =============================================================
   Shop Archive — Nuggela & Sulé design preview
   ============================================================= */

/* ── HERO ──────────────────────────────────────────────────── */
.ns-shop-hero {
  padding: 28px 0 32px;
  background: #FBF7F1 !important;          /* warm cream — matches design */
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.ns-shop-hero__bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.ns-shop-hero__bread a {
  color: var(--muted);
  text-decoration: none;
}
.ns-shop-hero__bread a:hover { text-decoration: underline; }
.ns-shop-hero__bread > * + *::before {
  content: '/';
  opacity: 0.5;
  margin-right: 8px;
}

.ns-shop-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ns-shop-hero__h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.ns-shop-hero__desc {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--muted);
  max-width: 520px;
  margin: 10px 0 0;
  line-height: 1.5;
}

.ns-shop-hero__count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.ns-shop-hero__count strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* ── TOOLBAR ────────────────────────────────────────────────── */
.ns-shop-toolbar {
  position: sticky;
  top: var(--ns-shop-sticky-header, 72px);
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: var(--ns-shop-toolbar-h, 58px);
}
body.admin-bar .ns-shop-toolbar {
  --ns-shop-sticky-header: 104px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .ns-shop-toolbar {
    --ns-shop-sticky-header: 118px;
  }
}

.ns-shop-toolbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.ns-shop-toolbar__filter-btn {
  display: none; /* shown on mobile */
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--ink);
  font-family: inherit;
}

.ns-shop-toolbar__chip-count {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 2px;
}

.ns-shop-toolbar__chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.ns-shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 11px;
  background: var(--paper-2, #f5f2ee);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ns-shop-chip:hover { border-color: var(--ink); }
.ns-shop-chip__x {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
}

.ns-shop-toolbar__clear {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  padding: 5px 4px;
}
.ns-shop-toolbar__clear:hover { color: var(--ink); }

.ns-shop-toolbar__sort {
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Custom sort dropdown ──────────────────────────────────── */
.ns-sort {
  position: relative;
  font-family: inherit;
}
.ns-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 200px;
  justify-content: space-between;
  white-space: nowrap;
}
.ns-sort__btn:hover { border-color: var(--ink); }
.ns-sort__btn:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(232,109,49,.15);
}
.ns-sort__label strong {
  color: var(--ink);
  font-weight: 600;
}
.ns-sort__chev {
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.ns-sort[data-open="1"] .ns-sort__chev { transform: rotate(180deg); }
.ns-sort[data-open="1"] .ns-sort__btn  { border-color: var(--ink); }

.ns-sort__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
  z-index: 50;
}
.ns-sort[data-open="1"] .ns-sort__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s, transform .18s, visibility 0s;
}
.ns-sort__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}
.ns-sort__item:hover { background: var(--paper); }
.ns-sort__item.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.ns-sort__item.is-active svg { color: #fff; }

/* ── SHOP BODY ──────────────────────────────────────────────── */
.ns-shop-body {
  padding: clamp(16px, 2.5vw, 28px) 0;
  background: #fff;
}

.ns-shop-body__inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── SIDEBAR ─────────────────────────────────────────────────  */
.ns-shop-sidebar {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--ns-shop-sticky-header, 72px) + var(--ns-shop-toolbar-h, 58px) + 16px);
  max-height: calc(100vh - (var(--ns-shop-sticky-header, 72px) + var(--ns-shop-toolbar-h, 58px) + 28px));
  overflow-y: auto;
  padding-right: 4px;
  scroll-margin-top: calc(var(--ns-shop-sticky-header, 72px) + var(--ns-shop-toolbar-h, 58px) + 16px);
}

.ns-shop-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ns-shop-sidebar__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}
.ns-shop-sidebar__clear {
  background: none;
  border: 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.ns-shop-sidebar__clear:hover { color: var(--ink); }

/* ── FILTER GROUP ────────────────────────────────────────────  */
.ns-shop-filter-group {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.ns-shop-filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: inherit;
}
.ns-shop-filter-group__toggle svg {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.ns-shop-filter-group[data-open="0"] .ns-shop-filter-group__toggle svg {
  transform: rotate(-90deg);
}

.ns-shop-filter-group__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ns-shop-filter-group[data-open="0"] .ns-shop-filter-group__list {
  display: none;
}

/* ── FILTER ITEM ─────────────────────────────────────────────  */
.ns-shop-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.ns-shop-filter-item:hover .ns-shop-filter-item__label { text-decoration: underline; }

.ns-shop-filter-item__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-2, #c9c4be);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-shop-filter-item.is-active .ns-shop-filter-item__check {
  border-color: var(--ink);
  background: var(--ink);
}

.ns-shop-filter-item__label {
  flex: 1;
  font-size: 13px;
}

.ns-shop-filter-item__count {
  font-size: 11px;
  color: var(--muted);
}

/* ── PRODUCT GRID ─────────────────────────────────────────────  */
.ns-shop-grid {
  flex: 1;
  min-width: 0;
}

.ns-shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ns-shop-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
}
.ns-shop-no-results p { margin-bottom: 16px; }

/* ── PAGINATION ──────────────────────────────────────────────  */
.ns-shop-pagination {
  margin-top: 40px;
}
.ns-shop-pagination .woocommerce-pagination {
  display: flex;
  justify-content: center;
}
.ns-shop-pagination .woocommerce-pagination ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-shop-pagination .woocommerce-pagination ul li a,
.ns-shop-pagination .woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ns-shop-pagination .woocommerce-pagination ul li span.current,
.ns-shop-pagination .woocommerce-pagination ul li a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── QUIZ BANNER ─────────────────────────────────────────────  */
.ns-shop-banner {
  grid-column: span 2;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #15110D;
  color: #fff;
  display: grid;
  grid-template-columns: min(380px, 48%) 1fr;
  min-height: 380px;
}

/* LEFT: spectrogram */
.ns-shop-banner__left {
  position: relative;
  background: linear-gradient(180deg, #1a1410 0%, #0a0805 100%);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.ns-shop-banner__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,109,49,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Hair strands — seamless vertical scroll (two stacked tiles) */
.ns-shop-banner__strands-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200%;
  display: flex;
  flex-direction: column;
  animation: nsShopStrandsScroll 18s linear infinite;
  will-change: transform;
}

@keyframes nsShopStrandsScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ns-shop-banner__strands-scroll {
    animation: none;
    transform: translateY(0);
  }
}

.ns-shop-banner__strands--tile {
  flex: 0 0 50%;
  width: 100%;
  height: 50%;
  display: block;
}

.ns-shop-banner__strand {
  transform-origin: 50% 0;
}

.ns-shop-banner__strand--orange {
  filter: drop-shadow(0 0 6px rgba(232,109,49,0.5));
}

/* Tick marks (left scale) */
.ns-shop-banner__ticks {
  position: absolute;
  left: 14px;
  top: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.ns-shop-banner__tick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ns-shop-banner__tick::before {
  content: '';
  display: block;
  width: 10px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.ns-shop-banner__tick span {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  font-family: ui-monospace, 'SF Mono', monospace;
  letter-spacing: 0.04em;
}

/* Lab ID label */
.ns-shop-banner__lab-id {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-family: ui-monospace, 'SF Mono', monospace;
  pointer-events: none;
}

/* Diagnostic labels — rotating pairs (JS adds is-exiting / is-entering) */
.ns-shop-banner__labels-cycle {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ns-shop-banner__label--slot {
  position: absolute;
  display: flex;
  align-items: center;
  pointer-events: none;
  /* Za pomarańczowym pasmem (~50%); szerokość = tylko łącznik + box (fit-content), bez rozciągania */
  left: 54%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 54% - 10px);
  box-sizing: border-box;
}
.ns-shop-banner__label--slot[data-slot="0"] { top: 18%; }
.ns-shop-banner__label--slot[data-slot="1"] { top: 46%; }
.ns-shop-banner__label--slot[data-slot="2"] { top: 70%; }

.ns-shop-banner__label-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  min-width: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prosty poziomy odcinek — styka się z lewą krawędzią boxa */
.ns-shop-banner__label-line {
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  align-self: center;
  background: rgba(255, 255, 255, 0.42);
}
.ns-shop-banner__label-line--orange {
  background: #e86d31;
}

.ns-shop-banner__label--slot.ns-label-skip-t .ns-shop-banner__label-inner {
  transition: none !important;
}

.ns-shop-banner__label--slot.is-exiting .ns-shop-banner__label-inner {
  opacity: 0;
  transform: translateY(-12px);
}

.ns-shop-banner__label--slot.is-entering .ns-shop-banner__label-inner {
  opacity: 0;
  transform: translateY(14px);
}

.ns-shop-banner__label-box {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: ui-monospace, 'SF Mono', monospace;
  white-space: nowrap;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-shop-banner__label-box--orange {
  background: rgba(232,109,49,0.14);
  border-color: rgba(232,109,49,0.5);
  color: #fff;
}

/* Monogram circle */
.ns-shop-banner__monogram {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(232,109,49,0.5), inset 0 0 0 4px rgba(0,0,0,0.1);
}

/* RIGHT: content */
.ns-shop-banner__right {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
}

.ns-shop-banner__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ns-shop-banner__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: nsPulse 1.8s infinite;
}
.ns-shop-banner__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}

.ns-shop-banner__heading {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.05;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.ns-shop-banner__heading em {
  font-style: italic;
  color: var(--orange);
  font-weight: 400;
}

.ns-shop-banner__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 12px 0 0;
  line-height: 1.55;
  max-width: 380px;
}

/* USP strip */
.ns-shop-banner__usps {
  display: flex;
  align-items: stretch;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 0;
}
.ns-shop-banner__usp-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ns-shop-banner__usp-n {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.ns-shop-banner__usp-s {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ns-shop-banner__usp-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* CTA button */
.ns-shop-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(232,109,49,0.36);
  align-self: flex-start;
  transition: box-shadow 0.2s, background 0.2s;
}
.ns-shop-banner__btn:hover {
  background: #d45e22;
  box-shadow: 0 10px 28px rgba(232,109,49,0.45);
}

/* Pulsing dot keyframe (reused from front-page) */
@keyframes nsPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
  50%       { opacity: 0.6; box-shadow: 0 0 18px rgba(232,109,49,0.7); }
}

/* ── RTB STRIP ─────────────────────────────────────────────── */
.ns-shop-rtb {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px) 0;
}
.ns-shop-rtb__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.ns-shop-rtb__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ns-shop-rtb__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper-2, #f5f2ee);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.ns-shop-rtb__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.ns-shop-rtb__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

/* ── MOBILE FILTER DRAWER ────────────────────────────────────  */
.ns-shop-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  pointer-events: none;
}
.ns-shop-drawer[hidden] {
  display: none !important;
}
.ns-shop-drawer.is-open {
  pointer-events: auto;
}

.ns-shop-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.52);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity .28s ease,
    backdrop-filter .28s ease,
    -webkit-backdrop-filter .28s ease;
}
.ns-shop-drawer.is-open .ns-shop-drawer__backdrop {
  opacity: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ns-shop-drawer__panel {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(380px, calc(100vw - 20px));
  background: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(229, 219, 200, .95);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  overflow: hidden;
  transform: translate3d(28px, 0, 0) scale(.98);
  opacity: 0;
  transition:
    transform .32s cubic-bezier(.22,.8,.22,1),
    opacity .24s ease;
  will-change: transform, opacity;
}
.ns-shop-drawer.is-open .ns-shop-drawer__panel {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.ns-shop-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper, #fbf7f1));
}
.ns-shop-drawer__title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.02em;
}
.ns-shop-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 8px;
}
.ns-shop-drawer__close:hover { background: var(--paper-2, #f5f2ee); }

.ns-shop-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 18px;
  -webkit-overflow-scrolling: touch;
}

.ns-shop-drawer__foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(245, 242, 238, .96);
  box-shadow: 0 -12px 28px rgba(91, 62, 37, .08);
}
.ns-shop-drawer__clear {
  flex: 1;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-shop-drawer__apply {
  flex: 2;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ── RESPONSIVE ──────────────────────────────────────────────  */
/* At narrower desktop (sidebar still visible): switch to 2 columns */
@media (max-width: 1120px) and (min-width: 901px) {
  .ns-shop-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .ns-shop-banner {
    grid-column: span 2;
    grid-template-columns: min(320px, 45%) 1fr;
  }
}

/* Mobile: hide sidebar, switch to 2 cols */
@media (max-width: 900px) {
  .ns-shop-sidebar { display: none; }
  .ns-shop-body__inner { gap: 0; }
  .ns-shop-toolbar__filter-btn { display: inline-flex; }
  .ns-shop-toolbar__chips {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .ns-shop-toolbar__inner { flex-wrap: wrap; }
  .ns-shop-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ns-shop-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ns-shop-banner__left {
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .ns-shop-banner__label--slot {
    left: 52%;
    max-width: calc(100% - 52% - 8px);
  }
}

@media (max-width: 600px) {
  .ns-shop-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ns-shop-banner {
    grid-column: span 2;
  }
  .ns-shop-rtb__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .ns-shop-hero__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── AJAX loading state ─────────────────────────────────────── */
@keyframes ns-spin {
  to { transform: rotate(360deg); }
}
.ns-shop-grid {
  position: relative;
  transition: opacity .2s;
}
.ns-shop-grid.is-loading {
  opacity: .45;
  pointer-events: none;
}
.ns-shop-grid.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  cursor: wait;
}

/* ── Add-to-cart button icon states ─────────────────────────── */

/* Wrapper that swaps between plus / spinner / check */
.ns-btn-icon {
  position: relative;
  display: inline-flex;
  width: 13px;
  height: 13px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-btn-icon > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .18s;
}
.ns-btn-icon__plus  { opacity: 1; }
.ns-btn-icon__spin  { opacity: 0; }
.ns-btn-icon__check { opacity: 0; }

/* Loading state */
.ns-atc-loading .ns-btn-icon__plus  { opacity: 0; }
.ns-atc-loading .ns-btn-icon__spin  {
  opacity: 1;
  animation: ns-spin .7s linear infinite;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  animation-name: ns-spin-abs;
}
@keyframes ns-spin-abs {
  from { transform: translate(-50%,-50%) rotate(0deg);   }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Added state */
.ns-atc-added .ns-btn-icon__plus  { opacity: 0; }
.ns-atc-added .ns-btn-icon__check { opacity: 1; }

/* ─── KILL WooCommerce's default loader/checkmark on shop card buttons ─── */
.ns-fp-product-card .add_to_cart_button::after,
.ns-fp-product-card .add_to_cart_button::before,
.ns-fp-product-card .add_to_cart_button.loading::after,
.ns-fp-product-card .add_to_cart_button.loading::before,
.ns-fp-product-card .add_to_cart_button.added::after,
.ns-fp-product-card .add_to_cart_button.added::before,
.ns-fp-product-card a.added_to_cart,
.ns-fp-product-card .added_to_cart {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  visibility: hidden !important;
}

/* Map WC `loading` class to our visuals (driven by JS strip — but as a fallback) */
.ns-fp-product-card .add_to_cart_button.loading .ns-btn-icon__plus,
.ns-fp-product-card .add_to_cart_button.added .ns-btn-icon__plus { opacity: 0; }

.ns-fp-product-card .add_to_cart_button.loading .ns-btn-icon__spin {
  opacity: 1;
  animation: ns-spin-abs .7s linear infinite;
}
.ns-fp-product-card .add_to_cart_button.added .ns-btn-icon__check { opacity: 1; }

/* Lock button dimensions so loading never resizes it */
.ns-fp-product-card__actions .add_to_cart_button,
.ns-fp-product-card__actions .ns-btn {
  overflow: hidden;
  white-space: nowrap;
  padding-right: 12px !important;     /* prevent WC adding right padding for spinner */
  padding-left:  12px !important;
}

@media (max-width: 640px) {
  .ns-fp-product-card__actions .add_to_cart_button,
  .ns-fp-product-card__actions .ns-btn {
    width: 100% !important;
    min-height: 44px;
    justify-content: center;
    gap: 8px;
    padding-right: 14px !important;
    padding-left: 14px !important;
    font-size: 14px;
  }
}
