:root {
  --brown-dark: #16130F;
  --brown: #4A3728;
  --cream: #F7F4EF;
  --terracotta: #C49A6C;
  --gold: #A9784A;
  --text: #1C1712;
  --sale: #C00000;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--brown-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 15px;
}
.btn-primary { background: var(--terracotta); color: var(--brown-dark); }
.btn-primary:hover { background: var(--gold); }
.btn-primary:disabled { background: #e3d2b8; color: #9a8a75; cursor: not-allowed; }
.btn-secondary { background: var(--brown-dark); color: #fff; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.btn-secondary:hover { background: #291908; }
.btn-outline { background: none; border: 1px solid var(--brown-dark); color: var(--brown-dark); }
.btn-outline:hover { background: var(--brown-dark); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* Announcement bar */
.announce-bar {
  background: var(--brown-dark); color: #f0e6d8; text-align: center;
  font-size: 13px; padding: 8px 16px; letter-spacing: .01em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brown-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 56px; width: 56px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.main-nav { display: flex; gap: 28px; font-weight: 500; color: #f0e6d8; }
.main-nav a:hover { color: var(--terracotta); }
.cart-toggle {
  background: none; border: none; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-weight: 700;
  letter-spacing: .04em; color: #f0e6d8;
}
#cartCount { color: var(--terracotta); }

.category-strip {
  display: flex; justify-content: center; gap: 32px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: #cbb9a0;
}
.category-strip a:hover { color: var(--terracotta); }

/* Hero */
.hero { padding: 72px 0; }
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; }
.eyebrow { color: var(--terracotta); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.hero-text h1 { font-size: 44px; line-height: 1.15; margin-bottom: 18px; }
.hero-sub { font-size: 17px; max-width: 480px; margin-bottom: 28px; color: #5a4534; }
.hero-art { flex-shrink: 0; width: 440px; max-width: 100%; }
.hero-art img {
  width: 100%; display: block; border-radius: 16px;
  box-shadow: 0 20px 44px rgba(59,36,22,.28);
}

/* Origem (galeria) */
.origem { padding: 64px 0 8px; }
.origem .eyebrow.center, .origem h2.center { text-align: center; }
.origem h2 { margin-bottom: 32px; }
.origem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.origem-grid figure {
  position: relative; margin: 0; border-radius: var(--radius);
  overflow: hidden; height: 260px;
}
.origem-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.origem-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,12,6,.75));
  color: #fff; padding: 32px 16px 14px; font-weight: 600; font-size: 14px;
}

/* Destaques */
.destaques { background: var(--brown-dark); padding: 40px 0 32px; }
.destaques-statement {
  font-family: 'Playfair Display', serif; color: #fff; text-align: center;
  font-size: 26px; margin-bottom: 28px;
}
.destaques-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.destaque { color: #f0e6d8; text-align: center; }
.destaque strong { display: block; font-size: 16px; margin-bottom: 4px; color: #fff; }
.destaque span { font-size: 14px; opacity: .8; }

/* Produtos */
.produtos { padding: 80px 0; }
.produtos h2 { font-size: 32px; text-align: center; }
.section-sub { text-align: center; color: #5a4534; margin: 8px 0 24px; }

.filter-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pill {
  background: #fff; border: 1px solid #ecdfc9; border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--brown-dark);
}
.pill.active { background: var(--brown-dark); color: #fff; border-color: var(--brown-dark); }
.pill:hover:not(.active) { border-color: var(--terracotta); color: var(--terracotta); }

.produtos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.produto-card {
  position: relative;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #ecdfc9; display: flex; flex-direction: column;
}
.produto-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--terracotta); color: var(--brown-dark); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px;
}
.produto-badge.badge-sale { background: var(--sale); color: #fff; }
.produto-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; background: #f3e9d8;
}
.produto-img img { width: 100%; height: 100%; object-fit: cover; }
.produto-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.produto-info h3 { font-size: 18px; margin-bottom: 6px; }
.produto-info p { font-size: 14px; color: #6b5744; flex: 1; margin-bottom: 16px; }
.produto-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.produto-precos { display: flex; flex-direction: column; }
.produto-preco { font-weight: 700; color: var(--brown-dark); }
.produto-preco-original { font-size: 12px; color: #a08a72; text-decoration: line-through; }

/* Sobre */
.sobre { padding: 72px 0; background: #f3e9d8; display: flex; flex-direction: column; gap: 56px; }
.sobre-bloco { display: flex; align-items: center; gap: 48px; }
.sobre-bloco.reverso { flex-direction: row-reverse; }
.sobre-texto { flex: 1; }
.sobre-texto p:not(.eyebrow) { margin: 14px 0 20px; color: #5a4534; }
.sobre-imagem {
  flex: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #e6dccb; height: 320px;
}
.sobre-imagem img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contato */
.contato { padding: 72px 0; }
.contato-inner { text-align: center; }
.contato p { color: #5a4534; margin: 10px 0 20px; }
.contato-links { display: flex; gap: 20px; justify-content: center; font-weight: 600; color: var(--terracotta); }

/* Footer */
.site-footer { background: var(--brown-dark); color: #d8c8b0; padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px; display: block; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #d8c8b0; margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; opacity: .8;
}

/* Cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh;
  background: #fff; z-index: 100; box-shadow: -4px 0 24px rgba(0,0,0,.15);
  display: flex; flex-direction: column; transition: right .25s ease;
}
.cart-drawer.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.cart-header button { background: none; border: none; font-size: 18px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { color: #999; text-align: center; margin-top: 40px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-info span { font-size: 13px; color: #777; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 15px; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.checkout-note { font-size: 12px; color: #999; text-align: center; margin-top: 10px; }

@media (max-width: 800px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-art { width: 100%; margin-top: 32px; }
  .main-nav { display: none; }
  .category-strip { flex-wrap: wrap; gap: 16px; }
  .destaques-grid, .produtos-grid { grid-template-columns: 1fr; }
  .origem-grid { grid-template-columns: 1fr; }
  .sobre-bloco, .sobre-bloco.reverso { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
