/* =========================
   Variáveis de Cores e Base
   ========================= */
:root {
  --dark-blue: #1a406b;
  --orange: #ff8c00;
  --light-grey-bg: #e9eaec; /* um cinza levemente mais claro */
  --card-bg: #f8f8f8;
  --text-color: #333333;
  --white: #ffffff;

  /* Tipografia fluida */
  --fs-base: clamp(15px, 1.1vw + 0.5rem, 18px);
  --radius: 10px;

  /* Largura do container */
  --container-max: 1200px;
  --container-pad: 20px;
}

/* Reset e acessibilidade básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--fs-base);
  background-color: #ffffff;
}

img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Containers consistentes */
.container {
  max-width: var(--container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Header
   ========================= */
.main-header {
  background-color: var(--dark-blue);
  color: var(--white);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.left-section, .right-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-button {
  font-size: 24px;
  color: var(--white);
  background: none;
  border: none;
  padding: 6px;
  display: none; /* Mostrado no mobile */
}

.cep-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
}

.cep-info a {
  color: var(--white);
  text-decoration: underline;
  font-size: 0.85em;
}

.cep-info i { margin-right: 6px; }

.search-bar {
  display: flex;
  flex: 1 1 420px;
  max-width: 560px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--white);
}

.search-bar input {
  border: none;
  padding: 10px 12px;
  font-size: 1em;
  flex: 1;
  outline: none;
  color: var(--text-color);
}

.search-bar input::placeholder { color: #999; }

.search-button {
  background-color: var(--orange);
  color: var(--white);
  padding: 0 14px;
  border: none;
  cursor: pointer;
  font-size: 1.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.login-button {
  background-color: var(--orange);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95em;
  white-space: nowrap;
  text-decoration: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}

.cart-button i { font-size: 1.2em; }

.cart-count {
  background-color: var(--orange);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8em;
  margin-left: 2px;
  color: var(--white);
}

/* Navegação */
.main-nav {
  background-color: var(--dark-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav .container {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  padding: 10px 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--white);
  font-weight: 700;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.main-nav a:hover { color: var(--orange); }

/* =========================
   Banner de Ofertas
   ========================= */
.offers-banner {
  background-color: var(--orange);
  color: var(--white);
}

.offers-content {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: clamp(1rem, 0.7rem + 0.9vw, 1.2rem);
}

.offers-text { letter-spacing: 0.5px; }
.timer-text { white-space: nowrap; }

/* =========================
   Produtos
   ========================= */
.products-section {
  background-color: var(--light-grey-bg);
  padding: 40px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 380px;
}

.product-card img {
  max-width: 100%;
  height: 180px;              /* Altura controlada para padronizar */
  object-fit: contain;        /* Sem distorcer */
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.08em;
  color: var(--text-color);
  min-height: 3.3em;          /* Reserva espaço para até ~2-3 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.35em;
  color: var(--orange);
  font-weight: 800;
}

.buy-button {
  background-color: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05em;
  transition: background-color 0.25s ease, transform 0.06s ease;
  width: 80%;
  max-width: 220px;
  cursor: pointer;
}

.buy-button:hover { background-color: #e67d00; }
.buy-button:active { transform: scale(0.98); }

/* =========================
   Footer
   ========================= */
.main-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 40px 0 24px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-column {
  flex: 1 1 260px; /* cresce, encolhe, base */
}

.footer-column h4 {
  font-size: 1.05em;
  margin-bottom: 14px;
  color: var(--orange);
}

.footer-column p {
  font-size: 0.95em;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-media {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-media p { font-weight: 700; margin-right: 6px; }

.social-media a {
  color: var(--white);
  font-size: 1.4em;
  transition: color 0.25s ease;
}

.social-media a:hover { color: #ffd7a6; }

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.security-badges img {
  height: 30px;
  object-fit: contain;
}

/* =========================
   Responsividade
   ========================= */

/* Até 1200px: grade de produtos mais fluida */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Até 1024px: duas colunas de produtos e ajustes */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Até 767px: mobile */
@media (max-width: 767px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-button { display: inline-block; }

  .left-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cep-info {
    flex: 1;
    align-items: flex-end;
    font-size: 0.85em;
  }

  .search-bar {
    width: 100%;
    max-width: unset;
  }

  .right-section {
    width: 100%;
    justify-content: space-between;
  }

  .login-button, .cart-button {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  /* Menu mobile recolhível (controlado por script) */
  .main-nav {
    display: none; /* escondido por padrão no mobile; aparece quando "aberto" via classe */
  }
  .main-nav.open { display: block; }

  .main-nav .container { padding-top: 0; padding-bottom: 0; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .offers-content {
    flex-direction: column;
    text-align: center;
  }

  .products-section { padding: 28px 0; }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-card { min-height: auto; }

  .product-title {
    font-size: 1em;
    min-height: auto;
  }

  .product-price { font-size: 1.2em; }

  .buy-button {
    width: 100%;
    max-width: 320px;
  }

  .footer-columns { flex-direction: column; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .social-media, .security-badges {
    width: 100%;
    justify-content: center;
  }

  .security-badges img { height: 26px; }
}

/* Telas muito grandes (4K e ultrawide): centralização e legibilidade */
@media (min-width: 1600px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


    main {
      background-color: #f0f0f0; /* tom neutro próximo do que está na imagem */
      padding: 2rem;
      min-height: 70vh;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      color: #111;
    }

    .contato-info {
      max-width: 400px;
    }

    .contato-info button {
      background-color: #0053a6; /* tom azul do header */
      border: none;
      color: white;
      padding: 0.6rem 1.6rem;
      font-weight: bold;
      border-radius: 5px;
      cursor: default;
      margin-bottom: 1.5rem;
      box-shadow: 0 2px 5px rgba(0,83,166,0.5);
    }

    .contato-info h2 {
      font-size: 1.7rem;
      margin-bottom: 1rem;
    }

    .contato-info p {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      line-height: 1.4;
    }

    .contato-info small {
      display: block;
      font-weight: 400;
      margin-bottom: 0.6rem;
      color: #555;
    }

    .contato-info a {
      color: #0053a6;
      font-weight: 600;
      text-decoration: none;
    }

    .contato-info a:hover {
      text-decoration: underline;
    }

    .contato-info svg {
      vertical-align: middle;
      margin-right: 5px;
      color: #0053a6;
    }

    form.contato-form {
      max-width: 480px;
      width: 100%;
    }

    form.contato-form label {
      font-weight: 700;
      display: block;
      margin-bottom: 0.4rem;
      color: #111;
    }

    form.contato-form input,
    form.contato-form textarea {
      width: 100%;
      padding: 0.5rem 0.8rem;
      margin-bottom: 1.3rem;
      border: 2px solid #0053a6;
      border-radius: 8px;
      font-size: 0.9rem;
      font-family: inherit;
      resize: vertical;
    }

    form.contato-form textarea {
      min-height: 100px;
    }

    form.contato-form button {
      background-color: #0053a6;
      color: white;
      padding: 0.6rem 1.4rem;
      border: none;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 83, 166, 0.7);
      transition: background-color 0.3s ease;
    }

    form.contato-form button:hover {
      background-color: #003d7a;
    }

    /* Para o título do formulário */
    .contato-form h3 {
      margin-bottom: 1rem;
      font-weight: 700;
      color: #111;
    }

    body {
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
}

/* Header Kabum personalizado */
header {
  background-color: #0d3b66;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-left img.logo {
  height: 40px;
}
.header-search {
  flex-grow: 1;
  margin: 0 20px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 8px 40px 8px 10px;
  border-radius: 3px;
  border: none;
  font-size: 14px;
}
.header-search button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #ff7f00;
  border: none;
  color: white;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-right button {
  background-color: #ff7f00;
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}
.header-right .cart {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.header-right .cart img {
  height: 25px;
}
.header-right .cart span {
  background-color: #ff7f00;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  margin-left: -10px;
  margin-top: -10px;
  position: absolute;
}

main {
  max-width: 1000px;
  margin: 40px auto;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
}
h2 {
  color: #0d3b66;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
table thead tr {
  background-color: #0d3b66;
  color: white;
}
table th, table td {
  padding: 12px;
  border-bottom: 1px solid #ccc;
  text-align: left;
  vertical-align: middle;
}
table td img {
  width: 70px;
  height: auto;
  display: block;
}
table td input[type="number"] {
  width: 50px;
  padding: 5px;
}
table td .remove-btn {
  color: #ff7f00;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}
.price {
  color: #ff7f00;
  font-weight: bold;
}
.summary {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  margin-left: auto;
}
.summary h3 {
  margin-top: 0;
  color: #0d3b66;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}
.summary .total {
  font-size: 18px;
  border-top: 1px solid #ff7f00;
  padding-top: 10px;
  color: #ff7f00;
}
.btn-finalize {
  background-color: #ff7f00;
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 15px;
}

/* Footer personalizado que você enviou */
.main-footer {
  background-color: #0d3b66;
  color: white;
  padding: 40px 20px 20px 20px;
  font-size: 14px;
}
.main-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-column h4 {
  color: #ff7f00;
  margin-bottom: 10px;
  font-weight: bold;
}
.footer-column p {
  margin: 4px 0;
  line-height: 1.4;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #ff7f00;
  padding-top: 10px;
  font-size: 13px;
}
.social-media p {
  margin: 0 10px 0 0;
  font-weight: bold;
  color: #ff7f00;
  display: inline-block;
}
.social-media a {
  color: white;
  margin-right: 15px;
  font-size: 18px;
  text-decoration: none;
}
.security-badges img {
  margin-left: 15px;
  height: 30px;
  vertical-align: middle;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body e fonte */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Container centralizado */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #0f0f0f;
  color: white;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Navegação principal */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #ff6200;
}

/* Menu toggle (mobile) */
#menuToggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Formulário de cadastro */
form {
  background-color: white;
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form h1 {
  margin-bottom: 25px;
  font-size: 28px;
  color: #0f0f0f;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
  border-color: #ff6200;
  outline: none;
}

/* Botão de alternar senha */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 18px;
}

/* Botão submit */
button[type="submit"] {
  width: 100%;
  background-color: #ff6200;
  border: none;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #e55b00;
  outline: none;
}

/* Footer */
footer {
  background-color: #0f0f0f;
  color: white;
  padding: 40px 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Redes sociais no footer */
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #ff6200;
}

/* Legal */
.footer-legal {
  max-width: 600px;
}

/* Responsivo */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #0f0f0f;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
  }

  nav ul.active {
    display: flex;
  }

  #menuToggle {
    display: block;
  }

  footer .container {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer */
footer {
  background-color: #0f0f0f;
  color: white;
  padding: 40px 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Colunas do footer */
.footer-columns {
  display: flex;
  gap: 20px;
  flex: 1 1 100%;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 150px;
}

/* Títulos das colunas */
.footer-column h4 {
  margin-bottom: 12px;
  font-weight: 700;
}

/* Redes sociais no footer */
.social-media {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.social-media p {
  margin-right: 12px;
  font-weight: 600;
}

.social-media a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-media a:hover,
.social-media a:focus {
  color: #ff6200;
}

/* Selos de segurança */
.security-badges img {
  margin-right: 10px;
  height: 30px;
}

/* Responsivo */
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    margin-bottom: 20px;
  }
}
