:root {
  --azul: #0f3bb3;
  --azul-hover: #1e40af;
  --azul-claro: #709cd5;
  --verde: #10b981;
  --verde-hover: #059669;
  --roxo: #8b5cf6;
  --roxo-claro: #ede9fe;
  --cinza-bg: #f8fafc;
  --cinza-texto: #111827;
  --cinza-medio: #6b7280;
  --cinza-borda: #e5e7eb;
  --branco: #ffffff;
}



/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* FUNDO */
body {

  background: var(--cinza-bg);
  color: var(--cinza-texto);

}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #111827, #2f46c7, #4f6cff);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 6%;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;
  cursor: pointer;
}
/* BUSCA */
.search-box {
  flex: 1;
  position: relative;
  max-width: 620px;
}

.search-box input {
  width: 100%;
  padding: 15px 55px 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--cinza-borda);
  outline: none;
  font-size: 15px;
  background: #f9fafb;
  color: var(--cinza-texto);
}

.search-box input:focus {
  border-color: var(--azul-);
  background: var(--branco);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--azul);
  color: var(--branco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.search-box button:hover {
  background: var(--azul-hover);
}

/* SUGESTÕES */
.sugestoes-busca {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--branco);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.16);
  overflow: hidden;
  z-index: 999;
}

.sugestao-item {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.sugestao-item:hover {
  background: var(--roxo-claro);
}

/* BOTÕES HEADER */
.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--cinza-texto);
  font-weight: 700;
}

.header-actions button:hover {
  background: var(--roxo-claro);
  color: var(--roxo);
}

.header-actions .btn-primary {
  background: var(--azul);
  color: var(--branco);
}

.header-actions .btn-primary:hover {
  background: var(--azul-hover);
  color: var(--branco);
}



/* CENTRALIZAÇÃO */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(80vh - 70px);
}

/* CARD */
.auth-card {
    background: white;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* BOX */
.auth-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ESCONDER */
.hidden {
    display: none;
}

/* TÍTULO */
.auth-box h2 {
    text-align: center;
}

/* SUBTEXTO */
.sub {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* INPUTS */
input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
    font-size: 14px;
}

input:focus {
    border-color: #1e90ff;
}

/* BOTÕES */
button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1e90ff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #187bcd;
}

/* BOTÃO CADASTRO */
.btn-cadastro {
    background: #00c896;
}

.btn-cadastro:hover {
    background: #00a67c;
}

/* LINKS */
.link {
    font-size: 14px;
    text-align: center;
}

.link span {
    color: #1e90ff;
    cursor: pointer;
    font-weight: bold;
}

/* ========================= */
/* TOGGLE CPF / CNPJ */
/* ========================= */

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 5px;
}

/* TEXTO CPF/CNPJ */
.toggle-container span {
    font-weight: bold;
    color: #0c0c0c;
}

/* SWITCH */
.switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #141414;
    border-radius: 50px;
    width: 100%;
    height: 100%;
    transition: 0.3s;
}

/* BOLINHA */
.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* ATIVO */
input:checked + .slider {
    background: #171717;
}

input:checked + .slider::before {
    transform: translateX(24px);
    
}

.esqueci-senha {
    margin-top: 12px;   
    text-align: center;
    color: #1e90ff;
    cursor: pointer;
    font-weight: bold;
}

.esqueci-senha:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
  background: var(--cinza-texto);
  color: var(--branco);
  padding: 10px 4% 10px;
  margin-top: 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer p,
.footer a {
  color: #cbd5e1;
  display: block;
  text-decoration: none;
  margin-top: 8px;
}

.footer a:hover {
  color: var(--roxo-claro);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* RESPONSIVO */
@media (max-width: 950px) {
  .header {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .categories {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stores-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .seller-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 15px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions button {
    flex: 1;
  }

  .hero {
    padding: 20px 15px;
  }

  .carousel,
  .slides {
    height: 430px;
  }

  .slide {
    padding: 35px 25px;
  }

  .categories {
    display: flex;
    overflow-x: auto;
  }

  .categories button {
    min-width: 105px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .quick-menu,
  .featured,
  .stores {
    padding: 35px 15px;
  }

  .seller-banner {
    margin: 25px 15px;
    padding: 30px;
  }
}
.senha-box {
  position: relative;
  width: 100%;
}

.senha-box input {
  padding-right: 48px;
}

.btn-ver-senha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  width: auto;
  padding: 0;
}

.btn-ver-senha:hover {
  background: transparent;
  color: #111827;
}

.aceite-termos {
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
  color: #64748b;
  line-height: 1.5;
}

.aceite-termos a {
  color: #082460;
  font-weight: 600;
  text-decoration: none;
}

.aceite-termos a:hover {
  text-decoration: underline;
}

.aceite-termos-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.aceite-termos-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.aceite-termos-box label {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.aceite-termos-box a {
  color: #082460;
  font-weight: 600;
  text-decoration: none;
}

.aceite-termos-box a:hover {
  text-decoration: underline;
}

.btn-cadastro:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* OLHO MOSTRAR SENHA */

.campo-senha {
  position: relative;
  width: 100%;
}


.campo-senha input {
  width: 100%;
  padding-right: 50px;
}


.olho-senha {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);

  cursor: pointer;
  font-size: 20px;

  opacity: 0.55;
  user-select: none;
}


.olho-senha:hover {
  opacity: 1;
}