/* --- TIENDA MIXCOCO: ESTRUCTURA, FILTROS Y TARJETAS --- */

.mx-tienda-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
    font-family: 'Jost', sans-serif;
}

/* Filtros Modernos (Pills) */
.mx-filtros-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.mx-filtro-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mx-filtro-btn:hover,
.mx-filtro-btn.activo {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Cuadrícula (Grid) */
.mx-grid-productos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .mx-grid-productos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
    .mx-grid-productos { grid-template-columns: repeat(4, 1fr); }
}

/* Tarjeta Individual */
.mx-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.mx-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.mx-card-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9fafb;
}

.mx-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mx-card:hover .mx-card-image-wrapper img {
    transform: scale(1.05);
}

.mx-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.mx-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mx-card-category {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.mx-card-category a { color: inherit; text-decoration: none; }

.mx-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mx-card-title a { color: inherit; text-decoration: none; transition: color 0.3s; }
.mx-card-title a:hover { color: #ec4899; }

.mx-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mx-card-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.mx-card-price del {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-right: 5px;
    font-weight: normal;
}

/* Rediseño del botón de WooCommerce nativo */
.mx-card-add-to-cart .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #111827;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #111827;
}

.mx-card-add-to-cart .button:hover {
    background-color: #111827;
    color: #ffffff;
}

/* Ocultar productos al filtrar */
.mx-oculto {
    display: none !important;
}