/* ==== catalog.css ==== */
/**
 * Mini Problems catalogue — aligned to the supplied Canopea collection HTML.
 * The mapping is behavioural and visual; WooCommerce remains the data source.
 */

:root {
  --mp-catalog-columns-mobile: 2;
  --mp-catalog-columns-desktop: 3;
  --mp-catalog-image-ratio: 660 / 815;
  --mp-catalog-x-gap: clamp(10px, 1.7vw, 24px);
  --mp-catalog-y-gap: clamp(34px, 4vw, 58px);
  --mp-catalog-line: rgba(21, 32, 37, .18);
  --mp-catalog-ink: #19282e;
  --mp-catalog-muted: rgba(25, 40, 46, .62);
}

.post-type-archive-product #primary,
.tax-product_cat #primary,
.tax-product_tag #primary,
.woocommerce.search #primary {
  width: min(100% - 40px, 1440px);
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(22px, 3vw, 46px) 76px;
}

.mp-catalog-heading {
  margin-bottom: clamp(22px, 3vw, 42px);
  text-align: center;
}

.mp-catalog-heading .woocommerce-breadcrumb,
.mp-catalog-heading .wc-block-breadcrumbs {
  margin: 0 0 12px;
  color: var(--mp-catalog-muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.mp-catalog-heading h1,
.mp-catalog-heading .wp-block-query-title {
  margin: 0;
  color: var(--mp-catalog-ink);
  font-family: var(--mp-font-body);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.mp-catalog-heading .term-description {
  width: min(680px, 100%);
  margin: 15px auto 0;
  color: var(--mp-catalog-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Canopea: one two-part collection toolbar, visible on every viewport. */
.mp-collection-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--mp-catalog-line);
  border-bottom: 1px solid var(--mp-catalog-line);
}

.mp-collection-toolbar__button,
.mp-collection-toolbar__sort {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mp-catalog-ink);
  font-family: var(--mp-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mp-collection-toolbar__button {
  border-right: 1px solid var(--mp-catalog-line);
  cursor: pointer;
}

.mp-collection-toolbar__button:hover,
.mp-collection-toolbar__button:focus-visible,
.mp-collection-toolbar__sort:focus-within {
  background: rgba(25, 40, 46, .035);
}

.mp-collection-toolbar__sort-label {
  pointer-events: none;
}

.mp-collection-toolbar__sort::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.mp-collection-toolbar__sort select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.mp-catalog-native-toolbar {
  min-height: 0;
  margin: -34px 0 22px;
}

.mp-catalog-native-toolbar .wp-block-woocommerce-catalog-sorting,
.mp-catalog-native-toolbar .woocommerce-ordering {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mp-catalog-native-toolbar .woocommerce-result-count,
.mp-catalog-native-toolbar .wc-block-components-product-results-count {
  margin: 0;
  color: var(--mp-catalog-muted);
  font-size: 11px;
}

/* Filter content is always a drawer, matching the reference filter control. */
.mp-catalog-layout__sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 100002;
  width: min(92vw, 430px) !important;
  height: 100dvh;
  margin: 0 !important;
  overflow-y: auto;
  padding: 0 30px 40px;
  background: #fff;
  box-shadow: 16px 0 50px rgba(20, 32, 38, .14);
  transform: translateX(-105%);
  transition: transform .28s ease;
}

body.mp-catalog-drawer-open {
  overflow: hidden;
}

body.mp-catalog-drawer-open .mp-catalog-layout__sidebar {
  transform: translateX(0);
}

.mp-catalog-drawer__head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -30px 26px;
  padding: 0 30px;
  border-bottom: 1px solid var(--mp-catalog-line);
  background: #fff;
}

.mp-catalog-drawer__title {
  margin: 0;
  color: var(--mp-catalog-ink);
  font-size: 18px;
  font-weight: 400;
}

.mp-catalog-drawer__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mp-catalog-ink);
  font-size: 0;
  cursor: pointer;
}

.mp-catalog-drawer__close::before,
.mp-catalog-drawer__close::after {
  position: absolute;
  width: 18px;
  height: 1px;
  margin-left: -9px;
  background: currentColor;
  content: "";
}

.mp-catalog-drawer__close::before { transform: rotate(45deg); }
.mp-catalog-drawer__close::after { transform: rotate(-45deg); }

.mp-catalog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100001;
  visibility: hidden;
  padding: 0;
  border: 0;
  background: rgba(16, 27, 32, .42);
  opacity: 0;
  transition: opacity .24s ease, visibility .24s ease;
}

body.mp-catalog-drawer-open .mp-catalog-backdrop {
  visibility: visible;
  opacity: 1;
}

.mp-catalog-filters {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.mp-catalog-filters__title { display: none; }

.mp-catalog-filters > .wp-block-woocommerce-filter-wrapper,
.mp-catalog-filters > .wp-block-group,
.mp-catalog-filters > .mp-catalog-gender-filter,
.mp-catalog-filters > .mp-catalog-size-filter {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--mp-catalog-line);
}

.mp-catalog-filters > * + * { margin-top: 24px; }

.mp-catalog-filters h3,
.mp-catalog-filters__heading {
  margin: 0 0 15px;
  color: var(--mp-catalog-ink);
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-catalog-filters ul,
.mp-catalog-filters .wc-block-product-categories-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-catalog-filters li + li { margin-top: 10px; }

.mp-catalog-filters a {
  color: var(--mp-catalog-ink);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.mp-catalog-gender-filter__list a,
.mp-catalog-size-filter__list a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-catalog-gender-filter__list a > span,
.mp-catalog-size-filter__list a > span {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid rgba(25, 40, 46, .4);
  background: #fff;
}

.mp-catalog-gender-filter__list a.is-active > span,
.mp-catalog-size-filter__list a.is-active > span {
  border-color: var(--mp-catalog-ink);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--mp-catalog-ink);
}

.mp-catalog-layout__products { min-width: 0; }

.mp-catalog-layout__products .wc-block-product-template,
.mp-catalog-layout__products .wp-block-woocommerce-product-template,
.mp-catalog-layout__products ul.products,
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products,
.woocommerce.search ul.products {
  display: grid !important;
  grid-template-columns: repeat(var(--mp-catalog-columns-desktop), minmax(0, 1fr)) !important;
  gap: var(--mp-catalog-y-gap) var(--mp-catalog-x-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mp-catalog-layout__products .wc-block-product,
.mp-catalog-layout__products .wp-block-post,
.mp-catalog-layout__products ul.products li.product,
.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product,
.woocommerce.search ul.products li.product {
  position: relative;
  display: block !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

/* Product figure / media. */
.mp-catalog-layout__products .wc-block-components-product-image,
.mp-catalog-layout__products .wp-block-woocommerce-product-image,
.mp-catalog-layout__products ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  margin: 0 0 14px !important;
  overflow: hidden;
  aspect-ratio: var(--mp-catalog-image-ratio);
  background: #f4f3f0;
}

.mp-catalog-layout__products .wc-block-components-product-image a,
.mp-catalog-layout__products .wp-block-woocommerce-product-image a {
  position: absolute;
  inset: 0;
  display: block;
}

.mp-catalog-layout__products .wc-block-components-product-image img,
.mp-catalog-layout__products .wp-block-woocommerce-product-image img,
.mp-catalog-layout__products ul.products li.product img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

.mp-catalog-primary-image,
.mp-catalog-secondary-image {
  position: absolute;
  inset: 0;
  transition: opacity .36s ease;
}

.mp-catalog-secondary-image { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .mp-catalog-layout__products .wc-block-product:hover .mp-catalog-primary-image,
  .mp-catalog-layout__products .wp-block-post:hover .mp-catalog-primary-image { opacity: 0; }

  .mp-catalog-layout__products .wc-block-product:hover .mp-catalog-secondary-image,
  .mp-catalog-layout__products .wp-block-post:hover .mp-catalog-secondary-image { opacity: 1; }
}

/* Size selector: over the lower image edge, as in the supplied HTML. */
.mp-catalog-size-selector {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  max-height: 52%;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px 12px;
  background: linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 70%, rgba(255,255,255,0) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.mp-catalog-size-selector.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .mp-catalog-layout__products .wc-block-product:hover .mp-catalog-size-selector,
  .mp-catalog-layout__products .wp-block-post:hover .mp-catalog-size-selector {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Touch devices do not have a reliable hover state. Keep the size controls
   visible and interactive instead of leaving an invisible overlay above them. */
@media (hover: none), (pointer: coarse) {
  .mp-catalog-size-selector {
    position: static;
    max-height: none;
    margin-top: 10px;
    padding: 8px 4px 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.mp-catalog-size-form { margin: 0; }

.mp-catalog-size-button {
  display: inline-flex;
  box-sizing: border-box;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(25, 40, 46, .35);
  border-radius: 50%;
  background: #fff;
  color: var(--mp-catalog-ink);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.mp-catalog-size-button:hover,
.mp-catalog-size-button:focus-visible {
  border-color: var(--mp-catalog-ink);
  background: var(--mp-catalog-ink);
  color: #fff;
}

.mp-catalog-size-button.is-disabled {
  background: #F2F2F2;
  color: #A6A6A6;
  border-color: #D9D9D9;
  cursor: not-allowed;
}

.mp-catalog-card__details {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(25, 40, 46, .3);
  color: var(--mp-catalog-ink);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mp-catalog-card__details:hover {
  border-color: var(--mp-catalog-ink);
}

/* Quick add is the small plus from the reference, not a full-width button. */
.mp-catalog-layout__products .wp-block-button,
.mp-catalog-layout__products .wc-block-components-product-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 7;
  width: 34px !important;
  height: 34px;
  margin: 0 !important;
}

.mp-catalog-layout__products .wp-block-button__link,
.mp-catalog-layout__products .wc-block-components-product-button__button,
.mp-catalog-layout__products ul.products li.product .button {
  position: relative;
  display: block !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(25, 40, 46, .3) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.94) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.mp-catalog-layout__products .wp-block-button__link::before,
.mp-catalog-layout__products .wp-block-button__link::after,
.mp-catalog-layout__products .wc-block-components-product-button__button::before,
.mp-catalog-layout__products .wc-block-components-product-button__button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--mp-catalog-ink);
  content: "";
  transform: translate(-50%, -50%);
}

.mp-catalog-layout__products .wp-block-button__link::after,
.mp-catalog-layout__products .wc-block-components-product-button__button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Product information: centred, compact and unboxed. */
.mp-catalog-layout__products .wp-block-post-title,
.mp-catalog-layout__products .wp-block-post-title a,
.mp-catalog-layout__products .woocommerce-loop-product__title {
  min-height: 0;
  margin: 0 0 5px !important;
  padding: 0 !important;
  color: var(--mp-catalog-ink) !important;
  font-family: var(--mp-font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: .06em;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase;
}

.mp-catalog-layout__products .wc-block-components-product-price,
.mp-catalog-layout__products .wp-block-woocommerce-product-price,
.mp-catalog-layout__products .price {
  margin: 0 !important;
  color: var(--mp-catalog-ink) !important;
  font-family: var(--mp-font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.mp-catalog-layout__products .wc-block-components-product-price del,
.mp-catalog-layout__products .price del {
  margin-left: 7px;
  color: var(--mp-catalog-muted) !important;
  opacity: 1;
}

.mp-catalog-layout__products .wc-block-components-product-price ins,
.mp-catalog-layout__products .price ins {
  color: #9f343c;
  text-decoration: none;
}

/* Colour bubbles from pa_color. */
.mp-catalog-swatches {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.mp-catalog-swatch {
  display: block;
  width: 13px;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(25, 40, 46, .22);
  border-radius: 50%;
  background: var(--mp-swatch, #ddd);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.mp-catalog-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-catalog-layout__products .wc-block-components-product-sale-badge,
.mp-catalog-layout__products .onsale {
  top: 10px !important;
  right: auto !important;
  left: 10px !important;
  min-width: 0;
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--mp-catalog-ink);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-catalog-layout__products .wp-block-query-pagination,
.mp-catalog-layout__products .wc-block-pagination {
  grid-column: 1 / -1;
  margin-top: 48px;
}

.mp-empty-state {
  padding: 42px 24px;
  border: 1px solid var(--mp-catalog-line);
  background: #fff;
  text-align: center;
}

@media (max-width: 999px) {
  .post-type-archive-product #primary,
  .tax-product_cat #primary,
  .tax-product_tag #primary,
  .woocommerce.search #primary {
    width: min(100% - 24px, 1440px);
  }

  .mp-catalog-layout__products .wc-block-product-template,
  .mp-catalog-layout__products .wp-block-woocommerce-product-template,
  .mp-catalog-layout__products ul.products,
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce.search ul.products {
    grid-template-columns: repeat(var(--mp-catalog-columns-mobile), minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  .post-type-archive-product #primary,
  .tax-product_cat #primary,
  .tax-product_tag #primary,
  .woocommerce.search #primary {
    width: min(100% - 16px, 1440px);
    padding-top: 18px;
  }

  .mp-catalog-heading { margin-bottom: 20px; }
  .mp-catalog-heading .woocommerce-breadcrumb,
  .mp-catalog-heading .wc-block-breadcrumbs { display: none; }

  .mp-collection-toolbar { margin-bottom: 28px; }
  .mp-collection-toolbar__button,
  .mp-collection-toolbar__sort { min-height: 46px; font-size: 10px; }

  .mp-catalog-native-toolbar { margin: -18px 0 18px; }

  .mp-catalog-layout__products .wc-block-product-template,
  .mp-catalog-layout__products .wp-block-woocommerce-product-template,
  .mp-catalog-layout__products ul.products,
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce.search ul.products {
    gap: 32px 8px !important;
  }

  .mp-catalog-layout__products .wc-block-components-product-image,
  .mp-catalog-layout__products .wp-block-woocommerce-product-image { margin-bottom: 10px !important; }

  .mp-catalog-layout__products .wp-block-post-title,
  .mp-catalog-layout__products .wp-block-post-title a,
  .mp-catalog-layout__products .woocommerce-loop-product__title {
    font-size: 11px !important;
  }

  .mp-catalog-layout__products .wc-block-components-product-price,
  .mp-catalog-layout__products .wp-block-woocommerce-product-price,
  .mp-catalog-layout__products .price { font-size: 10px !important; }

  .mp-catalog-layout__products .wp-block-button,
  .mp-catalog-layout__products .wc-block-components-product-button {
    right: 7px;
    width: 31px !important;
    height: 31px;
  }

  .mp-catalog-layout__products .wp-block-button__link,
  .mp-catalog-layout__products .wc-block-components-product-button__button {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    min-height: 31px !important;
  }

  .mp-catalog-size-selector {
    gap: 4px;
    padding: 20px 6px 7px;
  }

  .mp-catalog-size-button {
    min-width: 31px;
    min-height: 27px;
    padding: 4px 5px;
    font-size: 9px;
  }

  .mp-catalog-layout__sidebar {
    width: min(94vw, 400px) !important;
    padding-inline: 22px;
  }

  .mp-catalog-drawer__head {
    margin-inline: -22px;
    padding-inline: 22px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 950px) {
  .mp-catalog-layout__sidebar { width: min(62vw, 460px) !important; }
  .mp-catalog-drawer__head { min-height: 58px; margin-bottom: 16px; }
  .mp-catalog-size-selector { max-height: 65%; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-catalog-layout__sidebar,
  .mp-catalog-backdrop,
  .mp-catalog-primary-image,
  .mp-catalog-secondary-image,
  .mp-catalog-size-selector { transition: none !important; }
}

/* --------------------------------------------------------------------------
 * Canopea reference pass 2.0: mobile collection exact-density layer.
 * -------------------------------------------------------------------------- */
@media (max-width: 699px) {
  .post-type-archive-product #primary,
  .tax-product_cat #primary,
  .tax-product_tag #primary,
  .woocommerce.search #primary {
    width: 100%;
    padding-top: 18px;
    overflow: hidden;
  }

  .mp-catalog-heading {
    width: calc(100% - 40px);
    margin-inline: auto;
    margin-bottom: 24px;
  }

  .mp-catalog-heading h1,
  .mp-catalog-heading .wp-block-query-title {
    font-size: 24px;
    letter-spacing: .01em;
  }

  .mp-collection-toolbar {
    width: 100%;
    margin-bottom: 24px;
  }

  .mp-collection-toolbar__button,
  .mp-collection-toolbar__sort {
    min-height: 42px;
    font-size: 10px;
    letter-spacing: .13em;
  }

  .mp-catalog-native-toolbar {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .mp-catalog-layout__products .wc-block-product-template,
  .mp-catalog-layout__products .wp-block-woocommerce-product-template,
  .mp-catalog-layout__products ul.products,
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce.search ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 1px !important;
    width: 100%;
    margin: 0 !important;
  }

  .mp-catalog-layout__products .wc-block-product,
  .mp-catalog-layout__products .product,
  .post-type-archive-product ul.products li.product,
  .tax-product_cat ul.products li.product,
  .tax-product_tag ul.products li.product,
  .woocommerce.search ul.products li.product {
    min-width: 0;
    padding: 0 0 4px !important;
  }

  .mp-catalog-layout__products .wc-block-components-product-image,
  .mp-catalog-layout__products .wp-block-woocommerce-product-image,
  .mp-catalog-layout__products li.product > a:first-child,
  .post-type-archive-product ul.products li.product > a:first-child {
    margin-bottom: 9px !important;
  }

  .mp-catalog-layout__products .wc-block-components-product-image img,
  .mp-catalog-layout__products .wp-block-woocommerce-product-image img,
  .mp-catalog-layout__products li.product img,
  .post-type-archive-product ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 660 / 815 !important;
    object-fit: cover !important;
  }

  .mp-catalog-layout__products .wp-block-post-title,
  .mp-catalog-layout__products .wp-block-post-title a,
  .mp-catalog-layout__products .woocommerce-loop-product__title {
    margin-inline: 8px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    letter-spacing: .10em;
  }

  .mp-catalog-layout__products .wc-block-components-product-price,
  .mp-catalog-layout__products .wp-block-woocommerce-product-price,
  .mp-catalog-layout__products .price {
    margin-inline: 8px !important;
    font-size: 10px !important;
  }

  .mp-catalog-swatches {
    gap: 6px;
    margin-top: 7px;
  }

  .mp-catalog-swatch {
    width: 11px;
    height: 11px;
  }

  .mp-catalog-layout__products .wp-block-button,
  .mp-catalog-layout__products .wc-block-components-product-button {
    right: 8px;
    bottom: 8px;
    width: 30px !important;
    height: 30px;
  }

  .mp-catalog-layout__products .wp-block-button__link,
  .mp-catalog-layout__products .wc-block-components-product-button__button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  .mp-catalog-size-selector {
    padding: 18px 5px 6px;
    background: rgba(255, 255, 255, .94);
  }

  .mp-catalog-size-button {
    min-width: 29px;
    min-height: 25px;
    padding: 3px 4px;
    border: 0;
    background: transparent;
    font-size: 9px;
  }

  .mp-catalog-layout__products .wc-block-components-product-sale-badge,
  .mp-catalog-layout__products .onsale {
    top: 7px !important;
    left: 7px !important;
    padding: 5px 6px;
    font-size: 8px;
  }
}

/* 2.0.1: reliable mobile filter actions. */
.mp-catalog-drawer__actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 28px -30px -40px;
  padding: 14px 30px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mp-catalog-line);
  background: rgba(255, 255, 255, .98);
}

.mp-catalog-drawer__apply {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--mp-catalog-ink);
  border-radius: 0;
  background: var(--mp-catalog-ink);
  color: #fff;
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.mp-catalog-drawer__reset {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: var(--mp-catalog-ink);
  font-size: 11px !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
/* Catalogue quick view. It reuses the server-rendered WooCommerce variations. */
body.mp-quick-view-open { overflow: hidden; }
.mp-quick-view[hidden] { display: none !important; }
.mp-quick-view { position: fixed; z-index: 100050; inset: 0; display: grid; place-items: center; padding: 24px; }
.mp-quick-view__backdrop { position: absolute; inset: 0; background: rgba(10, 23, 42, .62); }
.mp-quick-view__dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.mp-quick-view__close { position: absolute; z-index: 2; top: 12px; right: 14px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--mp-primary); font-size: 30px; line-height: 1; cursor: pointer; }
.mp-quick-view__media { min-height: 520px; background: #f5f5f3; }
.mp-quick-view__media img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.mp-quick-view__content { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 54px 44px 38px; text-align: center; }
.mp-quick-view__content h2 { margin: 0 0 14px; color: var(--mp-primary); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; text-transform: uppercase; }
.mp-quick-view__price { margin-bottom: 28px; font-size: 18px; }
.mp-quick-view__label { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mp-quick-view__sizes { width: 100%; }
.mp-quick-view__loading { margin: 0 0 20px; color: #6f7885; font-size: 13px; }
.mp-quick-view__attribute { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; text-align: left; }
.mp-quick-view__attribute > span { color: var(--mp-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mp-quick-view__attribute select { width: 100%; min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid #c8d0dc; border-radius: 0; background-color: #fff; color: var(--mp-primary); }
.mp-quick-view__sizes .mp-catalog-size-selector { position: static !important; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 9px; width: 100% !important; margin: 0 0 22px !important; padding: 0 !important; opacity: 1 !important; visibility: visible !important; transform: none !important; background: transparent !important; box-shadow: none !important; transition: none !important; max-height: none !important; pointer-events: auto !important; }
.mp-quick-view__sizes .mp-catalog-size-form { margin: 0 !important; }
.mp-quick-view__sizes .mp-catalog-size-button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 6px 10px; border: 1px solid #c8d0dc; border-radius: 50%; background: #fff; color: var(--mp-primary); cursor: pointer; }
.mp-quick-view__sizes .mp-catalog-size-button.is-selected { border-color: var(--mp-primary); background: var(--mp-primary); color: #fff; }
.mp-quick-view__sizes .mp-catalog-size-button.is-disabled { background: #F2F2F2; color: #A6A6A6; border-color: #D9D9D9; cursor: not-allowed; }
.mp-quick-view__quantity { display: grid; grid-template-columns: 42px 58px 42px; align-items: center; margin: 0 auto 20px; border: 1px solid #d6dce4; }
.mp-quick-view__quantity button { height: 42px; padding: 0; border: 0; background: transparent; color: var(--mp-primary); font-size: 20px; cursor: pointer; }
.mp-quick-view__quantity output { font-size: 15px; }
.mp-quick-view__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mp-quick-view__add,
.mp-quick-view__buy-now { width: 100%; min-height: 46px; border-radius: 0; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mp-quick-view__add { border: 1px solid var(--mp-primary); background: #fff; color: var(--mp-primary); }
.mp-quick-view__buy-now { border: 1px solid var(--mp-primary); background: var(--mp-primary); color: #fff; }
.mp-quick-view__add:disabled,
.mp-quick-view__buy-now:disabled { cursor: not-allowed; opacity: .42; }
.mp-quick-view__details { margin-top: 18px; color: var(--mp-primary); font-size: 13px; text-underline-offset: 4px; }

@media (max-width: 781px) {
  .mp-quick-view { padding: 14px; }
  .mp-quick-view__dialog { grid-template-columns: 1fr; width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); }
  .mp-quick-view__media { min-height: 0; height: min(52vw, 310px); }
  .mp-quick-view__media img { min-height: 0; height: 100%; object-position: center 24%; }
  .mp-quick-view__content { padding: 28px 22px 26px; }
  .mp-quick-view__price { margin-bottom: 18px; }
  .mp-quick-view__attribute { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ===== Consolidated from iteration-1.css (2026-09-23): catalog toolbar/pagination/gender-filter/sidebar drawer ===== */
.mp-catalog-native-toolbar .wc-block-components-product-results-count,
.mp-catalog-native-toolbar .woocommerce-result-count { margin: 10px 0 6px !important; color: #8a8f94 !important; font-size: 12px !important; line-height: 1.3 !important; }
.mp-load-more-pagination .wp-block-query-pagination-next { display: inline-flex; min-width: 220px; min-height: 48px; align-items: center; justify-content: center; padding: 11px 24px; border: 1px solid var(--mp-primary, #1f3d6b); border-radius: 0; background: var(--mp-primary, #1f3d6b); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.mp-load-more-pagination .wp-block-query-pagination-next.is-loading { opacity: .65; pointer-events: none; }
/* The custom gender links behave as checkboxes: keep the selected state visible. */
.mp-catalog-gender-filter__list a.is-active { background: #fff !important; color: var(--mp-primary, #1f3d6b) !important; }
.mp-catalog-gender-filter__list a.is-active span { position: relative; background: var(--mp-primary, #1f3d6b) !important; border-color: var(--mp-primary, #1f3d6b) !important; }
.mp-catalog-gender-filter__list a.is-active span::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Gender filters are real deferred checkboxes: one click selects, Apply navigates. */
.mp-catalog-gender-filter__option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--mp-line, #d9d9d9);
  color: var(--mp-primary, #1f3d6b);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  user-select: none;
}

.mp-catalog-gender-filter__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mp-catalog-gender-filter__box {
  position: relative;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(25, 40, 46, .4);
  background: #fff;
}

.mp-catalog-gender-filter__option.is-active .mp-catalog-gender-filter__box {
  border-color: var(--mp-primary, #1f3d6b);
  background: var(--mp-primary, #1f3d6b);
  box-shadow: inset 0 0 0 3px #fff;
}

.mp-catalog-gender-filter__option:focus-within {
  outline: 2px solid var(--mp-primary, #1f3d6b);
  outline-offset: 2px;
}

/* Restore the original mp200 side drawer on every breakpoint. */
body .mp-catalog-layout__sidebar.alignwide {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  z-index: 100002 !important;
  display: block !important;
  width: min(92vw, 430px) !important;
  max-width: 430px !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 28px 30px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fff !important;
  box-sizing: border-box !important;
  transform: translateX(-105%) !important;
  transition: transform .28s ease !important;
}
body.mp-catalog-drawer-open .mp-catalog-layout__sidebar.alignwide { transform: translateX(0) !important; }
html body .mp-catalog-layout__sidebar.alignwide { left: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body .mp-catalog-drawer__head { margin-inline: -28px !important; padding-inline: 28px !important; }
@media (max-width: 781px) {
  body .mp-catalog-layout__sidebar.alignwide { width: min(94vw, 400px) !important; max-width: 400px !important; padding-inline: 22px !important; }
  body.mp-catalog-drawer-open .mp-catalog-layout__sidebar.alignwide { transform: translateX(1px) !important; }
  body .mp-catalog-drawer__head { margin-inline: -22px !important; padding-inline: 22px !important; }
}

