:root {
  --black: #1a1a1a;
  --gold: #c9a962;
  --gold-light: #e8d5a8;
  --cream: #f5f0e8;
  --white: #fff;
  --muted: #666;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.08);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); }
.container { width: min(1140px, 92vw); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--gold); padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(201,169,98,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; gap: 1rem;
}
.logo img { height: 56px; width: auto; }
.main-nav {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--gold); }
.cart-badge {
  background: var(--gold); color: var(--black);
  padding: .1rem .45rem; border-radius: 999px; font-size: .7rem;
}
.lang-switch { display: flex; gap: .35rem; align-items: center; opacity: .8; }
.lang-switch a.active { color: var(--gold); font-weight: 600; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--black); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%);
  padding: 4rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.hero-eyebrow {
  color: var(--gold); letter-spacing: .2em; text-transform: uppercase;
  font-size: .75rem; margin: 0 0 .5rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400; line-height: 1.15; margin: 0 0 1rem;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 32rem; }
.hero-pattern {
  position: absolute; right: -10%; top: 10%;
  width: 40%; height: 80%;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  opacity: .4; pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.75rem;
  font-family: var(--font-sans); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer; transition: .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn-primary:hover { background: #333; }
.btn-outline { background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .5rem 1rem; font-size: .7rem; }
.btn-link { background: none; border: none; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.section h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; margin: 0 0 1rem; }
.section-lead { color: var(--muted); max-width: 40rem; }
.page-header { padding-bottom: 1rem; border-bottom: 1px solid var(--cream); }
.link-arrow { text-decoration: none; font-size: .85rem; letter-spacing: .05em; }

/* Culture grid */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.culture-card {
  padding: 1.5rem; background: var(--white);
  border: 1px solid rgba(201,169,98,.35);
  text-decoration: none; transition: .2s;
}
.culture-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.culture-icon { color: var(--gold); width: 40px; height: 40px; display: block; margin-bottom: .75rem; }
.culture-icon svg { width: 100%; height: 100%; }
.culture-card h3 { font-family: var(--font-serif); margin: 0 0 .5rem; font-size: 1.25rem; }
.culture-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card { border: 1px solid #eee; }
.product-card-image { display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); position: relative; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 1rem; }
.product-ref { font-size: .75rem; color: var(--muted); margin: 0 0 .25rem; }
.product-price { font-weight: 500; margin: .5rem 0; }
.badge { position: absolute; top: .5rem; right: .5rem; background: var(--black); color: var(--gold); font-size: .65rem; padding: .25rem .5rem; letter-spacing: .05em; }
.badge-made { display: inline-block; background: var(--cream); padding: .25rem .75rem; font-size: .75rem; letter-spacing: .05em; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list a { display: block; padding: .5rem 0; text-decoration: none; }
.category-list a.active { color: var(--gold); font-weight: 500; }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-price-lg { font-size: 1.5rem; font-family: var(--font-serif); }
.product-buy-form {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-top: 1.5rem;
  padding: 1.25rem; background: #faf9f7; border: 1px solid #ebe6dc; border-radius: var(--radius);
}
.product-buy-form label {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* Cart */
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid #ebe6dc; }
.cart-table th, .cart-table td { padding: 1rem 1.15rem; border-bottom: 1px solid #f0ebe3; text-align: left; }
.cart-table thead th { background: #faf9f7; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Checkout */
.checkout-layout { max-width: 760px; }
.checkout-form fieldset {
  background: #fff; border: 1px solid #ebe6dc; border-radius: 16px;
  padding: 1.5rem 1.75rem; box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.checkout-form legend {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500;
  width: 100%; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px solid #f0ebe3;
}
.form-grid label { gap: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-grid label input, .form-grid label select, .form-grid label textarea { text-transform: none; font-weight: 400; letter-spacing: 0; }
fieldset { border: none; padding: 0; margin: 0 0 1.25rem; }

/* Slide submit */
.slide-submit { margin: 2rem 0; user-select: none; }
.slide-track {
  position: relative; height: 52px; background: var(--cream);
  border: 1px solid var(--gold); border-radius: 26px; overflow: hidden;
}
.slide-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
  padding-left: 48px;
}
.slide-thumb {
  position: absolute; left: 4px; top: 4px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--black); border: none; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slide-thumb::after {
  content: "→"; color: var(--gold); font-size: 1.2rem; line-height: 44px;
}
.slide-submit.is-complete .slide-track { background: var(--black); }
.slide-submit.is-complete .slide-label { color: var(--gold); }

/* Footer */
.site-footer { background: var(--black); color: #ccc; padding: 3rem 0 1rem; margin-top: 4rem; }
.site-footer a { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-grid h3 { color: var(--gold); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-bottom { border-top: 1px solid #333; margin-top: 2rem; padding-top: 1rem; font-size: .8rem; text-align: center; }
.footer-logo { filter: invert(1); opacity: .9; margin-bottom: 1rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--black); color: #eee; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-banner .btn-cookie-primary {
  background: var(--gold); color: var(--black); border: 1px solid var(--gold);
}
.cookie-banner .btn-cookie-primary:hover { background: var(--gold-light); }
.cookie-banner .btn-cookie-secondary {
  background: transparent; color: #fff; border: 1px solid #fff;
}
.cookie-banner .btn-cookie-secondary:hover { background: rgba(255,255,255,.12); }

/* Material icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle; font-size: 1.15em; line-height: 1;
}
.nav-icon { font-size: 1rem; margin-right: .15rem; opacity: .85; }
.icon-inline { font-size: 1rem; margin-right: .2rem; opacity: .9; }

/* Footer mandatory */
.footer-mandatory {
  border-bottom: 1px solid #333; padding-bottom: 1.5rem; margin-bottom: 2rem;
}
.footer-mandatory h3 {
  color: var(--gold); font-size: .85rem; letter-spacing: .1em;
  text-transform: uppercase; display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
}
.footer-mandatory-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-mandatory-links a {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 500;
}
.footer-mandatory-links a:hover { color: var(--gold); }
.footer-livro { margin-top: .5rem; }
.footer-livro a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }

/* Contrastaria page */
.contrastaria-page .legal-notice {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream); padding: 1.25rem; border-left: 3px solid var(--gold); margin-bottom: 2rem;
}
.contrastaria-chart { margin: 2rem 0; text-align: center; }
.contrastaria-chart img { max-width: 100%; height: auto; border: 1px solid #ddd; }
.contrastaria-chart figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.marks-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.marks-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.marks-table th, .marks-table td { padding: .75rem; border: 1px solid #ddd; text-align: left; }
.marks-table thead { background: var(--cream); }

/* Product gallery */
.product-gallery-main { aspect-ratio: 1; background: var(--cream); overflow: hidden; margin-bottom: .75rem; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-gallery-thumbs button {
  border: 2px solid transparent; padding: 0; background: none; cursor: pointer; width: 72px; height: 72px;
}
.product-gallery-thumbs button.active, .product-gallery-thumbs button:hover { border-color: var(--gold); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-description-html ul { padding-left: 1.25rem; }

/* Misc */
.location-banner { text-align: center; background: var(--black); color: var(--white); }
.location-banner h2 { color: var(--gold); }
.alert-error { background: #fee; border-left: 3px solid #c00; padding: 1rem; margin-bottom: 1rem; }
.payment-box { background: var(--cream); padding: 1.5rem; margin: 1.5rem 0; border-left: 3px solid var(--gold); }
.status-badge { display: inline-block; padding: .5rem 1rem; background: var(--cream); font-weight: 500; margin-bottom: 1rem; }
.prose h2 { font-family: var(--font-serif); margin-top: 2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.map-embed iframe { border-radius: var(--radius); }
.empty-state { color: var(--muted); font-size: 1.1rem; }
.legal-note { font-size: .8rem; color: var(--muted); }
.success-header { background: var(--cream); }
.muted { color: var(--muted); font-size: .9rem; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 1rem;
    border-bottom: 1px solid #eee;
  }
  .main-nav.is-open { display: flex; }
  .shop-layout, .product-detail-grid, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; margin-bottom: 1rem; border: 1px solid #eee; padding: .5rem; }
  .cart-table td { display: block; text-align: right; }
  .cart-table td::before { content: attr(data-label); float: left; font-weight: 500; }
}
