/* ─────────────────────────────────────────────────────────────
   Techwish — Strona kategorii (archive-product.php).
   Layout matches mockup: breadcrumbs → hero with stats →
   WYBIERZ TYP block → quiz banner → toolbar → sidebar + grid.
   ───────────────────────────────────────────────────────────── */

.tw-cat {
  --tw-cat-accent: var(--tw-mint, #2DCE92);
  --tw-cat-accent-soft: var(--tw-mint-050, #F1FAF5);
  --tw-cat-accent-strong: var(--tw-mint-600, #1FB37C);
  padding-bottom: 80px;
}
/* Kill list bullets globally inside our category template — Salient
   forces `list-style: disc` on <ul li> and `list-style: decimal` on
   <ol li> inside `.container_wrap`. We carry our own visual treatment
   on each list (chips, cards, crumbs) so the default markers must go.
   We zero the marker via `::marker` (modern browsers), `list-style`,
   the `::before` pseudo-element (some Salient skins use it), AND any
   inherited background-image bullet. */
.tw-cat ul,
.tw-cat ol {
  list-style: none !important;
  counter-reset: none !important;
}
.tw-cat ul > li,
.tw-cat ol > li {
  list-style: none !important;
  background: none !important;
}
.tw-cat ul > li::marker,
.tw-cat ol > li::marker {
  content: "" !important;
  color: transparent !important;
  font-size: 0 !important;
}
.tw-cat ul > li::before,
.tw-cat ol > li::before {
  content: none !important;
  display: none !important;
}

/* Salient parent resets <p> / <h*> to line-height: 1 inside its main
   content scope — restore readable rhythm for every text element. */
.tw-cat p,
.tw-cat li,
.tw-cat label,
.tw-cat select,
.tw-cat .tw-h1,
.tw-cat .tw-h2,
.tw-cat .tw-h3 { line-height: 1.5; }
.tw-cat .tw-h1 { line-height: 1.1; }
.tw-cat .tw-h2,
.tw-cat .tw-h3 { line-height: 1.2; }

/* ───────── BREADCRUMBS ───────── */
.tw-cat-crumbs {
  margin: 24px auto 18px;
}
.tw-cat-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
}
.tw-cat-crumbs a {
  color: var(--tw-mute, #6B7470);
  text-decoration: none;
  transition: color .15s ease;
}
.tw-cat-crumbs a:hover { color: var(--tw-cat-accent-strong); }
.tw-cat-crumbs__sep { color: var(--tw-mute-2, #98A09B); }
.tw-cat-crumbs [aria-current="page"] {
  color: var(--tw-ink, #0B0F0D);
}

/* ───────── HERO ───────── */
.tw-cat-hero {
  margin: 0 auto 32px;
}
.tw-cat-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 8px 0 16px;
}
@media (max-width: 960px) {
  .tw-cat-hero__body { grid-template-columns: 1fr; gap: 24px; }
}

.tw-cat-hero__copy { min-width: 0; }
.tw-cat-hero__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-ink-2, #2A2F2C);
  font-weight: 600;
  margin-bottom: 14px;
}
.tw-cat-hero__meta .tw-dot {
  width: 7px; height: 7px;
  background: var(--tw-cat-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tw-cat-accent) 22%, transparent);
}
.tw-cat-hero__meta-sep {
  color: var(--tw-mute-2, #98A09B);
  font-weight: 400;
}

.tw-cat-hero__title {
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--tw-ink, #0B0F0D);
}
.tw-cat-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tw-mute, #6B7470);
}
.tw-cat-hero__title-sep {
  color: var(--tw-mute-2, #98A09B);
  font-weight: 300;
  margin: 0 4px;
}
@media (max-width: 720px) {
  .tw-cat-hero__title { font-size: 36px; }
}

.tw-cat-hero__lede {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tw-ink-2, #2A2F2C);
  max-width: 56ch;
  margin: 0 0 20px;
}

/* Hero CTAs (chips with icon + label + optional meta) */
.tw-cat-hero__ctas {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tw-cat-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--tw-line, #DDE3E0);
  background: #fff;
  color: var(--tw-ink, #0B0F0D);
  text-decoration: none;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .15s ease;
}
.tw-cat-hero__cta:hover {
  border-color: var(--tw-cat-accent);
  background: var(--tw-cat-accent-soft);
  color: var(--tw-cat-accent-strong);
}
.tw-cat-hero__cta.is-accent {
  border-color: var(--tw-cat-accent);
  color: var(--tw-cat-accent-strong);
}
.tw-cat-hero__cta-meta {
  color: var(--tw-mute, #6B7470);
  font-weight: 400;
}

/* Hero stats (2x2 grid of stat cards) */
.tw-cat-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.tw-cat-hero__stat {
  background: #fff;
  border: 1px solid var(--tw-line-soft, #ECEFED);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tw-cat-hero__stat dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tw-mute, #6B7470);
  margin: 0;
}
.tw-cat-hero__stat-value {
  font-family: var(--tw-mono, monospace);
  font-size: 26px;
  font-weight: 700;
  color: var(--tw-ink, #0B0F0D);
  margin: 0;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tw-cat-hero__stat-value--accent { color: var(--tw-cat-accent-strong); }
.tw-cat-hero__stat-value .woocommerce-Price-amount { font-weight: 700; }
.tw-cat-hero__stat-value-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--tw-mute, #6B7470);
}
.tw-cat-hero__stat-sub {
  font-size: 11px;
  color: var(--tw-mute, #6B7470);
  font-weight: 500;
  margin-top: 4px;
}

/* ───────── WYBIERZ TYP ───────── */
.tw-cat-types {
  margin-bottom: 32px;
}
.tw-cat-types__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.tw-cat-types__eyebrow,
.tw-cat-types__meta {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
}
.tw-cat-types__meta { color: var(--tw-mute-2, #98A09B); }

.tw-cat-types__grid {
  list-style: none !important;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
/* Salient parent forces `list-style: disc` on every <ul li> inside
   .container_wrap. Belt-and-suspenders: zero out the bullet plus the
   :before pseudo-element that some Salient skins use for custom markers. */
.tw-cat-types__grid > li,
.tw-cat-toolbar__pills > li,
.tw-cat-hero__ctas > li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.tw-cat-types__grid > li::before,
.tw-cat-toolbar__pills > li::before,
.tw-cat-hero__ctas > li::before { content: none !important; display: none !important; }
@media (max-width: 1100px) { .tw-cat-types__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tw-cat-types__grid { grid-template-columns: 1fr; } }

.tw-cat-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--tw-line-soft, #ECEFED);
  border-radius: 16px;
  text-decoration: none;
  color: var(--tw-ink, #0B0F0D);
  min-height: 170px;
  transition: all .15s ease;
  position: relative;
}
.tw-cat-type:hover {
  border-color: var(--tw-cat-accent);
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-hover, 0 12px 28px rgba(11,15,13,.06));
}
.tw-cat-type.is-active {
  border-color: var(--tw-cat-accent);
  background: var(--tw-cat-accent-soft);
}
.tw-cat-type__glyph {
  font-family: var(--tw-mono, monospace);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--tw-cat-accent-strong);
  font-weight: 700;
}
.tw-cat-type__name {
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  margin: 4px 0 0;
}
.tw-cat-type__desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tw-mute, #6B7470);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tw-cat-type__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 12px;
}
.tw-cat-type__price {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tw-ink-2, #2A2F2C);
  font-weight: 600;
  text-transform: uppercase;
}
.tw-cat-type__count {
  font-size: 22px;
  font-weight: 700;
  color: var(--tw-ink, #0B0F0D);
  line-height: 1;
  text-align: right;
}
.tw-cat-type__count span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--tw-mute, #6B7470);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ───────── QUIZ BANNER ───────── */
.tw-cat-quiz {
  margin-bottom: 36px;
}
.tw-cat-quiz__card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #0B0F0D;
  background-image:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--tw-cat-accent) 18%, transparent), transparent 55%),
    repeating-linear-gradient(100deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px);
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tw-cat-quiz__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11,15,13,.25);
}
.tw-cat-quiz__mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--tw-cat-accent);
  color: #062319;
  display: grid;
  place-items: center;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 30px;
  font-weight: 700;
}
.tw-cat-quiz__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tw-cat-quiz__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--tw-cat-accent);
  font-weight: 600;
}
.tw-cat-quiz__eyebrow .tw-dot {
  width: 7px; height: 7px;
  background: var(--tw-cat-accent);
  border-radius: 50%;
}
.tw-cat-quiz__title {
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}
.tw-cat-quiz__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tw-cat-accent);
}
.tw-cat-quiz__cta {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .tw-cat-quiz__card { grid-template-columns: 56px 1fr; }
  .tw-cat-quiz__cta { grid-column: 1 / -1; justify-self: stretch; }
}

/* ───────── TOOLBAR ───────── */
.tw-cat-toolbar {
  margin-bottom: 20px;
}
.tw-cat-toolbar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
}
.tw-cat-toolbar__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tw-cat-toolbar__active-count {
  color: var(--tw-cat-accent-strong);
}
.tw-cat-toolbar__reset {
  color: var(--tw-cat-accent-strong);
  text-decoration: none;
  margin-left: 10px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 700;
}
.tw-cat-toolbar__reset:hover { color: var(--tw-cat-accent); }

.tw-cat-toolbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tw-cat-toolbar__count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-mute-2, #98A09B);
  font-weight: 600;
}

/* Sort */
.tw-cat-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tw-cat-sort__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
}
.tw-cat-sort select {
  padding: 8px 36px 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--tw-line, #DDE3E0);
  background-color: #fff;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--tw-ink, #0B0F0D);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.tw-cat-sort select:hover { border-color: var(--tw-cat-accent); }

/* View toggle (grid / list) */
.tw-cat-view {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--tw-line, #DDE3E0);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tw-cat-view__btn {
  appearance: none;
  background: #fff;
  border: 0;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--tw-mute, #6B7470);
  display: grid;
  place-items: center;
  border-right: 1px solid var(--tw-line-soft, #ECEFED);
  transition: all .15s ease;
}
.tw-cat-view__btn:last-child { border-right: 0; }
.tw-cat-view__btn:hover { color: var(--tw-ink, #0B0F0D); }
.tw-cat-view__btn.is-active {
  background: var(--tw-ink, #0B0F0D);
  color: #fff;
}

/* Active filter pills */
.tw-cat-toolbar__pills {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tw-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tw-cat-accent-soft);
  border: 1px solid var(--tw-cat-accent);
  color: var(--tw-cat-accent-strong);
  text-decoration: none;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all .15s ease;
}
.tw-cat-pill:hover {
  background: var(--tw-cat-accent);
  color: #062319;
}
.tw-cat-pill__x {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.7;
}
.tw-cat-pill:hover .tw-cat-pill__x { opacity: 1; }

/* Suggested chips (when no filters active) */
.tw-cat-pill--suggest {
  background: #fff;
  border-color: var(--tw-line, #DDE3E0);
  color: var(--tw-ink-2, #2A2F2C);
}
.tw-cat-pill--suggest:hover {
  border-color: var(--tw-cat-accent);
  background: var(--tw-cat-accent-soft);
  color: var(--tw-cat-accent-strong);
}
.tw-cat-pill__plus {
  font-size: 14px;
  color: var(--tw-cat-accent);
  font-weight: 700;
  line-height: 1;
}
.tw-cat-pill__count {
  font-family: var(--tw-mono, monospace);
  color: var(--tw-mute, #6B7470);
  font-weight: 500;
}

/* ───────── BODY: sidebar + grid ───────── */
.tw-cat-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .tw-cat-body { grid-template-columns: 1fr; gap: 16px; }
}

/* ───────── SIDEBAR ───────── */
.tw-cat-sidebar { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .tw-cat-sidebar { position: static; }
}
.tw-cat-sidebar__toggle {
  display: none;
  width: 100%;
  appearance: none;
  background: var(--tw-ink, #0B0F0D);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .tw-cat-sidebar__toggle { display: flex; }
  .tw-cat-sidebar__filters { display: none; }
  .tw-cat-sidebar__filters.is-open { display: block; }
}
.tw-cat-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-mute, #6B7470);
  font-weight: 600;
}
.tw-cat-sidebar__active { color: var(--tw-cat-accent-strong); }
.tw-cat-sidebar__reset-link {
  color: var(--tw-cat-accent-strong);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 700;
  font-size: 10.5px;
}
.tw-cat-sidebar__reset-link:hover { color: var(--tw-cat-accent); }
.tw-cat-sidebar__empty {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tw-mute, #6B7470);
  padding: 16px;
  background: var(--tw-paper-2, #F4F7F5);
  border-radius: 12px;
  margin: 16px 0 0;
}

/* Filter group accordion */
.tw-cat-filter-group {
  border-bottom: 1px solid var(--tw-line-soft, #ECEFED);
  padding: 12px 0;
}
.tw-cat-filter-group summary,
.tw-cat-filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--tw-ink, #0B0F0D);
  list-style: none;
}
.tw-cat-filter-group summary::-webkit-details-marker { display: none; }
.tw-cat-filter-group summary .tw-mono,
.tw-cat-filter-group__head .tw-mono {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-cat-accent-strong);
  font-weight: 700;
}
.tw-cat-filter-group__icon {
  font-family: var(--tw-mono, monospace);
  font-size: 18px;
  color: var(--tw-mute, #6B7470);
  font-weight: 300;
  transition: transform .15s ease;
}
.tw-cat-filter-group[open] .tw-cat-filter-group__icon { transform: rotate(45deg); }
.tw-cat-filter-group__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.tw-cat-filter-group__list label {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--tw-ink-2, #2A2F2C);
}
.tw-cat-filter-group__list input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid var(--tw-line, #DDE3E0);
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.tw-cat-filter-group__list input[type=checkbox]:hover { border-color: var(--tw-cat-accent); }
.tw-cat-filter-group__list input[type=checkbox]:checked {
  background: var(--tw-cat-accent);
  border-color: var(--tw-cat-accent);
}
.tw-cat-filter-group__list input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23062319' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8l3 3 7-7'/></svg>");
}
.tw-cat-filter-group__name { line-height: 1.3; }
.tw-cat-filter-group__count {
  color: var(--tw-mute, #6B7470);
  font-size: 11.5px;
  font-weight: 600;
}

/* Price histogram + inputs (mockup) */
.tw-cat-filter-group__body {
  padding: 14px 0 0;
}
.tw-cat-price-hist {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: end;
  gap: 2px;
  height: 56px;
  margin-bottom: 14px;
}
.tw-cat-price-hist span {
  background: linear-gradient(180deg, var(--tw-cat-accent), var(--tw-cat-accent-strong));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.6;
}
.tw-cat-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tw-cat-price-inputs label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--tw-line, #DDE3E0);
  border-radius: 10px;
  background: #fff;
  cursor: text;
  transition: border-color .15s ease;
}
.tw-cat-price-inputs label:focus-within { border-color: var(--tw-cat-accent); }
.tw-cat-price-inputs .tw-mono {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--tw-mute, #6B7470);
  font-weight: 700;
}
.tw-cat-price-inputs input {
  appearance: none;
  -moz-appearance: textfield;
  border: 0;
  outline: 0;
  padding: 0;
  width: 100%;
  font-family: var(--tw-display, "Space Grotesk", sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--tw-ink, #0B0F0D);
  background: transparent;
}
.tw-cat-price-inputs input::-webkit-outer-spin-button,
.tw-cat-price-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.tw-cat-filter-group.is-open .tw-cat-filter-group__head { color: var(--tw-ink, #0B0F0D); }
.tw-cat-filter-group.is-open .tw-cat-filter-group__icon { transform: rotate(45deg); }

.tw-cat-filters__submit {
  margin-top: 18px;
  width: 100%;
  background: var(--tw-cat-accent) !important;
  color: #062319 !important;
}

/* ───────── PRODUCT GRID ───────── */
.tw-cat-grid ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .tw-cat-grid ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tw-cat-grid ul.products { grid-template-columns: 1fr; } }

/* Empty state */
.tw-cat-empty {
  margin: 60px auto;
  max-width: 460px;
  text-align: center;
  padding: 48px 32px;
  border: 1px dashed var(--tw-line, #DDE3E0);
  border-radius: 18px;
  background: var(--tw-paper-2, #F4F7F5);
}
.tw-cat-empty .tw-h3 { margin: 0 0 8px; line-height: 1.25; }
.tw-cat-empty p { margin: 0; color: var(--tw-ink-2, #2A2F2C); line-height: 1.5; }

/* WC pagination */
.woocommerce-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.woocommerce-pagination ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0; padding: 0;
}
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tw-line, #DDE3E0);
  background: #fff;
  color: var(--tw-ink, #0B0F0D);
  text-decoration: none;
  font-family: var(--tw-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s ease;
}
.woocommerce-pagination .page-numbers:hover {
  border-color: var(--tw-cat-accent);
  color: var(--tw-cat-accent-strong);
}
.woocommerce-pagination .page-numbers.current {
  background: var(--tw-ink, #0B0F0D);
  color: #fff;
  border-color: var(--tw-ink, #0B0F0D);
}

/* ───────── LAYOUT VARIANTS (accent palette overrides) ───────── */
.tw-cat--tech {
  --tw-cat-accent: #2DCE92;
  --tw-cat-accent-soft: #F1FAF5;
  --tw-cat-accent-strong: #1FB37C;
}
.tw-cat--wellness {
  --tw-cat-accent: #6BAF99;
  --tw-cat-accent-soft: #EFF6F2;
  --tw-cat-accent-strong: #4A8E7A;
}
.tw-cat--smart-home {
  --tw-cat-accent: #4A8FE7;
  --tw-cat-accent-soft: #EEF4FC;
  --tw-cat-accent-strong: #2E6FD0;
}
.tw-cat--pets {
  --tw-cat-accent: #E89B5C;
  --tw-cat-accent-soft: #FAF3EC;
  --tw-cat-accent-strong: #C97A3E;
}
.tw-cat--lifestyle {
  --tw-cat-accent: #2DCE92;
  --tw-cat-accent-soft: rgba(45, 206, 146, 0.1);
  --tw-cat-accent-strong: #2DCE92;
}

/* List-view mode (toggled from toolbar). One product per row, image+body. */
.tw-cat-grid ul.products.is-list-view {
  grid-template-columns: 1fr;
}
.tw-cat-grid ul.products.is-list-view li.product {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
@media (max-width: 540px) {
  .tw-cat-grid ul.products.is-list-view li.product { grid-template-columns: 1fr; }
}
