/* ============================================================
   TIENDA / ARCHIVO DE PRODUCTOS — Tejidos Masquetela
   Se carga solo en la tienda y categorías (functions.php).
   Marcado: archive-product.php. Sustituye al bloque "TIENDA MASQUETELA"
   del CSS adicional del Personalizador.
   ============================================================ */

.mqt-shop {
  --mqt-ink: #2a2520;
  --mqt-muted: #6f6663;       /* contraste AA sobre blanco */
  --mqt-line: #e6e0d8;
  --mqt-bg-soft: #faf8f5;
  --mqt-pink: #efcad6;
  --mqt-pink-deep: #d4a0b0;
  --mqt-accent: #7e534f;
  --mqt-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mqt-serif: 'Noto Serif', Georgia, serif;

  font-family: var(--mqt-sans);
  color: var(--mqt-ink);
  padding: 32px 0 96px;
}

.mqt-shop *,
.mqt-shop *::before,
.mqt-shop *::after { box-sizing: border-box; }

.mqt-shop .mqt-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cabecera ---------- */
.mqt-shop-header { margin: 0 0 40px; }

.mqt-shop .woocommerce-breadcrumb {
  margin: 0 0 20px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mqt-muted);
}
.mqt-shop .woocommerce-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.mqt-shop .woocommerce-breadcrumb a:hover { color: var(--mqt-accent); }

.mqt-shop .mqt-shop-title {
  margin: 0;
  font-family: var(--mqt-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--mqt-ink);
}

.mqt-shop .term-description,
.mqt-shop .woocommerce-products-header__description {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mqt-muted);
}
.mqt-shop .term-description p { margin: 0; }

/* ---------- Layout ---------- */
.mqt-shop .mqt-shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* ---------- Filtros ---------- */
.mqt-shop .mqt-shop-sidebar {
  position: sticky;
  top: 110px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.mqt-shop .mqt-sidebar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mqt-ink);
}
.mqt-shop .mqt-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mqt-shop .mqt-filters-clear {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mqt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mqt-shop .mqt-filters-clear:hover { color: var(--mqt-ink); }

.mqt-shop .mqt-filter-group {
  padding: 22px 0;
  border-bottom: 1px solid var(--mqt-line);
}
.mqt-shop .mqt-filter-title {
  margin: 0 0 14px;
  font-family: var(--mqt-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--mqt-ink);
}
.mqt-shop .mqt-filter-content .widget { margin: 0; padding: 0; background: none; border: 0; }
.mqt-shop .mqt-filter-content .widgettitle,
.mqt-shop .mqt-filter-content .widget-title { display: none; }

/* Lista de categorías */
.mqt-shop .mqt-cat-list,
.mqt-shop .woocommerce-widget-layered-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mqt-shop .mqt-cat-list li,
.mqt-shop .woocommerce-widget-layered-nav-list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.mqt-shop .mqt-cat-list li > a,
.mqt-shop .woocommerce-widget-layered-nav-list li > a { flex: 1 1 auto; }

.mqt-shop .mqt-cat-list a,
.mqt-shop .woocommerce-widget-layered-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mqt-ink);
  text-decoration: none;
  transition: color .2s;
}
.mqt-shop .mqt-cat-list a:hover,
.mqt-shop .woocommerce-widget-layered-nav-list a:hover { color: var(--mqt-accent); }

.mqt-shop .mqt-cat-list .count,
.mqt-shop .woocommerce-widget-layered-nav-list .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--mqt-muted);
}

.mqt-shop .mqt-cat-list li.is-current > a { font-weight: 700; color: var(--mqt-accent); }

/* Casillas (atributos) */
.mqt-shop .woocommerce-widget-layered-nav-list a::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b9b0a8;
  border-radius: 3px;
  background: #fff;
  transition: background .2s, border-color .2s;
}
.mqt-shop .woocommerce-widget-layered-nav-list a:hover::before { border-color: var(--mqt-ink); }
.mqt-shop .woocommerce-widget-layered-nav-list li.chosen > a { font-weight: 700; }
.mqt-shop .woocommerce-widget-layered-nav-list li.chosen > a::before {
  content: '' !important;          /* anula la cruz roja (fuente de iconos) de WooCommerce */
  font-size: 0 !important;
  color: transparent !important;
  border-color: var(--mqt-ink);
  background: var(--mqt-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Filtro de precio */
.mqt-shop .price_slider_wrapper { padding: 6px 4px 0; }
.mqt-shop .price_slider_wrapper .ui-slider,
.mqt-shop .price_slider_wrapper .ui-widget-content {
  position: relative;
  height: 3px;
  margin: 8px 8px 18px;
  background: var(--mqt-line);
  border: 0;
  border-radius: 2px;
}
.mqt-shop .price_slider_wrapper .ui-slider .ui-slider-range { background: var(--mqt-ink); border-radius: 2px; }
.mqt-shop .price_slider_wrapper .ui-slider .ui-slider-handle {
  top: -7px;
  width: 17px;
  height: 17px;
  margin-left: -8px;
  background: #fff;
  border: 2px solid var(--mqt-ink);
  border-radius: 50%;
  box-shadow: none;
  cursor: grab;
}
.mqt-shop .price_slider_wrapper .ui-slider .ui-slider-handle:focus { outline: 2px solid var(--mqt-pink-deep); outline-offset: 2px; }
.mqt-shop .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
/* El rango va en su propia línea (aguanta cifras largas) y el botón debajo */
.mqt-shop .price_slider_amount .price_label {
  order: 1;
  flex: 1 1 100%;
  min-width: 0;
  color: var(--mqt-muted);
  text-align: left;
  overflow-wrap: anywhere;
}
.mqt-shop .price_slider_amount .button { order: 2; }
.mqt-shop .price_slider_amount .clear { display: none; }
.mqt-shop .price_slider_amount .price_label span { color: var(--mqt-ink); font-weight: 600; }
.mqt-shop .price_slider_amount .button {
  margin: 0;
  padding: 9px 18px;
  font-family: var(--mqt-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mqt-ink);
  background: var(--mqt-pink);
  border: 1px solid var(--mqt-pink);
  border-radius: 0;
  transition: background .2s, border-color .2s;
}
.mqt-shop .price_slider_amount .button:hover { background: var(--mqt-pink-deep); border-color: var(--mqt-pink-deep); color: var(--mqt-ink); }

/* ---------- Barra de herramientas ---------- */
.mqt-shop .mqt-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--mqt-line);
}
.mqt-shop .mqt-results-count {
  margin: 0 auto 0 0;
  font-size: 13px;
  color: var(--mqt-muted);
}
.mqt-shop .mqt-shop-ordering .woocommerce-ordering { margin: 0; }
.mqt-shop .mqt-shop-ordering select.orderby {
  min-width: 200px;
  margin: 0;
  padding: 10px 38px 10px 14px;
  font-family: var(--mqt-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mqt-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232a2520' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--mqt-line);
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.mqt-shop .mqt-shop-ordering select.orderby:hover,
.mqt-shop .mqt-shop-ordering select.orderby:focus { border-color: var(--mqt-ink); outline: none; }

.mqt-shop .mqt-filters-toggle,
.mqt-shop .mqt-filters-close,
.mqt-shop .mqt-sidebar-footer,
.mqt-shop .mqt-filters-overlay { display: none; }

/* ---------- Rejilla de productos ---------- */
.mqt-shop ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  float: none;
}
.mqt-shop ul.products::before,
.mqt-shop ul.products::after { display: none; }

.mqt-shop ul.products li.product {
  display: flex;
  flex-direction: column;
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  position: relative;
  text-align: left;
}

/* Imagen */
.mqt-shop ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--mqt-bg-soft);
}
.mqt-shop ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: block;
  width: 100%;
  height: 100%;
}
.mqt-shop ul.products li.product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.mqt-shop ul.products li.product:hover img.attachment-woocommerce_thumbnail { transform: scale(1.05); }

/* Botón-icono de Astra sobre la imagen: ya hay botón de texto debajo */
.mqt-shop ul.products li.product .ast-on-card-button { display: none; }

/* Texto */
.mqt-shop ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 4px;
  margin: 0;
  padding: 16px 0 0;
  background: none;
}
.mqt-shop ul.products li.product .ast-woo-product-category {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mqt-muted);
}
.mqt-shop ul.products li.product .ast-loop-product__link { text-decoration: none; }
.mqt-shop ul.products li.product h2.woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
  margin: 0;
  padding: 0;
  font-family: var(--mqt-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--mqt-ink);
  transition: color .2s;
}
.mqt-shop ul.products li.product:hover h2.woocommerce-loop-product__title { color: var(--mqt-accent); }

.mqt-shop ul.products li.product .price {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  font-family: var(--mqt-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--mqt-ink);
}
.mqt-shop ul.products li.product .price del { margin-right: 6px; font-size: 13px; color: var(--mqt-muted); opacity: .8; }
.mqt-shop ul.products li.product .price ins { text-decoration: none; font-weight: 600; }
.mqt-shop .mqt-price-unit {
  margin-left: 2px;
  font-family: var(--mqt-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mqt-muted);
}

/* Botón: todos del mismo alto y pegados abajo */
.mqt-shop ul.products li.product a.button,
.mqt-shop ul.products li.product button.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: auto 0 0;
  padding: 0 14px;
  font-family: var(--mqt-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mqt-ink);
  background: transparent;
  border: 1px solid var(--mqt-ink);
  border-radius: 0;
  box-shadow: none;
  transition: background .2s, border-color .2s;
}
.mqt-shop ul.products li.product .astra-shop-summary-wrap .price + a.button { margin-top: 14px; }
.mqt-shop ul.products li.product a.button:hover,
.mqt-shop ul.products li.product button.button:hover {
  color: var(--mqt-ink);
  background: var(--mqt-pink);
  border-color: var(--mqt-pink);
}
.mqt-shop ul.products li.product a.button.loading { opacity: .6; pointer-events: none; }
.mqt-shop ul.products li.product a.button.added { background: var(--mqt-pink); border-color: var(--mqt-pink); }
.mqt-shop ul.products li.product a.button.loading::after,
.mqt-shop ul.products li.product a.button.added::after { display: none; }
.mqt-shop ul.products li.product a.added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--mqt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Oferta / agotado */
.mqt-shop ul.products li.product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mqt-ink);
  background: var(--mqt-pink);
  border-radius: 0;
}

/* Entrada suave y sin JavaScript (sustituye al snippet 270) */
@media (prefers-reduced-motion: no-preference) {
  .mqt-shop ul.products li.product { animation: mqt-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
  .mqt-shop ul.products li.product:nth-child(4n+2) { animation-delay: .05s; }
  .mqt-shop ul.products li.product:nth-child(4n+3) { animation-delay: .1s; }
  .mqt-shop ul.products li.product:nth-child(4n+4) { animation-delay: .15s; }
}
@keyframes mqt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Paginación ---------- */
.mqt-shop .woocommerce-pagination {
  margin: 56px 0 0;
  padding: 0;
  text-align: center;
}
.mqt-shop .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.mqt-shop .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; float: none; }
.mqt-shop .woocommerce-pagination .page-numbers a,
.mqt-shop .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--mqt-ink);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--mqt-line);
  border-radius: 0;
  transition: border-color .2s, background .2s;
}
.mqt-shop .woocommerce-pagination .page-numbers a:hover { border-color: var(--mqt-ink); background: transparent; color: var(--mqt-ink); }
.mqt-shop .woocommerce-pagination .page-numbers .current {
  color: var(--mqt-ink);
  background: var(--mqt-pink);
  border-color: var(--mqt-pink);
}

/* ---------- Sin resultados ---------- */
.mqt-shop .woocommerce-info,
.mqt-shop .woocommerce-no-products-found .woocommerce-info {
  margin: 0;
  padding: 64px 0;
  font-family: var(--mqt-serif);
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  text-align: center;
  color: var(--mqt-muted);
  background: none;
  border: 0;
  box-shadow: none;
}
.mqt-shop .woocommerce-info::before { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .mqt-shop .mqt-shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .mqt-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mqt-shop ul.products li.product:nth-child(4n+2),
  .mqt-shop ul.products li.product:nth-child(4n+3),
  .mqt-shop ul.products li.product:nth-child(4n+4) { animation-delay: 0s; }
}

@media (max-width: 900px) {
  .mqt-shop { padding-top: 16px; }
  .mqt-shop .mqt-shop-layout { grid-template-columns: 1fr; gap: 0; }

  /* Filtros en móvil: panel lateral (lo abre shop.js; sin JS se ven en la página) */
  .mqt-shop .mqt-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    font-family: var(--mqt-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mqt-ink);
    background: transparent;
    border: 1px solid var(--mqt-ink);
    border-radius: 0;
    cursor: pointer;
  }
  .mqt-shop .mqt-filters-toggle::before {
    content: '';
    width: 14px;
    height: 10px;
    background:
      linear-gradient(var(--mqt-ink), var(--mqt-ink)) 0 0 / 100% 1.5px no-repeat,
      linear-gradient(var(--mqt-ink), var(--mqt-ink)) 3px 50% / calc(100% - 6px) 1.5px no-repeat,
      linear-gradient(var(--mqt-ink), var(--mqt-ink)) 5px 100% / calc(100% - 10px) 1.5px no-repeat;
  }
  .mqt-shop:not(.mqt-js) .mqt-filters-toggle,
  .mqt-shop:not(.mqt-js) .mqt-filters-close,
  .mqt-shop:not(.mqt-js) .mqt-sidebar-footer { display: none; }

  .mqt-shop.mqt-js .mqt-shop-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    width: min(88vw, 380px);
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 22px 96px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 8px 0 32px rgba(42, 37, 32, .18);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
  }
  .mqt-shop.mqt-js .mqt-shop-sidebar.is-open {
    transform: none;
    visibility: visible;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  .mqt-shop.mqt-js .mqt-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -22px;
    padding: 18px 22px 14px;
    background: #fff;
  }
  .mqt-shop.mqt-js .mqt-filters-close:not(.mqt-filters-apply) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -10px -8px auto;
    padding: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--mqt-ink);
    background: none;
    border: 0;
    cursor: pointer;
  }
  .mqt-shop.mqt-js .mqt-sidebar-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 3;
    width: min(88vw, 380px);
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--mqt-line);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
  }
  .mqt-shop.mqt-js .mqt-shop-sidebar.is-open .mqt-sidebar-footer {
    transform: none;
    visibility: visible;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  .mqt-shop .mqt-filters-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    font-family: var(--mqt-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mqt-ink);
    background: var(--mqt-pink);
    border: 1px solid var(--mqt-pink);
    border-radius: 0;
    cursor: pointer;
  }

  /* Capa oscura detrás del panel */
  .mqt-shop.mqt-js .mqt-filters-overlay { display: block; }
  .mqt-shop.mqt-js .mqt-filters-overlay[hidden] { display: none; }
  .mqt-shop .mqt-filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(42, 37, 32, .45);
    opacity: 0;
    transition: opacity .3s;
  }
  .mqt-shop .mqt-filters-overlay:not([hidden]) { opacity: 1; }
  body.mqt-filters-open { overflow: hidden; }

  /* Zonas táctiles cómodas dentro del panel */
  .mqt-shop .mqt-cat-list a,
  .mqt-shop .woocommerce-widget-layered-nav-list a { padding: 11px 0; font-size: 15px; }
  .mqt-shop .price_slider_wrapper .ui-slider .ui-slider-handle { width: 24px; height: 24px; top: -11px; margin-left: -12px; }
  .mqt-shop .price_slider_wrapper .ui-slider { margin: 14px 12px 22px; }

  /* Barra superior: filtros a la izquierda, orden a la derecha, recuento debajo */
  .mqt-shop .mqt-shop-toolbar { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; align-items: center; }
  .mqt-shop .mqt-results-count { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .mqt-shop .mqt-shop-ordering { grid-column: 2; justify-self: end; margin: 0; width: 100%; max-width: 230px; }
  .mqt-shop .mqt-shop-ordering .woocommerce-ordering,
  .mqt-shop .mqt-shop-ordering select.orderby { width: 100%; min-width: 0; }
  .mqt-shop .mqt-shop-ordering select.orderby { min-height: 42px; padding: 0 30px 0 10px; font-size: 12px; background-position: right 10px center; text-overflow: ellipsis; }
}

@media (max-width: 768px) {
  .mqt-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .mqt-shop .mqt-container { padding: 0 16px; }
  .mqt-shop ul.products li.product a.button { letter-spacing: .1em; padding: 0 8px; }
}

@media (max-width: 380px) {
  .mqt-shop ul.products { grid-template-columns: 1fr; }
}

/* Móvil: mostrar el nombre completo de la tela (hasta 3 líneas) */
@media (max-width: 600px) {
	.mqt-shop ul.products li.product h2.woocommerce-loop-product__title { -webkit-line-clamp: 3; min-height: calc(3 * 1.35em); font-size: 14px; }
}
