/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Cabeçalho aprimorado */
.header {
    background-color: #fff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    white-space: nowrap;
}

/* Search Container unificado */
.search-container {
    position: relative;
    display: flex;
    max-width: 500px;
    height: 42px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    align-items: center;
}

/* Search Bar unificada */
.search-bar {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 1em;
    outline: none;
    background-color: white;
    color: #333;
    height: 100%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Search Button unificado */
.search-button {
    background-color: white;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    height: 100%;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-button:hover {
    background-color: #f0f0f0;
}

.search-button img {
    height: 18px;
    width: 18px;
}

/* User Icon */
.user-icon {
    display: flex;
    gap: 12px;
}

.user-icon img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.user-icon img:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Subheader e Navegação */
.subheader {
    background-color: #083317;
    padding: 12px 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 1em;
    font-weight: 500;
    flex-wrap: wrap;
}

.subnav label {
    color: #333;
    font-weight: bold;
}

.subnav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Produtos Select (unificado) */
.produtos-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    color: #333;
    font-weight: bold;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}

.produtos-select:hover {
    background-color: #009966;
    color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

.catalogo-link {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: background 0.3s ease;
}

.catalogo-link:hover {
    background-color: #009966;
    color: #fff;
}

/* CEP Container */
.cep-container {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    margin-left: auto;
}

.cep-container:hover {
    border-color: #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cep-icon {
    height: 18px;
    width: 18px;
    opacity: 0.7;
}

.cep-container label {
    color: #333;
    font-weight: bold;
    font-size: 0.95em;
}

.cep-input {
    border: none;
    outline: none;
    font-size: 1em;
    background: transparent;
    color: #333;
    width: 110px;
}

.cep-input::placeholder {
    color: #999;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    height: 110px;
    background-image: url("../Media/Background2.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    /* necessário para posicionar o texto dentro */
}

.hero-frase-dinamica {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: #00B477;
    font-size: 1.1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

#frase-texto {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65em;
    letter-spacing: 2px;
    color:#009966;
}

#frase-texto::after {
    content: "|";
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Corpo principal */
.main-content {
    padding: 20px 5% 100px 5%; /* aumentamos o bottom */
    display: flex;
    flex-direction: column;
    gap: 60px;
    background-color: #f9f9f9;
}

.espaco-para-footer {
  height: 60px; /* igual ou maior que a altura do .footer */
  background-color: white;

}

/* Marcas Disponíveis */
.marcas-disponiveis {
    background-color: #fefefe;
    padding: 60px 5% 50px;
    text-align: center;
    border-top: 1px solid #eee;
}

.marcas-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.marcas-disponiveis h2 {
    font-size: 1.6em;
    color: #2e7d32;
    margin-bottom: 8px;
}

.texto-marcas {
    font-size: 1em;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 25px;
    justify-items: center;
}

.marca-card {
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 90px;
}

.marca-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.marca-card img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.2s ease;
}

.marca-card:hover img {
    filter: grayscale(0);
}

/* Seções */
.secao {
    margin-bottom: 40px;
}

.secao h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
    border-left: 6px solid #009966;
    padding-left: 12px;
}

body.sem-banner .hero-banner {
    display: none;
}

/* Catálogo */
.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

/* Cards de Produto */
.produto {
    position: relative;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    font-size: 0.85em;
}

.produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.produto img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.produto h3 {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin: 10px 10px 5px;
}

.produto .avaliacao {
    color: #FFD700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.produto .preco {
    margin: 5px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #2e7d32;
}

.produto .preco-antigo {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.produto .btn-comprar {
    background-color: #00B477;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.produto .btn-comprar:hover {
    background-color: #b71c1c;
}

.produto .etiqueta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e53935;
    color: white;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 3px;
    font-weight: bold;
}

/* Marcas */
.marcas {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
}

.marcas img {
    height: 60px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
}

/* Rodapé */
.footer {
    background-color: white;
    text-align: right;
    padding: 10px 20px;
    border-top: 1px solid #ccc;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer p {
    margin: 0;
}

.footer img {
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

.logout-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background-color: #b71c1c;
}

/* Sugestões de busca unificadas */
/* Sugestões de busca unificadas com efeito */
.sugestoes-lista {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 42px);
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 0;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sugestoes-lista.show {
    opacity: 1;
    transform: translateY(0);
}

.sugestoes-lista li {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;

}

.sugestoes-lista li:hover {
    background-color: #f1f1f1;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-container .dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    /* ajusta conforme necessário */
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
}

.dropdown-container .dropdown-list li {
    padding: 8px 16px;
    color: #333;
    cursor: pointer;
}

.dropdown-container .dropdown-list li:hover {
    background-color: #f1f1f1;
}

/* Estilos para dropdown de notificações */
.dropdown-list.notificacoes .notificacao-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-list.notificacoes .notificacao-titulo {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.dropdown-list.notificacoes .notificacao-mensagem {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

/* Remove a borda do último item */
.dropdown-list.notificacoes .notificacao-item:last-child {
    border-bottom: none;
}

/* Estilos para dropdown do carrinho */
.dropdown-list.carrinho .carrinho-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
    color: #333;
}

.dropdown-list.carrinho .carrinho-total {
    padding: 10px 15px;
    font-weight: bold;
    text-align: right;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 1em;
    color: #2e7d32;
}

/* Remove a borda do último item, se necessário */
.dropdown-list.carrinho .carrinho-item:last-child {
    border-bottom: none;
}

/* Dropdown do Carrinho - Tamanho e Layout */
.dropdown-list.carrinho {
    width: 300px;
    /* Aumenta a largura do dropdown */
    padding: 15px 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 100;
}

.dropdown-list.carrinho .carrinho-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.dropdown-list.carrinho .carrinho-item:last-child {
    border-bottom: none;
}

.carrinho-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 5px;
    /* Reduzido de 10px para 5px */
}

.carrinho-info {
    display: flex;
    flex-direction: column;
}

.carrinho-produto {
    font-size: 1em;
    color: #333;
    font-weight: bold;
}

.carrinho-preco {
    font-size: 0.9em;
    color: #2e7d32;
}

.dropdown-list.carrinho .carrinho-total {
    padding: 10px;
    font-weight: bold;
    text-align: right;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
    margin-top: 10px;
    font-size: 1em;
    color: #2e7d32;
}

/* Dropdown do Usuário */
.dropdown-container#user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-container#user-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    /* Ajuste a posição conforme necessário */
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
}

.dropdown-container#user-dropdown .user-info {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-details h4 {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.user-details p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.dropdown-container#user-dropdown .user-option {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-container#user-dropdown .user-option a {
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
}

.dropdown-container#user-dropdown .user-option:hover {
    background-color: #f1f1f1;
}

.dropdown-container#user-dropdown .user-option:last-child {
    border-bottom: none;
}

/* Exemplo para o dropdown do usuário */
.dropdown-container#user-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    /* Ajuste conforme necessário */
    right: 0;
    /* Alinha à direita para evitar que fuja da tela */
    background-color: white;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
}

.dropdown-container#notificacao-dropdown .dropdown-list,
.dropdown-container#carrinho-dropdown .dropdown-list {
    right: 0;
}

.dropdown-container#user-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    left: auto;
    width: 200px;
    transform: translateX(15%);
    /* Desloca o menu 10% para a esquerda */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
    background-color: #fff;
}

/* Cards de Produto */
.produto {
    position: relative;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    font-size: 0.85em;
}

.produto a,
.produto a:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}

.produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.produto img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Nome do produto */
.produto h3 {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin: 10px 10px 5px;
}

/* Avaliação */
.produto .avaliacao {
    color: #FFD700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* Preço */
.produto .preco {
    margin: 5px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #00B477;
}

/* Preço antigo */
.produto .preco-antigo {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9em;
    margin-bottom: 2px;
}

/* Botão de compra */
.produto .btn-comprar {
    background-color: #009966;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.produto .btn-comprar:hover {
    background-color: #083317;
}

/* Etiqueta de promoção */
.produto .etiqueta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #009966;
    color: white;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 3px;
    font-weight: bold;
}

.subfooter {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: white;
  padding: 30px 40px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #333;
}

.subfooter-left {
  max-width: 45%;
}

.subfooter-right {
  text-align: right;
  max-width: 50%;
}

.logo-subfooter {
  width: 80px;
  margin-bottom: 10px;
}

.slogan {
  font-size: 1em;
  font-weight: bold;
  color: #555;
}

.subfooter-right a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

.subfooter-right a:hover {
  text-decoration: underline;
}

.redes-sociais {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.redes-sociais img {
    height: 40px;
    width: 40px;
    transition: transform 0.2s ease;
}

.redes-sociais img:hover {
    transform: scale(1.1);
}

.filtros-direita {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.filtros-direita select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #fff;
}

.catalogo-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalogo-topo h2 {
  font-size: 1.4em;
  color: #333;
  border-left: 6px solid #009966;
  padding-left: 12px;
  margin: 0;
}

.filtros-direita select {
  padding: 8px 14px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Agora são 5 fixas */
  gap: 20px;
}

/*Produto*/
.produto-detalhes {
  display: flex;
  gap: 40px;
  padding: 40px 5%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.produto-imagem img {
  width: 360px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
}

.produto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.produto-nome {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}

.produto-avaliacao {
  font-size: 1.2em;
  color: #FFD700;
}

.produto-preco {
  font-size: 1.6em;
  color: #00B477;
  font-weight: bold;
}

.produto-preco-antigo {
  color: #888;
  text-decoration: line-through;
}

.produto-descricao {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

.btn-comprar-grande {
  background-color: #009966;
  color: white;
  font-weight: bold;
  padding: 14px 20px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-comprar-grande:hover {
  background-color: #083317;
}

.produto-compra {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
}

.produto-compra input[type="number"] {
  width: 60px;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.botoes-compra {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mini-carrossel {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mini-carrossel img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-carrossel img:hover {
  transform: scale(1.05);
}

.quantidade-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
  font-size: 0.95em;
  color: #555;
}

.quantidade-box {
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRALIZA TUDO */
  text-align: center;
  width: 100%;
}

.quantidade-box label {
  font-size: 0.9em;
  color: #333;
  font-weight: bold;
}

.quantidade-controle {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  gap: 18px;
  font-size: 1em;
  background-color: white;
}

.btn-quantidade {
  background: none;
  border: none;
  font-size: 1.4em;
  font-weight: bold;
  color: #d32f2f;
  cursor: pointer;
  padding: 0 8px;
}

.botoes-compra {
  display: flex;
  flex-direction: row; /* agora lado a lado */
  gap: 12px;
  width: 100%;
}

.botoes-compra .btn-comprar-grande {
  flex: 1;
}

.produto-detalhes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  margin: 20px 0;
}

.produto-imagem img {
  width: 300px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
}

.mini-carrossel {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mini-carrossel img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-carrossel img:hover {
  transform: scale(1.05);
}

.produto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
}

.produto-nome {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}

.produto-avaliacao {
  font-size: 1.2em;
  color: #FFD700;
}

.produto-descricao {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

.produto-compra {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  align-items: flex-start;
}

.produto-preco {
  font-size: 1.6em;
  color: #00B477;
  font-weight: bold;
}

.quantidade-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
  font-size: 0.95em;
  color: #555;
}

.quantidade-controle {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  gap: 18px;
  font-size: 1em;
  background-color: white;
}

.btn-quantidade {
  background: none;
  border: none;
  font-size: 1.4em;
  font-weight: bold;
  color: #d32f2f;
  cursor: pointer;
  padding: 0 8px;
}

.botoes-compra {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.botoes-compra .btn-comprar-grande {
  flex: 1;
}

.btn-comprar-grande {
  padding: 5px 8px;
  font-size: 0.75em;
}

.produto-info {
  max-width: none;
  width: 200%;
}

.produto-detalhes {
  align-items: flex-start;
}

.preco-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preco-principal {
  font-size: 1.8em;
  font-weight: bold;
  color: #00B477;
}

.preco-parcela {
  font-size: 0.95em;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-cartao {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.info-produto {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
}

.info-produto ul {
  margin-top: 12px;
  padding-left: 20px;
}

.info-produto li {
  margin-bottom: 6px;
}

.info-produto {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
}

.info-produto ul {
  margin-top: 12px;
  padding-left: 20px;
}

.info-produto li {
  margin-bottom: 6px;
}

.info-produto-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-produto {
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.info-produto.expandido {
  max-height: 1200px;
}

.btn-toggle-info {
  align-self: center;
  background-color: transparent;
  border: none;
  color: #00B477;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95em;
  padding: 5px;
  transition: color 0.3s ease;
}

.btn-toggle-info:hover {
  color: #2e7d32;
}

.avaliacoes-container {
  display: flex;
  gap: 40px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.avaliacoes-sidebar {
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-avaliar {
  background-color: #009966;
  color: white;
  border: none;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.box-nota {
  text-align: center;
}

.nota-principal {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
}

.estrelas {
  font-size: 1.4em;
  color: #FFD700;
}

.qtd-avaliacoes {
  font-size: 0.9em;
  color: #666;
}

.resumo-estrelas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.barra-estrela {
  display: flex;
  align-items: center;
  gap: 10px;
  color:#FFD700;
}

.barra {
  flex: 1;
  background-color: #eee;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.barra > div {
  height: 100%;
  background-color: #00B477;
  border-radius: 20px;
}

.avaliacoes-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.titulo-comentarios {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.comentario {
  background-color: #fafafa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.estrelas-comentario {
  font-size: 1.2em;
  color: #FFD700;
}

.texto-comentario {
  margin: 8px 0;
  font-size: 0.95em;
  color: #333;
}

.data-comentario {
  font-size: 0.85em;
  color: #888;
}

.usuario-container {
  display: flex;
  gap: 40px;
  padding: 40px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  align-items: flex-start;
  flex-wrap: wrap;
}

.perfil-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
  gap: 16px;
}

.foto-perfil {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00a8ff;
  background-color: #eee;
}

.dados-perfil {
  text-align: center;
}

.dados-perfil h2 {
  font-size: 1.4em;
  margin-bottom: 4px;
  color: #333;
}

.dados-perfil p {
  font-size: 0.95em;
  color: #666;
}

.secao-usuario {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.box-usuario {
  background-color: #f9f9f9;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.80em;
}

.box-usuario:hover {
  background-color: #e0f7fa;
}

.carrinho-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.carrinho-esquerda {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-carrinho {
  display: flex;
  gap: 20px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  align-items: center;
  background-color: #fff;
  border: 1px solid #f1f1f1;
}

.miniatura-produto {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.info-produto-carrinho {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quantidade-preco {
  display: flex;
  justify-content: space-between;
  align-items: flex;
}

.quantidade button {
  padding: 4px 10px;
  font-size: 1em;
  font-weight: bold;
  background-color: #00a8ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.quantidade span {
  margin: 0 10px;
  font-weight: bold;
}

.btn-excluir {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  align-self: flex;
}

.btn-excluir:hover {
  background-color: #b71c1c;
}

.carrinho-direita {
  flex: 1;
  padding: 20px;

  border-radius: 12px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resumo-linha, .resumo-total {
  display: flex;
  justify-content: space-between;
  font-size: 1em;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.resumo-total {
  font-size: 1.2em;
  font-weight: bold;
}

.btn-finalizar {
  background-color: #00B477;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-finalizar:hover {
  background-color: #009966;
}

.item-carrinho {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  align-items: flex-start;
}

.nome-produto-carrinho {
  font-size: 1em;
  color: #222;
}

.link-excluir {
  font-size: 0.9em;
  color: #00a8ff;
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}

.link-excluir:hover {
  text-decoration: underline;
}

.quantidade-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-size: 1em;
}

.btn-qtd {
  background-color: white;
  border: none;
  padding: 6px 12px;
  font-size: 1.2em;
  cursor: pointer;
  color: #00a8ff;
  font-weight: bold;
}

.qtd-texto {
  padding: 0 12px;
  font-weight: bold;
  color: #333;
}

.disponibilidade {
  font-size: 0.75em;
  color: #888;
  margin-top: 6px;
}

.preco-produto-carrinho {
  font-size: 1.2em;
  color: #00B477;
  font-weight: bold;
  margin-left: auto;
}

.quantidade-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-size: 1em;
  padding: 0 12px;
  gap: 10px;
  height: 40px; /* altura fixa para alinhar tudo */
}

.qtd-texto {
  font-weight: bold;
  color: #333;
  min-width: 30px;
  text-align: center;
}

.disponibilidade {
  margin-left: 8px;
  font-size: 0.85em;
  color: #888;
  white-space: nowrap;
}

.btn-qtd {
  background-color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #00a8ff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
}

.container-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 40px 20px;
}

.login-box {
  background-color: #fff;
  padding: 60px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.login-box label {
  font-size: 0.95em;
  color: #444;
  margin-top: 2px;
  display: block;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 1em;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.centralizado {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.cadastro-link {
  font-size: 0.9em;
  color: #00a8ff;
  text-decoration: none;
}

.cadastro-link:hover {
  text-decoration: underline;
}

.btn-login {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #009966;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background-color: #f1f1f1;
  color: #00a8ff;
}

body.login-page .footer {
    display: none;
}

/* Powered by (login) */
.powered-by {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #777;
  opacity: 0.9;
  z-index: 9999;
}

.powered-by img {
  height: 22px;
  width: auto;
}

/* Só aparece na página de login */
body.login-page .powered-by {
  display: flex;
}

.powered-by {
    position: fixed;
    bottom: 10px;
    right: 10px; /* Movendo para o canto inferior direito */
    font-size: 14px;
    opacity: 0.7;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  width: 35px;
  height: 35px;
  cursor: pointer;
  border-radius: 50%;
}

.dropdown-list {
  position: absolute;
  right: 0;
  top: 45px;
  background-color: white;
  border: 1px solid #ccc;
  min-width: 180px;
  padding: 10px 0;
  z-index: 999;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
}

.dropdown-list.visivel {
  display: block;
}

/* Estados do dropdown */
.dropdown-list.oculto { display: none !important; }
.dropdown-list.visivel { display: block !important; }

/* (opcional) remova esse translate se estiver deslocando demais */
#user-dropdown .dropdown-list {
  transform: none;
}

@media (max-width: 768px) {
  .produto-detalhes {
    flex-direction: column;
    align-items: center;
  }

  .produto-imagem img {
    width: 100%;
    max-width: 360px;
  }

  .produto-info {
    width: 100%;
  }
}

/* Responsividade extra */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        margin: 10px 0;
    }

    .main-content {
        padding: 100px 20px 140px 20px;
    }
    .subfooter {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .subfooter-right {
        text-align: center;
    }
}