/* Shop header */
.ne-shop-head {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.ne-shop-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.ne-shop-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ne-shop-crumb a:hover {
  color: var(--ink);
}

.ne-shop-crumb span[aria-current="page"] {
  color: var(--ink);
}

.ne-shop-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.ne-shop-h1 em {
  font-style: italic;
  color: var(--accent);
}

.ne-shop-h1 .ne-em {
  color: var(--accent);
}

.ne-shop-head__lede {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: none;
  margin: 0;
}

.ne-shop-head__lede strong {
  color: var(--ink);
  font-weight: 600;
}

/* Shop grid: sidebar + results */
.ne-shop-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

/* Filter sidebar */
.ne-shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  z-index: 1;
}

.ne-filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.ne-filter-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft-2);
}

.ne-filter-head__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ne-filter-clear {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}

.ne-filter-clear:hover {
  color: var(--accent);
}

.ne-fgroup {
  border-bottom: 1px solid var(--line);
}

.ne-fgroup:last-child {
  border-bottom: 0;
}

.ne-fgroup-head {
  width: 100%;
  padding: 18px 22px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.ne-fgroup-head h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

.ne-fgroup-chev {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: transform 0.25s;
}

.ne-fgroup-chev svg {
  width: 11px;
  height: 11px;
}

.ne-fgroup.closed .ne-fgroup-chev {
  transform: rotate(-90deg);
}

.ne-fgroup-body {
  padding: 0 22px 18px;
}

.ne-fgroup.closed .ne-fgroup-body {
  display: none;
}

/* Category checkbox rows */
.ne-frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.ne-frow:hover {
  color: var(--ink);
}

.ne-frow-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.ne-frow input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.ne-frow input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.ne-frow input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.ne-frow-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
}

.ne-frow.on {
  color: var(--ink);
}

.ne-frow.on .ne-frow-count {
  color: var(--accent);
}

/* Type pills */
.ne-ftype {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ne-ftype button {
  flex: 1 1 auto;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.ne-ftype button:hover {
  border-color: var(--ink-3);
}

.ne-ftype button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Price range */
.ne-price-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ne-pi {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 10px;
  height: 42px;
  font-size: 0.8125rem;
  background: #fff;
  min-width: 0;
  transition: border-color 0.15s;
}

.ne-pi:focus-within {
  border-color: var(--ink-3);
}

.ne-pi__label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  margin-right: 4px;
  flex-shrink: 0;
}

.ne-pi__suffix {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  flex-shrink: 0;
  margin-left: 2px;
}

/* Higher specificity than the global .woocommerce input[type="text"]
   form-field style (which would otherwise win and add its own
   12px/16px-padded border inside this already-bordered .ne-pi box). */
.ne-shop-sidebar .ne-pi input,
.ne-shop-sidebar .ne-pi input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: none;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--ink);
  padding: 0;
}

.ne-pi input::-webkit-outer-spin-button,
.ne-pi input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ne-range-wrap {
  position: relative;
  height: 4px;
  background: #f0ebde;
  border-radius: 2px;
  margin: 14px 8px 8px;
}

.ne-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 2px;
  left: 0%;
  right: 0%;
}

.ne-range-wrap input[type="range"] {
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  width: 100%;
  height: 22px;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  margin: 0;
}

.ne-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ne-range-wrap input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
  pointer-events: auto;
}

/* Shop results */
.ne-shop-results {
  min-width: 0;
}

.ne-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.ne-chips:not(:empty) {
  margin-bottom: 18px;
}

.ne-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.ne-chip:hover {
  background: #e8e0cb;
}

.ne-chip svg {
  width: 11px;
  height: 11px;
}

/* Product card itself (.ne-prod / .ne-prod-grid) is styled in
   ne-blocks.css + ne-global.css - shared with the homepage bestsellers
   block and single-product related items. Do not redefine it here. */

/* Empty state */
.ne-shop-empty {
  padding: 64px 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ne-shop-empty svg {
  width: 40px;
  height: 40px;
  color: var(--line-2);
  flex-shrink: 0;
  margin-bottom: 12px;
}

.ne-shop-empty h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 400;
}

.ne-shop-empty p {
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 36ch;
  line-height: 1.6;
  margin: 0;
}

.ne-shop-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.ne-shop-empty__btn:hover {
  background: var(--accent);
}

/* Bottom description (pod listą produktów kategorii) */
.ne-shop-bottom-desc {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.ne-shop-bottom-desc > *:last-child {
  margin-bottom: 0;
}

.ne-shop-bottom-desc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Responsive (.ne-prod-grid column counts are in ne-global.css) */
@media (max-width: 1024px) {
  .ne-shop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ne-shop-sidebar {
    position: static;
  }

  .ne-shop-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
