/**
 * PCM Product Category Page.
 * Composicion aislada del archivo WooCommerce; no altera la ficha de producto.
 */

.pcm-category {
  --pcm-category-max: 104rem;
  --pcm-category-gap: clamp(1rem, 1.8vw, 2rem);
  color: var(--pcm-text-primary);
  background: var(--pcm-surface-canvas);
}

.pcm-category .screen-reader-text {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.pcm-category__shell {
  inline-size: min(100% - clamp(2rem, 5vw, 5rem), var(--pcm-category-max));
  margin-inline: auto;
  padding-block: clamp(1.25rem, 2.4vw, 2.5rem) 5rem;
}

.pcm-category__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-block-end: 1.25rem;
  color: var(--pcm-text-previous-price);
  font-size: var(--pcm-type-body-sm-size);
}

.pcm-category__breadcrumb a {
  color: var(--pcm-color-royal);
  text-decoration: none;
}

.pcm-category__breadcrumb a:hover {
  text-decoration: underline;
}

.pcm-category-hero {
  position: relative;
  display: grid;
  min-block-size: clamp(17.5rem, 24vw, 22rem);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pcm-color-royal) 16%, transparent);
  border-radius: 1.5rem;
  background:
    linear-gradient(110deg, rgb(244 241 236 / 0.96) 0 42%, rgb(218 209 200 / 0.72) 100%),
    var(--pcm-gradient-warm-field);
}

.pcm-category-hero::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: min(38%, 28rem);
  background: linear-gradient(110deg, transparent, rgb(34 51 130 / 0.11));
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.pcm-category-hero.has-featured-product {
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
}

.pcm-category-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-inline-size: 52rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.pcm-category-hero__eyebrow,
.pcm-catalog__eyebrow,
.pcm-category-seo__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pcm-color-royal);
  font-size: var(--pcm-type-label-size);
  font-weight: var(--pcm-font-weight-semibold);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pcm-category-hero__title {
  max-inline-size: 17ch;
}

.pcm-category-hero__intro {
  max-inline-size: 48ch;
  margin-block-start: 1rem;
  color: color-mix(in srgb, var(--pcm-color-ink) 82%, transparent);
}

.pcm-category-hero__intro p {
  margin: 0;
}

.pcm-category-hero__action {
  display: inline-flex;
  min-block-size: 44px;
  gap: 0.65rem;
  align-items: center;
  margin-block-start: 1.25rem;
  color: var(--pcm-color-royal);
  font-weight: var(--pcm-font-weight-semibold);
  text-decoration: none;
}

.pcm-category-hero__featured {
  position: relative;
  z-index: 2;
  display: grid;
  min-inline-size: 0;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(12rem, 1.2fr);
  gap: 1rem;
  align-items: center;
  padding: 1.5rem clamp(1.5rem, 3vw, 3rem) 1.5rem 0;
  color: inherit;
  text-decoration: none;
}

.pcm-category-hero__featured-copy {
  display: flex;
  min-inline-size: 0;
  flex-direction: column;
  gap: 0.35rem;
}

.pcm-category-hero__featured-copy > span:first-child {
  color: var(--pcm-color-royal);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pcm-category-hero__featured-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--pcm-font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pcm-category-hero__price {
  color: var(--pcm-text-price);
  font-family: var(--pcm-font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: var(--pcm-font-weight-semibold);
}

.pcm-category-hero__price del {
  display: block;
  color: var(--pcm-text-previous-price);
  font-family: var(--pcm-font-body);
  font-size: 0.75rem;
}

.pcm-category-hero__price ins {
  color: var(--pcm-text-sale-price);
  text-decoration: none;
}

.pcm-category-hero__featured img {
  inline-size: 100%;
  block-size: min(18rem, 100%);
  object-fit: contain;
  filter: drop-shadow(0 1rem 1.4rem rgb(17 17 68 / 0.16));
  transition: transform 170ms ease-out;
}

.pcm-subcategories {
  margin-block: clamp(1.25rem, 2vw, 2rem) clamp(2rem, 3vw, 3.25rem);
}

.pcm-subcategories__list {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcm-subcategories__item {
  min-inline-size: 0;
  flex: 1 1 0;
}

.pcm-subcategories__item a {
  display: flex;
  min-block-size: 52px;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  color: var(--pcm-color-ink);
  font-size: var(--pcm-type-body-sm-size);
  font-weight: var(--pcm-font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.pcm-subcategories__media {
  display: grid;
  inline-size: 44px;
  block-size: 44px;
  flex: 0 0 auto;
  place-items: center;
}

.pcm-subcategories__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.pcm-catalog__heading {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 1.25rem;
}

.pcm-catalog__filter-trigger {
  display: none;
  min-block-size: 44px;
  gap: 0.55rem;
  align-items: center;
  padding-inline: 1rem;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
  color: var(--pcm-color-royal);
  background: #fffdfa;
  font-weight: var(--pcm-font-weight-semibold);
  cursor: pointer;
}

.pcm-catalog__filter-count {
  display: grid;
  inline-size: 1.45rem;
  block-size: 1.45rem;
  place-items: center;
  border-radius: 50%;
  color: var(--pcm-color-paper);
  background: var(--pcm-color-royal);
  font-size: var(--pcm-type-micro-size);
}

.pcm-catalog__region {
  position: relative;
}

.pcm-catalog__content,
.pcm-catalog__results {
  min-inline-size: 0;
}

.pcm-catalog__results {
  position: relative;
}

.pcm-catalog__results[aria-busy="true"] .pcm-catalog__products,
.pcm-catalog__results[aria-busy="true"] .pcm-catalog__empty {
  pointer-events: none;
}

.pcm-catalog__results.is-loading .pcm-catalog__products,
.pcm-catalog__results.is-loading .pcm-catalog__empty {
  opacity: 0.24;
  transform: translateY(0.2rem);
}

.pcm-catalog-loader {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: block;
  min-block-size: 15rem;
  padding: 0;
  color: var(--pcm-color-ink);
  background: rgb(244 241 236 / 0.78);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}

.pcm-catalog-loader[hidden] {
  display: none;
}

.pcm-catalog__results.is-loading .pcm-catalog-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease-out;
}

.pcm-catalog-loader__lockup {
  position: sticky;
  top: 50vh;
  display: grid;
  gap: 0.8rem;
  inline-size: fit-content;
  max-inline-size: calc(100% - 2rem);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
  transform: translateY(-50%);
}

.pcm-catalog-loader__logo {
  display: block;
  inline-size: clamp(9.5rem, 20vw, 13rem);
  block-size: auto;
}

.pcm-catalog-loader p {
  margin: 0;
  color: color-mix(in srgb, var(--pcm-color-ink) 74%, transparent);
  font-size: var(--pcm-type-body-sm-size);
  font-weight: var(--pcm-font-weight-semibold);
  letter-spacing: 0.01em;
}

.pcm-catalog__error {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--pcm-status-danger);
  border-radius: 0.5rem;
  color: var(--pcm-status-danger);
  background: var(--pcm-status-danger-bg);
}

.pcm-catalog__error[hidden] {
  display: none;
}

.pcm-catalog__error button {
  min-block-size: 44px;
  padding-inline: 1rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  color: inherit;
  background: transparent;
  font-weight: var(--pcm-font-weight-semibold);
  cursor: pointer;
}

.pcm-catalog-toolbar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 1rem;
  border-block: 1px solid var(--pcm-border-subtle);
}

.pcm-catalog-toolbar__summary {
  min-inline-size: 0;
}

.pcm-catalog-toolbar .woocommerce-result-count {
  margin: 0;
  color: var(--pcm-text-secondary);
  font-size: var(--pcm-type-body-sm-size);
  font-weight: var(--pcm-font-weight-medium);
}

.pcm-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-block-start: 0.75rem;
}

.pcm-active-filters__pill {
  display: inline-flex;
  min-block-size: 36px;
  gap: 0.45rem;
  align-items: center;
  padding-inline: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--pcm-color-royal) 28%, transparent);
  border-radius: 999px;
  color: var(--pcm-color-royal);
  background: color-mix(in srgb, var(--pcm-color-soft-blue) 18%, #fffdfa);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-semibold);
  text-decoration: none;
}

.pcm-active-filters__clear {
  min-block-size: 36px;
  padding-block: 0.45rem;
  color: var(--pcm-color-royal);
  font-size: var(--pcm-type-body-sm-size);
  font-weight: var(--pcm-font-weight-semibold);
}

.pcm-catalog-toolbar__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  align-items: center;
}

.pcm-catalog-toolbar__ordering .woocommerce-ordering {
  margin: 0;
}

.pcm-catalog-toolbar__ordering select {
  min-block-size: 44px;
  padding: 0 2.4rem 0 0.8rem;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
  color: var(--pcm-color-ink);
  background: #fffdfa;
}

.pcm-view-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, 44px);
  overflow: hidden;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
}

.pcm-view-switcher__button {
  display: grid;
  min-block-size: 44px;
  place-items: center;
  color: var(--pcm-color-royal);
  background: #fffdfa;
}

.pcm-view-switcher__button + .pcm-view-switcher__button {
  border-inline-start: 1px solid var(--pcm-border-control);
}

.pcm-view-switcher__button.is-active {
  color: var(--pcm-color-paper);
  background: var(--pcm-color-royal);
}

.pcm-view-switcher__grid,
.pcm-view-switcher__list {
  inline-size: 18px;
  block-size: 18px;
  background: currentColor;
}

.pcm-view-switcher__grid {
  mask: linear-gradient(#000 0 0) 0 0/7px 7px, linear-gradient(#000 0 0) 100% 0/7px 7px, linear-gradient(#000 0 0) 0 100%/7px 7px, linear-gradient(#000 0 0) 100% 100%/7px 7px;
  mask-repeat: no-repeat;
}

.pcm-view-switcher__list {
  mask: linear-gradient(#000 0 0) 0 1px/100% 3px, linear-gradient(#000 0 0) 0 7px/100% 3px, linear-gradient(#000 0 0) 0 13px/100% 3px;
  mask-repeat: no-repeat;
}

.pcm-catalog__layout {
  display: grid;
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 2.4vw, 2.75rem);
  align-items: start;
  margin-block-start: 1.5rem;
}

.pcm-filters {
  position: sticky;
  inset-block-start: 1rem;
  max-block-size: calc(100vh - 2rem);
  overflow-y: auto;
  border-inline-end: 1px solid var(--pcm-border-subtle);
  scrollbar-width: thin;
}

.pcm-filters__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1.25rem 1rem 0;
}

.pcm-filters__header div {
  display: flex;
  flex-direction: column;
}

.pcm-filters__header span {
  color: var(--pcm-color-royal);
  font-size: var(--pcm-type-micro-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pcm-filters__header strong {
  font-family: var(--pcm-font-display);
  font-size: 1.45rem;
}

.pcm-filters__close {
  display: none;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  color: var(--pcm-color-ink);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.pcm-filters__form {
  padding-inline-end: 1.25rem;
}

.pcm-filter-group {
  margin: 0;
  padding: 1rem 0;
  border: 0;
  border-block-start: 1px solid var(--pcm-border-subtle);
}

.pcm-filter-group legend,
.pcm-filter-group summary {
  color: var(--pcm-color-ink);
  font-family: var(--pcm-font-display);
  font-size: 0.95rem;
  font-weight: var(--pcm-font-weight-semibold);
}

.pcm-filter-group summary {
  min-block-size: 44px;
  cursor: pointer;
}

.pcm-filter-group > label,
.pcm-filter-group__options label {
  display: grid;
  min-block-size: 38px;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  color: color-mix(in srgb, var(--pcm-color-ink) 86%, transparent);
  font-size: var(--pcm-type-body-sm-size);
  cursor: pointer;
}

.pcm-filter-group > label:first-of-type {
  margin-block-start: 0.65rem;
}

.pcm-filter-group input[type="checkbox"],
.pcm-filter-group input[type="radio"] {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin: 0;
  accent-color: var(--pcm-color-royal);
}

.pcm-filter-group small {
  color: var(--pcm-text-previous-price);
  font-size: var(--pcm-type-micro-size);
  font-variant-numeric: tabular-nums;
}

.pcm-price-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.4rem;
  align-items: end;
  margin-block-start: 0.75rem;
}

.pcm-price-fields label {
  display: flex;
  min-inline-size: 0;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--pcm-text-previous-price);
  font-size: var(--pcm-type-micro-size);
}

.pcm-price-fields input {
  inline-size: 100%;
  min-block-size: 44px;
  padding-inline: 0.55rem;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
  color: var(--pcm-color-ink);
  background: #fffdfa;
}

.pcm-filters__actions {
  position: sticky;
  inset-block-end: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-block: 1rem;
  background: var(--pcm-surface-canvas);
}

.pcm-button {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
  font-weight: var(--pcm-font-weight-semibold);
  text-decoration: none;
}

.pcm-button--primary {
  color: var(--pcm-action-primary-text);
  background: var(--pcm-action-primary-bg);
}

.pcm-catalog__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.4rem);
  align-items: stretch;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

/* Tarjeta aprobada. Se mantiene aislada del CSS de la ficha beta. */
.pcm-catalog .pcm-product-card {
  display: flex;
  min-inline-size: 0;
  block-size: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pcm-border-subtle);
  border-radius: 1rem;
  background: #fffdfa;
  box-shadow: 0 0.55rem 1.5rem rgb(17 17 68 / 0.07);
  transition: box-shadow 170ms ease-out;
}

.pcm-catalog .pcm-product-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: #fffdfa;
}

.pcm-catalog .pcm-product-card__image-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.pcm-catalog .pcm-product-card__image-link img {
  inline-size: 88%;
  block-size: 88%;
  object-fit: contain;
  transition: transform 170ms ease-out;
}

.pcm-catalog .pcm-product-card__badge {
  position: absolute;
  z-index: 2;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  display: inline-flex;
  min-block-size: 1.875rem;
  align-items: center;
  padding-inline: 0.75rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(105deg, var(--pcm-color-royal), #5369be);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-semibold);
  line-height: 1.1;
}

.pcm-catalog .pcm-product-card__badge--offer { background: linear-gradient(105deg, var(--pcm-color-sale-price), #c2485d); }
.pcm-catalog .pcm-product-card__badge--new { background: linear-gradient(105deg, var(--pcm-color-royal), #6577c5); }
.pcm-catalog .pcm-product-card__badge--top_sales { background: linear-gradient(105deg, var(--pcm-color-ink), var(--pcm-color-royal)); }
.pcm-catalog .pcm-product-card__badge--last_units { color: var(--pcm-color-ink); background: linear-gradient(105deg, var(--pcm-color-active-orange), #ffb35d); }
.pcm-catalog .pcm-product-card__badge--new_life { background: linear-gradient(105deg, #116947, #3d8a6d); }
.pcm-catalog .pcm-product-card__badge--out_stock { color: var(--pcm-color-ink); background: linear-gradient(105deg, var(--pcm-color-warm-neutral), #eee8e2); }

.pcm-catalog .pcm-product-card__favorite {
  position: absolute;
  z-index: 3;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  display: grid;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--pcm-color-ink);
  background: rgb(255 253 250 / 0.92);
  box-shadow: 0 0.2rem 0.75rem rgb(17 17 68 / 0.09);
  cursor: pointer;
}

.pcm-catalog .pcm-product-card__favorite svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.pcm-catalog .pcm-product-card__favorite[aria-pressed="true"] {
  color: #fff;
  background: var(--pcm-color-royal);
}

.pcm-catalog .pcm-product-card__favorite[aria-pressed="true"] svg {
  fill: currentColor;
}

.pcm-catalog .pcm-product-card__content {
  display: flex;
  min-block-size: 12rem;
  flex: 1;
  flex-direction: column;
  padding: 0.8rem 0.9rem 1rem;
}

.pcm-catalog .pcm-product-card__brand {
  margin: 0 0 0.25rem;
  overflow: hidden;
  color: var(--pcm-text-previous-price);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-medium);
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pcm-catalog .pcm-product-card__title-link,
.pcm-catalog .pcm-product-card__price {
  color: inherit;
  text-decoration: none;
}

.pcm-catalog .pcm-product-card__title {
  display: -webkit-box;
  min-block-size: 2.7em;
  margin: 0;
  overflow: hidden;
  color: var(--pcm-text-primary);
  font-family: var(--pcm-font-display);
  font-size: var(--pcm-type-body-sm-size);
  font-weight: var(--pcm-font-weight-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 170ms ease-out;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcm-catalog .pcm-product-card__price {
  margin-block-start: 0.5rem;
  color: var(--pcm-text-price);
  font-family: var(--pcm-font-display);
  font-size: clamp(1.075rem, 0.9rem + 0.35vw, 1.32rem);
  font-weight: var(--pcm-font-weight-semibold);
  font-variant-numeric: tabular-nums;
}

.pcm-catalog .pcm-product-card__price del {
  display: block;
  color: var(--pcm-text-previous-price);
  font-family: var(--pcm-font-body);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-regular);
}

.pcm-catalog .pcm-product-card__price ins {
  color: var(--pcm-text-sale-price);
  text-decoration: none;
}

.pcm-catalog .pcm-product-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-block-start: 0.45rem;
}

.pcm-catalog .pcm-product-card__swatch {
  position: relative;
  display: block;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
}

.pcm-catalog .pcm-product-card__swatch::before {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgb(17 17 68 / 0.25);
  border-radius: inherit;
  background: var(--pcm-swatch-color);
  content: "";
}

.pcm-catalog .pcm-product-card__swatch.is-selected {
  box-shadow: inset 0 0 0 2px #fffdfa, inset 0 0 0 4px var(--pcm-color-royal);
}

.pcm-catalog .pcm-product-card__swatch-more {
  color: var(--pcm-text-secondary);
  font-size: var(--pcm-type-micro-size);
  font-weight: var(--pcm-font-weight-semibold);
}

.pcm-catalog .pcm-product-card__swatch-more--compact {
  display: none;
}

.pcm-catalog .pcm-product-card__rating,
.pcm-catalog .pcm-product-card__availability,
.pcm-catalog .pcm-product-card__delivery {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-block-start: 0.45rem;
  font-size: var(--pcm-type-micro-size);
  line-height: 1.3;
}

.pcm-catalog .pcm-product-card__rating {
  color: var(--pcm-text-secondary);
}

.pcm-catalog .pcm-product-card__rating > :first-child {
  color: var(--pcm-color-active-orange);
}

.pcm-catalog .pcm-product-card__availability {
  color: var(--pcm-status-success);
  font-weight: var(--pcm-font-weight-semibold);
}

.pcm-catalog .pcm-product-card__availability.is-out-of-stock { color: var(--pcm-text-primary); }
.pcm-catalog .pcm-product-card__availability.is-low-stock { color: var(--pcm-color-sale-price); }

.pcm-catalog .pcm-product-card__stock-dot {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.pcm-catalog .pcm-product-card__delivery {
  color: var(--pcm-color-royal);
  font-weight: var(--pcm-font-weight-medium);
}

.pcm-catalog .pcm-product-card__delivery svg {
  inline-size: 0.95rem;
  block-size: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.pcm-catalog__products--list {
  grid-template-columns: 1fr;
}

.pcm-catalog__products--list .pcm-product-card {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
}

.pcm-catalog__products--list .pcm-product-card__content {
  min-block-size: 0;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.pcm-catalog__products--list .pcm-product-card__media {
  aspect-ratio: 1;
}

.pcm-catalog-campaign {
  position: relative;
  display: flex;
  min-block-size: 10rem;
  grid-column: 1 / -1;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.25rem;
  color: var(--pcm-color-paper);
  background: var(--pcm-gradient-structural);
}

.pcm-catalog-campaign::after {
  position: absolute;
  inset: 0 0 0 auto;
  inline-size: 32%;
  background: linear-gradient(120deg, transparent, rgb(249 133 19 / 0.5));
  content: "";
}

.pcm-catalog-campaign > * {
  position: relative;
  z-index: 1;
}

.pcm-catalog-campaign h3,
.pcm-catalog-campaign p {
  max-inline-size: 50ch;
  margin: 0.25rem 0 0;
}

.pcm-catalog-campaign a {
  display: inline-flex;
  min-block-size: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 1rem;
  border-radius: 0.5rem;
  color: var(--pcm-color-ink);
  background: var(--pcm-color-active-orange);
  font-weight: var(--pcm-font-weight-semibold);
  text-decoration: none;
}

.pcm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-block-start: clamp(2rem, 4vw, 4rem);
}

.pcm-pagination .page-numbers {
  display: grid;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-inline: 0.7rem;
  place-items: center;
  border: 1px solid var(--pcm-border-control);
  border-radius: 0.5rem;
  color: var(--pcm-color-royal);
  background: #fffdfa;
  font-weight: var(--pcm-font-weight-semibold);
  text-decoration: none;
}

.pcm-pagination .page-numbers.current {
  color: var(--pcm-color-paper);
  background: var(--pcm-color-royal);
}

.pcm-category-seo {
  inline-size: 100%;
  margin-block-start: clamp(2.5rem, 5vw, 5rem);
  padding-block-start: clamp(1.75rem, 3vw, 3rem);
  border-block-start: 1px solid var(--pcm-border-subtle);
}

.pcm-category-seo__content {
  inline-size: 100%;
  margin-block-start: 1rem;
  color: color-mix(in srgb, var(--pcm-color-ink) 84%, transparent);
  column-gap: clamp(2rem, 5vw, 5rem);
  column-rule: 1px solid var(--pcm-border-subtle);
  columns: 2 30rem;
  line-height: 1.7;
}

.pcm-category-seo__content > * { break-inside: avoid; }
.pcm-category-seo__content h3 {
  margin-block: 0 0.65rem;
  color: var(--pcm-color-ink);
  break-after: avoid-column;
}
.pcm-category-seo__content ul { padding-inline-start: 1.25rem; }
.pcm-category-seo__content > :first-child { margin-block-start: 0; }
.pcm-category-seo__content > :last-child { margin-block-end: 0; }

.pcm-catalog__empty {
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--pcm-border-subtle);
  border-radius: 1rem;
  text-align: center;
  background: #fffdfa;
}

.pcm-catalog__empty h3,
.pcm-catalog__empty p {
  margin-inline: auto;
}

.pcm-catalog__empty p {
  margin-block: 0.75rem 1.25rem;
}

.pcm-category a:focus-visible,
.pcm-category button:focus-visible,
.pcm-category input:focus-visible,
.pcm-category select:focus-visible,
.pcm-category summary:focus-visible,
#pcm-catalog-title:focus-visible {
  outline: 2px solid var(--pcm-focus-on-light);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .pcm-category-hero__featured:hover img { transform: scale(1.02); }
  .pcm-subcategories__item a:hover { color: var(--pcm-color-royal); }
  .pcm-catalog .pcm-product-card:has(.pcm-product-card__image-link:hover, .pcm-product-card__title-link:hover, .pcm-product-card__price:hover) { box-shadow: 0 0.9rem 2.25rem rgb(17 17 68 / 0.12); }
  .pcm-catalog .pcm-product-card:has(.pcm-product-card__image-link:hover, .pcm-product-card__title-link:hover, .pcm-product-card__price:hover) .pcm-product-card__image-link img { transform: scale(1.02); }
  .pcm-catalog .pcm-product-card__title-link:hover .pcm-product-card__title { color: var(--pcm-color-royal); }
}

@media (max-width: 84.999rem) {
  .pcm-catalog__filter-trigger { display: inline-flex; }

  .pcm-catalog__layout { grid-template-columns: minmax(0, 1fr); }

  .pcm-filters {
    position: fixed;
    z-index: 1002;
    inset: 0 auto 0 0;
    inline-size: min(90vw, 25rem);
    max-block-size: none;
    padding: 1.25rem 0 0 1.25rem;
    overflow-y: auto;
    border: 0;
    background: var(--pcm-surface-canvas);
    box-shadow: 1rem 0 3rem rgb(17 17 68 / 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease-out;
    visibility: hidden;
  }

  .pcm-filters.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .pcm-filters__close { display: grid; place-items: center; }

  .pcm-catalog__filter-scrim {
    position: fixed;
    z-index: 1001;
    inset: 0;
    border: 0;
    background: rgb(17 17 68 / 0.46);
  }

  body.pcm-filter-open { overflow: hidden; }
}

@media (max-width: 63.999rem) {
  .pcm-category-hero.has-featured-product { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr); }
  .pcm-category-hero__featured { grid-template-columns: 1fr; padding-inline-end: 1.5rem; }
  .pcm-category-hero__featured-copy { order: 2; }
  .pcm-category-hero__featured img { block-size: 11rem; }

  .pcm-catalog__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.999rem) {
  .pcm-category__shell {
    inline-size: min(100% - 1.25rem, var(--pcm-category-max));
    padding-block-start: 0.75rem;
  }

  .pcm-category-hero,
  .pcm-category-hero.has-featured-product {
    min-block-size: auto;
    grid-template-columns: 1fr;
  }

  .pcm-category-hero__content { padding: 1.5rem; }
  .pcm-category-hero__intro { font-size: 0.95rem; }

  .pcm-category-hero__featured {
    grid-template-columns: minmax(0, 0.9fr) minmax(8rem, 1.1fr);
    padding: 0 1.25rem 1.25rem;
  }

  .pcm-category-hero__featured-copy { order: 0; }
  .pcm-category-hero__featured img { block-size: 9rem; }

  .pcm-filters {
    inset: 0;
    box-sizing: border-box;
    inline-size: 100vw;
    max-inline-size: none;
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
    box-shadow: none;
  }

  .pcm-subcategories {
    inline-size: calc(100% + 0.625rem);
    overflow-x: auto;
    margin-block: 1rem 2rem;
    padding-block-end: 0.4rem;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .pcm-subcategories__list {
    inline-size: max-content;
    gap: 0.75rem;
    justify-content: flex-start;
    padding-inline-end: 2rem;
  }

  .pcm-subcategories__item {
    inline-size: 8.25rem;
    flex: 0 0 8.25rem;
  }

  .pcm-subcategories__item a { justify-content: flex-start; text-align: start; }

  .pcm-catalog__heading { align-items: center; }
  .pcm-catalog__heading .pcm-type-h2 { font-size: 1.45rem; }

  .pcm-catalog-toolbar {
    flex-direction: column;
  }

  .pcm-catalog-toolbar__summary,
  .pcm-catalog-toolbar__controls,
  .pcm-catalog-toolbar__ordering,
  .pcm-catalog-toolbar__ordering form,
  .pcm-catalog-toolbar__ordering select {
    inline-size: 100%;
  }

  .pcm-view-switcher { display: none; }

  .pcm-catalog__products,
  .pcm-catalog__products--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .pcm-catalog__products--list .pcm-product-card { display: flex; }

  .pcm-catalog .pcm-product-card__content {
    min-block-size: 10.8rem;
    padding: 0.55rem 0.6rem 0.75rem;
  }

  .pcm-catalog .pcm-product-card__badge {
    inset-block-start: 0.45rem;
    inset-inline-start: 0.45rem;
    min-block-size: 1.5rem;
    max-inline-size: calc(100% - 3.7rem);
    padding-inline: 0.5rem;
    overflow: hidden;
    font-size: 0.625rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pcm-catalog .pcm-product-card__favorite {
    inset-block-start: 0.15rem;
    inset-inline-end: 0.15rem;
  }

  .pcm-catalog .pcm-product-card__title { font-size: 0.75rem; }
  .pcm-catalog .pcm-product-card__price { font-size: 1rem; }
  .pcm-catalog .pcm-product-card__rating,
  .pcm-catalog .pcm-product-card__availability,
  .pcm-catalog .pcm-product-card__delivery { gap: 0.25rem; font-size: 0.625rem; }

  .pcm-catalog .pcm-product-card__swatch:nth-of-type(n + 3) { display: none; }
  .pcm-catalog .pcm-product-card__swatch-more--standard { display: none; }
  .pcm-catalog .pcm-product-card__swatch-more--compact { display: inline; }

  .pcm-catalog-campaign { align-items: flex-start; flex-direction: column; gap: 1rem; }

  .pcm-pagination { gap: 0.35rem; }
  .pcm-pagination .page-numbers { min-inline-size: 40px; }

  .pcm-category-seo__content {
    column-count: 1;
    column-rule: 0;
  }
}

@media (max-width: 22rem) {
  .pcm-category__shell { inline-size: min(100% - 0.75rem, var(--pcm-category-max)); }
  .pcm-catalog__products { gap: 0.45rem; }
  .pcm-catalog .pcm-product-card__content { padding-inline: 0.45rem; }
  .pcm-catalog .pcm-product-card__brand { font-size: 0.6rem; }
  .pcm-catalog .pcm-product-card__delivery svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pcm-filters,
  .pcm-category-hero__featured img,
  .pcm-catalog-loader,
  .pcm-catalog__products,
  .pcm-catalog .pcm-product-card,
  .pcm-catalog .pcm-product-card__image-link img,
  .pcm-catalog .pcm-product-card__title {
    transition: none;
  }
}

@media (forced-colors: active) {
  .pcm-category-hero,
  .pcm-catalog .pcm-product-card,
  .pcm-active-filters__pill,
  .pcm-pagination .page-numbers,
  .pcm-view-switcher,
  .pcm-catalog-toolbar__ordering select,
  .pcm-price-fields input {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .pcm-catalog-loader {
    border: 1px solid CanvasText;
    background: Canvas;
    backdrop-filter: none;
  }

  .pcm-view-switcher__button.is-active,
  .pcm-button--primary {
    color: HighlightText;
    background: Highlight;
  }
}

