/* ============================================================
   Achadinhos PY — Design System
   Editorial boutique — off-white quente, serifa display,
   acentos terracota + oliva. Curadoria, não e-commerce frio.
   ============================================================ */

:root {
  /* Palette — warm cream editorial */
  --paper:        #F4EEE3;     /* fundo principal — off-white quente */
  --paper-2:      #EBE3D2;     /* bege médio */
  --paper-3:      #DDD2BB;     /* bege escuro */
  --ink:          #1A1612;     /* preto-tinta */
  --ink-2:        #4A4138;     /* secondary text */
  --ink-3:        #8A7E6E;     /* muted */
  --line:         rgba(26, 22, 18, 0.12);
  --line-2:       rgba(26, 22, 18, 0.22);

  /* Accents — low chroma, harmonious */
  --terra:        oklch(0.62 0.10 40);    /* terracota suave */
  --olive:        oklch(0.42 0.06 130);   /* oliva profundo */
  --sand:         oklch(0.78 0.06 75);    /* areia */

  /* Typography */
  --serif:        "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:         "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --max:          1400px;
  --pad:          clamp(20px, 4vw, 56px);

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv02";
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Typography ===== */
.serif       { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.serif-it    { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono        { font-family: var(--mono); }
.eyebrow     {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot{
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background: var(--terra); margin-right: 8px; vertical-align: middle;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 350;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ===== Layout ===== */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.005em;
  background: var(--ink); color: var(--paper);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wa {
  background: #1F3D2E; color: #E8F0E5; border-color: #1F3D2E;
}
.btn-wa:hover { background: #2A5A42; border-color: #2A5A42; }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.nav-mark .py {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-2);
  align-self: center;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ===== Cards / Products ===== */
.product-card {
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.product-card:hover { transform: translateY(-2px); }
.product-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
}
.product-img > .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(26,22,18,0.45);
  transition: transform .8s var(--ease);
}
.product-card:hover .product-img > .ph { transform: scale(1.04); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px;
  color: var(--ink-2);
}
.product-feat {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 14px;
}
.product-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; gap: 12px;
}
.product-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  flex: 1;
}
.product-price {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.product-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ===== Forms ===== */
.input, .textarea, .select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ink);
  background: #fff;
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* ===== Marquee / strip ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.marquee-track {
  display: flex; gap: 48px;
  padding: 14px 0;
  animation: marquee 40s linear infinite;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px;
  background: #1F3D2E;
  color: #E8F0E5;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 14px 30px rgba(31, 61, 46, 0.32), 0 1px 0 rgba(255,255,255,0.06) inset;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(31, 61, 46, 0.38); }
.fab .ic {
  width: 30px; height: 30px; border-radius: 50%;
  background: #E8F0E5; color: #1F3D2E;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 720px){
  .fab .lbl { display:none; }
  .fab { padding: 0 12px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad) 28px;
  margin-top: 100px;
}
.footer-mark {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 350;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 238, 227, 0.55);
  flex-wrap: wrap; gap: 16px;
}

/* ===== Utility ===== */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* ===== Admin specific ===== */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
@media (max-width: 880px){
  .admin-shell { grid-template-columns: 1fr; }
}
.admin-side {
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  background: color-mix(in oklab, var(--paper-2) 60%, var(--paper));
}
.admin-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
  margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active {
  background: var(--ink); color: var(--paper);
}
.admin-main { padding: 36px var(--pad); }

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
}
.stat .n {
  font-family: var(--serif);
  font-size: 48px; line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.tbl tbody tr:hover { background: color-mix(in oklab, var(--paper-2) 60%, transparent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
}
.pill.on   { background: #1F3D2E; color: #E8F0E5; border-color: #1F3D2E; }
.pill.off  { color: var(--ink-3); }
.pill.feat { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn.danger:hover { background: #C74A3D; color: #fff; border-color: #C74A3D; }
