/* -------------------------------------
   LAYOUT GENERAL
-------------------------------------- */

body {
    background: var(--primary-dark);
    color: var(--text-light);
    font-family: "Comfortaa", sans-serif;
}

/* Layout principal: filtros + productos */
.tienda-layout {
    width: 95%;
    max-width: 1400px;
    margin: 120px auto 80px auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* -------------------------------------
   FILTROS LATERALES
-------------------------------------- */

.filtros-panel {
    background: rgba(2,33,26,0.75);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 25px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    height: fit-content;
}

.filtros-panel h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--accent);
}

.filtro-grupo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.filtro-grupo label {
    margin-bottom: 6px;
    font-size: 1rem;
    opacity: 0.9;
}

.filtro-grupo input,
.filtro-grupo select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: white;
}

/* Botón limpiar */
.btn-limpiar {
    width: 100%;
    background: var(--accent);
    border: none;
    color: black;
    padding: 10px;
    border-radius: 30px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-limpiar:hover {
    transform: scale(1.05);
}

/* Mobile: botón filtros */
.btn-filtros-mobile {
    display: none;
    padding: 12px;
    border-radius: 10px;
    background: var(--accent);
    color: black;
    margin-bottom: 20px;
}

@media (max-width: 900px) {

    .tienda-layout {
        grid-template-columns: 1fr;
    }

    .filtros-panel {
        display: none;
    }

    .btn-filtros-mobile {
        display: block;
    }

    .filtros-panel.mobile-open {
        display: block;
        margin-bottom: 20px;
    }
}

/* -------------------------------------
   GRID DE PRODUCTOS
-------------------------------------- */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

@media(max-width: 900px){
    .productos-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width: 600px){
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------
   TARJETA DE PRODUCTO
-------------------------------------- */

.producto-card {
    background: rgba(2,33,26,0.7);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.producto-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.producto-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.15));
    transition: 0.3s ease;
}

.producto-card:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 30px rgba(212,175,55,0.45));
}

/* Título y precio */
.producto-card h3 {
    font-size: 1.1rem;
    margin: 12px 0 4px 0;
}

.producto-card p {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Botones */
.btn-card {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 30px;
    background: var(--accent);
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-card:hover {
    transform: scale(1.05);
}
