* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
}

/* HEADER (sem logo, mais clean) */
#head {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

/* LAYOUT PRINCIPAL */
#principal {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
html{
    scroll-behavior: smooth;
}
/* FILTRO + BOTÃO */
#search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#search_input{
    padding: 5px;
    border-radius: 4px;
    border: none;
    box-shadow: 1px 5px 5px rgba(0, 0, 0, 0.257);
}
/* SELECT */
#categorias {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #1e293b;
    color: white;
}

/* BOTÃO CARRINHO */
#cart{
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}
#cart button {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background: #38bdf8;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
#cart button i{
    font-size: 20px;
}
#cart button:hover {
    background: #0e96d5;
}

/* GRID DE PRODUTOS */
#products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* CARD */
.card {
    background: #1e293b;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: translateY(-5px);
}

/* IMG */
.card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

/* TÍTULO */
.card h2 {
    font-size: 1rem;
}

/* INFO CARD */
.info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BOTÃO ADD */
.info-card button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #22c55e;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.info-card button:hover {
    background: #16a34a;
}

/* PREÇO */
.info-card p {
    font-weight: bold;
}

/* CARRINHO */
#carrinho {
        max-width: 500px;
        height: auto;
        position: relative;
        border-left: none;
        margin-top: 20px;
        padding: 10px;
    }
#carrinho h1{
    align-self: flex-start;
}
#carrinho img{
    width: 100%;
    height: 180px;
    object-fit: contain;
}

/* ITENS DO CARRINHO */
#List_cart div {
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    width: 250px;
}
#List_cart div div{
    width: 230px;
}
#List_cart{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* BOTÃO REMOVER */
#List_cart button {
    margin-top: 5px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background: #ef4444;
    color: white;
    cursor: pointer;
}

/* TOTAL */
#finalizar {
    margin-top: 20px;
    border-top: 1px solid #1e293b;
    padding-top: 10px;
}
#finalizar_button{
    padding: 10px;
    background-color: #0ea5e9;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition-duration: 0.3s;
    margin-top: 10px;
}
#finalizar_button:hover{
    transform: translateY(-2px);
    background-color: #19294d;
    color: white;
}
#tot {
    font-weight: bold;
    margin-bottom: 10px;
}

/* RESPONSIVO */
@media screen and (min-width: 768px) {
    body{
        display: grid;
        grid-template-rows: 100px auto;
        grid-template-columns: 0.5fr 5fr 3fr 0.5fr;
        gap: 10px;
    }

    #head {
        grid-row: 1/2;
        grid-column: 1/-1;
    }

    #principal{
        grid-row: 2/3;
        grid-column: 2/3;
        width: 100%;
        border-radius: 8px;
        margin-top: 20px;
    }
    #carrinho{
        grid-row: 2/3;
        grid-column: 3/4;
        width: 100%;
        border-radius: 8px;
    }
    #cart button{
        display: none;
    }
}
.cont_info{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.price_cart{
    font-weight: bold;
    color: green;
}
.strong{
    font-weight: bold;
}