/* 1.CONFIGURAÇÕES GERAIS */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Evita a barra de rolagem lateral */
}

/* 2. CABEÇALHO (Logo, Busca e Login) */
header {
    width: 100%;
    background-color: black;
    z-index: 10;
}

.nav-principal {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.linha-topo {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    background-color: #000;
}

#logomarca {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#logomarca h1 {
    color: #FF007F;
    font-family: 'Lucida handwriting', cursive;
    font-size: 50px;
    margin: 0;
}

#logomarca h2 {
    color: #FF007F;
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.acoes-usuario {
    display: flex;
    align-items: center;
    gap: 15px;
}

#pesquisa {
    display: flex;
}

#busca {
    height: 35px;
    padding: 5px 10px;
}
#menu {
    background-color: black;
    border-color: #FF007F;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 25px;
}

#menu a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

#meuCarrossel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-inner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.product {
    text-align: center;
    width: 250px;
}

.product p {
    color: #FF007F !important;
    font-weight: bold;
    font-size: 18px;
}

#pesquisa {
    display: flex;
    border: 1px solid #FF007F;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
}

#busca {
    border: 1px solid #FF007F;
    padding: 10px;
    width: 250px;
    outline: none;
    height: 35px;
}

#btnIr {
    background-color: black !important;
    color: #FF007F !important;
    border: 1px solid #FF007F;
    padding: 0 15px;
    height: 35px;
    cursor: pointer;
    font-weight: bold;
}

#btnLogin {
    background-color: white;
    color: #FF007F !important;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #FF007F;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}
btnIr:hover, #btnLogin:hover {
    background-color: #FF007F !important;
    color: #000000 !important;
    font-weight: bold;
}
/* 3. MENU*/
#menu {
    border-top: 2px solid #FF007F;
    border-bottom: 2px solid #FF007F;
    margin-top: 10px;
    padding: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

#menu a:hover {
    color: #FF007F;
}

/* 4. CARROSSEL (CORREÇÃO DO TAMANHO) */
#meuCarrossel {
    width: 100% !important;
    align-self: stretch; /* Obriga o carrossel a esticar até as bordas */
    margin: 0;
    padding: 0;
}

.carousel-inner {
    width: 100%;
}

.carousel-inner .item img {
    width: 100%; /*Ocupa toda a largura do container pai*/
    height: 500px;  /* Mantém a altura*/
    object-fit: cover; /* Corta a imagem sem distorcer para preencher o espaço */
}

/* evitar  que o Bootstrap sobrescreva as configurações desejadas*/
#meuCarrossel .carousel-inner .item img {
    width: 100% !important;
    height: 500px !important; /* Define a altura fixa */
    object-fit: cover !important; /* Aqui garantimos que não haja distorção */
    object-position: center; /* Centraliza a parte da imagem que será exibida */
}

h3 {
    color: #FF007F;
    font-size: 28px;
    margin: 40px 0 20px 0;
    text-align: center;
}

/* 1. Garante que todos os cards na mesma linha tenham a mesma altura */
#product-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Isso faz as caixinhas ficarem iguais */
}

/* 2. Ajuste na classe .product que já tem */
.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empurra o botão para o rodapé do card */
    width: 260px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 20px;
    width: 100%;
    align-items: stretch; /* Adicionado para igualar a altura dos cards */
}

.product {
    width: 260px;
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    background-color: #1a1a1a;
    border-radius: 8px;
    /* Mantendo suas cores e adicionando o alinhamento flex */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.product img {
    width: 100%;
    height: 180px;         /* Espaço fixo para a imagem não empurrar o botão */
    object-fit: contain;    /* Mantém a proporção da foto sem cortar */
    border-radius: 5px;
    background-color: #000; 
    margin-bottom: 10px;
}

.product p {
    color: #FF007F !important; /* Seu rosa original */
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.product button {
    background-color: #FF007F; /* Seu rosa original */
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    width: auto !important; /* Para o botão não ficar gigante */
    align-self: center;     /* Centraliza o botão */
    font-weight: bold;
    margin-top: auto;       /* A "mola" que alinha todos os botões no rodapé */
}
#rodape {
    color: #FFF;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid #FF007F; /* Linha rosa para combinar com o menu */
    width: 100%;
    text-align: center;
    font-size: 14px;
}
/* 7. RESPONSIVIDADE */
@media (max-width: 768px) {
    .linha-topo {
        flex-direction: column;
        gap: 20px;
    }
    .acoes-usuario {
        flex-direction: column;
        width: 100%;
    }
    #busca {
        width: 100%;
    }
    .carousel-inner .item img {
        height: 300px; /* Menor no celular para ficar proporcional */
    }
}

