/* ========================================
   NAT'S DECOR — Sistema visual
   ======================================== */

:root {
  /* Cores — extraídas do logo */
  --gold: #C9A55C;
  --gold-soft: #D9B978;
  --gold-deep: #A8853F;
  --graphite: #4A4A4A;
  --graphite-deep: #2B2B2B;
  --ink: #1A1A1A;
  --bone: #FAF7F2;
  --linen: #F2EDE4;
  --stone: #E8E6E1;
  --sage: #A8B5A0;
  --terracotta: #C89B7B;

  /* Tipografia */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --script: "Allura", "Dancing Script", cursive;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espaçamento */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Outros */
  --border: rgba(74, 74, 74, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 24px 64px rgba(26, 26, 26, 0.12);
  --radius: 2px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Tipografia */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: var(--graphite);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.header__logo img { width: 44px; height: 44px; border-radius: 50%; }
.header__logo .script { font-size: 22px; margin-left: -4px; line-height: 1; transform: translateY(2px); }

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  position: relative;
  padding: 4px 0;
}

.header__nav a.active::after,
.header__nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.header__actions { display: flex; gap: 16px; align-items: center; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--graphite);
  position: relative;
  transition: background 0.2s;
}

.icon-btn:hover { background: var(--linen); opacity: 1; }

.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

.icon-btn .badge:empty { display: none; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bone);
    flex-direction: column;
    padding: 48px var(--gutter);
    gap: 24px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .header__nav.open { transform: translateX(0); }
  .header__nav a { font-size: 18px; font-family: var(--serif); text-transform: none; letter-spacing: 0; }
  .menu-toggle { display: grid; }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--ink);
  color: var(--stone);
  padding: 80px 0 32px;
  margin-top: 120px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand { max-width: 320px; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 20px; }
.footer__brand h4 { color: var(--bone); margin-bottom: 8px; font-size: 28px; }
.footer__brand p { font-size: 14px; opacity: 0.7; line-height: 1.7; }

.footer__col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; opacity: 0.8; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.footer__social { display: flex; gap: 16px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: grid; place-items: center; opacity: 0.8; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--gold); color: white; opacity: 1; }

.btn--gold { background: var(--gold); color: white; }
.btn--gold:hover { background: var(--gold-deep); opacity: 1; }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bone); opacity: 1; }

.btn--ghost { background: transparent; color: var(--ink); padding: 14px 0; }
.btn--ghost:hover { color: var(--gold); opacity: 1; }
.btn--ghost::after { content: "→"; transition: transform 0.25s; }
.btn--ghost:hover::after { transform: translateX(6px); }

.btn--whats { background: #25d366; color: white; }
.btn--whats:hover { background: #1eb155; opacity: 1; }

.btn--lg { padding: 18px 36px; font-size: 14px; }

/* ========================================
   PLACEHOLDER de imagem (listrado)
   ======================================== */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--linen),
      var(--linen) 12px,
      var(--stone) 12px,
      var(--stone) 24px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ph::before {
  content: attr(data-label);
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74,74,74,0.55);
  background: var(--bone);
  padding: 6px 12px;
  border-radius: 2px;
}

.ph--dark {
  background:
    repeating-linear-gradient(
      135deg,
      #2a2a2a,
      #2a2a2a 12px,
      #1a1a1a 12px,
      #1a1a1a 24px
    );
}
.ph--dark::before { background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.6); }

.ph--sage {
  background:
    repeating-linear-gradient(
      135deg,
      #b8c4b0,
      #b8c4b0 12px,
      #a8b5a0 12px,
      #a8b5a0 24px
    );
}

.ph--terra {
  background:
    repeating-linear-gradient(
      135deg,
      #d4a888,
      #d4a888 12px,
      #c89b7b 12px,
      #c89b7b 24px
    );
}

/* ========================================
   ANIMAÇÕES SCROLL
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.75s; }

.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PADDING geral por estarem fixed
   ======================================== */

main { padding-top: 80px; }

/* ========================================
   SEÇÕES genéricas
   ======================================== */

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section--alt { background: var(--linen); }
.section--ink { background: var(--ink); color: var(--stone); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--bone); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head--center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

.divider-script {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  margin: 8px 0;
}
.divider-script::before, .divider-script::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-script .script { font-size: 32px; }

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-4px); }

.product-card__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.product-card__image .ph { width: 100%; height: 100%; }

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover .product-card__image::after { opacity: 0.04; }

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bone);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

.product-card__tag--gold { background: var(--gold); color: white; }

.product-card__add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--bone);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  z-index: 2;
}

.product-card:hover .product-card__add {
  opacity: 1;
  transform: translateY(0);
}

.product-card__category {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.product-card__name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}

.product-card__price {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--graphite);
  letter-spacing: 0.02em;
}

.product-card__price--old { text-decoration: line-through; opacity: 0.5; margin-right: 8px; }

/* ========================================
   FORM
   ======================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--row > div { display: flex; flex-direction: column; gap: 8px; }
.field .error { color: #c0392b; font-size: 12px; display: none; letter-spacing: 0; text-transform: none; font-weight: 400; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #c0392b; }
.field.has-error .error { display: block; }

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.08); opacity: 1; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--bone);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 200;
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast__check { color: var(--gold); }

/* ========================================
   CART DRAWER
   ======================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--bone);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 { font-size: 24px; }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 24px var(--gutter);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img { aspect-ratio: 1; }
.cart-item__name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.cart-item__price { font-size: 13px; color: var(--graphite); margin-top: 4px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.cart-item__qty button { width: 24px; height: 24px; border: 1px solid var(--border); display: grid; place-items: center; }
.cart-item__remove { color: var(--graphite); opacity: 0.5; font-size: 12px; align-self: flex-start; }
.cart-item__remove:hover { color: var(--gold-deep); opacity: 1; }

.cart-empty { text-align: center; padding: 64px 0; color: var(--graphite); opacity: 0.6; }
.cart-empty p { margin-top: 12px; }

.cart-drawer__footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--border);
  background: white;
}
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.cart-drawer__footer .btn { width: 100%; margin-bottom: 8px; }

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.94);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: grid;
  place-items: center;
  padding: 48px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__content {
  max-width: 80vw;
  max-height: 80vh;
  width: 800px;
  aspect-ratio: 4/5;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: white;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.lightbox__close { top: 32px; right: 32px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 32px; }
.lightbox__nav--next { right: 32px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.16); }
.lightbox__caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* Util */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }
