/* =============================================
   TAB Filter Grid — Frontend styles v1.7.0
   Colores marca: interacción #BB7D40, ppal2 #934F0E,
   ppal #532D0F, acento #25453A, mono1 #EFEFEF,
   mono2 #5D5D5C, negro #262626
   ============================================= */

.tab-fg-shell {
  max-width: 1180px;
  margin: 0 auto;
  font-family: "Frutiger LT Std", Frutiger, Arial, sans-serif;
  font-size: 16px;
}

.tab-fg-wrap {
  display: block;
}

/* ── Filters bar ── */
.tab-fg-shell .tab-fg-filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Cada filtro ── */
.tab-fg-shell .tab-fg-filter-group {
  position: relative;
  flex: 1 1 auto;
  min-width: 150px;
}

/* Chevron */
.tab-fg-shell .tab-fg-filter-group::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 6px;
  margin-top: -3px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.3' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  transition: background-image 0.18s ease;
}

.tab-fg-shell .tab-fg-filter-group:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.3' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}

.tab-fg-shell .tab-fg-filter-group select,
.tab-fg-shell .tab-fg-filter-group select:link,
.tab-fg-shell .tab-fg-filter-group select:visited,
.tab-fg-shell .tab-fg-filter-group select:active {
  width: 100% !important;
  height: 44px !important;
  padding: 0 44px 0 18px !important;
  border: 1px solid #262626 !important;
  border-radius: 999px !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #262626 !important;
  font-family: "Frutiger LT Std", Frutiger, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  outline: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

.tab-fg-shell .tab-fg-filter-group select:hover {
  background-color: #262626 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
  box-shadow: none !important;
}

.tab-fg-shell .tab-fg-filter-group select:focus {
  background-color: #ffffff !important;
  color: #262626 !important;
  border-color: #262626 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Checkboxes ── */
.tab-fg-shell .tab-fg-filter-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #5D5D5C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tab-fg-shell .tab-fg-checkboxes {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

/* ── Botón borrar filtros ── */
.tab-fg-shell .tab-fg-filter-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tab-fg-shell .tab-fg-clear-btn,
.tab-fg-shell .tab-fg-clear-btn:link,
.tab-fg-shell .tab-fg-clear-btn:visited,
.tab-fg-shell .tab-fg-clear-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 22px !important;
  border: 1px solid #262626 !important;
  border-radius: 999px !important;
  background: #262626 !important;
  background-color: #262626 !important;
  color: #ffffff !important;
  font-family: "Frutiger LT Std", Frutiger, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

.tab-fg-shell .tab-fg-clear-btn svg {
  flex-shrink: 0;
  color: inherit;
  transition: transform 0.35s ease;
}

.tab-fg-shell .tab-fg-clear-btn:hover,
.tab-fg-shell .tab-fg-clear-btn:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #262626 !important;
  border-color: #262626 !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.tab-fg-shell .tab-fg-clear-btn:hover svg,
.tab-fg-shell .tab-fg-clear-btn:focus svg {
  transform: rotate(-180deg);
}

/* ── Grid de productos ── */
.tab-fg-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tab-fg-item { min-width: 0; }
.tab-fg-item > * { height: 100%; }

@media (max-width: 767px) {
  .tab-fg-item > * { height: auto; }
}

.tab-fg-results .elementor,
.tab-fg-results .elementor-widget,
.tab-fg-results .elementor-widget-container {
  max-width: 100%;
}

/* ── Estado vacío ── */
.tab-fg-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid #EFEFEF;
  border-radius: 12px;
  background: #fafafa;
  font-size: 16px;
  color: #5D5D5C;
}

/* ── Paginación numerada ── */
.tab-fg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Botones numéricos */
.tab-fg-shell .tab-fg-page--num {
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #5D5D5C !important;
  font-family: "Frutiger LT Std", Frutiger, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.18s ease, color 0.18s ease !important;
  box-shadow: none !important;
  outline: none !important;
}

.tab-fg-shell .tab-fg-page--num:hover:not(:disabled):not(.tab-fg-page--active) {
  background-color: #EFEFEF !important;
  color: #262626 !important;
}

.tab-fg-shell .tab-fg-page--active {
  background-color: #BB7D40 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  cursor: default !important;
}

/* Flechas anterior/siguiente */
.tab-fg-shell .tab-fg-page--arrow {
  width: 40px;
  height: 40px;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #5D5D5C !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background-color 0.18s ease, color 0.18s ease !important;
}

.tab-fg-shell .tab-fg-page--arrow:hover:not(:disabled) {
  background-color: #EFEFEF !important;
  color: #262626 !important;
}

.tab-fg-shell .tab-fg-page--arrow:disabled {
  opacity: .3 !important;
  cursor: default !important;
}

/* Elipsis */
.tab-fg-page-ellipsis {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5D5D5C;
  font-size: 15px;
  user-select: none;
}

/* ── Loading ── */
.tab-fg-wrap.is-loading {
  opacity: .55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tab-fg-items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 10px; }
  .tab-fg-shell .tab-fg-filter-group { min-width: 130px; }
}

@media (max-width: 767px) {
  .tab-fg-shell .tab-fg-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tab-fg-shell .tab-fg-filter-group,
  .tab-fg-shell .tab-fg-filter-group select {
    width: 100% !important;
    min-width: unset !important;
  }
  .tab-fg-shell .tab-fg-filter-actions { width: 100%; }
  .tab-fg-shell .tab-fg-clear-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .tab-fg-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    align-items: start;
  }
}

/* ── Recorte de espacio blanco en imágenes de la card en móvil ── */
@media (max-width: 767px) {
  .tab-fg-item .elementor-widget-image,
  .tab-fg-item .elementor-widget-image .elementor-widget-container {
    line-height: 0;
    font-size: 0;
  }
  .tab-fg-item .elementor-widget-image img {
    width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    background: #fff;
  }
}
