/* ============================================================
   SACRATU REVENDA — Editorial Atelier
   ============================================================ */

/* Satoshi loaded via <link> in HTML head — keeping CSS render-blocking-free */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --paper: #ffffff;
  --paper-warm: #fafaf7;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --surface: #f4f4f1;
  --hairline: #d6d6d6;

  --font-display: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 520ms;

  --container: 1400px;
  --container-narrow: 1080px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--ink { color: var(--ink); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.display-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display-s {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
}
.body { font-size: 17px; line-height: 1.55; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.divider { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.is-stuck { border-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 32px; width: auto; }
.brand__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: opacity var(--t-fast) var(--ease);
}
.site-nav a:hover { opacity: 0.5; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width var(--t-med) var(--ease-out);
}
.site-nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all var(--t-med) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--inverted { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--inverted:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn__arrow {
  width: 14px; height: 14px;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  min-height: clamp(560px, 78vh, 820px);
}
.hero__copy { padding-bottom: 16px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink);
}
.hero__headline { margin-bottom: 32px; }
.hero__headline em {
  font-style: normal;
  font-weight: 300;
  display: block;
  color: var(--muted);
}
.hero__sub {
  max-width: 480px;
  margin-bottom: 48px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease-out);
}
.hero__media:hover img { transform: scale(1.06); }
.hero__media-meta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero__index {
  position: absolute;
  top: clamp(40px, 5vw, 64px);
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
}
.strip__inner {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 36s linear infinite;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.strip__inner span { display: inline-flex; align-items: center; gap: 64px; }
.strip__inner span::after {
  content: '✦';
  font-size: 10px;
  color: var(--muted);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__label {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-head__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.section-head h2 { max-width: 720px; }
.section-head p { max-width: 480px; color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}
.portfolio-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--paper);
}
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 50%);
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  z-index: 1;
}
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card__body { position: relative; z-index: 3; }
.portfolio-card__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.75;
  margin-bottom: 8px;
}
.portfolio-card__name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.portfolio-card--placeholder {
  background: var(--ink);
  color: var(--paper);
}
.portfolio-card--placeholder::before { background: none; }

/* ---------- Pillars (diferenciais) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.pillar__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pillar__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar__title {
  font-size: 18px;
  font-weight: 500;
  margin-top: auto;
}
.pillar__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Steps (como começar) ---------- */
.steps-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 9vw, 140px);
  align-items: stretch;
}
.steps-image {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.steps-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.steps-image:hover img { transform: scale(1.04); }
.steps-image__meta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.steps-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 8px;
}
.steps-content__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.steps-content__title {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.steps-content__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
  display: block;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: clamp(56px, 5.4vw, 72px) 1fr;
  gap: clamp(20px, 2.8vw, 36px);
  padding-block: clamp(32px, 3.8vw, 48px);
  border-top: 1px solid var(--line);
  align-items: center;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  width: clamp(56px, 5.4vw, 72px);
  height: clamp(56px, 5.4vw, 72px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-feature-settings: "tnum" 1;
}
.step__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.step__text { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 480px; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.testimonial {
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.testimonial__quote {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.testimonial__quote::before {
  content: '“';
  font-size: 48px;
  line-height: 0;
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
}
.testimonial__author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial__name { font-weight: 500; font-size: 14px; }
.testimonial__location { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(96px, 12vw, 180px);
  text-align: center;
}
.final-cta h2 {
  max-width: 900px;
  margin: 0 auto 16px;
}
.final-cta h2 em {
  font-style: normal;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  display: block;
}
.final-cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  font-size: 17px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 56px 36px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.site-footer ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.site-footer ul a { transition: opacity var(--t-fast) var(--ease); }
.site-footer ul a:hover { opacity: 0.5; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   CATÁLOGO / PEDIDO
   ============================================================ */

body.page-pedido { background: var(--paper); }

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.catalog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.catalog-header__center {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.cart-trigger:hover { background: var(--ink); color: var(--paper); }
.cart-trigger__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.cart-trigger:hover .cart-trigger__badge {
  background: var(--paper);
  color: var(--ink);
}

.catalog-intro {
  padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px);
}
.catalog-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.catalog-intro h1 { margin-bottom: 24px; }
.catalog-intro p { color: var(--muted); max-width: 480px; }
.catalog-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.catalog-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog-meta__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-meta__value { font-weight: 500; }

/* Catalog layout */
.catalog-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 120px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.filter-group__title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  text-align: left;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.filter-chip:hover { background: var(--surface); }
.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.filter-chip__count { font-size: 12px; opacity: 0.55; }

.products-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.products-count { letter-spacing: 0.04em; color: var(--muted); }
.products-clear {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.products-clear:hover { opacity: 0.5; }

.products-search {
  position: relative;
  display: flex;
  align-items: center;
}
.products-search__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.products-search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  background: var(--paper);
  font-family: var(--font-body);
  transition: border-color var(--t-fast) var(--ease);
}
.products-search input:focus {
  outline: none;
  border-color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.product:hover .product__media img { transform: scale(1.04); }
.product__placeholder {
  position: absolute;
  inset: 0;
  background-image: url('../assets/produto.webp');
  background-size: cover;
  background-position: center;
  background-color: #f6f6f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product__placeholder-label {
  background: #0a0a0a;
  color: #ffffff;
  padding: 14px 12px 10px;
  width: 46%;
  min-width: 120px;
  min-height: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Posiciona exatamente sobre o rótulo do frasco (~57% vertical) */
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.product__placeholder-name {
  font-family: var(--font-display);
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}
.product__placeholder-brand {
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2px;
}

.product__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 8px;
}
.product__meta span { position: relative; padding-right: 8px; }
.product__meta span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 8px;
  background: var(--hairline);
  transform: translateY(-50%);
}
.product__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  min-height: 36px;
}
.product__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}
.product__price-retail {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.product__price-wholesale {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product__price-discount {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 2px;
}

.product__action { margin-top: auto; padding-top: 12px; }
.product__add {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: var(--paper);
  transition: all var(--t-fast) var(--ease);
}
.product__add:hover { background: var(--ink); color: var(--paper); }

.product__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.product__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--t-fast) var(--ease);
}
.product__qty-btn:hover { background: rgba(255,255,255,0.15); }
.product__qty-value { font-size: 13px; font-weight: 500; }

.empty-state {
  grid-column: 1 / -1;
  padding: 80px 32px;
  text-align: center;
  border: 1px dashed var(--line);
}
.empty-state h3 { margin-bottom: 8px; font-size: 22px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 14px; }

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

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
  z-index: 90;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(440px, 100vw);
  background: var(--paper);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.06);
}
.drawer.is-open { transform: translateX(0); }
/* Cada view ocupa a altura do drawer: header/footer fixos, corpo rola. */
.drawer-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.drawer-view[hidden] { display: none; }
.drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.drawer__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease);
}
.drawer__close:hover { background: var(--surface); }

.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 48px 24px;
}
.cart-empty__icon { font-size: 36px; opacity: 0.4; }
.cart-empty p { color: var(--muted); }

.cart-list { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.cart-item__thumb {
  width: 64px;
  height: 80px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.cart-item__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.cart-item__thumb-placeholder {
  position: absolute;
  inset: 0;
  background-image: url('../assets/produto.webp');
  background-size: cover;
  background-position: center;
  background-color: #f6f6f4;
}
.cart-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__meta { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.cart-item__qty {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--t-fast) var(--ease);
}
.cart-item__qty button:hover { background: var(--surface); }
.cart-item__qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
}
.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.cart-item__price { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.cart-item__remove {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  cursor: pointer;
}
.cart-item__remove:hover { color: var(--ink); }

.drawer__footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}
/* No rodapé fixo, "Você paga" é a 1ª linha — a borda do rodapé já separa. */
.drawer__footer .cart-summary__row--total {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.cart-summary__row--total {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cart-min-warning {
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.cart-min-warning strong { font-weight: 500; }
.drawer__cta {
  width: 100%;
  justify-content: center;
}

/* ---------- Checkout form ---------- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.checkout-summary {
  background: var(--surface);
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-summary__total { font-weight: 500; }
.checkout-summary button {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  cursor: pointer;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  background: var(--paper);
  transition: border-color var(--t-fast) var(--ease);
  font-family: var(--font-body);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }
.field--error input,
.field--error textarea { border-color: #c0392b; }
.field-error {
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
}
.checkout-disclaimer {
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  padding: 4px 8px 0;
  max-width: 340px;
  margin: 0 auto;
}
.checkout-back {
  text-align: center;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
}
.checkout-back:hover { color: var(--ink); }

/* ---------- Success ---------- */
.cart-success {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  gap: 24px;
}
.cart-success__check {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cart-success h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-success p {
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { aspect-ratio: 4/3; max-height: 480px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps-image { aspect-ratio: 4/3; min-height: 360px; }
  .testimonials { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalog-intro__grid { grid-template-columns: 1fr; }
  .catalog-shell { grid-template-columns: 1fr; gap: 24px; }
  .filters {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    gap: 24px;
    align-items: flex-start;
  }
  .filter-group { min-width: 200px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header__inner { height: 60px; }
  .brand__tag { display: none; }
  .site-nav { display: none; }
  .hero__headline { font-size: clamp(40px, 11vw, 64px); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .catalog-header__center { display: none; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Modelo de revenda: preço no card + desconto progressivo ===== */
.product__price-from {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.product__price-resale {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cart-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cart-ladder__label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.cart-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}
.cart-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 500;
}
.cart-step--done,
.cart-step--current { color: var(--ink); }
.cart-step--current {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.cart-step__check { font-size: 11px; }
.cart-step__atual {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.cart-step__sep {
  color: var(--muted);
  opacity: 0.4;
}
.cart-nudge {
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.cart-nudge strong { font-weight: 600; }
.cart-nudge--max {
  background: var(--ink);
  color: #fff;
}
.cart-summary__margin {
  color: var(--ink);
  font-size: 12px;
}

/* ===== Barra flutuante "Finalizar pedido" (só com itens) ===== */
.floating-checkout {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 160%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
  max-width: calc(100% - 32px);
}
.floating-checkout.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.floating-checkout__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.floating-checkout__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.floating-checkout__total {
  font-size: 17px;
  font-weight: 500;
  margin-top: 2px;
}
.floating-checkout__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.floating-checkout:hover .btn__arrow { transform: translateX(4px); }

@media (max-width: 600px) {
  .floating-checkout {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: translateY(160%);
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
  }
  .floating-checkout.is-visible { transform: translateY(0); }
}
