/* ===== PADRÃO HOME - DIMAIS CARDANS ===== */

body{
    background: #f4f6fa;
}

/* TÍTULO DA LOJA */
.dc-topo h1{
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

/* ÁREA DE LOGIN */
.dc-login{
    display: flex;
    gap: 15px;
}

.dc-login a{
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

/* VITRINE */
.dc-vitrine{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* PRODUTO */
.dc-produto{
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dc-produto h3{
    margin-bottom: 10px;
    font-size: 18px;
    color: #000;
}

.dc-preco{
    font-size: 20px;
    font-weight: bold;
    color: #c00;
}

.dc-btn{
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #c00;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

/* IMAGEM PRODUTO */
.produto-img{
    width: 100%;
    height: 280px;
    object-fit: contain;
}

/* CARRINHO */
.dc-carrinho{
    margin-top: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dc-carrinho h2{
    margin-bottom: 20px;
}

.dc-carrinho table{
    width: 100%;
    border-collapse: collapse;
}

.dc-carrinho th{
    background: #000;
    color: #fff;
    padding: 10px;
}

.dc-carrinho td{
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.dc-total{
    margin-top: 20px;
    font-size: 20px;
    text-align: right;
}

.dc-checkout{
    margin-top: 20px;
    text-align: right;
}

.dc-checkout a{
    background: green;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
}

/* ===== MARCAS COM LOGO - HOME ===== */

.dc-marcas{
    margin: 40px 0;
}

.dc-marcas h2{
    margin-bottom: 20px;
    font-size: 22px;
    color: #111;
    text-align: center;
}

.marcas-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.marca-card{
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.marca-card:hover{
    background: #f2f2f2;
}

.marca-card img{
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* ===== CARROSSEL DE MARCAS ===== */

.marcas-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
}

.marcas-carousel{
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.marca-card{
    min-width: 160px;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin-right: 15px;
}

.marca-btn{
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
}

/* ===== CENTRALIZAÇÃO DOS TÍTULOS ===== */

.dc-topo{
    text-align: center;
    display: block;
}

.dc-topo h1{
    width: 100%;
    text-align: center;
}

/* =========================
   MOBILE / RESPONSIVO
   ========================= */

@media (max-width: 900px){

    /* VITRINE: 2 colunas */
    .dc-vitrine{
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 14px;
    }

    .dc-produto{
        padding: 16px;
        height: auto;
    }

    .produto-img{
        height: 200px;
    }

    .dc-topo h1{
        font-size: 22px;
    }

    /* CARRINHO */
    .dc-carrinho{
        padding: 16px;
        margin-top: 30px;
    }

    .dc-carrinho table{
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .dc-total,
    .dc-checkout{
        text-align: center;
    }

    /* CARROSSEL */
    .marca-card{
        min-width: 140px;
        padding: 12px;
        margin-right: 10px;
    }

    .marca-btn{
        padding: 10px 12px;
        font-size: 16px;
    }
}

@media (max-width: 520px){

    /* VITRINE: 1 coluna */
    .dc-vitrine{
        grid-template-columns: 1fr;
    }

    .produto-img{
        height: 220px;
    }

    /* BOTÕES */
    .dc-btn{
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .dc-checkout a{
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
}
