@media (min-width: 1024px) {

  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .home-container {
    flex-direction: row;
    text-align: left;
  }

}

/* ================= LOJA ================= */

.loja {
    padding: 60px 8%;
    text-align: center;
}

/* texto */
.loja-descricao {
    max-width: 600px;
    margin: 0 auto 50px;
    color: #000;
    line-height: 1.6;
}

/* GRID */
.joias-grid {
    max-width: 1100px;
    margin: 0 auto 80px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

/* CARD */
.joia-card {
    background: #000;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* IMAGEM PRODUTO */
.joia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* TEXTO */
.joia-card h3 {
    color: #fff;
    margin-bottom: 5px;
}

.joia-card span {
    color: #dfc15e;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* BOTÃO */
.joia-card button {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;

    background: #8b8b8b;
    color: #fff;
}

/* ================= CARRINHO ================= */

.carrinho {
    max-width: 420px;
    margin: 0 auto;
    background: #000;
    padding: 25px;
    border-radius: 20px;
}

.carrinho h3 {
    color: #fff;
    margin-bottom: 20px;
}

.item-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1a1a1a;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.item-carrinho span {
    color: #dfc15e;
}

.btn-remover {
    background: none;
    border: none;
    color: red;
    font-size: 1.2rem;
    cursor: pointer;
}

/* TOTAL */
.carrinho-total {
    margin: 20px 0;
    color: #fff;
    font-size: 1.1rem;
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .joia-card img {
        height: 160px;
    }
}

/* ================= BOTÃO VOLTAR ================= */

.btn-voltar {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 999;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #dfc15e;

    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;

    box-shadow: 0 8px 20px rgba(0,0,0,0.45);

    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn-voltar:hover {
    transform: translateY(-3px) scale(1.05);
    background: #111;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* MOBILE */
@media (max-width: 600px) {
    .btn-voltar {
        top: 15px;
        left: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

.btn-voltar i {
    font-size: 18px;
    color: #dfc15e;
    transition: transform 0.3s ease;
}

.btn-voltar:hover i {
    transform: translateX(-3px);
}

/* ================= AJUSTES MOBILE LOJA ================= */
@media (max-width: 900px) {
    .joias-grid {
        gap: 20px; /* menor espaçamento entre cards */
        padding: 0 10px;
    }

    .joia-card {
        padding: 12px;
    }

    .joia-card h3 {
        font-size: 1rem;
    }

    .joia-card span {
        font-size: 1rem;
    }

    .joia-card button {
        padding: 10px;
        font-size: 0.95rem;
    }

    .carrinho {
        width: 90%;
        padding: 20px;
    }

    .carrinho h3 {
        font-size: 1.2rem;
    }

    .carrinho-total {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .joias-grid {
        grid-template-columns: 1fr; /* apenas um card por linha */
        gap: 15px;
    }

    .joia-card img {
        height: 150px; /* altura menor para mobile */
    }

    .btn-voltar {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }

    .btn-voltar i {
        font-size: 16px;
    }
}

/* ================= MOBILE LOJA ================= */
@media (max-width: 768px) {

    /* Ajusta padding geral da loja */
    .loja {
        padding: 40px 5%;
    }

    /* Texto da loja */
    .loja-descricao {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    /* GRID de produtos - de 2 colunas para 1 coluna */
    .joias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cartões dos produtos */
    .joia-card {
        padding: 15px;
    }

    .joia-card img {
        height: 180px; /* altura proporcional */
        margin-bottom: 12px;
    }

    .joia-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .joia-card span {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .joia-card button {
        font-size: 0.95rem;
        padding: 10px;
    }

    /* Carrinho */
    .carrinho {
        max-width: 95%;
        padding: 20px;
        margin-top: 30px;
    }

    .carrinho h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .item-carrinho {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 10px;
    }

    .item-carrinho span {
        font-size: 0.95rem;
    }

    .btn-remover {
        align-self: flex-end;
        font-size: 1rem;
    }

    .carrinho-total {
        font-size: 1rem;
    }

    .btn-whatsapp {
        font-size: 1rem;
        padding: 12px;
    }

    /* Botão voltar */
    .btn-voltar {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .btn-voltar i {
        font-size: 16px;
    }
}

.produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

