/* ==============================
   Catálogo de Juegos
============================== */

.store-container {
    display: flex;
    gap: 30px;

    padding: 40px;

    align-items: flex-start;
}

/* ==============================
   Sidebar
============================== */

.sidebar {
    width: 280px;
    min-width: 280px;

    position: sticky;
    top: 90px;

    background: #ffffff;
    color: #000000;

    border-radius: 15px;

    padding: 20px;

    box-shadow: 0 6px 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.filter-group {
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    cursor: pointer;

    font-family: "Montserrat";
}

.checkbox input {
    cursor: pointer;
}

/* ==============================
   Área principal
============================== */

.main-content {
    flex: 1;
}

/* ==============================
   Barra superior
============================== */

.topbar {
    display: flex;
    gap: 15px;

    margin-bottom: 25px;
}

.topbar input,
.topbar select,
.sidebar input {
    padding: 12px;

    border: none;

    border-radius: 10px;

    font-family: "Montserrat";

    outline: none;
}

.topbar input {
    flex: 1;
}

.topbar select {
    min-width: 180px;
}

/* ==============================
   Grid de juegos
============================== */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(280px, 1fr)
        );

    gap: 25px;
}

/* ==============================
   Extensiones de card existente
============================== */

.game-card {
    color: #000000;
}

.game-card img {
    height: 200px;
    width: 200px;
    object-fit: cover;
}

.card-content {
    padding-top: 10px;
}

.card-content h3 {
    margin-bottom: 10px;
}

/* ==============================
   Categorías
============================== */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 12px;
}

.tags span {
    background: #787878;
    color: #ffffff;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-family: "Montserrat";
}

/* ==============================
   Datos
============================== */

.players {
    margin-top: 10px;

    font-size: 14px;

    font-family: "Montserrat";
}

.price {
    margin-top: 10px;

    font-size: 22px;

    font-family: "MontserratBold";
}

/* ==============================
   Sin resultados
============================== */

.empty {
    background: white;

    color: black;

    border-radius: 15px;

    padding: 40px;

    text-align: center;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 768px) {

    .store-container {
        flex-direction: column;

        padding: 20px;
        padding-top: 90px;
    }

    .sidebar {
        width: 100%;
        min-width: unset;

        position: static;
    }

    .topbar {
        flex-direction: column;
    }

    .topbar select {
        width: 100%;
    }

    .games-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );

        gap: 15px;
    }

    .game-card img {
        height: 180px;
    }

    .price {
        font-size: 18px;
    }

    .players {
        font-size: 12px;
    }
}




/* ==============================
   JUEGO INDIVIDUAL
============================== */

.game-detail{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(350px,1fr));

    gap:40px;

    width:100%;
    max-width:1200px;
}

.main-image{
    width:450px;
    height:450px;

    border-radius:15px;

    margin-bottom:15px;
}

.gallery{
    display:flex;
    justify-content: space-between;

    gap:10px;
    max-width: 450px;
    padding-left: 30px;
    padding-right: 30px;
}

.gallery-image{
    width:100px;

    height:100px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    transition:.25s;
}

.gallery-image:hover{
    transform:scale(1.05);
}

.game-info{
    font-family: 'Montserrat';
}

.game-info p{
    text-align: left;
}