*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#000;
    color:#fff;
}

.container{
    display:flex;
    gap:30px;
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* Sidebar */

.sidebar{
    width:250px;
}

.filter-group{
    margin-bottom:30px;
}

.filter-group h3{
    color:#d8a248;
    margin-bottom:10px;
    font-size:14px;
    text-transform:uppercase;
}

.filter-group label{
    display:block;
    margin:8px 0;
    font-size:13px;
}

.filter-group input{
    margin-right:6px;
}

.btn-filter{
    width:100%;
    padding:12px;
    background:#111;
    border:1px solid #333;
    color:white;
    cursor:pointer;
    font-weight:bold;
}

.btn-filter:hover{
    background:#d8a248;
    color:#000;
}

/* Conteúdo */

.content{
    flex:1;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.topbar h1{
    color:#f4a62a;
    font-size:28px;
}

.sort{
    display:flex;
    gap:10px;
    align-items:center;
}

.sort label{
    color:#f4a62a;
}

.sort select{
    padding:8px;
}

/* Grid */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

/* Card */

.card{
    background:#fff;
    color:#222;
    border-radius:4px;
    overflow:hidden;
}

.card img{
    width:100%;
    height:310px;
    object-fit:cover;
}

.badges{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:8px;
}

.badge{
    background:#222;
    color:white;
    padding:3px 10px;
    border-radius:20px;
    font-size:11px;
}

.card-body{
    padding:15px;
    text-align:center;
}

.card-title{
    font-size:14px;
    min-height:45px;
    color:#b97a2e;
}

.rating{
    color:#d8a248;
    margin:10px 0;
}

.price{
    font-weight:bold;
    color:#d58d26;
    margin-bottom:10px;
}

.btn{
    color:#d58d26;
    text-decoration:none;
    font-size:13px;
}

.btn:hover{
    text-decoration:underline;
}




/* ==========================
   TABLET
========================== */

@media (max-width: 1024px){

    .container{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        background:#111;
        padding:20px;
        border-radius:8px;
    }

    .topbar{
        flex-wrap:wrap;
        gap:15px;
    }

    .topbar h1{
        font-size:28px;
    }

    .products{
        grid-template-columns:repeat(2,1fr);
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px){

    .container{
        padding:15px;
        gap:20px;
    }

    .sidebar{
        width:100%;
        padding:15px;
    }

    .filter-group{
        margin-bottom:20px;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .topbar h1{
        font-size:22px;
        line-height:1.3;
    }

    .sort{
        width:100%;
        justify-content:space-between;
    }

    .sort select{
        width:180px;
    }

    .products{
        grid-template-columns:1fr;
        gap:15px;
    }

    .card{
        width:100%;
    }

    .card img{
        height:330px;
    }

    .card-title{
        font-size:15px;
        min-height:auto;
    }

    .price{
        font-size:18px;
    }

    .btn{
        display:inline-block;
        margin-top:5px;
    }
}

/* ==========================
   CELULARES PEQUENOS
========================== */

@media (max-width: 480px){

    .topbar h1{
        font-size:20px;
    }

    .sort{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .sort select{
        width:100%;
    }

    .card img{
        height:220px;
    }

    .card-body{
        padding:12px;
    }
}