/* Solo catálogo y fichas Woo: ni artículos ni carrito heredan estas reglas. */
/* Contener también los textos accesibles posicionados evita que escapen del scroll de la tabla. */
.cm-variant-table { position: relative; }
.cm-browse-categories { margin: 20px 0; }
.cm-browse-categories summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.cm-category-reading { clear: both; max-width: 850px; padding-top: 24px; border-top: 1px solid #dedfd9; }
body.woocommerce.cm-catalog { --cm-ink: #182b3a; --cm-muted: #5e6870; --cm-blue: #254fe8; --cm-paper: #faf9f6; --cm-line: #dedfd9; background: var(--cm-paper); }
body.woocommerce.cm-catalog #content { background: var(--cm-paper); color: var(--cm-ink); font-family: Arial, Helvetica, sans-serif; }
body.woocommerce.cm-catalog #content > .ast-container { width: min(1280px, calc(100% - 96px)); max-width: none; padding: 0; }
body.woocommerce.cm-catalog #primary { width: 100%; margin: 48px 0 64px; padding: 0; border: 0; }
body.woocommerce.cm-catalog h1, body.woocommerce.cm-catalog h2, body.woocommerce.cm-catalog h3 { color: var(--cm-ink); font-family: Arial, Helvetica, sans-serif; }
body.woocommerce.cm-catalog h1 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; }
body.woocommerce.cm-catalog .woocommerce-breadcrumb { margin-bottom: 24px; font-size: 12px; color: var(--cm-muted); }
body.woocommerce.cm-catalog .woocommerce-breadcrumb a { color: var(--cm-muted); }
body.woocommerce.cm-catalog .woocommerce-result-count { font-size: 13px; color: var(--cm-muted); }
body.woocommerce.cm-catalog .woocommerce-ordering select { min-height: 44px; border: 1px solid var(--cm-line); border-radius: 3px; background-color: transparent; color: var(--cm-ink); font-size: 13px; }
body.woocommerce.cm-catalog ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 30px 0; padding: 0; }
body.woocommerce.cm-catalog ul.products::before, body.woocommerce.cm-catalog ul.products::after { display: none; }
body.woocommerce.cm-catalog ul.products li.product { display: flex; flex-direction: column; float: none; width: auto; min-width: 0; margin: 0; padding: 0; border: 1px solid #e1e2de; border-radius: 4px; background: #fff; text-align: left; }
body.woocommerce.cm-catalog ul.products li.product .astra-shop-thumbnail-wrap { margin: 0; background: #f4f4f0; }
body.woocommerce.cm-catalog ul.products li.product a img { display: block; width: 100%; height: 290px; margin: 0; padding: 26px; object-fit: contain; }
body.woocommerce.cm-catalog ul.products li.product .astra-shop-summary-wrap { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 23px 25px 24px; }
body.woocommerce.cm-catalog ul.products li.product .ast-woo-product-category { margin-bottom: 8px; color: var(--cm-muted); font-size: 11px; line-height: 1.5; }
body.woocommerce.cm-catalog ul.products li.product .woocommerce-loop-product__title { margin: 0 0 14px; padding: 0; color: var(--cm-ink); font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
body.woocommerce.cm-catalog ul.products li.product a { text-decoration: none; }
body.woocommerce.cm-catalog a.button, body.woocommerce.cm-catalog button.button, body.woocommerce.cm-catalog .single_add_to_cart_button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 13px 20px; border: 1px solid var(--cm-ink); border-radius: 3px; background: var(--cm-ink); color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.35; font-weight: 600; text-align: center; text-decoration: none; white-space: normal; }
body.woocommerce.cm-catalog ul.products li.product .button { margin-top: auto; }
body.woocommerce.cm-catalog a.button:hover, body.woocommerce.cm-catalog button.button:hover { background: #2f485a; border-color: #2f485a; color: #fff; }
body.woocommerce.cm-catalog #content a:focus-visible, body.woocommerce.cm-catalog #content button:focus-visible, body.woocommerce.cm-catalog #content select:focus-visible { outline: 3px solid var(--cm-blue); outline-offset: 4px; }
body.woocommerce.cm-catalog div.product .woocommerce-product-gallery { padding: 24px; border: 1px solid #e1e2de; border-radius: 4px; background: #fff; }
body.woocommerce.cm-catalog div.product .woocommerce-product-gallery__image img { width: 100%; max-height: 560px; object-fit: contain; }
body.woocommerce.cm-catalog div.product .summary { padding-left: 20px; }
body.woocommerce.cm-catalog div.product .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.75; color: var(--cm-muted); }
body.woocommerce.cm-catalog div.product .product_meta { padding-top: 20px; border-top: 1px solid var(--cm-line); font-size: 12px; }
body.woocommerce.cm-catalog div.product .woocommerce-tabs { padding-top: 30px; }
body.woocommerce.cm-catalog div.product .woocommerce-tabs .panel { font-size: 15px; line-height: 1.8; }
body.woocommerce.cm-catalog .cm-catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
body.woocommerce.cm-catalog .cm-catalog-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--cm-line); border-radius: 28px; color: var(--cm-ink); text-decoration: none; font-size: 12px; }
body.woocommerce.cm-catalog .cm-catalog-filters a[aria-current="page"] { color: #fff; background: var(--cm-ink); border-color: var(--cm-ink); }
@media (max-width: 1100px) {
  body.woocommerce.cm-catalog #content > .ast-container { width: calc(100% - 64px); }
  body.woocommerce.cm-catalog ul.products { gap: 18px; }
  body.woocommerce.cm-catalog ul.products li.product a img { height: 245px; }
  body.woocommerce.cm-catalog ul.products li.product .astra-shop-summary-wrap { padding: 22px 20px; }
}
@media (max-width: 800px) {
  body.woocommerce.cm-catalog #content > .ast-container { width: calc(100% - 40px); }
  body.woocommerce.cm-catalog #primary { margin-top: 34px; }
  body.woocommerce.cm-catalog ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.woocommerce.cm-catalog div.product .summary { padding-left: 0; }
}
@media (max-width: 480px) {
  body.woocommerce.cm-catalog #content > .ast-container { width: calc(100% - 32px); }
  body.woocommerce.cm-catalog ul.products { grid-template-columns: 1fr; gap: 20px; }
  body.woocommerce.cm-catalog ul.products li.product a img { height: 280px; padding: 25px; }
  body.woocommerce.cm-catalog .woocommerce-result-count, body.woocommerce.cm-catalog .woocommerce-ordering { float: none; }
  body.woocommerce.cm-catalog .woocommerce-ordering, body.woocommerce.cm-catalog .woocommerce-ordering select { width: 100%; }
  body.woocommerce.cm-catalog div.product .woocommerce-product-gallery { padding: 15px; }
}
