.fmax-shop-main { width: 100%; max-width: none; }
.fmax-shop {
  --shop-blue: #13367e;
  --shop-ink: #26344b;
  --shop-muted: #495770;
  --shop-border: #dce4ef;
  --shop-orange: #df7314;
  width: 100%;
  max-width: var(--shop-max-width, 1458px);
  margin-inline: auto;
  padding: 17px var(--shop-padding-inline, 27px) 58px;
  color: var(--shop-ink);
  font: 400 14px/1.45 'Work Sans', system-ui, sans-serif;
}
.fmax-shop, .fmax-shop *, .fmax-shop *::before, .fmax-shop *::after { box-sizing: border-box; }
.fmax-shop [hidden] { display: none !important; }
.fmax-shop :is(a, button, input, select):focus-visible { outline: 2px solid #2177d6; outline-offset: 2px; }
.fmax-shop .fmax-shop-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fmax-shop-top, .fmax-shop-top-actions, .fmax-shop-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.fmax-shop-top { justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--shop-border); }
.fmax-shop-breadcrumb { font-size: 13px; }
.fmax-shop .fmax-shop-breadcrumb a { color: var(--shop-blue); text-underline-offset: 3px; }
.fmax-shop-breadcrumb [aria-current] { color: var(--shop-blue); font-weight: 700; }
.fmax-shop-bcv { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; padding: 7px 10px; border: 1px solid var(--shop-border); border-radius: 5px; background: #f4f7fc; color: var(--shop-blue); font-size: 12px; font-weight: 700; }
.fmax-shop-bcv time { color: var(--shop-muted); font-weight: 500; }
.fmax-shop-dot { width: 8px; height: 8px; border-radius: 50%; background: #bf6513; }
.fmax-shop-bcv[data-state="ok"] .fmax-shop-dot { background: #188846; }
.fmax-shop-bcv[data-state="unavailable"] .fmax-shop-dot { background: #6b7280; }
.fmax-shop .fmax-shop-heading { margin: 17px 0 14px; color: var(--shop-blue); font: 800 clamp(23px, 3vw, 34px)/1.17 'Work Sans', system-ui, sans-serif; overflow-wrap: anywhere; }

.fmax-shop-categories { display: grid; grid-template-columns: repeat(var(--shop-category-columns, 4), minmax(0, 1fr)); gap: var(--shop-category-gap, 18px); margin: 24px 0 var(--shop-section-gap, 22px); }
.fmax-shop-heading:not(.fmax-shop-sr) + .fmax-shop-categories { margin-top: 0; }
.fmax-shop .fmax-shop-category { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: var(--shop-category-height, 78px); padding: var(--shop-category-padding, 12px) var(--shop-category-padding, 15px); border: 1px solid var(--shop-category-border, #ddd); border-radius: var(--shop-category-radius, 6px); color: var(--shop-category-text, var(--shop-blue)); background: var(--shop-category-surface, #fdfdfd); text-decoration: none; overflow-wrap: anywhere; }
.fmax-shop .fmax-shop-category:is(a:hover, [aria-current]) { border-color: var(--shop-category-active-border, #e96e1b); background: var(--shop-category-active-surface, #f8f9fa); }
.fmax-shop .fmax-shop-category img, .fmax-shop-category-photo { display: block; width: var(--shop-category-photo, 52px); height: var(--shop-category-photo, 52px); flex: none; margin: 0; border-radius: var(--shop-category-photo-radius, 6px); background-color: #edf1f5; object-fit: cover; }
.fmax-shop-category-photo { background-image: url('category-thumbnails.webp'); background-size: 200% 200%; background-repeat: no-repeat; }
.fmax-shop-photo-all { background-position: left top; }
.fmax-shop-photo-paint { background-position: right top; }
.fmax-shop-photo-electric { background-position: left bottom; }
.fmax-shop-photo-cement { background-position: right bottom; }
.fmax-shop-category-copy { min-width: 0; }
.fmax-shop-category-copy strong { display: block; margin-bottom: 5px; font-size: var(--shop-category-title-size, 14px); font-weight: 750; }
.fmax-shop-category-copy > span { color: var(--shop-category-caption, #5f6571); font-size: var(--shop-category-caption-size, 12px); }

.fmax-shop-filters { margin: 0 0 var(--shop-section-gap, 24px); padding: var(--shop-filter-padding, 16px) var(--shop-filter-padding, 20px); border: 1px solid var(--shop-filter-border, #ddd); border-radius: var(--shop-filter-radius, 4px); background: var(--shop-filter-surface, #f1f2f4); }
.fmax-shop-filter-row, .fmax-shop-sort, .fmax-shop-views, .fmax-shop-price-actions, .fmax-shop-price-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; }
.fmax-shop-filter-row + .fmax-shop-filter-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dedfe3; }
.fmax-shop-tools { justify-content: space-between; align-items: center; }
.fmax-shop .fmax-shop-brands { flex: 1 1 280px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fmax-shop-filter-label, .fmax-shop-price-name { padding: 0; color: var(--shop-blue); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.fmax-shop-brand-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fmax-shop-brand-group .fmax-shop-filter-label { margin-right: 4px; }
.fmax-shop-brands label { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border: 1px solid #cbd2dd; border-radius: 4px; background: #fff; color: #212121; cursor: pointer; font-size: 13px; }
.fmax-shop-brands label:has(input:checked) { border-color: var(--shop-filter-accent, var(--shop-blue)); background: #edf3fd; }
.fmax-shop-brands input { width: 15px; height: 15px; margin: 0; accent-color: var(--shop-filter-accent, var(--shop-blue)); }
.fmax-shop-price-actions { margin-inline-start: auto; }
.fmax-shop-price-range { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 35px; padding: 4px 13px; border: 1px solid #cbd2dd; border-radius: 4px; background: #fff; color: #222; font-size: 13px; white-space: nowrap; }
.fmax-shop .fmax-shop-price-range input { width: 130px; margin: 0; padding: 0; accent-color: var(--shop-filter-accent, var(--shop-orange)); cursor: pointer; }
.fmax-shop :is(.fmax-shop-price-control input[type="number"], .fmax-shop-sort select) { width: auto; min-width: 0; min-height: 35px; margin: 0; padding: 6px 10px; border: 1px solid #cbd2dd; border-radius: 4px; background-color: #fff; color: var(--shop-ink); font: inherit; }
.fmax-shop .fmax-shop-price-control input[type="number"] { max-width: 140px; }
.fmax-shop .fmax-shop-sort select { min-width: min(200px, 100%); font-size: 13px; }
.fmax-shop .fmax-shop-count { margin: 0; color: #5f6571; font-size: 13px; }
.fmax-shop-count strong { color: var(--shop-blue); }
.fmax-shop .fmax-shop-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 6px 11px; border: 0; border-radius: var(--shop-button-radius, 5px); background: var(--shop-button-surface, var(--shop-blue)); color: var(--shop-button-text, #fff); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.fmax-shop .fmax-shop-button:hover { background: var(--shop-button-hover, #204991); color: var(--shop-button-text, #fff); }
.fmax-shop .fmax-shop-button.fmax-shop-reset {
  background: var(--shop-reset-button-surface, #13367e);
  color: var(--shop-reset-button-text, #fff);
}
.fmax-shop .fmax-shop-button.fmax-shop-reset:hover { background: var(--shop-reset-button-hover, #204991); }
.fmax-shop .fmax-shop-button.fmax-shop-wholesale {
  min-height: 33px;
  padding-inline: 14px;
  background: var(--shop-wholesale-button-surface, #13367e);
  color: var(--shop-wholesale-button-text, #fff);
  font-size: 12.5px;
}
.fmax-shop .fmax-shop-button.fmax-shop-wholesale:hover { background: var(--shop-wholesale-button-hover, #204991); }
.fmax-shop .fmax-shop-button:is(.fmax-shop-reset, .fmax-shop-wholesale) > span {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
.fmax-shop-views { align-items: center; gap: 4px; }
.fmax-shop .fmax-shop-reset { min-height: 34px; padding-inline: 14px; font-size: 12.5px; }
.fmax-shop .has-price-range .fmax-shop-apply { display: none; }
.fmax-shop .fmax-shop-views a { display: grid; width: 32px; height: 35px; place-items: center; border-radius: 4px; color: #758096; }
.fmax-shop .fmax-shop-views a:is(:hover, [aria-current]) { color: var(--shop-blue); }

/* Los tamaños heredados de las columnas de WooCommerce no aplican dentro de esta cuadrícula. */
.fmax-shop .fmax-shop-items ul.products { display: grid; inline-size: 100%; grid-template-columns: repeat(var(--shop-product-columns, 5), minmax(0, 1fr)); gap: var(--shop-product-gap, clamp(10px, 1.5vw, 20px)); margin: 0; padding: 0; list-style: none; }
.fmax-shop .fmax-shop-items ul.products::before, .fmax-shop .fmax-shop-items ul.products::after { display: none; }
.fmax-shop .fmax-shop-items ul.products > li.product {
  width: auto !important;
  inline-size: auto !important;
  max-width: none !important;
  max-inline-size: none !important;
  justify-self: stretch;
  margin: 0 !important;
}
.fmax-shop .fmax-shop-items ul.products li.product { position: relative; display: flex; flex-direction: column; float: none; clear: none; min-width: 0; padding: var(--shop-product-padding, 11px); border: 1px solid var(--shop-product-border, var(--shop-border)); border-radius: var(--shop-product-radius, 7px); background: var(--shop-product-surface, #fff); overflow-wrap: anywhere; }
.fmax-shop .fmax-shop-items ul.products li.product:hover { border-color: #bfcee5; box-shadow: 0 7px 18px rgb(19 54 126 / 10%); }
.fmax-shop .fmax-shop-items ul.products li.product .woocommerce-loop-product__link { color: var(--shop-blue); text-decoration: none; }
.fmax-shop .fmax-shop-items ul.products li.product a img { width: 100%; height: auto; max-height: var(--shop-product-photo, none); aspect-ratio: 1; display: block; object-fit: contain; margin: 0 0 9px; border-radius: 5px; background: #f4f6f8; }
.fmax-shop .fmax-shop-items ul.products li.product .woocommerce-loop-product__title { margin: 0 0 8px; padding: 0; color: var(--shop-product-title, var(--shop-blue)); font-size: var(--shop-product-title-size, 14px); font-weight: 650; line-height: 1.35; }
.fmax-shop-product-category { display: block; margin-bottom: 4px; color: var(--shop-muted); font-size: 11px; }
.fmax-shop .fmax-shop-items ul.products li.product .price { display: block; margin: 7px 0; color: var(--shop-product-price, var(--shop-ink)); font-size: var(--shop-product-price-size, 16px); font-weight: 750; }
.fmax-shop .fmax-shop-items ul.products li.product .price del { font-size: .82em; }
.fmax-shop .fmax-shop-items ul.products li.product .price ins { color: var(--shop-sale-price, #146941); text-decoration: none; }
.fmax-shop-reference { display: block; margin: 0 0 9px; color: var(--shop-muted); font-size: 12px; font-weight: 650; }
.fmax-shop .fmax-shop-items ul.products li.product .onsale { position: absolute; z-index: 1; inset: 16px 16px auto auto; min-width: 0; min-height: 0; margin: 0; padding: 4px 7px; border-radius: 4px; background: var(--shop-offer-surface, var(--shop-orange)); color: #221408; font-size: 11px; font-weight: 800; line-height: 1.2; }
.fmax-shop .fmax-shop-items ul.products li.product .button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--shop-button-height, 44px); margin: auto 0 0; padding: 7px 8px; border: 0; border-radius: var(--shop-button-radius, 5px); background: var(--shop-button-surface, var(--shop-blue)); color: var(--shop-button-text, #fff); font: inherit; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.fmax-shop .fmax-shop-items ul.products li.product .button:hover { background: var(--shop-button-hover, #204991); }
.fmax-shop .fmax-shop-items ul.products li.product .added_to_cart { color: var(--shop-blue); font-weight: 700; }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products { grid-template-columns: minmax(0, 1fr); }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 180px); gap: 10px; align-items: center; }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product .woocommerce-loop-product__link { display: grid; grid-template-columns: minmax(60px, 115px) minmax(0, 1fr); align-items: center; column-gap: 12px; }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product a img { grid-row: 1 / span 4; margin: 0; }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product .button { margin: 0; }
.fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product .onsale { inset: 5px auto auto 5px; }

.fmax-shop .woocommerce-pagination { margin-top: 24px; }
.fmax-shop-empty { padding: 16px; border: 1px solid var(--shop-border); border-radius: 5px; background: #f6f8fb; }
.fmax-shop-toast { position: fixed; z-index: 1001; right: 15px; bottom: 18px; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; max-width: calc(100vw - 30px); padding: 10px 12px; border: 1px solid var(--shop-border); border-left: 4px solid var(--shop-orange); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(19 54 126 / 17%); }
.fmax-shop-toast div { display: grid; }
.fmax-shop-check { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #ebf5ef; color: #146941; }
body.fmax-mobile-nav-mounted .fmax-shop-toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 1240px) {
  .fmax-shop .fmax-shop-items ul.products { grid-template-columns: repeat(var(--shop-product-columns, 4), minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .fmax-shop .fmax-shop-items ul.products { grid-template-columns: repeat(var(--shop-product-columns-tablet, 3), minmax(0, 1fr)); }
  .fmax-shop-categories { grid-template-columns: repeat(var(--shop-category-columns-tablet, 2), minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .fmax-shop { padding: 17px var(--shop-padding-inline, 15px) 38px; }
  .fmax-shop-categories { grid-template-columns: repeat(var(--shop-category-columns-mobile, 2), minmax(0, 1fr)); }
  .fmax-shop .fmax-shop-items ul.products { grid-template-columns: repeat(var(--shop-product-columns-mobile, 2), minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .fmax-shop .fmax-shop-items ul.products li.product { padding: var(--shop-product-padding, 8px); }
  .fmax-shop .fmax-shop-category { gap: 7px; padding: var(--shop-category-padding, 7px); }
  .fmax-shop .fmax-shop-category img, .fmax-shop-category-photo { width: var(--shop-category-photo, 37px); height: var(--shop-category-photo, 37px); }
  .fmax-shop-category-copy strong { font-size: var(--shop-category-title-size, 13px); }
  .fmax-shop-category-copy > span { font-size: var(--shop-category-caption-size, 11px); }
  .fmax-shop-price-actions { margin-inline-start: 0; }
  .fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product { grid-template-columns: minmax(0, 1fr); }
  .fmax-shop.fmax-shop-list .fmax-shop-items ul.products li.product .woocommerce-loop-product__link { grid-template-columns: 72px minmax(0, 1fr); }
}

.fmax-shop.fmax-hide-product-image .fmax-shop-items ul.products li.product a img,
.fmax-shop.fmax-hide-product-price .fmax-shop-items ul.products li.product .price,
.fmax-shop.fmax-hide-product-offer .fmax-shop-items ul.products li.product .onsale { display: none; }
.fmax-shop.fmax-shop-list.fmax-hide-product-image .fmax-shop-items ul.products li.product .woocommerce-loop-product__link { display: block; }
