/* Soigner Product Catalog — Chunk 1 */
.spc-catalog,
.spc-catalog * { box-sizing: border-box; }

.spc-catalog {
  --spc-blue: #0798dc;
  --spc-blue-dark: #087fc0;
  --spc-text: #1c252b;
  --spc-muted: #68737c;
  --spc-bg: #e4f5ff;
  --spc-white: #fff;
  --spc-soft: #f2f4f5;
  --spc-border: #e3e8eb;
  --spc-shadow: 0 12px 34px rgba(30, 73, 95, .08);
  width: 100%;
  color: var(--spc-text);
  font-family: "Sora", sans-serif;
  background: var(--spc-bg);
  border-radius: 0;
  overflow: hidden;
  padding: 0 0 38px;
}

.spc-catalog button,
.spc-catalog input { font: inherit; }

.spc-hero {
  text-align: center;
  padding: 18px 24px 30px;
  background: var(--spc-bg);
}

.spc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #c9e5f4;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--spc-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

.spc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spc-blue);
  display: inline-block;
}

.spc-hero h1 {
  margin: 16px 0 8px;
  color: #182126;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.7px;
  font-weight: 800;
}

.spc-hero > p {
  margin: 0 auto;
  max-width: 720px;
  color: #4f5c64;
  font-size: 15px;
  line-height: 1.65;
}

.spc-search-panel {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 12px 12px 0;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--spc-shadow);
  text-align: left;
}

.spc-search-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  gap: 9px;
  align-items: center;
  padding-bottom: 11px;
}

.spc-search-field {
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-radius: 28px;
  background: #f1f2f2;
  color: #6f7b84;
}

.spc-search-field svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.spc-search-field input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #36434c;
  font-size: 14px;
}

.spc-search-field input::placeholder { color: #7d8790; opacity: 1; }

.spc-filter-button {
  height: 52px;
  border: 0;
  border-radius: 27px;
  background: var(--spc-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0, 143, 212, .22);
}

.spc-filter-button svg,
.spc-segment-label svg,
.spc-pack svg,
.spc-pagination-summary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.spc-segment-row {
  border-top: 1px solid #edf0f1;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 7px 2px;
}

.spc-segment-row::-webkit-scrollbar { display: none; }

.spc-segment-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #68747d;
  font-size: 11px;
  font-weight: 600;
  flex: 0 0 auto;
}

.spc-segment-label svg { width: 12px; height: 12px; }

.spc-segment {
  border: 0;
  border-radius: 20px;
  padding: 6px 11px;
  background: #f1f2f3;
  color: #46515a;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  flex: 0 0 auto;
}

.spc-segment.active {
  background: var(--spc-blue);
  color: #fff;
}

.spc-stat-grid {
  max-width: 1110px;
  margin: 0 auto 38px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: transparent;
}

.spc-stat-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 70, 88, .06);
}

.spc-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--spc-blue);
  background: #edf8ff;
  flex: 0 0 auto;
}

.spc-stat-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.spc-catalog-area {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 255px minmax(0,1fr);
  gap: 28px;
  align-items: start;
}

.spc-sidebar {
  background: #fff;
  border-radius: 17px;
  padding: 25px 26px 27px;
  box-shadow: 0 8px 25px rgba(29, 68, 85, .05);
}

.spc-filter-group + .spc-filter-group { margin-top: 24px; }

.spc-filter-group h2 {
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: #1c252a;
}

.spc-check {
  position: relative;
  min-height: 28px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: start;
  gap: 8px;
  margin: 0;
  color: #667078;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.spc-check + .spc-check { margin-top: 3px; }

.spc-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spc-box {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid #aab4ba;
  border-radius: 2px;
  background: #fff;
}

.spc-check.active .spc-box {
  border-color: var(--spc-blue);
  background: var(--spc-blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.spc-check strong {
  font-weight: 700;
  color: #273136;
}

.spc-check em {
  justify-self: end;
  min-width: 36px;
  padding: 3px 6px;
  border-radius: 14px;
  background: #f1f3f4;
  color: #9aa2a7;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.spc-clear {
  display: block;
  margin: 22px auto 0;
  border: 0;
  background: transparent;
  color: var(--spc-blue);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.spc-results { min-width: 0; }

.spc-results-header {
  min-height: 52px;
  padding: 0 0 11px;
  border-bottom: 1px solid #d9e6eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.spc-results-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.spc-results-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.spc-results-title > span {
  padding: 4px 8px;
  border-radius: 12px;
  background: #edf0f1;
  color: #6d767d;
  font-size: 10px;
  font-weight: 700;
}

.spc-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59636a;
  font-size: 11px;
  font-weight: 600;
}

.spc-sort button {
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #39434a;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40,70,80,.04);
}

.spc-page.current {
  background: var(--spc-blue);
  color: #fff;
}

.spc-page.disabled { color: #c1c7ca; cursor: default; }

.spc-page-dots {
  color: #8d969c;
  font-size: 12px;
  padding: 0 2px;
}

@media (max-width: 1050px) {
  .spc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .spc-catalog-area { grid-template-columns: 230px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .spc-hero { padding: 14px 14px 24px; }
  .spc-hero h1 { font-size: 35px; }
  .spc-desktop-break { display: none; }
  .spc-search-row { grid-template-columns: 1fr; }
  .spc-filter-button { width: 100%; }
  .spc-stat-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
  .spc-catalog-area { display: block; padding: 0 14px; }
  .spc-sidebar {
    display: none;
    margin-bottom: 18px;
  }
  .spc-sidebar.spc-sidebar-open {
    display: block;
  }
  .spc-results-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .spc-pagination { margin-left: 14px; margin-right: 14px; flex-direction: column; }
}

@media (min-width: 761px) {
  .spc-sidebar { display: block !important; }
}

@media (max-width: 480px) {
  .spc-hero h1 { font-size: 30px; }
  .spc-hero > p { font-size: 13px; }
  .spc-search-panel { margin-top: 16px; }
  .spc-stat-card { min-height: 76px; }
  .spc-results-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .spc-sort { width: 100%; justify-content: space-between; }
  .spc-pagination-summary { flex-wrap: wrap; justify-content: center; text-align: center; }
}


/* Chunk 2: real WooCommerce image fallback and empty state */
.spc-product-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.spc-no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #7a858c;
  background: #f1f3f3;
  font-size: 11px;
  font-weight: 700;
}

.spc-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  padding: 35px 25px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: #657078;
}

.spc-empty strong {
  color: #20292e;
  font-size: 16px;
}

.spc-empty span {
  font-size: 12px;
}


/* Chunk 3: functional filter form */
.spc-filter-form { margin: 0; }

.spc-filter-actions {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #edf0f1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spc-apply-filters {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 20px;
  background: var(--spc-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.spc-filter-actions .spc-clear {
  margin: 0 auto;
  display: inline-block;
  text-decoration: none;
}

.spc-check input:focus-visible + .spc-box {
  outline: 2px solid var(--spc-blue);
  outline-offset: 2px;
}

.spc-filter-form .spc-filter-group + .spc-filter-group {
  margin-top: 22px;
}


/* Chunk 4: AJAX state */
.spc-product-grid {
  position: relative;
  transition: opacity .18s ease;
}

.spc-catalog.spc-is-loading .spc-product-grid {
  opacity: .45;
  pointer-events: none;
}

.spc-catalog.spc-is-loading .spc-product-grid::after {
  content: "Loading products…";
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  padding: 8px 13px;
  border-radius: 18px;
  background: #fff;
  color: #4d5961;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 7px 22px rgba(30,70,90,.12);
  white-space: nowrap;
}

.spc-search-field input:focus {
  outline: none !important;
}

.spc-filter-button:focus-visible,
.spc-segment:focus-visible,
.spc-apply-filters:focus-visible,
.spc-clear:focus-visible {
  outline: 2px solid var(--spc-blue);
  outline-offset: 2px;
}


/* Chunk 5: automatic filters, segments, sorting and AJAX pagination */
.spc-segment-count {
  opacity: .72;
  font-size: .92em;
}

.spc-filter-actions {
  padding-top: 10px;
}


.spc-pagination [data-spc-pages] {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spc-page:disabled {
  pointer-events: none;
}

@media (max-width: 760px) {
  .spc-pagination [data-spc-pages] {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   v0.7 — clean product card, grid, tiles, sort, pagination
   ========================================================================== */
.spc-catalog { --spc-radius: 18px; }

/* Highlight tiles (buttons) */
.spc-catalog .spc-stat-card {
  width: 100%;
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.spc-catalog .spc-stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 70, 88, .10); }
.spc-catalog .spc-stat-card.active { box-shadow: 0 0 0 2px var(--spc-blue), 0 12px 28px rgba(31, 70, 88, .10); }
.spc-catalog .spc-stat-card:focus-visible { outline: 2px solid var(--spc-blue); outline-offset: 2px; }
.spc-catalog .spc-stat-text { display: block; min-width: 0; }
.spc-catalog .spc-stat-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
  color: #1e272c;
}
.spc-catalog .spc-stat-text > span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--spc-blue);
  font-weight: 700;
}

/* Sort dropdown */
.spc-catalog .spc-sort { cursor: pointer; }
.spc-catalog .spc-sort select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
  height: 36px;
  padding: 0 34px 0 15px;
  border: 0;
  border-radius: 18px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2339434a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  color: #39434a;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(40, 70, 80, .05);
  cursor: pointer;
}
.spc-catalog .spc-sort select:focus-visible { outline: 2px solid var(--spc-blue); outline-offset: 2px; }

/* Grid */
.spc-catalog .spc-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 16px;
  align-items: stretch;
}
.spc-catalog.spc-cols-2 .spc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spc-catalog.spc-cols-4 .spc-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Card — every element is isolated from theme styles */
.spc-catalog .spc-product-card {
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: var(--spc-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 65, 82, .07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.spc-catalog .spc-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(30, 65, 82, .11);
}

.spc-catalog .spc-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border-radius: calc(var(--spc-radius) - 5px);
  background: #f1f3f4;
  overflow: hidden;
  flex: 0 0 auto;
}
.spc-catalog .spc-product-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply; /* white photo backgrounds melt into the grey box */
}
.spc-catalog .spc-no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #7a858c;
  font-size: 11px;
  font-weight: 700;
}

.spc-catalog .spc-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 5px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  color: var(--spc-blue);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.spc-catalog .spc-product-badge.gold { color: #b97a00; }

/* Body grows so the action row always sits at the bottom */
.spc-catalog .spc-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 2px 2px 0;
}

.spc-catalog .spc-product-meta {
  min-height: 22px;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.spc-catalog .spc-product-meta span {
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 11px;
  background: #e9f7ff;
  color: var(--spc-blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spc-catalog .spc-product-meta .spc-meta-muted { background: #f0f2f3; color: #59646c; }

.spc-catalog .spc-product-card h3 {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  color: #1d252a;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.4px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.spc-catalog .spc-product-card h3 a { color: inherit; text-decoration: none; }
.spc-catalog .spc-product-card h3 a:hover { color: var(--spc-blue); }

.spc-catalog .spc-product-description {
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  color: #59646c;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Text block grows; the pack pill and the buttons stay pinned to the card bottom */
.spc-catalog .spc-card-text { flex: 1 1 auto; padding-bottom: 12px; min-width: 0; }

.spc-catalog .spc-pack {
  margin: 0;
  padding: 8px 11px;
  border: 0;
  border-radius: 15px;
  background: #f1f3f3;
  color: #515d64;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.spc-catalog .spc-pack svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: var(--spc-blue);
  stroke-width: 1.8;
}
.spc-catalog .spc-pack span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spc-catalog .spc-card-actions {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #e8ecee;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spc-catalog .spc-btn {
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease;
}
.spc-catalog .spc-btn:hover { transform: translateY(-1px); }
.spc-catalog .spc-btn-primary {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--spc-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(7, 152, 220, .18);
}
.spc-catalog .spc-btn-primary:hover { background: var(--spc-blue-dark); color: #fff; }
.spc-catalog .spc-btn-light {
  flex: 0 0 auto;
  min-width: 68px;
  background: #f2f4f5;
  color: #4f5a61;
}
.spc-catalog .spc-btn-light:hover { background: #e6ecee; color: #273238; }
.spc-catalog .spc-btn:focus-visible { outline: 2px solid var(--spc-blue); outline-offset: 2px; }

/* Pagination bar */
.spc-catalog .spc-pagination {
  max-width: 1204px;
  margin: 26px auto 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 65, 82, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
@media (min-width: 1240px) { .spc-catalog .spc-pagination { width: calc(100% - 36px); } }
.spc-catalog .spc-pagination-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5a61;
  font-size: 12px;
}
.spc-catalog .spc-pagination-summary svg { color: var(--spc-blue); }
.spc-catalog .spc-pagination-summary strong { font-weight: 700; color: #33404a; }
.spc-catalog .spc-page {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #3a454c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.spc-catalog .spc-page:hover:not(:disabled) { background: #e2eaee; }
.spc-catalog .spc-page.current { background: var(--spc-blue); color: #fff; }
.spc-catalog .spc-page:disabled { color: #c1c7ca; cursor: default; }
.spc-catalog .spc-page:focus-visible { outline: 2px solid var(--spc-blue); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1150px) {
  .spc-catalog.spc-cols-4 .spc-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .spc-catalog .spc-product-grid,
  .spc-catalog.spc-cols-3 .spc-product-grid,
  .spc-catalog.spc-cols-4 .spc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .spc-catalog .spc-product-card h3 { font-size: 19px; }
  .spc-catalog .spc-product-description { font-size: 13px; }
}
@media (max-width: 760px) {
  .spc-catalog .spc-product-grid,
  .spc-catalog.spc-cols-2 .spc-product-grid,
  .spc-catalog.spc-cols-3 .spc-product-grid,
  .spc-catalog.spc-cols-4 .spc-product-grid { grid-template-columns: 1fr; gap: 14px; }
  .spc-catalog .spc-pagination { margin-left: 14px; margin-right: 14px; flex-direction: column; text-align: center; }
  .spc-catalog .spc-pagination-summary { flex-wrap: wrap; justify-content: center; }
  .spc-catalog .spc-pagination [data-spc-pages] { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .spc-catalog .spc-product-card { padding: 10px; }
  .spc-catalog .spc-sort { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .spc-catalog * { transition: none !important; }
}

/* Sidebar: collapsed long filter groups */
.spc-catalog .spc-show-more {
  margin: 10px 0 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 14px;
  background: #edf8ff;
  color: var(--spc-blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .18s ease;
}
.spc-catalog .spc-show-more:hover { background: #dbf0fd; }
.spc-catalog .spc-show-more:focus-visible { outline: 2px solid var(--spc-blue); outline-offset: 2px; }

/* ==========================================================================
   v0.7.2 — locked layout: theme margins/paddings/<p>/<br> cannot add gaps.
   Spacing is created ONLY with flex "gap" so it is identical on every theme.
   ========================================================================== */
body .spc-catalog br,
body .spc-catalog p:empty,
body .spc-catalog .spc-card-body > p:not(.spc-product-description) { display: none !important; }

/* ---------- Sidebar ---------- */
body .spc-catalog .spc-sidebar {
  padding: 20px 20px 16px !important;
  margin: 0 !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-filter-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .spc-catalog .spc-filter-group,
body .spc-catalog .spc-filter-form .spc-filter-group + .spc-filter-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-filter-group h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #1c252a !important;
}
body .spc-catalog .spc-extra {
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-check,
body .spc-catalog .spc-check + .spc-check {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  float: none !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  cursor: pointer;
}
body .spc-catalog .spc-check > span:not(.spc-box) { margin: 0 !important; padding: 0 !important; overflow-wrap: anywhere; }
body .spc-catalog .spc-check .spc-box {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .spc-catalog .spc-check em {
  margin: 0 !important;
  padding: 3px 6px !important;
  line-height: 1 !important;
  min-width: 32px !important;
}
body .spc-catalog .spc-show-more {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 6px 0 0 !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #edf8ff !important;
  color: var(--spc-blue) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
body .spc-catalog .spc-filter-actions {
  margin: 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #edf0f1 !important;
  display: flex !important;
  justify-content: center !important;
}
body .spc-catalog .spc-filter-form .spc-clear {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* ---------- Product grid + card ---------- */
body .spc-catalog .spc-results-header { margin: 0 !important; padding: 0 0 12px !important; }
body .spc-catalog .spc-product-grid {
  gap: 18px !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
}
body .spc-catalog .spc-product-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px !important;
  height: 100% !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-product-image {
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 3 / 2 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}
body .spc-catalog .spc-card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 2px !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-card-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
body .spc-catalog .spc-product-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}
body .spc-catalog .spc-product-meta span {
  margin: 0 !important;
  padding: 5px 9px !important;
  line-height: 1 !important;
}
body .spc-catalog .spc-product-card h3 {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 19px !important;
  line-height: 1.22 !important;
  text-align: left !important;
  text-transform: none !important;
}
body .spc-catalog .spc-product-description {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  -webkit-line-clamp: 2 !important;
}
body .spc-catalog .spc-pack {
  margin: 0 !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 11px !important;
  flex: 0 0 auto !important;
}
body .spc-catalog .spc-card-actions {
  margin: 0 !important;
  padding: 12px 0 0 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
body .spc-catalog .spc-btn {
  margin: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ---------- Highlight tiles, pagination ---------- */
body .spc-catalog .spc-stat-card { margin: 0 !important; }
body .spc-catalog .spc-stat-text strong,
body .spc-catalog .spc-stat-text > span { margin: 0 !important; padding: 0 !important; }
body .spc-catalog .spc-stat-text { display: flex !important; flex-direction: column !important; gap: 2px !important; }
body .spc-catalog .spc-pagination { margin-top: 24px !important; margin-bottom: 0 !important; }
body .spc-catalog .spc-pagination-summary,
body .spc-catalog .spc-pagination [data-spc-pages] { margin: 0 !important; padding: 0 !important; }
