/* Plenty Product Filters Widget Styles */

.plenty-product-filters-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-family: Arial, sans-serif;
  overflow: visible !important;
}

/* Filters Container */
.plenty-filters-container {
  flex: 0 0 200px;
  padding: 0;
  background-color: transparent;
}

/* Cabecera de filtros */
.plenty-filters-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}

.plenty-filter-icon {
  color: #333;
  width: 20px;
  height: 20px;
}

.plenty-filters-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* Secciones de filtros */
.plenty-filter-section {
  margin-bottom: 25px;
  padding-bottom: 0;
  border-bottom: 1px solid #e5e5e5;
}

.plenty-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.plenty-filter-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  color: #000000;
  letter-spacing: 0.5px;
}

/* Opciones de filtro */
.plenty-filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.plenty-filter-option {
  display: flex;
  align-items: center;
}

/* Estilo de los radio buttons */
.plenty-filter-checkbox,
input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border: 1.5px solid #ccc !important;
  border-radius: 50% !important;
  outline: none !important;
  cursor: pointer !important;
  position: relative !important;
  margin-right: 10px !important;
  background-color: transparent !important;
}

.plenty-filter-checkbox:checked,
input[type="checkbox"]:checked {
  border-color: #333 !important;
  background-color: transparent !important;
}

.plenty-filter-checkbox:checked::after,
input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 8px !important;
  height: 8px !important;
  background-color: #333 !important;
  border-radius: 50% !important;
}

/* Etiquetas de filtro */
.plenty-filter-option label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-weight: 400;
}

/* Contenedor de productos */
.plenty-products-container {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Grid de productos - configurable por número de columnas */
.plenty-products-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 0;
}

.plenty-products-grid.products-per-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.plenty-products-grid.products-per-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.plenty-products-grid.products-per-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Tarjetas de productos */
.plenty-product-card,
a.plenty-product-card {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  background-color: transparent !important;
  margin-bottom: 40px;
}

/* Imagen del producto - sin fondo de color */
.plenty-product-image {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 250px;
  background-color: transparent;
}

.plenty-product-image img {
  max-width: 80%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  z-index: 2;
}

/* Información del producto */
.plenty-product-info {
  background-color: transparent;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding: 0 10px 10px;
}

/* Título del producto */
.plenty-product-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  color: #333;
  text-align: center;
  padding: 0 10px;
  line-height: 1.3;
}

/* Descripción del producto */
.plenty-product-description {
  font-size: 12px;
  text-transform: uppercase;
  color: #333;
  margin: 5px 0;
  font-weight: 600;
}

/* Tipo de producto */
.plenty-product-type {
  font-size: 11px;
  color: #666;
  margin: 5px 0;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* Precio del producto */
.plenty-product-price {
  font-weight: 700;
  color: #333;
  margin-top: 10px;
  font-size: 14px;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
}

/* Ajustes específicos para el diseño de Plenty */
.plenty-product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: white;
  z-index: 1;
  border-radius: 0 0 8px 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .plenty-products-grid.products-per-row-3,
  .plenty-products-grid.products-per-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .plenty-product-filters-widget {
    flex-direction: column;
  }

  .plenty-filters-container {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .plenty-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ajustes para el widget de Elementor */
.elementor-widget-container {
  overflow: visible !important;
}

/* Ajustes para la visualización de los atributos */
.plenty-product-attributes {
  display: none;
}

/* Ajustes para el contenedor de la sección */
.elementor-section {
  overflow: visible !important;
}

/* Ajustes para el widget */
.elementor-widget {
  overflow: visible !important;
}
