/* Overlay de fondo */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar del filtro */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
}

.filter-sidebar.active {
    left: 0;
}

/* Botón de cierre */
.close-filter {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    float: right;
}

/* Botón para abrir el filtro */
.open-filter {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    background-color: #000;
    color: #fff;
}
.open-filter:hover{
    background-color: #fff;
    color: #000;
}

/* Contenedor de productos - Usando CSS Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 columnas para escritorio */
    gap: 20px;  /* Espacio entre columnas y filas */
    margin-top: 20px;
}

/* Estilos para pantallas más pequeñas (tablets) */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columnas para tablets */
    }
}

/* Estilos para pantallas aún más pequeñas (móviles) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;  /* 1 columna para móviles */
    }
}

/* Estilos para los elementos individuales de los productos */
.product-item {
	list-style: none;
    background-color: #fff;  /* Fondo blanco */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);  /* Efecto de elevación al pasar el ratón */
}

.labelpop{
    margin: 5px 0px 5px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8D1E1F;
}

.inpprecio{
    width: 140px;
}

.selfiltro{
    width: 100%;
    border: 2px solid;
}

.titfiltro{
	width: 100%;
	margin: 0px;
	background-color: #ffffff;
	padding-bottom: 10px;
	border-bottom: 1px #ccc solid;
}

.btnfiltro{
    width: 100%;
    margin: 10px 0px 0px 0px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

.btnfiltro:hover{
    background-color: #fff;
    color: #000;
}

/* Estilo del título del producto */
.woocommerce-loop-product__title {
    text-transform: uppercase; /* Convertir a mayúsculas */
    font-size: 16px; /* Tamaño de fuente */
    font-weight: 600; /* Semi bold */
    text-align: center; /* Centrar texto */
}

/* Estilo del precio */
.woocommerce-Price-amount {
	display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px; /* Tamaño de fuente */
    font-weight: bold; /* Texto en negrita */
}

.filtros-title {
  font-size: 18px;        /* similar a un h3 chico */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: #111;
}

.titfiltro .filtros-title {
  flex: 1;
  text-align: center;
}

/* =========================
   Omega Swatches (pa_color)
   ========================= */
.omega-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.omega-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  background: var(--swatch-color, #999);
  cursor: pointer;
  padding: 0;
  outline: none;
}

.omega-swatch.is-selected {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}

.omega-swatch:hover {
  border-color: rgba(0,0,0,0.5);
}


/* ==================================================
   OMEGA FIX – 4 COLUMNAS SIEMPRE (DIVI + Woo)
   Aplica SOLO dentro del shortcode (#product-results)
   ================================================== */

#product-results.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Evita que los clearfix :before/:after ocupen una celda del grid */
#product-results.woocommerce ul.products::before,
#product-results.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

/* Reset completo de productos (Divi mete float/width) */
#product-results.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
}

/* Tablet */
@media (max-width: 768px) {
    #product-results.woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    #product-results.woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}
