/* ═══════════════════════════════════════════════════════
   CONCEITO DE ARTE — Global Stylesheet
   Tipografia: Pinyon Script (signature) + Cormorant Garamond (display) + Outfit (body)
   Paleta: Branco + Ouro | Minimalismo de alto nível
═══════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --cream:    #FAF8F4;
  --warm:     #F2EEE7;
  --sand:     #E6DDD2;
  --border:   #DDD8CF;
  --gold:     #C9A96E;
  --gold-b:   #D4A853;
  --gold-d:   rgba(201,169,110,0.10);
  --gold-s:   rgba(201,169,110,0.22);
  --gold-line:rgba(201,169,110,0.30);
  --ink:      #18160F;
  --charcoal: #2C2724;
  --mid:      #6A6358;
  --muted:    #A49B8E;
  --white:    #FFFFFF;

  --f-sign:  'Pinyon Script', cursive;
  --f-disp:  'Cormorant Garamond', Georgia, serif;
  --f-body:  'Outfit', system-ui, sans-serif;

  --ease:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-s:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --nav-h:   72px;
  --max-w:   1320px;
  --pad:     64px;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--f-body); }
input, textarea, select { font-family: var(--f-body); }

/* ── SCROLL PROGRESS ─────────────────────────────────── */
.scroll-prog {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%; background: var(--gold);
  transition: width .1s linear; pointer-events: none;
}

/* ── ANIMATIONS ──────────────────────────────────────── */
.up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.up.in { opacity: 1; transform: none; }
.fade { opacity: 0; transition: opacity .65s var(--ease); }
.fade.in { opacity: 1; }
.sc { opacity: 0; transform: scale(.96); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.sc.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .up,.fade,.sc { transition: opacity .3s; transform: none; }
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, box-shadow .35s;
}
.nav.solid { border-color: var(--border); box-shadow: 0 2px 32px rgba(24,22,15,.05); }

.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-main { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.nav-logo-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.nav-logo-sign { font-family: var(--f-sign); font-size: 1.5rem; color: var(--gold); line-height: 1; }

.nav-menu { display: flex; list-style: none; gap: 2px; }
.nav-menu a {
  display: block; padding: 8px 16px; border-radius: 100px;
  font-size: .8rem; font-weight: 500; color: var(--mid);
  transition: background .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--warm); color: var(--ink); }
.nav-menu a.active { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-size: .8rem; font-weight: 500;
  transition: background .25s, transform .15s var(--ease-s);
  position: relative;
}
.nav-cart-btn:hover { background: var(--gold); }
.nav-cart-btn:active { transform: scale(.97); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.show { display: flex; }

/* ── PAGE WRAPPER ────────────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ── CONTAINER ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ── SECTION TAGS ────────────────────────────────────── */
.sec-ey {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sec-ey::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.sec-h {
  font-family: var(--f-disp);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -.02em;
}
.sec-h em { font-style: italic; }
.sec-h .sig { font-family: var(--f-sign); font-size: 1.15em; color: var(--gold); font-style: normal; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  padding: 13px 28px; border-radius: 8px;
  transition: background .25s, color .25s, border-color .25s, transform .15s var(--ease-s), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-b); box-shadow: 0 6px 20px rgba(201,169,110,.35); }
.btn-outline { border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); background: var(--gold-d); }
.btn-link {
  font-size: .78rem; font-weight: 500; color: var(--mid);
  padding-bottom: 2px; border-bottom: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── GOLD HAIRLINE ───────────────────────────────────── */
.gold-rule { width: 100%; height: 1px; background: linear-gradient(to right, var(--gold), transparent); }
.gold-rule-center { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--gold) 50%, transparent); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 80px var(--pad) 40px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px; margin-bottom: 72px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { font-family: var(--f-disp); font-size: 1.4rem; font-weight: 300; color: #fff; margin-bottom: 12px; }
.footer-brand .sig { font-family: var(--f-sign); font-size: 1.4em; color: var(--gold); }
.footer-desc { font-size: .83rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 240px; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 8px; }
.footer-soc-link {
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); transition: border-color .2s, color .2s, background .2s;
}
.footer-soc-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-d); }
.footer-col h4 { font-size: .58rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.25); }
.footer-made { font-size: .72rem; color: rgba(255,255,255,.25); }
.footer-made em { color: var(--gold); font-style: normal; }

/* ── CART DRAWER ─────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(24,22,15,.5);
  backdrop-filter: blur(4px); z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; background: var(--cream);
  z-index: 501; padding: 0;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-title { font-family: var(--f-disp); font-size: 1.5rem; font-weight: 400; }
.cart-close {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  background: none; display: flex; align-items: center; justify-content: center;
  color: var(--mid); transition: background .2s, border-color .2s, color .2s;
}
.cart-close:hover { background: var(--warm); border-color: var(--gold); color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.cart-empty svg { margin: 0 auto 16px; opacity: .4; }
.cart-empty p { font-family: var(--f-disp); font-size: 1.25rem; font-weight: 300; font-style: italic; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  background: var(--warm); flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; }
.cart-item-name { font-size: .875rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.cart-item-price { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 300; color: var(--gold); }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px;
  background: none; font-size: 1rem; color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s; font-family: var(--f-body);
}
.qty-btn:hover { background: var(--warm); border-color: var(--gold); color: var(--ink); }
.qty-num { font-size: .875rem; font-weight: 500; width: 20px; text-align: center; }
.cart-item-remove { color: var(--muted); background: none; border: none; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; margin-left: auto; align-self: flex-start; }
.cart-item-remove:hover { color: #c0392b; }
.cart-footer {
  padding: 20px 28px; border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.cart-subtotal-label { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.cart-subtotal-val { font-family: var(--f-disp); font-size: 1.5rem; font-weight: 300; color: var(--gold); }
.cart-note { font-size: .72rem; color: var(--muted); margin-bottom: 16px; text-align: center; }

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  font-size: .82rem; font-weight: 500;
  z-index: 900; opacity: 0;
  transition: transform .4s var(--ease-s), opacity .4s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  padding: 20px var(--pad);
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--border); }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding: 80px var(--pad) 64px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.page-hero-tag { font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.page-hero-h { font-family: var(--f-disp); font-size: clamp(3rem,5.5vw,5rem); font-weight: 300; line-height: .95; letter-spacing: -.03em; }
.page-hero-h em { font-style: italic; }
.page-hero-h .sig { font-family: var(--f-sign); font-size: 1.1em; color: var(--gold); font-style: normal; }
.page-hero-p { margin-top: 24px; font-size: .95rem; color: var(--mid); line-height: 1.8; max-width: 460px; }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .nav-menu { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --pad: 24px; }
  .cart-drawer { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@keyframes spin { to { transform: rotate(360deg); } }
