/* ========================================
   TIENDA - BANNER
======================================== */
.tienda-banner {
    background: #f9f9f9;
    text-align: center;
    padding: 48px 20px 32px;
}
.tienda-banner h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}
.tienda-banner p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.tienda-banner .woocommerce-result-count {
    margin: 0;
}

/* ========================================
   TIENDA - LAYOUT
======================================== */
.tienda-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   SIDEBAR FILTROS
======================================== */
.tienda-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}
.filtro-grupo {
    margin-bottom: 28px;
}
.filtro-grupo h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}
.filtro-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filtro-lista li { margin-bottom: 6px; }
.filtro-lista a {
    text-decoration: none;
    font-size: 13px;
    color: #555;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.filtro-lista a:hover { color: #000; }
.filtro-lista a.activo {
    color: #000;
    font-weight: 600;
}
.filtro-lista a span {
    color: #999;
    font-size: 12px;
}
.filtros-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
}

/* ========================================
   TOOLBAR
======================================== */
.tienda-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
}
.tienda-toolbar .woocommerce-ordering select {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.filtros-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
}

/* ========================================
   GRILLA DE PRODUCTOS
======================================== */
.tienda-productos .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}
.tienda-productos .products li.product {
    margin: 0 !important;
    padding: 12px !important;
    width: 100% !important;
    float: none !important;
}

/* PAGINACIÓN */
.woocommerce nav.woocommerce-pagination {
    margin-top: 32px;
    text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 4px;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #000;
    color: #fff;
}

/* ========================================
   RESPONSIVE TIENDA
======================================== */
@media (max-width: 768px) {
    .tienda-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sidebar como panel lateral mobile */
    .tienda-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 3000;
        padding: 24px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    }
    .tienda-sidebar.open {
        left: 0;
    }
    .filtros-close { display: block; }
    .filtros-toggle { display: inline-flex; }

    .tienda-productos .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .tienda-productos .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
