/* =========================================================
   Kindlewood — base.css
   Tokens, reset, tipografia e componentes compartilhados
   (barra de aviso, header, botões, footer).
   Usado em TODAS as páginas.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream: #f7f1e8;
  --paper: #fffcf7;
  --bark: #3b2a20;
  --ember: #b5562b;
  --ember-dark: #9c4722;
  --moss: #4a5a44;
  --muted: #7a6a5e;
  --line: #e6dccd;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-pill: 999px;
  --wrap: 1100px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--bark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barra de aviso ---------- */
.bar {
  background: var(--bark);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo b {
  font-weight: 600;
}

.logo span {
  color: var(--ember);
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  margin-left: 22px;
}

.site-nav a:hover {
  color: var(--bark);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  background: var(--ember-dark);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: var(--cream);
  padding: 48px 0 32px;
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.site-footer .logo {
  color: var(--cream);
  font-size: 22px;
}

.site-footer p {
  color: #cdbfaf;
  margin-top: 8px;
  max-width: 26em;
}

.site-footer .fine {
  width: 100%;
  border-top: 1px solid rgba(247, 241, 232, 0.15);
  padding-top: 20px;
  color: #a99887;
  font-size: 12px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
}

/* ---------- Footer: links ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 4px;
}

.footer-links a {
  color: #cdbfaf;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cream);
}

.bar a {
  color: inherit;
}

.currency-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
}

.currency-switch button {
  background: transparent;
  color: #cdbfaf;
  border: 1px solid rgba(247, 241, 232, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.currency-switch button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--bark);
  border-color: var(--cream);
}


/* ---------- Pop-up de boas-vindas: 10% na 1ª compra (js/welcome.js) ---------- */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(59, 42, 32, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.welcome-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 22px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(59, 42, 32, 0.3);
}

.welcome-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 4px 0 10px;
}

.welcome-card p {
  color: var(--muted);
  font-size: 15px;
}

.welcome-kicker {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember) !important;
}

.welcome-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.welcome-form {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.welcome-form input {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.welcome-form .btn,
.welcome-copy {
  width: 100%;
  justify-content: center;
}

.welcome-error {
  color: #b42318 !important;
  font-size: 14px !important;
}

.welcome-fine {
  font-size: 12px !important;
  margin-top: 8px;
}

.welcome-skip {
  margin-top: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.welcome-code {
  font-family: var(--font-body) !important;
  letter-spacing: 0.08em;
  padding: 12px;
  border: 2px dashed var(--ember);
  border-radius: 12px;
  color: var(--bark);
}

.welcome-copy {
  margin-top: 16px;
}

/* ---------- Promoção com data (Black Friday, ver SALE no catalog.js) ---------- */
.bar.bar-sale { background: #9f3a1d; font-size: 13.5px; }
.bar.bar-sale strong { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bar.bar-sale a { font-weight: 600; text-decoration: underline; }
.price-was { color: var(--muted); font-weight: 400; text-decoration-thickness: 1.5px; margin-left: 4px; }
.sale-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #9f3a1d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.price .price-was { font-size: 0.7em; }
.sale-tag.card-tag { align-self: flex-start; margin: 6px 0 0; font-size: 11px; }
.co-price .price-was { display: block; font-size: 12px; margin: 0; text-align: right; }