/* ============================================================
   common.css — Estilos globais: header, footer, modal carrinho
   ============================================================ */

:root {
  --primary: #0a192f;
  --secondary: #c5a059;
  --text-light: #fff;
  --text-dark: #333;
  --radius: 12px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* ===== HEADER ===== */
.site-header {
  background: var(--primary);
  padding: .85rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  width: 100%;
}

.site-brand {
  color: var(--text-light); font-weight: 700; font-size: 1.1rem;
  font-family: Montserrat, system-ui, sans-serif; letter-spacing: .5px;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
}

/* ---- navegação central ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  padding: 0 32px;
}

/* Links de navegação — apenas os 4 links de página */
.site-nav > a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: .87rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.site-nav > a:hover, .site-nav > a.active { color: var(--secondary); }

/* Redes sociais e auth empurrados para a direita */
.site-nav .social-icons,
.site-nav .auth-area {
  margin-left: auto;
}

.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); transition: all var(--transition); color: #fff; text-decoration: none;
}
.social-icons a:hover { background: var(--secondary); transform: scale(1.1); }

/* ---- ações ---- */
.site-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cart-button {
  position: relative; border: 0; background: transparent; color: var(--text-light);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 6px; flex-shrink: 0;
}
.cart-count {
  position: absolute; top: -5px; right: -8px;
  font-size: .70rem; font-weight: 700; background: var(--secondary);
  color: var(--primary); border-radius: 50%; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---- hamburger ---- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: transparent; border: 0; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: all var(--transition); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  padding: 1.5rem 5%;
  text-align: center;
  color: var(--text-light);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.9rem;
  margin-top: auto; /* Empurra o footer para o final da página */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p { margin: 5px 0; color: #ccc; }
.site-footer strong { color: var(--secondary); font-weight: normal; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 820px) {
  .hamburger { display: flex; margin-left: auto; }
  .site-header { flex-wrap: wrap; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary); flex-direction: column; align-items: center;
    padding: 0; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease; z-index: 1001; text-align: center;
    flex: none;
  }
  .site-nav.open { max-height: 500px; padding: 16px 5%; box-shadow: 0 10px 15px rgba(0,0,0,.3); }
  .site-nav > a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1rem; }
  .site-nav .social-icons { margin-left: 0; margin: 10px 0; justify-content: center; width: 100%; }
  .site-nav .auth-area { margin-left: 0; justify-content: center; }
}