:root {
    --fonte: "Montserrat", sans-serif;
    --fonte2:  "Open Sans", Arial, Helvetica, sans-serif;
                --cor-primaria: #111111;
            --cor-texto-principal: #FFFFFF;
            --cor-texto-secundario: #a0a0a0;
            --fonte-display: "Montserrat", sans-serif;
            --fonte-corpo: "Open Sans", sans-serif;
}
*{
    margin: 0px;
    padding:0px;
    box-sizing: border-box;
    font-size: 16px;
}
header {
    position: sticky;
    height: 100px;
    width:100%;
    background: #111;
    top:0;
    left:0;
    z-index: 2;
    text-align: center;
    overflow: hidden;
}
header img {
    height: 90%;
}

main {
    padding: 50px 0;
    min-height: 100vh;
    width :100%;
    display: flex;
    justify-content: center;
    background: #fff; 
    background-size: cover;
    
}
.centro {
    height: auto; /* Garante que a altura seja baseada no conteúdo */
    padding: 20px;
    background-color: #ffffff;
    width: 85%;
    display: grid;
    gap: 20px;
    grid-template-columns: 3fr 1.3fr;
    grid-template-areas: 
    "titulo cart"
    "menu cart"; /* Simplificamos as áreas */
    
    /* Mude a definição das linhas para isto: */
    grid-template-rows: auto 1fr; 
}
.bloco {
    background: #fff;
    text-align: center;
    position: relative;
    

    font-family:  var(--fonte2);
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px; 
    overflow: hidden;
    

    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    
    padding: 10px; 
    padding-bottom: 20px; 
    
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.bloco:hover {
    transform: scale(1.13);
}
.bloco img {
    width:100%;
    border-radius: 6px;

}

.comprar {
    margin: 10px;
    margin-top: 10px;
    font-size: 0.7rem;
    height: 15%;
    width: 90%;
    background: #111;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: background 0.3s;
    padding: 10px;
}

.comprar:hover {
    background: #555;
}
.quantidade {
    padding: 10px;
    margin-top: 10px;
    font-size: 0.7rem;
    width: 90%;
    height: 40px;
    background: #111;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    transition: background 0.3s;
}

h2 {
    grid-area: titulo;
    font-size: 2rem;
    font-family:  var(--fonte2);
    color:#111;
    text-shadow: 0px 0px black;
    margin: 10px;
    letter-spacing: 5px;
}
h2 i {
    font-size: 3rem;
    margin: 4px;
}

.menu {
    grid-area: menu;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4%;
}

.mm {
    color: #111;
    border-radius: 50%;
    border: 1px solid white;
    display: flex;
    height: 25px;
    width: 25px;
    background: #fafafa;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}
.cart {
    padding: 20px 10px;
    grid-area: cart;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(43, 36, 36, 0.3);
    background: #F0EEEB;

    border-radius: 10px;
    gap: 15px;
}
.cart h2 {
    font-size: 1.6rem;
    text-align: center;
}

.aComprar {
    overflow: auto;
    height: 300px;
    width: 90%;
    background-color: white;
    border-radius: 6px;
    padding: 10px;
}
.cep {
    width: 90%;
    font-family: var(--fonte2);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cep input {
    width: 100%;
    height: 35px;
    padding: 5px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.frete {
    font-size: 0.9rem;
    margin-top: 8px;
    background-color: #f7f7f7;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    display: none;
    color: #333;
}

.divCupom {
    display: flex;       /* Alinha os itens lado a lado */
    width: 90%;
    height: 38px;        /* Altura definida no container para garantir alinhamento */
    margin: 20px 0 50px;
}

/* Regra específica para o input DENTRO do .divCupom */
.divCupom .cupom {
    flex: 1;             /* Faz o input ocupar todo o espaço restante */
    width: auto;         /* Deixa o flexbox controlar a largura */
    height: 100%;        /* Ocupa 100% da altura do pai (.divCupom) */
    padding: 5px 10px;
    margin: 0;           /* Remove qualquer margem que possa quebrar o layout */
    border-radius: 5px 0 0 5px; /* Bordas arredondadas só na esquerda */
    border: 1px solid #ccc;
    background-color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    outline: none;
}

.divCupom .cupom::placeholder {
    font-weight: bold;
    color: #999;
    font-size: 0.8rem;
}

/* O botão lupa que fica ao lado */
.botaoLupa {
    width: 50px;         /* Uma largura fixa é mais robusta que porcentagem aqui */
    height: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #111;
    color: white;
    border-radius: 0 5px 5px 0; /* Bordas arredondadas só na direita */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.botaoLupa:hover {
    background-color: #5e005e;
}


.preco {
    font-family:  var(--fonte2);
    font-size: 1rem;
    color: #2c221e; 
    margin: 7px 0px;
}

.cupom {
    width: 90%;
    height: 35px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.valor {
    font-family: var(--fonte2);
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c221e;
    text-align: center;
    margin-top: 10px;
}

.valor span#total {
    font-size: 1.4rem;
    color: black;
    text-shadow: 1px 1px 0px #ccc;
}
.confirmar {
    width: 90%;
    height: 45px;
    background-color: #111;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.confirmar:hover {
    background-color: rgb(31, 29, 29);
}
.verificarLocal {
    margin: 20px;
    padding: 10px 20px;
    font-family: 'Arial', Helvetica, sans-serif;
    width: 100%;
    max-width: 200px;
    background-color: #111; /* verde */
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}


.verificarLocal:hover {
    background-color: #45a049; 
}

.verificarLocal:active {
    background-color: #3e8e41; 
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

.verificarLocal:focus {
    box-shadow: 0 0 0 3px #a5d6a7;
}

        /* Estilos do novo rodapé */
        .footer-streetwear {
            background-color: var(--cor-primaria);
            color: var(--cor-texto-secundario);
            font-family: var(--fonte-corpo);
            padding: 40px 20px;
            text-align: center;
            margin-top: 60px; /* Espaçamento do conteúdo acima */
            border-top: 1px solid #333;
        }

        .footer-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .footer-brand {
            font-family: var(--fonte-display);
            font-size: 1.5rem;
            font-weight: 900;
            color: var(--cor-texto-principal);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin: 0 0 10px 0;
        }

        .footer-tagline {
            font-size: 0.9rem;
            margin: 0 0 25px 0;
        }

        .social-links {
            margin-bottom: 25px;
        }

        .social-icon {
            color: var(--cor-texto-secundario);
            font-size: 1.8rem; /* Tamanho do ícone */
            margin: 0 15px;
            text-decoration: none;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .social-icon:hover {
            color: var(--cor-texto-principal);
            transform: translateY(-3px);
        }

        .footer-copyright {
            font-size: 0.8rem;
            border-top: 1px solid #333;
            padding-top: 20px;
            margin-top: 20px;
        }

.almost {
    height: 25%;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 1px 5px 1px rgba(128, 128, 128, 0.616);
    margin: 10px 2px;
    font-family: var(--fonte);
}
.almost img {
    height: 95%;
}
.remover {
    width:23px;
    height:23px;
    border-radius: 50%;
    background: rgba(243, 8, 8, 0.938);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2%;
    cursor: pointer;
    box-shadow: 0px 0px 2px 2px pink;

}
.remover i {
    font-size: 0.7rem;
}
.preco {
    font-weight: bold;
}
.showCupom {
  max-width: 400px;
  background: #45a049;
  box-shadow: 0 0 8px 2px rgba(0, 128, 0, 0.4);
  border-radius: 10px;
  padding: 15px 20px;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  margin: 20px auto;
  display: none;
  align-items: center;
  gap: 15px;
}
.showCupom * {
    margin: 4px;
}
.mensagem-cupom {
  display: flex;
  align-items: center;
}

.award {
  width: 40px;
  height: auto;
}

.textoCupom {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fff;
}

.textoCupom span {
  font-weight: bold;
  letter-spacing: 1px;
  background-color: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
} 
/* Estilos para o botão "Mostrar Mais" */
.container-mostrar-mais {
    grid-area: menu; /* Coloca o botão na mesma área de grid do menu */
    text-align: center;
    padding: 20px 0;
}

.btn-mostrar-mais {
    background-color: #111;
    color: #fff;
    font-family: var(--fonte);
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-mostrar-mais:hover {
    background-color: #555;
    transform: translateY(-3px);
}


/* =================================================================== */
/* =================== CÓDIGO RESPONSIVO COMPLETO ==================== */
/* =================================================================== */


/* ==================================================== */
/* 1. AJUSTE PARA TELAS MÉDIAS (EX: TABLETS EM PÉ)      */
/* Breakpoint em 1024px                             */
/* ==================================================== */
@media (max-width: 1024px) {
    
    /* A MUDANÇA-CHAVE: Passamos o grid de produtos de 3 para 2 colunas.
       Isso dá mais ar para cada bloco e impede que o botão quebre o layout. */
    .menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px; /* Um pouco mais de espaço entre os blocos */
    }

    /* Ajustamos o container principal para ele não ficar tão largo */
    .centro {
        width: 90%;
        /* Mantém as 2 colunas principais (menu | carrinho) */
        grid-template-columns: 2.5fr 1.5fr; 
    }

    /* Damos um pouco mais de espaço para o texto dentro do botão */
    .comprar, .quantidade {
       padding: 12px 8px; /* Mais preenchimento vertical, menos horizontal */
       font-size: 0.75rem; /* Ajuste fino no tamanho da fonte */
       height: auto; /* Altura automática para caso o texto precise quebrar */
       min-height: 40px; /* Garante uma altura mínima para o toque */
    }
}


/* ==================================================== */
/* 2. AJUSTE PARA TELAS PEQUENAS (CELULARES)            */
/* Breakpoint em 768px                              */
/* ==================================================== */
@media (max-width: 768px) {

    /* --- Ajustes Gerais --- */
    main {
        padding: 20px 0;
    }

    /* --- Layout Principal --- */
    .centro {
        width: 95%; 
        grid-template-columns: 1fr; /* Muda para uma única coluna */
        grid-template-areas:
            "titulo" 
            "menu"   
            "cart";  /* Carrinho vai para baixo dos produtos */
        grid-template-rows: auto auto auto;
        gap: 40px; 
    }

    /* --- Títulos --- */
    h2 {
        font-size: 1.8rem;
        text-align: center;
        letter-spacing: 3px;
    }

    h2 i {
        font-size: 2.5rem;
    }

    /* --- Grid de Produtos --- */
    .menu {
        /* Agora a grade de produtos também vira uma coluna única,
           dando foco total a cada item. */
        grid-template-columns: 1fr;
        gap: 30px; 
    }

    /* Remove o efeito de zoom ao tocar */
    .bloco:hover {
        transform: none;
    }

    /* --- Itens no carrinho --- */
    .almost {
        height: 80px;
    }
    
    .footer-container {
        width: 90%;
    }
}