*{
    margin: 0;
}

a {
    text-decoration: none;
    color: #000; /* Define uma cor personalizada */
    font-weight: bold; /* Exemplo: deixar o texto em negrito */
}
.nome-produto{
    background-color:#ddd;
    text-decoration: none; /* Remove o sublinhado */
    color: inherit;
    text-transform: capitalize;
}

/* Estilização para o header */
header {
    display: flex;
    align-items: center;
    background-color: yellow;
    color: white;
    padding: 0px 0px;
    height: 150px;
    
   
}
button{
    background-color :green;
}
#header{
    position:fixed;
    z-index: 1;
    width: 100%;
}

#icone-menu {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 9999;
    top:0;
    position: fixed;
    margin-left:10px;
}
#icone-carrinho {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

#icone-carrinho i {
    font-size: 30px; /* Tamanho do ícone */
}
#opcoes-loja{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
#opcoes-loja div{
    width: 25%;
    border:solid 1px black;
    background-color: #444;
    color:yellow;
    align-items: center;
    text-align: center;
}


/* Estilização para a imagem do logo */
#logo {
    margin-right: 20px; /* Espaço entre a imagem e o texto */
    width: 150px; /* Largura do logo */
    height: 100%; /* Altura para ocupar todo o header */
    overflow: hidden;
    margin-left:25px;
}
.h1 {
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    font-style: normal;
  }
  
#logo img {
    margin-top: 10px;
    width: 90%;
    height: 90%;
    object-fit: cover;
}

/* Estilização para o título */
#titulo {
    flex: 1;
    text-align: center; /* Mantendo a centralização do texto */
    font-style: oblique;
    font-size: 50px;
    align-items: center;
    font-weight: bolder;
    color: rgb(36, 36, 156); /* Cor do texto */
    text-shadow: 2px 2px 2px  white; /* Sombra branca com desfoque suave */
}

/* Estilização para o menu lateral */
#menu-lateral {
    width: 200px;
    background-color: #444;
    color: white;
    height: 100vh;
    position: fixed;
    top: 170px;
    left: -220px; /* Oculto inicialmente */
    padding: 12px;
    transition: left 0.5s ease-in-out; /* Transição suave */
}
#icone img{ 
    width: 50px;
    height: 50px;
}

#menu-lateral ul {
    list-style: none;
    padding: 0;
}

#menu-lateral ul li {
    margin: 20px 0;
    
    
}

#menu-lateral ul li a {
    color: white;
    text-decoration: none;
}

/* Estilização para o conteúdo principal */
main {
    
    margin-left: 0px;
    padding: 0px;
    padding-left:0;
}
#carrinho{
    margin-right: 10px;
}

#produtos {
    margin-top: 160px;
    display: grid;
    width:100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.produto {
    margin-top:20px;
    background-color: #f4f4f4;
    padding: 20px;
    margin:10px;
    max-width:19%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 250px;
}
footer {
    background-color: #333;  /* Cor de fundo do footer */
    color: white;            /* Cor do texto */
    text-align: center;      /* Centraliza o conteúdo */
    padding: 10px;           /* Espaçamento interno */
    position: relative;
    bottom: 0;
    width: calc(100%-20px);
    font-size: 16px;         /* Tamanho da fonte */
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Estilo para a barra de pesquisa */
.barra-pesquisa-container {
    margin-top: 20px; /* Espaçamento acima da barra */
    display: flex;
    justify-content: center; /* Centraliza a barra de pesquisa */
    align-items: center;
}

#barra-pesquisas {
    width: calc(100% - 100px); /* Largura da barra de pesquisa */
    padding: 3px; /* Espaçamento interno */
    border: 1px solid #ccc; /* Borda de 2px */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 16px; /* Tamanho da fonte */
    color: #333; /* Cor do texto */
    outline: none; /* Remove o contorno padrão ao clicar */
    transition: all 0.3s ease; /* Transição suave ao focar */
}

#barra-pesquisas::placeholder {
    color: #aaa; /* Cor do texto de placeholder */
}

#barra-pesquisas:focus {
    border-color: #007bff; /* Cor da borda ao focar */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Sombra ao focar */
}
/* Estilo para a scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Largura da scrollbar */
}

/* Estilo para a parte da "trilha" (track) da scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Cor do fundo da trilha */
    border-radius: 1px; /* Arredondamento da trilha */
}

/* Estilo para o "polegar" (thumb) da scrollbar */
::-webkit-scrollbar-thumb {
    background: #888; /* Cor do polegar */
    border-radius: 1px; /* Bordas arredondadas do polegar */
   
}

/* Estilo quando o polegar da scrollbar é focado ou passado o mouse sobre */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Cor do polegar quando o mouse passa por cima */
}
/* Estilo para a seção de formas de pagamento */
#formas-de-pagamento {
    padding: 20px;
   
    border-radius: 8px;
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

#formas-de-pagamento h2 {
    text-align: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Estilo para as bandeiras dos cartões */
.bandeiras-cartao {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.bandeira {
    width: 50px; /* Tamanho das bandeiras */
    height: 25px;
    border-radius: 5px;
    border:1px solid rgb(4, 4, 34);
    object-fit: contain; /* Garante que a imagem não seja distorcida */
}

/* Adiciona um efeito de hover, caso queira */
.bandeira:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Estilo geral da seção de FAQ */
#faq {
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#faq h2 {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Estilo para os itens de FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
}

/* Perguntas */
.faq-item .pergunta {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

/* Respostas */
.faq-item .resposta {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Responsividade */
@media (min-width: 768px) {
    .faq-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    #carrinho-modal {
        width:400px;
    }
    #carrinho .aberto{
        width:70%;
    }
}

/* Estilo geral da seção de suporte */
#suporte {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    text-align: center;
    
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#suporte h2 {
    color:white;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Container para os itens de suporte */
.suporte-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Permite quebra de linha em telas menores */
    gap: 20px;
}

/* Estilo para cada item de suporte */
.suporte-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    width: 200px; /* Largura fixa para manter consistência */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suporte-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Ícone */
.suporte-item i {
    font-size: 30px;
    color: #007bff;
    margin-bottom: 10px;
}

/* Título e subtítulo */
.suporte-item p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.suporte-item span {
    font-size: 14px;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .suporte-container {
        flex-direction: column;
        align-items: center;
    }
    #suporte {
        width: 90%;
    }

    .suporte-item {
        width: 100%; /* Para ocupar toda a largura disponível */
        width: 250px;
    }
}
/* Carrinho lateral */
#carrinho {
    position: fixed;
    top: 170px;
    right: -350px; /* Fora da tela inicialmente */
    width: 250px;
    height: 100%;
    background-color: #f4f4f4;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    pad00ding: 20px;
    margin-right: 0;
}

/* Carrinho visível */
#carrinho.aberto {
    right: 0;
    
}

/* Conteúdo do carrinho */
#carrinho h2 {
    margin-top: 0;
    font-size: 1.5em;
}

/* Fundo escuro ao clicar fora do carrinho */
#7fundo-escuro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
#fundo-escuro.visivel {
    display: block;
}
#ajuste-smartphones{
    width: 80%;
}
.produto img{
    display: flex;
}


/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    /* Reduzindo o tamanho do logo pela metade */
    #logo img {
        width: 70%; /* 50% do tamanho original */
        height: auto;
    }
    #ajuste-smartphones{
        display: flex;
        flex-direction: column;
       
    }

    #barra-pesquisas{
        width: 240px;
        margin-left: -50px;
    }
    header{
        height:120px;
    }

    /* Reduzindo o tamanho da fonte do título "Varejista Gomes" */
    #titulo {
       
        display: none;
    }

    /* Alterando a exibição das opções da loja para duas linhas */
    #opcoes-loja {
        flex-wrap: wrap; /* Permite quebra de linha */
        justify-content: space-around; /* Centraliza elementos */
       
    }

    #opcoes-loja div {
        width: 50%; /* Reduz o tamanho para caber em 2 linhas de 3 elementos */
        border: none;
        margin:1px;
        padding: 1px;
        
    }
    #menu-lateral{
        top: 165px;
    }
    #produtos {
        width:90%;
        display: grid; /* Define um layout grid */
        grid-template-columns: repeat(2, 1fr); /* Cria 2 colunas com larguras iguais */
        gap: 10px; /* Espaçamento entre os itens */
        padding: 0px; /* Espaçamento interno do contêiner */
       
        margin-top: 100px;

      }
      
      .produto {
        width: 98%;
        height:200px;
        background-color: red; /* Cor de fundo */
        border: 1px solid #ccc; /* Borda */
        border-radius: 5px; /* Arredonda as bordas */
        padding: 5px; /* Espaçamento interno */
        text-align: center; /* Centraliza o conteúdo */
        margin:5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra para destaque */
      }
   
}
.produtos-container {
    margin-top:130px;
    width :calc(100% - 20px);
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 produtos por linha */
    gap: 5px; /* Espaçamento entre produtos */
    justify-items: center;
    padding: 20px;
    background-color: #f8f8f8;
}
 #opcoes-loja .menus{
     text-transform:capitalize;
 }
#opcoes-loja .menus:hover{
    background-color:green;
    color:yellow;
    cursor:pointer;
}
.produto {
    width: 90%; /* O tamanho será ajustado pela grade */
    max-width: 180px; /* Tamanho máximo por produto */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;
    transition: transform 0.3s;
    height:300px;
    margin:5px;
    
}

.produto:hover {
    transform: translateY(-5px);
}

.imagem-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Proporção quadrada */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.imagem-container img {
    max-width: 100%;
    max-height: 90%;
     align-items: center;
    object-fit: contain; /* Redimensiona sem cortar */
}

.detalhes {
    padding: 10px;
}

.detalhes h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Texto longo será truncado */
}

.detalhes .preco {
    font-size: 14px;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: none; /* Remove o sublinhado */
    color: inherit;
    text-transform: capitalize;
}

.adicionar-carrinho {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.adicionar-carrinho:hover {
    background-color: #0056b3;
}

/* Responsividade */
@media (max-width: 1024px) {
    .produtos-container {
        grid-template-columns: repeat(4, 1fr); /* 4 produtos por linha */
    }
}

@media (max-width: 768px) {
    .produtos-container {
        grid-template-columns: repeat(2, 1fr); /* 2 produtos por linha */
    }
}

@media (max-width: 480px) {
    .produtos-container {
         grid-template-columns: repeat(2, 1fr); /* 3produtos por linha */
          background-color:#ddd;
    }
   
}
@media (max-width: 768px) {
    #opcoes-loja .menus{
        grid-template-columns: repeat(3, 1fr); /* 3produ*/
        max-width:30%;
        background-color:gray;
        display:flex;
        overflow:hidden;
        text-align:center;
        justify-content:center;
        text-transform: capitalize;
        border-radius:5px;
        color:black;
        font-style:bold;
    }
    .menus:hover{
        background-color:green;
        color:yellow;
        cursor:pointer;
    }
    #fundo-menus{
         background-color:black;
      
    }
    .produto{
        margin:5px;
        margin-left:2px;
        width:calc(100% - 20px);
    }
    .imagem-container{
        width:100%;
        margin-bottom:-10px;
    }
    main{
        margin-top:100px;
    }
    .main{
        margin-top:30px;
    }
.produtos-container {
    padding:2px;
    margin:0px;
    width:100%;
}
    #logo{
        margin-top:8%;
        min-width:100px;
        min-height:100px;
    }
    #barra-pesquisas {
        margin-left:-20px;
        margin-right:25px;
        width:100%;
    }
    .nome-produto{
        text-decoration: none; /* Remove o sublinhado */
    color: inherit;
    }
}


/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

#carrinho {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

#carrinho.aberto {
    transform: translateX(0);
}

#fundo-escuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fundo-escuro.visivel {
    visibility: visible;
    opacity: 1;
}

/* Cabeçalho do carrinho */
#carrinho h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#lista-itens {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estilos dos itens do carrinho */
.item-carrinho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.item-carrinho:nth-child(even) {
    background-color: #f1f1f1;
}

.item-carrinho:hover {
    background-color: #e9ecef;
}

.imagem-carrinho {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}

/* Preço e nome */
.item-carrinho span {
    flex: 1;
    font-size: 8px;
    color: #333;
}

.item-carrinho .remover-item {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.item-carrinho .remover-item:hover {
    background-color: #e60000;
}

/* Total */
.total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#valor-total {
    color: #28a745;
}

/* Botão de Checkout */
#checkout-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    margin-bottom:30px;
}

#checkout-btn:hover {
    background-color: #0056b3;
}
/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    padding: 0px;
}

h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
}

/* Container Principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 00px;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Estilos do Resumo do Carrinho */
#lista-carrinho {
    list-style-type: none;
    padding: 0;
}

#lista-carrinho li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

#total-valor {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

/* Estilos do Formulário de Pagamento */
#formulario-pagamento {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

#payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#card-element {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

#card-element:hover {
    border-color: #3498db;
}

button {
    padding: 15px;
    background-color: #3498db;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
}

#payment-status {
    font-size: 16px;
    color: #e74c3c;
    text-align: center;
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    #total-valor {
        font-size: 18px;
    }
    #carrinho .aberto {
        max-width:400px;
    }
}
*{
    margin:0;
    padding:0;
}
main{
    padding:0px;
    margin:0px;
    padding-top :50px;
}


  /* Estilo geral do carrinho */
  #carrinho {
    position: fixed;
    top: 0;
    right: -90%; /* Inicia fora da tela */
    height: 90%;
    width: 30%; /* Largura padrão para telas maiores */
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  /* Quando o carrinho está aberto */
  #carrinho.aberto {
    right: 0;
  }

  /* Estilo para dispositivos móveis */
  @media (max-width: 768px) {
    #carrinho {
      width: 50%; /* Reduz para 60% da largura da tela */
      margin-right: 0px;
    }
    header{
        margin-top :0px;
        padding-top:0;
    }
    
  
  .remover-item {
  
    font-size: 8px;
  }

    
  }

  /* Fundo escuro */
  #fundo-escuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
  }

  #fundo-escuro.visivel {
    visibility: visible;
    opacity: 1;
  }
 .menus a {
  text-decoration: none;
  color: inherit; /* herda a cor da div .menus */
  color:gold;
}

