/* ============================================================
   TIENDA · Post Card producto (selectores reales del DOM)
   ============================================================ */

/* Card contenedora - el elemento de lista del Post Card */
html body .fusion-post-cards li.fusion-layout-column{
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}

/* HOVER: borde azul + lift 3px + shadow */
html body .fusion-post-cards li.fusion-layout-column:hover{
  border-color: #075DA7 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(7, 93, 167, 0.15) !important;
}
/* Cada card - tercio real descontando los dos gaps */
html body .fusion-post-cards li.fusion-layout-column,
html body li.fusion-layout-column.crl-product-card{
  flex: 0 0 calc((100% - 32px) / 3) !important;
  max-width: calc((100% - 32px) / 3) !important;
  min-width: 0 !important;
  width: calc((100% - 32px) / 3) !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* Anular las variables Avada que fuerzan otro width */
html body .fusion-post-cards li.fusion-layout-column{
  --awb-width-large: calc((100% - 32px) / 3) !important;
  --awb-spacing-right-large: 0 !important;
  --awb-spacing-left-large: 0 !important;
}

/* Imagen centrada dentro de la card */
html body .fusion-post-cards li .fusion-image-element{
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 1px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body .fusion-post-cards li .fusion-image-element .fusion-image-wrapper,
html body .fusion-post-cards li .fusion-image-element .fusion-image-wrapper a,
html body .fusion-post-cards li .fusion-image-element > a,
html body .fusion-post-cards li .fusion-image-element > span{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .fusion-post-cards li .fusion-image-element img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* SKU en una sola línea - matar text-columns y forzar ancho */
html body div.crl-product-sku,
html body .fusion-text.crl-product-sku,
html body div.crl-product-sku[class*="fusion-text-columns"],
html body .awb-text-cols.crl-product-sku{
  --awb-columns: 1 !important;
  --awb-column-count: 1 !important;
  --awb-column-spacing: 0 !important;
  --awb-column-min-width: 0 !important;
  --awb-column-width: 100% !important;
  column-count: 1 !important;
  columns: auto !important;
  column-gap: 0 !important;
  column-width: 100% !important;
  -webkit-column-count: 1 !important;
  -moz-column-count: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  color: #6B7280 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
/* SKU en una línea - ataca sintaxis moderna y legacy */
html body .crl-product-sku,
html body .crl-product-sku *,
html body div.crl-product-sku p,
html body div.crl-product-sku span,
html body .fusion-text.crl-product-sku,
html body .fusion-text.crl-product-sku p,
html body .fusion-text.crl-product-sku span,
html body .fusion-text.crl-product-sku .awb-sku{
  white-space: nowrap !important;
  white-space-collapse: collapse !important;
  text-wrap: nowrap !important;
  text-wrap-mode: nowrap !important;
  overflow: visible !important;
  word-wrap: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

html body div.crl-product-sku p,
html body .fusion-text.crl-product-sku p{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  column-count: 1 !important;
  columns: auto !important;
  display: block !important;
}

/* Nombre del producto - bold, debajo del SKU */
html body .crl-product-name,
html body .crl-product-name h1,
html body .crl-product-name h2,
html body .crl-product-name h3,
html body .crl-product-name .fusion-title-heading,
html body h1.crl-product-name,
html body h2.crl-product-name,
html body h3.crl-product-name{
  color: #05080D !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
  margin: 4px 0 0 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 42px !important;
}

/* Precio */
html body .crl-product-price,
html body .crl-product-price .price,
html body .crl-product-price .amount,
html body .crl-product-price .woocommerce-Price-amount,
html body .crl-product-price .woocommerce-Price-amount bdi{
  color: #05080D !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Botón "Ver" - negro con flecha */
html body a.crl-product-btn,
html body a.crl-product-btn.fusion-button{
  background: #05080D !important;
  background-color: #05080D !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  padding: 8px 16px !important;
  text-transform: none !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

html body a.crl-product-btn .fusion-button-text{
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

html body a.crl-product-btn:hover,
html body a.crl-product-btn.fusion-button:hover,
html body a.crl-product-btn:hover .fusion-button-text{
  background: #075DA7 !important;
  background-color: #075DA7 !important;
  color: #FFFFFF !important;
}

html body a.crl-product-btn::before,
html body a.crl-product-btn .fusion-button-icon-divider-left,
html body a.crl-product-btn .fusion-button-icon-divider-right{
  display: none !important;
}

/* Grid del Post Card - 3 columnas ajustadas */
html body .fusion-post-cards ul,
html body ul.fusion-post-cards,
html body .fusion-builder-row-inner .fusion-flex-content-wrap{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Cada card - ancho para acomodar 3 columnas + gap */
html body .fusion-post-cards li.fusion-layout-column,
html body li.fusion-layout-column.crl-product-card{
  flex: 0 0 calc(30% - 12px) !important;
  max-width: calc(30% - 12px) !important;
  min-width: 0 !important;
  width: calc(30% - 12px) !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* Anular las variables Avada que fuerzan otro width */
html body .fusion-post-cards li.fusion-layout-column{
  --awb-width-large: calc(30% - 12px) !important;
  --awb-spacing-right-large: 0 !important;
  --awb-spacing-left-large: 0 !important;
}



/* ============================================
   7. SIDEBAR FILTROS WOOF
   ============================================ */

/* 7.1 · Contenedor general */
html body .woof {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body .woof .woof_redraw_zone {
  padding: 0 !important;
}

html body .woof .woof_container {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin: 0 0 10px 0 !important;
  overflow: hidden !important;
}

html body .woof .woof_container_price,
html body .woof .woof_price_search_container,
html body .woof .woof_container_price .woof_container_inner {
  overflow: visible !important;
}

html body .woof .woof_container_price .irs,
html body .woof .woof_price_search_container .irs {
  padding: 0 6px !important;
  overflow: visible !important;
}

/* 7.3 · Títulos de grupo */
html body .woof .woof_container h4 {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
}

/* 7.4 · Listas */
html body .woof .woof_container ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .woof .woof_container ul li {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  border: none !important;
  background: transparent !important;
}

/* 7.5 · Checkboxes */
html body .woof .woof_container ul li input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 !important;
  accent-color: #075DA7 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

/* 7.6 · Etiquetas de término */
html body .woof .woof_container ul li label,
html body .woof .woof_container ul li label a {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #4B5563 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

html body .woof .woof_container ul li label {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}

html body .woof .woof_container ul li label a {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}

/* 7.7 · Contadores */
html body .woof .woof_container ul li .woof_checkbox_count {
  color: #6B7280 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  margin-left: auto !important;
  padding-left: 8px !important;
  flex-shrink: 0 !important;
}

/* 7.8 · Botón de subcategorías (el signo +) */
html body .woof .woof_childs_list_opener {
  color: #075DA7 !important;
  margin-left: 8px !important;
  cursor: pointer !important;
}

html body .woof .woof_childs_list_opener span {
  color: #075DA7 !important;
  border: none !important;
  background: transparent !important;
}

html body .woof .woof_container ul li ul.woof_childs_list {
  flex: 0 0 100% !important;
  padding: 4px 0 4px 26px !important;
  margin: 0 !important;
}

/* 7.9 · Scroll interno de listas largas */
html body .woof .woof_container ul {
  scrollbar-width: thin !important;
  scrollbar-color: #94A3B8 #F5F7FA !important;
}

html body .woof .woof_container ul::-webkit-scrollbar {
  width: 5px !important;
}

html body .woof .woof_container ul::-webkit-scrollbar-track {
  background: #F5F7FA !important;
  border-radius: 3px !important;
}

html body .woof .woof_container ul::-webkit-scrollbar-thumb {
  background: #94A3B8 !important;
  border-radius: 3px !important;
}

html body .woof .woof_container ul::-webkit-scrollbar-thumb:hover {
  background: #075DA7 !important;
}

/* 7.10 · Slider de precio */
html body .woof .irs {
  font-family: 'Roboto', sans-serif !important;
}

html body .woof .irs,
html body .woof .irs-with-grid {
  position: relative !important;
  height: 66px !important;
}

html body .woof .irs-line {
  background: #E5E7EB !important;
  height: 6px !important;
  border-radius: 3px !important;
  top: 34px !important;
}

html body .woof .irs-bar {
  background: #075DA7 !important;
  height: 6px !important;
  border-radius: 3px !important;
  top: 34px !important;
  border: none !important;
}

html body .woof .irs-handle {
  width: 20px !important;
  height: 20px !important;
  top: 27px !important;
  background: #FFFFFF !important;
  border: 3px solid #075DA7 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(5, 8, 13, 0.18) !important;
  cursor: grab !important;
}

html body .woof .irs-handle:active {
  cursor: grabbing !important;
  border-color: #2688E4 !important;
}

html body .woof .irs-handle i {
  display: none !important;
}

html body .woof .irs-from,
html body .woof .irs-to,
html body .woof .irs-single {
  background: #075DA7 !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 16px !important;
  border-radius: 4px !important;
}

html body .woof .irs-from:before,
html body .woof .irs-to:before,
html body .woof .irs-single:before {
  border-top-color: #075DA7 !important;
}

html body .woof .irs-min,
html body .woof .irs-max {
  display: none !important;
}

html body .woof .irs-grid-text {
  color: #94A3B8 !important;
  font-size: 10px !important;
}

html body .woof .irs-grid-pol {
  background: #E5E7EB !important;
}

/* 7.11 · Simbolo del desplegador de subcategorias */
html body .woof a.woof_childs_list_opener span {
  background-image: none !important;
  color: #075DA7 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body .woof a.woof_childs_list_opener span.woof_is_closed::before {
  content: '+' !important;
}

html body .woof a.woof_childs_list_opener span.woof_is_opened::before {
  content: '\2212' !important;
}

/* ============================================
   8. TOOLBAR DE ORDENAMIENTO
   ============================================ */

html body .crl-shop-toolbar .fusion-column-wrapper {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}

html body .catalog-ordering.fusion-woo-sorting {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin: 0 0 20px 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

html body .catalog-ordering .orderby-order-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .catalog-ordering ul.orderby,
html body .catalog-ordering ul.order,
html body .catalog-ordering ul.fusion-grid-list-view {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

html body .catalog-ordering ul.orderby {
  position: relative !important;
  min-width: 190px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  transition: border-color 0.2s ease !important;
}

html body .catalog-ordering ul.orderby:hover {
  border-color: #075DA7 !important;
}

html body .catalog-ordering ul.orderby li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

html body .catalog-ordering ul.orderby li a,
html body .catalog-ordering ul.order li a {
  display: flex !important;
  align-items: center !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #05080D !important;
  text-decoration: none !important;
  padding: 9px 12px !important;
  border: none !important;
  background: transparent !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}

html body .catalog-ordering ul.orderby li a:hover {
  color: #075DA7 !important;
  background: #F5F7FA !important;
}

html body .catalog-ordering ul.orderby ul {
  position: absolute !important;
  top: 100% !important;
  left: -1px !important;
  right: -1px !important;
  z-index: 99 !important;
  width: auto !important;
  margin: 4px 0 0 0 !important;
  padding: 4px 0 !important;
  list-style: none !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  box-shadow: 0 8px 20px rgba(5, 8, 13, 0.10) !important;
}

html body .catalog-ordering ul.order {
  min-width: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  transition: border-color 0.2s ease !important;
}

html body .catalog-ordering ul.order:hover {
  border-color: #075DA7 !important;
}

html body .catalog-ordering ul.order li a {
  justify-content: center !important;
  width: 36px !important;
  padding: 9px 0 !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  transition: border-color 0.2s ease !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: #4B5563 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  transition: color 0.2s ease !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li:hover {
  border-color: #075DA7 !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li:hover a {
  color: #075DA7 !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li.active-view {
  border-color: #075DA7 !important;
  background: #F0F6FC !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li.active-view a {
  color: #075DA7 !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li.fusion-list-view-li {
  display: none !important;
}

html body .catalog-ordering ul.fusion-grid-list-view li.fusion-grid-view-li {
  pointer-events: none !important;
}


/* ============================================
   9. BREADCRUMB
   ============================================ */

html body .crl-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #6B7280 !important;
}

html body .crl-breadcrumb a {
  color: #6B7280 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

html body .crl-breadcrumb a:hover {
  color: #075DA7 !important;
}

html body .crl-breadcrumb .crl-bc-tail {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html body .crl-breadcrumb .crl-bc-current {
  color: #05080D !important;
  font-weight: 500 !important;
}

/* Chevron dibujado por CSS · replica el icono del mockup */
html body .crl-breadcrumb .crl-bc-sep {
  display: inline-block !important;
  width: 5px !important;
  height: 5px !important;
  flex-shrink: 0 !important;
  margin: 0 1px !important;
  border-top: 1.5px solid #94A3B8 !important;
  border-right: 1.5px solid #94A3B8 !important;
  transform: rotate(45deg) !important;
}

/* ---- Variante hero oscuro · Fase 2 ---- */
html body .crl-hero-bg .crl-breadcrumb,
html body .crl-breadcrumb-dark {
  color: #6B7280 !important;
}

html body .crl-hero-bg .crl-breadcrumb a,
html body .crl-breadcrumb-dark a {
  color: #94A3B8 !important;
}

html body .crl-hero-bg .crl-breadcrumb a:hover,
html body .crl-breadcrumb-dark a:hover {
  color: #2688E4 !important;
}

html body .crl-hero-bg .crl-breadcrumb .crl-bc-current,
html body .crl-breadcrumb-dark .crl-bc-current {
  color: #FFFFFF !important;
}

html body .crl-hero-bg .crl-breadcrumb .crl-bc-sep,
html body .crl-breadcrumb-dark .crl-bc-sep {
  border-top-color: #6B7280 !important;
  border-right-color: #6B7280 !important;
}


/* ============================================================
   CRL PARTS - TIENDA GRID 2 COLUMNAS MOVIL
   Elemento: Post Card Archives -> .crl-shop-grid
   ============================================================ */

@media (max-width: 800px){

  /* ---- 1. Forzar 2 columnas (cubre grid y flex de Avada) ---- */
  html body .crl-shop-grid,
  html body .crl-shop-grid .fusion-grid,
  html body .crl-shop-grid.fusion-grid{
    --awb-columns: 1 !important;   /* Para 2 columnas: 2 !impor ...*/
    --awb-column-spacing: 10px !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;  /* Para 2 columnas: repeat(2, ...*/
    gap: 18px 10px !important;
  }

  /* Fallback si el wrapper usa flex en vez de grid */
  html body .crl-shop-grid .fusion-grid > li,
  html body .crl-shop-grid .fusion-post-cards > article,
  html body .crl-shop-grid .fusion-post-card{
    flex: 0 0 100% !important;   /* Para 2 columnas: 0 0 calc(50% - 5px) */
    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* ---- 2. Card compacta ---- */
  html body .crl-shop-grid .fusion-post-card{
    padding: 10px !important;
    border-radius: 10px !important;
  }

  html body .crl-shop-grid .fusion-post-card img{
    width: 100% !important;
    height: auto !important;
  }

  /* ---- 3. Tipografia al ancho reducido ---- */
  html body .crl-shop-grid .fusion-post-card h2,
  html body .crl-shop-grid .fusion-post-card h3,
  html body .crl-shop-grid .fusion-post-card .fusion-post-card-title{
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 8px 0 4px 0 !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  html body .crl-shop-grid .fusion-post-card .price,
  html body .crl-shop-grid .fusion-post-card .amount{
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  html body .crl-shop-grid .fusion-post-card .fusion-button,
  html body .crl-shop-grid .fusion-post-card .button{
    width: 100% !important;
    font-size: 13px !important;
    padding: 9px 6px !important;
    text-align: center !important;
  }

  /* ---- 4. Margenes laterales del listado ---- */
  html body .crl-shop-grid{
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}