:root {
  --ink: #171717;
  --ink-soft: #2b2925;
  --gold: #e1b62d;
  --gold-2: #ffd84d;
  --bg: #f4f2ec;
  --surface: #ffffff;
  --line: #ddd9cf;
  --muted: #6d6962;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .14);
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(255, 216, 77, .85); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(10, 10, 11, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
  overflow: visible;
}
.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  overflow: visible;
}
.brand span { display: grid; min-width: 0; }
.brand strong { font-size: 1.02rem; white-space: nowrap; }
.brand small { color: #cbc7be; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 24px; color: #efede7; }
.main-nav a { transition: color .2s ease, transform .2s ease; }
.main-nav a:hover { color: var(--gold-2); }
.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #111 !important;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(225,182,45,.22);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: #24262b;
  color: #fff;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
  content: "";
}
.menu-toggle span::before { transform: translate(-50%, -7px); }
.menu-toggle span::after { transform: translate(-50%, 5px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(780px, calc(100svh - var(--header-height)));
  overflow: hidden;
  isolation: isolate;
  background: #0b0b0c;
  color: #fff;
  display: grid;
  align-items: center;
  scroll-margin-top: var(--header-height);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #161514;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.002);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(54px, 7vw, 82px);
}
.hero-copy {
  width: min(720px, 60%);
  padding: 30px 32px;
  margin-left: -32px;
  border-radius: 28px;
  background: rgba(7,7,8,.68);
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(2px);
}
.eyebrow {
  display: inline-flex;
  color: #a98922;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .76rem;
}
.hero .eyebrow { color: var(--gold-2); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .98;
  max-width: 760px;
  margin: 18px 0 24px;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0,0,0,.30);
}
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #e8e3da;
  max-width: 630px;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 24px; }
.button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  min-height: 52px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #111;
  box-shadow: 0 10px 25px rgba(225,182,45,.22);
}
.button-ghost {
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  background: rgba(10,10,11,.58);
  backdrop-filter: blur(10px);
}
.button-full { width: 100%; }
.button-whatsapp img, .wa-link img { display: block; flex: 0 0 auto; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  color: #f0ebe2;
  font-size: .86rem;
  background: rgba(9,9,10,.42);
  backdrop-filter: blur(9px);
}

/* Benefits */
.benefits { padding: 36px 0; background: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefits article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.benefits article > span { color: #a98922; font-weight: 900; }
.benefits h2 { font-size: 1.25rem; margin: 9px 0; }
.benefits p { color: var(--muted); margin: 0; }

/* Catalog */
.catalog-section { padding: clamp(62px, 8vw, 94px) 0; }
.section-heading { max-width: 820px; margin-bottom: 30px; }
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 10px 0 14px;
  text-wrap: balance;
}
.section-heading p { color: var(--muted); max-width: 760px; }
.category-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.category-filter::-webkit-scrollbar { display: none; }
.filter-button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.filter-button.active { background: #151515; color: #fff; border-color: #151515; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.055);
}
.product-card.is-hidden { display: none; }
.product-gallery { background: #fff; border-bottom: 1px solid var(--line); }
.image-stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background: #fff;
}
.image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.thumbs { display: flex; gap: 8px; padding: 0 14px 14px; overflow-x: auto; }
.thumb {
  width: 72px;
  height: 56px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.thumb.active { border-color: #a98922; box-shadow: 0 0 0 2px rgba(225,182,45,.2); }
.thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.product-content { padding: 22px; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: #8f7322; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.product-meta strong { background: #fff1b9; color: #6f5815; padding: 4px 8px; border-radius: 999px; }
.product-content h3 { font-size: 1.65rem; letter-spacing: -.025em; margin: 9px 0 8px; }
.product-content > p { color: var(--muted); min-height: 48px; }
.order-form { display: grid; gap: 14px; margin-top: 18px; }
.order-form label { display: grid; gap: 7px; font-size: .82rem; font-weight: 900; color: #57534e; }
.order-form select, .order-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7d3ca;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: #171717;
  outline: none;
}
.order-form select:focus, .order-form input:focus { border-color: #b89426; box-shadow: 0 0 0 3px rgba(225,182,45,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quantity-row { align-items: end; }
.price-box { border: 1px dashed #c9a12c; background: #fff9df; padding: 10px 12px; border-radius: 12px; display: grid; }
.price-box small { color: #78652a; }
.price-box strong { font-size: 1.18rem; }
.setup-alert { padding: 20px; background: #fff7d9; border: 1px solid #e3c55e; border-radius: 16px; display: grid; gap: 8px; }
.setup-alert a { text-decoration: underline; font-weight: 800; }

/* Footer */
.site-footer { background: #0b0b0c; color: #fff; padding: 50px 0 calc(20px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid > div { display: grid; gap: 7px; min-width: 0; }
.footer-grid span, .footer-grid a { color: #bbb6ad; }
.footer-brand { display: flex !important; align-items: center; gap: 12px; overflow: visible; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; object-position: center; flex: 0 0 auto; }
.footer-brand div { display: grid; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.pwa-install {
  width: fit-content;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 9px 12px;
  background: #19191b;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #8f8b84; font-size: .88rem; }

.floating-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
  border: 4px solid #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-whatsapp:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 42px rgba(0,0,0,.34); }
.floating-whatsapp img { width: 32px; height: 32px; display: block; }

@media (max-width: 1024px) {
  :root { --header-height: 78px; }
  .main-nav { gap: 16px; font-size: .94rem; }
  .hero-copy { width: min(690px, 66%); margin-left: 0; }
  .hero-media img { object-position: 61% center; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(10,10,11,.99);
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
    box-shadow: 0 18px 35px rgba(0,0,0,.3);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .nav-cta { margin-top: 10px; border-bottom: 0; text-align: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .container { width: min(100% - 26px, 1180px); }
  .brand img { width: 56px; height: 56px; }
  .brand strong { font-size: .96rem; }
  .brand small { font-size: .78rem; }

  .hero {
    min-height: max(700px, calc(100svh - var(--header-height)));
    display: grid;
    align-items: center;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0;
    border-radius: 0;
    z-index: 1;
  }
  .hero-media img {
    object-fit: cover;
    object-position: 63% center;
  }
  .hero-overlay {
    display: block;
    background: rgba(7,7,8,.48);
  }
  .hero-content {
    order: initial;
    min-height: inherit;
    padding-block: 48px 46px;
  }
  .hero-copy {
    width: 100%;
    max-width: 680px;
    padding: 0;
    margin-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); max-width: 650px; }
  .hero p { max-width: 620px; color: #f0ece5; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-badges { margin-top: 4px; }

  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .product-content { padding: 18px; }
  .image-stage { padding: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .floating-whatsapp { right: 14px; bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px)); }
}

@media (max-width: 460px) {
  .brand span { max-width: 184px; }
  .brand strong, .brand small { overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 52px; height: 52px; }
  .hero { min-height: max(680px, calc(100svh - var(--header-height))); }
  .hero-content { padding-block: 42px 40px; }
  .hero h1 { font-size: clamp(2.35rem, 11.4vw, 3.25rem); }
  .hero-media img { object-position: 66% center; }
  .hero-overlay { background: rgba(7,7,8,.52); }
  .product-content h3 { font-size: 1.45rem; }
  .footer-brand img { width: 70px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Correção de contraste dos filtros do catálogo */
.category-filter .filter-button {
    appearance: none;
    -webkit-appearance: none;

    background: #ffffff;
    color: #171717 !important;
    -webkit-text-fill-color: #171717;

    border: 1px solid #d8d3c8;
    font-weight: 800;
    opacity: 1;
}

.category-filter .filter-button:hover {
    background: #f4e5ad;
    color: #171717 !important;
    -webkit-text-fill-color: #171717;
    border-color: #d5a928;
}

.category-filter .filter-button.active {
    background: #171717;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    border-color: #171717;
}

.category-filter .filter-button:focus-visible {
    outline: 3px solid rgba(213, 169, 40, 0.4);
    outline-offset: 3px;
}

/* Destaque do botão Baixar PDF */
.main-nav .download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border: 1px solid #d5a928;
    border-radius: 999px;

    background: rgba(213, 169, 40, 0.08);
    color: #ffffff !important;

    font-weight: 700;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.main-nav .download-pdf:hover {
    background: #d5a928;
    border-color: #d5a928;
    color: #111111 !important;
    transform: translateY(-1px);
}

.main-nav .download-pdf:focus-visible {
    outline: 3px solid rgba(213, 169, 40, 0.4);
    outline-offset: 3px;
}