/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-deep: #081226;
  --navy: #0d1b3d;
  --white: #ffffff;
  --gray-light: #f4f4f7;
  --text-muted: #55607a;

  --font-display: "Urbanist", sans-serif;
  --font-body: "Inter", sans-serif;

  --header-height: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

/* Locks scroll behind the loading screen; main.js removes this class
   once the reveal transition starts. */
body.is-loading {
  overflow: hidden;
}

/* Locks scroll behind the mobile nav panel while it's open. */
body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* ---------- Loading screen ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loading-screen.is-done {
  transform: translateY(-100%);
}

.loading-phrases {
  position: relative;
  width: 100%;
  max-width: 640px;
  min-height: 4rem;
  padding: 0 24px;
}

.loading-phrase {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 0 24px;
  transform: translate(-50%, calc(-50% + 16px));
  opacity: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--white);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading-phrase.is-active {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.loading-progress-track {
  margin-top: 2.5rem;
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.loading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.2s linear;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 48px;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: var(--navy-deep);
  padding: 18px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  font-weight: 300;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Hidden on desktop; becomes a hamburger toggling a slide-in panel on
   mobile (see media query below). */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 1;
}

/* ---------- Products mega menu ---------- */
.nav-item--products {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.nav-item--products:hover .nav-trigger,
.nav-item--products:focus-within .nav-trigger {
  opacity: 1;
}

.nav-trigger-chevron {
  transition: transform 0.3s ease;
}

.nav-item--products:hover .nav-trigger-chevron,
.nav-item--products:focus-within .nav-trigger-chevron {
  transform: rotate(180deg);
}

.products-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: -32px;
  width: 640px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(8, 18, 38, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 110;
}

.nav-item--products:hover .products-menu,
.nav-item--products:focus-within .products-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.products-menu-inner {
  display: flex;
  /* Fixed (not min-) height: the "Todos os produtos" group renders more
     rows than any single-category placeholder group, so a min-height let
     the whole box (and the category list stretched alongside it) grow on
     hover — which visibly shoved "Todos os produtos" down and away from
     the user's cursor right as they tried to click it. A fixed height
     keeps the box — and that link's position — identical for every group.
     Sized for 9 categories (10 rows including "Todos os produtos") and
     the "Todos os produtos" group's 3-row image grid. */
  height: 640px;
}

.products-menu-categories {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-right: 1px solid var(--gray-light);
  /* The category count isn't fixed (the client has already restructured
     the catalog once) — scrolling this column on overflow, instead of
     just widening .products-menu-inner's fixed height to fit today's
     count, keeps a future recount from spilling the list out past the
     panel again. */
  overflow-y: auto;
}

.main-nav .products-menu-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: none;
  border: none;
  width: 100%;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: left;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.products-menu-category svg {
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.products-menu-category:hover,
.products-menu-category.is-active {
  opacity: 1;
  background: var(--gray-light);
}

.products-menu-category:hover svg,
.products-menu-category.is-active svg {
  opacity: 1;
  transform: translateX(0);
}

.products-menu-category--all {
  margin-top: auto;
  border-top: 1px solid var(--gray-light);
  padding-top: 1rem;
  font-weight: 600;
}

.products-menu-panel {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.products-menu-group {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.products-menu-group.is-active {
  display: grid;
}

.products-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  text-align: center;
  transition: background 0.25s ease;
}

.products-menu-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--gray-light);
  overflow: hidden;
}

.products-menu-group--all .products-menu-item-media {
  background: var(--white);
  border: 1px solid var(--gray-light);
}

.products-menu-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.products-menu-item-media svg {
  color: var(--text-muted);
}

.products-menu-item-label {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.products-menu-item--placeholder .products-menu-item-label {
  color: var(--text-muted);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.3rem;
  border-radius: 2px;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--navy-deep);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switch button {
  background: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.55;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.lang-switch button:hover {
  opacity: 0.85;
}

.lang-switch button.is-active {
  opacity: 1;
  background: var(--white);
  color: var(--navy-deep);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 2;
  /* Safety net: guarantees an opaque backdrop even if the video errors
     out, instead of the section behind it (overlapped underneath, see
     .products-section) showing through a not-fully-opaque overlay. */
  background: var(--navy-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 38, 0.78) 0%,
    rgba(8, 18, 38, 0.3) 45%,
    rgba(8, 18, 38, 0.8) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + 60px) 48px 140px;
  pointer-events: none;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
  font-size: clamp(1.1rem, 2.3vw, 2.1rem);
  max-width: 640px;
}

.hero-line--top {
  align-self: flex-start;
  text-align: left;
}

.hero-line--bottom {
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
}

/* word stagger reveal */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

[data-split].is-visible .word-inner {
  transform: translateY(0);
  opacity: 1;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }
  50% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* ---------- Reveal + page content ---------- */
.page-content {
  position: relative;
  background: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.55;
}

/* ---------- Contact form ---------- */
.contact-section {
  position: relative;
  background: var(--white);
  padding: 140px 48px;
  /* So a direct link to #contato (e.g. from the import popup's "Sim"
     flow) lands below the fixed header instead of partly under it. */
  scroll-margin-top: var(--header-height);
}

.contact-inner {
  max-width: 880px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0.8rem 0 1rem;
}

.contact-header p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-field label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  opacity: 0.7;
}

.contact-field input,
.contact-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gray-light);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-field textarea {
  resize: vertical;
  font-family: var(--font-body);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  background: var(--navy-deep);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.contact-submit:hover {
  opacity: 0.85;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.contact-form-status.is-success {
  color: #1a7d3c;
}

.contact-form-status.is-error {
  color: #c0392b;
}

.contact-field--checkbox {
  flex-direction: row;
}

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

.contact-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.contact-checkbox--highlight {
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--gray-light);
  border: 1px solid rgba(13, 27, 61, 0.1);
}

.contact-checkbox--highlight input {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
}

.contact-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-checkbox-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-checkbox-text small {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.contact-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  background: var(--gray-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-choice-btn:hover {
  border-color: var(--navy);
}

.contact-choice-check {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-choice-btn.is-active .contact-choice-check {
  background: var(--white);
  border-color: var(--white);
}

.contact-choice-btn.is-active .contact-choice-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  transform: translate(-50%, -50%);
}

.contact-choice-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.contact-field-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8b1e14;
}

.contact-field-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.contact-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.contact-chip span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-chip:hover span {
  border-color: var(--navy);
}

.contact-chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.contact-chip input:focus-visible + span {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- Import (China) popup ---------- */
body.popup-open {
  overflow: hidden;
}

.import-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 38, 0.6);
}

/* The class above sets its own `display`, which otherwise overrides the
   browser's default [hidden] rule (author styles beat the UA stylesheet
   at equal specificity) — without this the popup shows on page load. */
.import-popup-overlay[hidden] {
  display: none;
}

.import-popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(8, 18, 38, 0.35);
}

.import-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.import-popup-close:hover {
  color: var(--navy);
}

.import-popup h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--navy);
  padding-right: 24px;
}

.import-popup p {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.import-popup-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.import-popup-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.import-popup-btn:hover {
  opacity: 0.85;
}

.import-popup-btn--yes {
  background: var(--navy);
  color: var(--white);
}

.import-popup-btn--no {
  background: var(--gray-light);
  color: var(--navy);
}

/* ---------- Products (pinned scroll carousel) ---------- */
/* Self-contained pinned carousel — no longer tied to the hero (that
   reveal-on-exit effect now belongs to .segments-section, the section
   that's actually adjacent to the hero). JS sets the section's real
   height to (100vh carousel-viewport + scrollDistance) so the sticky
   child holds for exactly as long as the card track's translation. */
.products-section {
  position: relative;
  background: var(--white);
}

.products-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  z-index: 1;
  display: flex;
  overflow: hidden;
  background: var(--white);
}

.products-left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 0 48px;
}

.products-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  color: var(--navy);
  margin-top: 1rem;
}

.products-highlights {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.8rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.highlight-icon {
  width: 38px;
  height: 38px;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.highlight-line {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--navy);
}

.highlight-line--bold {
  font-weight: 700;
}

.progress-track {
  width: 220px;
  height: 2px;
  background: rgba(13, 27, 61, 0.12);
  margin-top: 3rem;
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--navy);
}

.products-segment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.products-segment-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.products-segment-tab:hover {
  border-color: var(--navy);
}

.products-segment-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.products-right {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.products-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: calc(var(--header-height) + 20px) 48px 40px 0;
  will-change: transform;
}

.product-card {
  background: var(--gray-light);
  border-radius: 16px;
  padding: 2.4rem 2.8rem;
  margin-bottom: 1.5rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* .product-card's own `display: flex` (an author rule) otherwise beats the
   browser's native `[hidden] { display: none }` UA rule, so a card with the
   `hidden` property set (see the segment-tab toggle in main.js) would stay
   visible and keep contributing to the track's scrollHeight. */
.product-card[hidden] {
  display: none;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.product-card-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--navy);
  max-width: 260px;
}

.product-card-info p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 420px;
}

.product-card-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.2rem;
}

.product-card-links .segment-view-products {
  margin-top: 0;
  font-size: 1rem;
}

.product-media {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Parallax transition section ---------- */
.parallax-section {
  position: relative;
  height: 260vh;
  height: 260svh;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Dilutes the white of the previous section into the navy background,
   instead of a hard cut at the seam. The intermediate stops are actual
   blue-tinted hues (not neutral grays) so saturation ramps up gradually
   the whole way down — neutral-gray mid-stops looked fine on lightness
   but jumped straight to saturated blue right at the end, which read as
   a harsh seam even though the brightness itself faded smoothly. */
.parallax-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 78vh;
  z-index: 3;
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    #eef1f6 12%,
    #ccd6e6 28%,
    #93a4c4 45%,
    #55688f 62%,
    #223350 80%,
    rgba(8, 18, 38, 0) 100%
  );
  pointer-events: none;
}

.parallax-bg-text {
  position: absolute;
  top: 34%;
  left: -20%;
  transform: translateY(-50%);
  z-index: 1;
  white-space: nowrap;
  will-change: transform;
}

.parallax-bg-text span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 46vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  margin-right: 3vw;
}

/* The track holds the 4 real photos plus decorative looping duplicates
   (see index.html). Its horizontal position is fully driven by main.js —
   which centers the first set at rest and wraps the scroll-driven offset
   within one set's width — so left/transform intentionally start at 0. */
.parallax-track {
  position: absolute;
  top: 34%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  gap: 24px;
  will-change: transform;
}

.parallax-item {
  flex: 0 0 auto;
  width: 320px;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
}

.parallax-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Static (non-parallax) stat block, further down the tall section. */
.parallax-stats {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  gap: 6rem;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

/* Reserves the number's final width (set in ch by main.js, based on its
   target digit count) so growing digits never push the suffix around. */
.stat-count-value {
  display: inline-block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-caption {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Covers the whole section (background text, image row, stats — not just
   a strip) at a uniform opacity driven live by main.js, so everything
   dissolves into white together as the section finishes scrolling past. */
/* Fades to navy (not white) — this section is now the last content
   section, followed directly by the navy footer. The section's own
   background is already navy-deep, so this isn't "revealing" navy from
   underneath; it smoothly dissolves the drifting text/images/stats away
   before the handoff, rather than having them just stop existing at the
   section boundary. */
.parallax-whiteout {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--navy-deep);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Segments (Cerâmica / Equipamentos Industriais cards) ---------- */
/* Pulled up to overlap the hero by exactly one viewport (margin-top:
   -100vh) so its sticky child is already "there" underneath the hero from
   scroll 0 — the same reveal-on-exit technique the products carousel
   used to own. JS sets the section's real height to (this content's own
   natural height + heroHeight) so the sticky child holds for exactly as
   long as the hero takes to scroll away, then releases into normal flow
   with no jump (unlike the carousel, there's no internal scroll-driven
   content here, so no extra hold time is needed beyond that). */
.segments-section {
  position: relative;
  margin-top: -100vh;
}

.segments-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
  padding: 140px 48px;
}

/* Mirrors .segments-grid's 2-column layout (same gap) so the description
   in column 2 lines up exactly with the right card's left edge below it. */
.segments-header {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
}

.segments-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.25;
  color: var(--navy);
  max-width: 620px;
}

.segments-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding-top: 0.4rem;
}

.segments-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.segment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 48px;
  border-radius: 16px;
  overflow: hidden;
}

.segment-card--light {
  background: var(--gray-light);
  color: var(--navy);
}

.segment-card--dark {
  background: var(--navy-deep);
  color: var(--white);
}

.segment-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.segment-card-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  max-width: 320px;
}

.segment-card-content p {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 340px;
  opacity: 0.75;
}

.segment-view-products {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: inherit;
  text-decoration: none;
  align-self: flex-start;
}

.segment-view-products::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.segment-view-products:hover::after {
  transform: scaleX(1);
}

.segment-card-actions {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  gap: 0.75rem;
}

/* The "Soluções para a indústria" cards (segments-section) only show a
   single "Ver produtos" CTA — no .segment-card-actions row of buttons —
   so it needs the same bottom-anchoring that row used to provide. */
.segment-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.segment-btn:hover {
  transform: translateY(-2px);
}

.segment-card--light .segment-btn--primary {
  background: var(--navy);
  color: var(--white);
}

.segment-card--light .segment-btn--primary:hover {
  background: var(--navy-deep);
}

.segment-card--light .segment-btn--secondary {
  background: var(--gray-light);
  color: var(--navy);
  border: 1px solid rgba(13, 27, 61, 0.3);
}

.segment-card--light .segment-btn--secondary:hover {
  border-color: var(--navy);
}

.segment-card--dark .segment-btn--primary {
  background: var(--white);
  color: var(--navy-deep);
}

.segment-card--dark .segment-btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.segment-card--dark .segment-btn--secondary {
  background: var(--navy-deep);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.segment-card--dark .segment-btn--secondary:hover {
  border-color: var(--white);
}

.segment-card-media {
  position: absolute;
  right: -32px;
  bottom: 48px;
  width: 58%;
  max-width: 340px;
  z-index: 1;
  pointer-events: none;
}

.segment-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Scroll-fill text ---------- */
/* Pinned (position: sticky) while the section's extra height gives the
   user room to scroll; main.js turns words from light to dark, in reading
   order, based on how far through that hold the scroll currently is. */
.scroll-text-section {
  position: relative;
  height: 280vh;
  height: 280svh;
  background: var(--white);
}

.scroll-text-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-text-inner {
  max-width: 1100px;
  padding: 0 48px;
  text-align: center;
}

.scroll-text-paragraph {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.4;
}

.scroll-text-word {
  color: rgba(13, 27, 61, 0.18);
  transition: color 0.15s ease;
}

.scroll-text-word.is-filled {
  color: var(--navy);
}

.scroll-text-photo {
  display: inline-block;
  width: 64px;
  height: 52px;
  margin: 0 6px -10px;
  border-radius: 12px;
  overflow: hidden;
  vertical-align: middle;
}

.scroll-text-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-text-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 3rem;
  padding: 1rem 2.2rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-text-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

/* ---------- Purchase models (pinned horizontal slide) ---------- */
/* Two full panels (text left / image right each), pinned while the
   section's extra width (set by main.js, mirroring the vertical products
   carousel's own height trick) slides the track from panel 1 to panel 2 —
   only then does normal vertical scroll continue. Background matches the
   parallax section's whiteout target exactly (var(--white)) so the
   handoff above has zero visible seam. */
.purchase-cards-section {
  position: relative;
  background: var(--white);
  padding: 140px 48px;
}

.purchase-cards-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.process-pin-section {
  position: relative;
  background: var(--white);
}

.process-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 20px) 48px 60px;
  overflow: hidden;
}

.process-header {
  max-width: 760px;
}

.process-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.25;
  color: var(--navy);
  margin-top: 0.8rem;
}

.process-timeline {
  margin-top: 3rem;
}

.process-timeline-track {
  position: relative;
  height: 2px;
  background: rgba(13, 27, 61, 0.12);
}

.process-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--navy);
}

.process-timeline-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.process-timeline-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.4rem 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.process-timeline-step:hover {
  opacity: 0.85;
}

.process-timeline-step.is-active {
  opacity: 1;
}

.process-timeline-step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.process-timeline-step-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.process-timeline-step.is-active .process-timeline-step-label {
  font-weight: 700;
}

.process-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 2.5rem;
}

.process-track {
  display: flex;
  height: 100%;
  width: 500%;
  will-change: transform;
}

.process-panel {
  flex: 0 0 20%;
  width: 20%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.process-panel-media {
  flex: 1 1 45%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-light);
}

.process-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-panel-media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.process-panel-text {
  flex: 1 1 55%;
  max-width: 560px;
}

.process-panel-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--navy);
}

.process-panel-text p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.process-options-list {
  margin-top: 0.9rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.process-options-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.process-options-list li + li {
  margin-top: 0.5rem;
}

.purchase-pin-section {
  position: relative;
  background: var(--white);
}

.purchase-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.purchase-track {
  display: flex;
  height: 100%;
  width: 200%;
  will-change: transform;
}

.purchase-panel {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding: 0 48px;
}

.purchase-panel-text {
  flex: 1 1 55%;
  max-width: 640px;
}

.purchase-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--navy);
  margin-top: 1rem;
}

.purchase-item {
  margin-top: 2.5rem;
}

.purchase-item-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.segment-card-content .purchase-item-tag {
  margin-bottom: 0.6rem;
}

.purchase-item p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.purchase-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.purchase-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.purchase-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(13, 27, 61, 0.12);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.purchase-panel-media {
  flex: 1 1 45%;
}

.purchase-panel-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ---------- Scroll reveal (fade + rise / fade + slide-in) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-image] {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-image].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 80px 48px 32px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span {
  font-weight: 300;
  opacity: 0.85;
}

.footer-address {
  margin-top: 1rem;
  max-width: 280px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  padding-top: 28px;
}

.footer-entity {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 14px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--white);
}

.footer-legal-links span {
  color: rgba(255, 255, 255, 0.25);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-copyright span[aria-hidden] {
  color: rgba(255, 255, 255, 0.25);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-copyright a:hover {
  color: var(--white);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(8, 18, 38, 0.3);
  z-index: 60;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(8, 18, 38, 0.35);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header,
  .site-header.scrolled {
    padding: 18px 24px;
  }

  .contact-section {
    padding: 90px 24px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
    /* .cart-trigger--mobile sits between .logo and this button in the
       markup — space-between here (inherited from .header-inner) would
       otherwise shove them apart to the two ends of the bar. Its own
       mobile override lives further down, right after its base (desktop)
       rule — see the comment there for why. */
    order: 1;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 100px 32px 40px;
    background: var(--navy-deep);
    box-shadow: -12px 0 40px rgba(8, 18, 38, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 100;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1rem;
  }

  .nav-item--products {
    width: 100%;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
  }

  .nav-item--products.is-open .nav-trigger-chevron {
    transform: rotate(180deg);
  }

  .products-menu {
    position: static;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-item--products.is-open .products-menu {
    max-height: 520px;
    margin-top: 0.75rem;
    /* Same reasoning as .products-menu-categories' own overflow-y below:
       the category count already grew past what 520px comfortably fits
       once, so let it scroll instead of clipping (the collapsed state
       above still needs overflow: hidden for the 0-height animation, so
       this only overrides it once open). */
    overflow-y: auto;
  }

  .products-menu-inner {
    display: block;
    height: auto;
  }

  .products-menu-categories {
    flex: none;
    border-right: none;
    padding: 0;
  }

  .main-nav .products-menu-category {
    color: var(--white);
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }

  .products-menu-category:hover,
  .products-menu-category.is-active {
    background: rgba(255, 255, 255, 0.08);
  }

  .products-menu-category--all {
    border-top-color: rgba(255, 255, 255, 0.15);
  }

  .products-menu-panel {
    display: none;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.5rem;
  }

  .hero-content {
    padding: calc(var(--header-height) + 30px) 24px 160px;
  }

  .hero-line--bottom {
    text-align: left;
    align-self: flex-start;
    margin-left: 0;
  }

  /* Pinned scroll-carousel is desktop-only (see main.js, which skips the
     JS math below this breakpoint). Here it just becomes a normal
     stacked, scrollable layout. */
  .products-section {
    position: static !important;
    height: auto !important;
  }

  .products-sticky {
    position: static;
    height: auto;
    flex-direction: column;
  }

  .products-left {
    flex: none;
    padding: 100px 24px 40px;
  }

  .products-right {
    position: static;
    height: auto;
    overflow: visible;
  }

  .products-track {
    position: static;
    transform: none !important;
    padding: 0 24px 100px;
  }

  .product-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .parallax-bg-text {
    /* On mobile the same rightward drift (PARALLAX_TEXT_TRAVEL, a fixed
       px value in main.js) covers a much bigger share of the narrower
       viewport, so starting at the desktop-tuned -20% already carries it
       mostly past the visible area by the time the carousel appears.
       Starting further left keeps it in view for longer. */
    left: -85%;
  }

  .parallax-bg-text span {
    font-size: 85vw;
  }

  .parallax-item {
    width: 200px;
    height: 140px;
  }

  .parallax-stats {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-number {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .purchase-section {
    padding: 100px 24px;
  }

  .purchase-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .purchase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .purchase-media {
    position: static;
    width: 100%;
  }

  .site-footer {
    padding: 60px 24px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /* Hero reveal-over effect is desktop-only (see main.js). Here the
     section just becomes a normal, non-pinned block. */
  .segments-section {
    position: static !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  .segments-sticky {
    position: static;
    padding: 100px 24px;
  }

  .segments-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 40px;
  }

  .segments-grid {
    grid-template-columns: 1fr;
  }

  .purchase-cards-section {
    padding: 90px 24px;
  }

  .segment-card {
    min-height: 420px;
    padding: 32px;
  }

  .segment-card-actions {
    flex-wrap: wrap;
  }

  .scroll-text-section {
    height: 220vh;
    height: 220svh;
  }

  .scroll-text-photo {
    width: 44px;
    height: 36px;
    margin: 0 4px -6px;
    border-radius: 8px;
  }

  /* Horizontal scroll-jacking is a desktop-only effect (see main.js,
     which skips the JS math below this breakpoint) — here the two panels
     just become a normal stacked, scrollable layout. */
  .purchase-pin-section {
    height: auto !important;
  }

  .purchase-pin-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .purchase-track {
    display: block;
    width: auto;
    height: auto;
    transform: none !important;
  }

  .purchase-panel {
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 100px 24px;
  }

  .process-pin-section {
    height: auto !important;
  }

  .process-pin-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 100px 24px;
  }

  .process-timeline-step-label {
    display: none;
  }

  .process-timeline-step {
    opacity: 1;
  }

  .process-timeline-fill {
    display: none;
  }

  .process-viewport {
    overflow: visible;
    margin-top: 2.5rem;
  }

  .process-track {
    display: block;
    width: auto;
    height: auto;
    transform: none !important;
  }

  .process-panel {
    width: auto;
    height: auto;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 0 60px;
  }

  .process-panel:last-child {
    padding-bottom: 0;
  }
}

/* ---------- "Em desenvolvimento" page (em-breve.html) ---------- */
.em-breve-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 48px;
  text-align: center;
  background: var(--white);
}

.em-breve-gear {
  color: var(--navy);
  animation: em-breve-spin 4s linear infinite;
  animation-delay: 1s;
}

@keyframes em-breve-spin {
  to {
    transform: rotate(360deg);
  }
}

.em-breve-text {
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: var(--navy);
}

/* .segment-btn--primary only gets a background/color from its usual
   .segment-card--light/--dark parent — this page uses the button on its
   own, so it needs that same fill declared directly. */
.em-breve-page .segment-btn--primary {
  background: var(--navy);
  color: var(--white);
}

.em-breve-page .segment-btn--primary:hover {
  background: var(--navy-deep);
}

/* ---------- Products catalog page (produtos.html) ---------- */
/* This page has no hero video behind it, so — unlike index.html, where the
   header starts transparent over the hero and only solidifies on scroll —
   it needs to be solid from the very first frame. */
.site-header.is-static {
  background: var(--navy-deep);
  padding: 18px 48px;
}

.main-nav a.is-current {
  opacity: 1;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.catalog-page {
  padding-top: var(--header-height);
  background: var(--white);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 64px 48px 24px;
}

.catalog-header-text {
  max-width: 640px;
}

.catalog-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0.8rem;
}


.catalog-header-media {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 320px);
}

.catalog-header-media img {
  width: 100%;
  height: auto;
  display: block;
}

.catalog-controls-sticky {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--white);
}

.catalog-segment-tabs {
  display: flex;
  gap: 0;
  padding: 0 48px;
  border-bottom: 1px solid var(--gray-light);
}

.catalog-segment-tab {
  margin-bottom: -1px;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.catalog-segment-tab:hover {
  color: var(--navy);
}

.catalog-segment-tab.is-active {
  border-color: var(--gray-light);
  border-bottom: 1px solid var(--white);
  background: var(--white);
  color: var(--navy);
}

.catalog-filters-inner {
  border-bottom: 1px solid var(--gray-light);
  padding-top: 1.5rem;
}

.catalog-filters-label {
  display: block;
  padding: 0 48px;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.6rem;
  max-width: 1100px;
  padding: 0 48px 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.catalog-filter-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.catalog-filter-chip:hover {
  background: var(--gray-light);
  border-color: var(--navy);
}

.catalog-filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* .catalog-card started out as the old per-category carousel's card
   (scroll-snap track, fixed width) — that carousel/track/arrow/toggle
   machinery is gone now that produtos.html is a single flat grid (see
   .catalog-grid below), but the card itself is reused as-is for the grid. */
.catalog-card {
  display: flex;
  flex-direction: column;
}

.catalog-card-media {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--gray-light);
  overflow: hidden;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}

.catalog-card h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--navy);
}

.catalog-card p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .catalog-header,
  .catalog-filters,
  .catalog-filters-label,
  .catalog-segment-tabs {
    padding-left: 24px;
    padding-right: 24px;
  }

  .catalog-segment-tab {
    padding: 0.8rem 1.1rem;
    font-size: 0.88rem;
  }

  .catalog-filters-inner {
    padding-top: 2rem;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-header-media {
    width: 160px;
  }

  .catalog-filters {
    padding-right: 24px;
  }
}

/* ---------- Header cart trigger ---------- */
.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--white);
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c0392b;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* The mobile cart icon sits in .header-inner, next to .menu-toggle, so
   it's reachable without opening the off-canvas nav .cart-trigger lives
   in (see the max-width: 768px override right below, which swaps which
   of the two is visible). Hidden by default — this is the desktop
   no-op state. */
.cart-trigger--mobile {
  display: none;
}

@media (max-width: 768px) {
  .cart-trigger--mobile {
    display: inline-flex;
    order: 0;
    margin-left: auto;
    margin-right: 18px;
  }

  /* The desktop cart icon lives inside .main-nav, which becomes the
     off-canvas panel on mobile — hidden here so it doesn't duplicate
     .cart-trigger--mobile, which stays reachable without opening it. */
  .main-nav .cart-trigger {
    display: none;
  }
}

/* ---------- Product grid (produtos.html) ---------- */
.catalog-filter-count {
  opacity: 0.65;
  font-weight: 500;
}

.catalog-filter-chip.is-active .catalog-filter-count {
  opacity: 0.85;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  padding: 40px 48px 80px;
  /* Clears the fixed header + the sticky segment-tabs/filter-chips block
     above it (its real height, which changes as chips wrap differently
     per segment) — without this, scrollIntoView() on a filter click lands
     the grid's top edge at the very top of the viewport, and the sticky
     bar then overlaps the first row of cards, cutting off their images. */
  scroll-margin-top: calc(var(--header-height) + var(--catalog-controls-height, 120px) + 24px);
}

/* Overrides the flex/scroll-snap sizing .catalog-card inherited from its
   old carousel-card days — irrelevant now that it's a grid item, except
   for the fixed `width`, which would fight the grid's own column sizing. */
.catalog-grid .catalog-card {
  width: auto;
}

.catalog-grid-empty {
  padding: 0 48px 80px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* margin-top: auto pins the buttons to the bottom of the card regardless
   of how many lines the product name wraps to — CSS Grid already stretches
   every .catalog-card in a row to the row's tallest card (default
   align-items: stretch), so without this the actions block just sits
   right under a short title instead of lining up with the row's other
   cards. .catalog-card h3's margin-bottom is the guaranteed minimum gap
   this auto margin can't shrink below. */
.catalog-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.cotacao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cotacao-btn--china {
  background: var(--navy);
  color: var(--white);
}

.cotacao-btn--china:hover {
  background: var(--navy-deep);
}

/* "Cotação Brasil" isn't a real option yet (see em-breve.html) — dimmed
   and inert (no href/handler on the elements using this class) rather than
   removed, so its eventual arrival is already visually anticipated. */
.cotacao-btn--brasil {
  background: var(--gray-light);
  color: var(--navy);
  border-color: rgba(13, 27, 61, 0.15);
  opacity: 0.45;
  cursor: not-allowed;
  user-select: none;
}

/* ---------- Cart drawer ---------- */
body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 38, 0.5);
  z-index: 200;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100svh;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: -12px 0 40px rgba(8, 18, 38, 0.2);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-drawer-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 32px 0;
  text-align: center;
}

.cart-drawer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-drawer-item-media {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--gray-light);
  overflow: hidden;
}

.cart-drawer-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
}

.cart-drawer-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cart-drawer-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(13, 27, 61, 0.2);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.cart-qty-btn:hover {
  border-color: var(--navy);
}

.cart-qty-value {
  min-width: 1.2em;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.cart-drawer-item-remove {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.cart-drawer-item-remove:hover {
  color: #c0392b;
}

.cart-drawer-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-light);
}

.cart-finalize-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  border-radius: 4px;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.cart-finalize-btn:hover {
  opacity: 0.85;
}

.cart-finalize-btn.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- Product detail page (produto.html) ---------- */
.produto-page {
  padding: calc(var(--header-height) + 48px) 48px 100px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
}

.produto-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
}

.produto-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.produto-breadcrumb a:hover {
  color: var(--navy);
}

.produto-breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.produto-breadcrumb-current {
  color: var(--navy);
  font-weight: 600;
}

.produto-detail {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 56px;
  align-items: start;
}

.produto-detail-media {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--gray-light);
  overflow: hidden;
}

.produto-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  display: block;
}

.produto-detail-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 2rem;
}

.produto-qty-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.produto-qty-field label {
  font-size: 0.8rem;
  color: var(--navy);
  opacity: 0.7;
}

.produto-qty-stepper {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.produto-qty-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border: none;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
}

.produto-qty-btn:hover {
  background: rgba(13, 27, 61, 0.1);
}

.produto-qty-stepper input {
  width: 56px;
  height: 40px;
  border: none;
  border-left: 1px solid rgba(13, 27, 61, 0.15);
  border-right: 1px solid rgba(13, 27, 61, 0.15);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  -moz-appearance: textfield;
}

.produto-qty-stepper input::-webkit-outer-spin-button,
.produto-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.produto-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.produto-detail-actions .cotacao-btn {
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
}

.produto-add-confirmation {
  display: block;
  color: #1a7d3c;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.produto-related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-light);
}

.produto-related-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

.produto-related-grid {
  padding: 0;
  margin-bottom: 2rem;
}

.produto-related-view-all {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.produto-not-found {
  padding: 140px 48px;
  text-align: center;
  color: var(--text-muted);
}

.produto-not-found a {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Quote checkout (cotacao.html) ---------- */
.cotacao-page {
  padding: calc(var(--header-height) + 48px) 48px 120px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
}

.cotacao-header {
  margin-bottom: 3rem;
}

.cotacao-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--navy);
  margin: 0.6rem 0 0.8rem;
}

.cotacao-header p {
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cotacao-layout {
  display: grid;
  gap: 3rem;
}

.cotacao-summary {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 24px;
}

.cotacao-summary h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cotacao-summary-list {
  display: flex;
  flex-direction: column;
}

.cotacao-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 27, 61, 0.08);
}

.cotacao-summary-item:last-child {
  border-bottom: none;
}

.cotacao-summary-item-media {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.cotacao-summary-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.cotacao-summary-item-info {
  flex: 1;
  min-width: 0;
}

.cotacao-summary-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.cotacao-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.cotacao-empty p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cotacao-success {
  text-align: center;
  padding: 80px 24px;
}

.cotacao-success h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.cotacao-success p {
  max-width: 480px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cotacao-question-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: -0.25rem 0 0.75rem;
}

@media (min-width: 860px) {
  .cotacao-layout {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .produto-page,
  .cotacao-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .produto-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 32px 24px 60px;
  }

  .catalog-grid-empty {
    padding: 0 24px 60px;
  }

  .cart-drawer {
    max-width: none;
  }
}

/* ---------- Internal orders page (pedidos.html) ---------- */
/* Internal-only page (direct URL, noindex). Reuses the site header, fonts,
   navy palette and the catalog filter chips; everything else here is
   specific to the quotations/orders table. */
:root {
  --status-fechado: #1f56b5;
  --status-cancelado: #c0392b;
  --status-revisado: #b7791f;
  --status-consulta: #55688f;

  --tone-good: #1a7d3c;
  --tone-warn: #9a6700;
  --tone-bad: #c0392b;

  --admin-border: rgba(13, 27, 61, 0.1);
  --admin-row-open: #f7f9fc;
}

/* No hero here and no JS measuring the header, so it simply sticks in the
   page flow instead of being fixed over a padded <main>. */
.site-header.admin-site-header {
  position: sticky;
}

.admin-badge {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.admin-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 96px;
  background: var(--white);
}

.admin-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin-top: 0.6rem;
}

/* KPI cards */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.admin-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--white);
}

.admin-kpi.is-accent {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.admin-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-kpi-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.admin-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-kpi.is-accent .admin-kpi-label,
.admin-kpi.is-accent .admin-kpi-sub {
  color: rgba(255, 255, 255, 0.6);
}

.admin-kpi.is-accent .admin-kpi-value {
  color: var(--white);
}

/* Controls */
.admin-controls {
  margin-top: 32px;
}

.admin-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 2px;
  color: var(--text-muted);
  transition: border-color 0.25s ease;
}

.admin-search:focus-within {
  border-color: var(--navy);
}

.admin-search input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--navy);
}

.admin-dropdown-trigger,
.admin-btn {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.admin-dropdown-trigger:hover,
.admin-btn:hover {
  background: var(--gray-light);
  border-color: var(--navy);
}

.admin-btn:disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--white);
  border-color: rgba(13, 27, 61, 0.15);
}

.admin-btn--primary,
.admin-btn--primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.admin-btn--primary:hover {
  background: var(--navy-deep);
}

.admin-btn--primary:disabled {
  background: var(--navy);
  border-color: var(--navy);
}

/* Filter dropdowns (period, client) — custom so they match the page
   instead of the OS-native <select>. */
.admin-dropdown {
  position: relative;
}

.admin-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

.admin-dropdown-trigger > svg:first-child {
  color: var(--text-muted);
}

.admin-dropdown-label {
  flex: 1;
  text-align: left;
}

.admin-dropdown-chevron {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.admin-dropdown.is-open .admin-dropdown-trigger {
  border-color: var(--navy);
  background: var(--white);
}

.admin-dropdown.is-open .admin-dropdown-chevron {
  transform: rotate(180deg);
}

.admin-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 100%;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(8, 18, 38, 0.18);
  animation: menu-in 0.14s ease-out;
}

#ordersClientFilter .admin-dropdown-panel {
  left: auto;
  right: 0;
}

.admin-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.admin-option:hover,
.admin-option:focus-visible {
  background: var(--gray-light);
  outline: none;
}

.admin-option[aria-selected="true"] {
  font-weight: 600;
}

.admin-option-meta {
  margin-left: auto;
  padding-left: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.admin-option-check,
.admin-option-arrow {
  flex: 0 0 auto;
  color: var(--status-fechado);
}

.admin-option-arrow {
  color: var(--text-muted);
}

/* Keeps unselected rows aligned with the selected one's check icon. */
.admin-option:not([aria-selected="true"]) .admin-option-meta {
  margin-right: 22px;
}

.admin-option[data-preset="custom"] .admin-option-meta {
  margin-right: 0;
}

.admin-option-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--admin-border);
}

.admin-date-panel {
  width: 300px;
}

/* Period calendar ("Personalizado") */
.date-cal {
  padding: 4px 6px 6px;
}

.date-cal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin-left: -6px;
  border: none;
  border-radius: 4px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.date-cal-back:hover {
  color: var(--navy);
  background: var(--gray-light);
}

.date-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 6px;
}

.date-cal-nav strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.date-cal-nav .row-toggle:disabled {
  opacity: 0.25;
  cursor: default;
}

.date-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.date-cal-weekday {
  padding: 6px 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.date-cal-day {
  position: relative;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.date-cal-day:hover:not(:disabled) {
  background: var(--gray-light);
}

.date-cal-day:disabled {
  color: rgba(13, 27, 61, 0.25);
  cursor: default;
}

.date-cal-day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--status-fechado);
}

.date-cal-day.is-in-range,
.date-cal-day.is-preview {
  border-radius: 0;
  background: rgba(31, 86, 181, 0.1);
}

.date-cal-day.is-start,
.date-cal-day.is-end,
.date-cal-day.is-start:hover,
.date-cal-day.is-end:hover {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.date-cal-day.is-start.is-today::after,
.date-cal-day.is-end.is-today::after {
  background: var(--white);
}

.date-cal-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--admin-border);
  font-size: 0.8rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.date-cal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.date-cal-actions .admin-btn {
  padding: 0.55rem 0.9rem;
}

/* The catalog chips' own padding assumes a full-bleed bar; here they sit
   inside the page's padding already. */
.catalog-filters.admin-status-filters {
  max-width: none;
  padding: 16px 0 0;
}

.admin-status-filters .catalog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.status-fechado { background: var(--status-fechado); }
.status-dot.status-cancelado { background: var(--status-cancelado); }
.status-dot.status-revisado { background: var(--status-revisado); }
.status-dot.status-consulta { background: var(--status-consulta); }

.catalog-filter-chip.is-active .status-dot {
  box-shadow: 0 0 0 2px var(--white);
}

/* Table */
.orders-table-wrap {
  margin-top: 24px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.orders-table th,
.orders-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--admin-border);
  background: var(--white);
}

.orders-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.orders-table th:hover {
  color: var(--navy);
}

.orders-table th::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0;
}

.orders-table th.is-sorted {
  color: var(--navy);
}

.orders-table th.is-sorted::after {
  opacity: 1;
}

.orders-table th[aria-sort="ascending"]::after {
  transform: rotate(180deg);
}

.orders-table .is-num {
  text-align: right;
}

/* Status column stays put while the rest of the table scrolls sideways. */
.orders-table .col-status {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 150px;
  min-width: 150px;
  box-shadow: inset -1px 0 0 var(--admin-border);
}

.orders-table thead .col-status {
  z-index: 3;
}

.order-row {
  cursor: pointer;
}

.order-row:hover td {
  background: var(--gray-light);
}

.order-group.is-open .order-row td {
  background: var(--admin-row-open);
  border-bottom-color: transparent;
}

.order-group.is-open {
  box-shadow: inset 0 -2px 0 var(--admin-border);
}

.order-client {
  font-weight: 600;
}

.cell-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease;
}

.row-toggle:hover {
  background: rgba(13, 27, 61, 0.08);
}

.row-toggle svg {
  transition: transform 0.2s ease;
}

.row-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cell-strong {
  font-weight: 600;
}

.cell-muted {
  color: rgba(13, 27, 61, 0.35);
}

.cell-nowrap {
  white-space: nowrap;
}

/* Cotação / pedido codes with a copy button */
.code-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.code-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.copy-btn {
  display: inline-flex;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  opacity: 1;
  background: rgba(13, 27, 61, 0.08);
}

/* Status pills — "fechado" is the one that counts, so it's the only solid
   one; the others are tinted so they read as secondary at a glance. */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.status-fechado {
  background: var(--status-fechado);
  color: var(--white);
}

.status-pill.status-cancelado {
  background: rgba(192, 57, 43, 0.1);
  color: var(--status-cancelado);
}

.status-pill.status-revisado {
  background: rgba(183, 121, 31, 0.12);
  color: var(--status-revisado);
}

.status-pill.status-consulta {
  background: rgba(85, 104, 143, 0.12);
  color: var(--status-consulta);
}

/* Non-closed quotations don't count toward SBX — their numbers are dimmed. */
.order-group.is-inactive .is-num {
  color: var(--text-muted);
}

/* Margin / markup chips */
.tone-chip {
  display: inline-block;
  min-width: 72px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-align: right;
}

.tone-chip.tone-good { background: rgba(26, 125, 60, 0.1); color: var(--tone-good); }
.tone-chip.tone-warn { background: rgba(154, 103, 0, 0.12); color: var(--tone-warn); }
.tone-chip.tone-bad { background: rgba(192, 57, 43, 0.1); color: var(--tone-bad); }

.admin-kpi-value.tone-good { color: var(--tone-good); }
.admin-kpi-value.tone-warn { color: var(--tone-warn); }
.admin-kpi-value.tone-bad { color: var(--tone-bad); }

/* Level 2: items */
.item-row {
  cursor: pointer;
}

.item-row td {
  background: var(--admin-row-open);
}

.item-row:hover td:not(.item-rail) {
  background: var(--gray-light);
}

.item-row .col-name {
  padding-left: 38px;
}

.item-desc {
  font-weight: 500;
}

/* The sticky status cell of an item row is a colored rail in the
   quotation's status color, tying the items to their parent row. */
.orders-table .item-rail {
  background: var(--admin-row-open);
  background-image: linear-gradient(var(--rail-color, var(--admin-border)), var(--rail-color, var(--admin-border)));
  background-size: 3px 100%;
  background-position: 22px 0;
  background-repeat: no-repeat;
}

.order-group.status-fechado { --rail-color: var(--status-fechado); }
.order-group.status-cancelado { --rail-color: var(--status-cancelado); }
.order-group.status-revisado { --rail-color: var(--status-revisado); }
.order-group.status-consulta { --rail-color: var(--status-consulta); }

.item-row.is-open td {
  border-bottom-color: transparent;
}

/* Level 3: item detail */
.item-detail td {
  background: var(--admin-row-open);
  padding-top: 0;
  padding-bottom: 18px;
}

.item-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 14px 28px;
  margin-left: 38px;
  padding: 16px 18px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--white);
}

.item-detail-grid dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.item-detail-grid dd {
  margin-top: 4px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.orders-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}

.admin-toast {
  max-width: calc(100vw - 32px);
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(8, 18, 38, 0.3);
}

/* Clickable status: the pill is a button that opens .status-menu. */
.status-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.status-trigger svg {
  flex: 0 0 auto;
  opacity: 0.7;
}

.status-trigger:hover,
.status-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px currentColor;
}

.status-pill.status-fechado.status-trigger:hover,
.status-pill.status-fechado.status-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--status-fechado);
}

.status-menu {
  position: fixed;
  z-index: 300;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(8, 18, 38, 0.18);
  animation: menu-in 0.14s ease-out;
}

.status-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.status-menu button:hover,
.status-menu button:focus-visible {
  background: var(--gray-light);
  outline: none;
}

.status-menu button[aria-checked="true"] {
  font-weight: 600;
}

.status-menu-check {
  margin-left: auto;
  color: var(--status-fechado);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* A quotation closed in the prototype has no PI number yet. */
.cell-pending {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed rgba(31, 86, 181, 0.45);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-fechado);
  white-space: nowrap;
}

/* "Pedido fechado" celebration */
.confetti-piece {
  position: fixed;
  z-index: 400;
  width: 7px;
  height: 11px;
  margin: -5px 0 0 -3px;
  border-radius: 1px;
  pointer-events: none;
  animation: confetti 1.15s cubic-bezier(0.15, 0.6, 0.35, 1) forwards;
}

.confetti-piece.is-round {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

@keyframes confetti {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.6);
    opacity: 1;
  }
  55% {
    transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * 0.6)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 120px)) rotate(var(--rot)) scale(0.9);
    opacity: 0;
  }
}

/* The pill "stamps" in with a ring spreading out of it. */
.status-pill.is-stamped {
  animation: stamped 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes stamped {
  0% {
    transform: scale(0.7);
    box-shadow: 0 0 0 0 rgba(31, 86, 181, 0.55);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(31, 86, 181, 0);
  }
}

/* Row fades from green back to normal. Keyframes with only `from` end on
   whatever background the row normally has (open/closed/hover). */
.order-row.is-celebrating td {
  animation: celebrating 2s ease-out;
}

@keyframes celebrating {
  from {
    background-color: rgba(26, 125, 60, 0.18);
  }
}

.order-row.is-updated td {
  animation: updated 1.2s ease-out;
}

@keyframes updated {
  from {
    background-color: rgba(31, 86, 181, 0.12);
  }
}

.admin-kpi.is-bumped {
  animation: bumped 0.7s ease-out;
}

@keyframes bumped {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(8, 18, 38, 0.3);
  }
  100% {
    transform: scale(1);
  }
}

.admin-toast.is-celebrate {
  background: var(--tone-good);
  animation: toast-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

@keyframes toast-pop {
  from {
    transform: translate(-50%, 16px) scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.is-stamped,
  .admin-kpi.is-bumped,
  .admin-toast.is-celebrate,
  .status-menu {
    animation: none;
  }
}

/* Header nav between the internal pages (pedidos / catálogo). */
.admin-nav {
  display: flex;
  gap: 28px;
  margin: 0 auto 0 48px;
}

.admin-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.65;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s ease;
}

.admin-nav a:hover {
  opacity: 1;
}

.admin-nav a.is-current {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* Long option lists (categories) scroll inside the panel. */
.admin-dropdown-panel--scroll {
  max-height: 360px;
  overflow-y: auto;
}

/* ---------- Internal catalog page (gestao-catalogo.html) ---------- */
/* Builds on the orders table above (.orders-table, .order-group, .item-row,
   .tone-chip…); only the catalog-specific pieces live here. */
.orders-table .col-product {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 290px;
  min-width: 290px;
  box-shadow: inset -1px 0 0 var(--admin-border);
}

.orders-table thead .col-product {
  z-index: 3;
}

.item-row .col-product {
  padding-left: 38px;
}

.product-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-light);
}

/* Availability: read-only badges on the product row, toggles on specs. */
:root {
  --avail-brasil: #1a7d3c;
  --avail-china: #c0392b;
}

.avail-group {
  display: inline-flex;
  gap: 6px;
}

.avail-badge,
.avail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.avail-badge.avail-brasil {
  background: rgba(26, 125, 60, 0.1);
  color: var(--avail-brasil);
}

.avail-badge.avail-china {
  background: rgba(192, 57, 43, 0.1);
  color: var(--avail-china);
}

.avail-badge.is-off {
  background: none;
  color: rgba(13, 27, 61, 0.3);
  text-decoration: line-through;
}

.avail-badge-count {
  font-weight: 500;
  opacity: 0.75;
}

.avail-toggle {
  border: 1px solid rgba(13, 27, 61, 0.15);
  background: var(--white);
  color: rgba(13, 27, 61, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.avail-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.avail-toggle[aria-pressed="true"]::before {
  background: currentColor;
}

.avail-toggle:hover {
  border-color: var(--navy);
}

.avail-toggle.avail-brasil[aria-pressed="true"] {
  border-color: rgba(26, 125, 60, 0.35);
  background: rgba(26, 125, 60, 0.1);
  color: var(--avail-brasil);
}

.avail-toggle.avail-china[aria-pressed="true"] {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.1);
  color: var(--avail-china);
}

.status-dot.avail-dot-brasil { background: var(--avail-brasil); }
.status-dot.avail-dot-china { background: var(--avail-china); }
.status-dot.avail-dot-indisponivel { background: rgba(13, 27, 61, 0.3); }

.variation.is-up::first-letter,
.variation.is-down::first-letter {
  font-size: 0.6rem;
}

/* Spec panel (level 3): edit form + price history. It lives in a cell as
   wide as the table, so it sticks to the visible part of the horizontal
   scroll area (--wrap-width is set by js/catalogo-page.js). */
.spec-panel {
  position: sticky;
  left: 10px;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 28px;
  width: min(calc(100% - 28px), calc(var(--wrap-width, 100%) - 48px));
  margin-left: 28px;
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--white);
}

.spec-panel-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* The "new specification" form has no history beside it. */
.add-spec-form.spec-panel {
  display: flex;
}

.add-spec-form > * {
  max-width: 760px;
}

.spec-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 27, 61, 0.08);
}

.admin-input-prefix {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.spec-preview {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spec-preview > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-preview .tone-chip {
  min-width: 0;
}

.spec-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.spec-edit-actions .admin-btn {
  padding: 0.55rem 0.9rem;
}

.spec-edit-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-form-error {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tone-bad);
}

.spec-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
}

.legend-line.is-final { background: var(--navy); }
.legend-line.is-china { background: var(--avail-china); }

.history-chart-box {
  height: 120px;
  margin: 10px 0 6px;
}

.history-chart {
  display: block;
}

.chart-baseline {
  stroke: var(--admin-border);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line.is-final { stroke: var(--navy); }
.chart-line.is-china { stroke: var(--avail-china); stroke-dasharray: 4 3; }

.chart-dot {
  stroke: var(--white);
  stroke-width: 1.5;
}

.chart-dot.is-final { fill: var(--navy); }
.chart-dot.is-china { fill: var(--avail-china); }

.chart-label {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--text-muted);
}

/* Scrolls on its own on narrow screens instead of overflowing the panel. */
.history-table-wrap {
  overflow-x: auto;
}

.spec-history {
  min-width: 0;
}

.history-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.orders-table .history-table th,
.orders-table .history-table td {
  padding: 7px 8px;
  background: none;
  cursor: default;
  border-bottom: 1px solid var(--admin-border);
}

.orders-table .history-table th::after {
  display: none;
}

.orders-table .history-table tr:last-child td {
  border-bottom: none;
}

.history-table .tone-chip {
  min-width: 0;
}

.history-current {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* "Adicionar especificação" — last row of an open product. */
.orders-table .add-spec-row td {
  padding: 8px 10px 12px 38px;
  background: var(--admin-row-open);
}

.add-spec-btn {
  position: sticky;
  left: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.add-spec-btn:hover {
  background: rgba(13, 27, 61, 0.06);
}

.add-spec-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.add-spec-form .spec-edit-actions {
  justify-content: flex-start;
}

/* Website visibility: badge on the product row, switch on each spec. */
.catalog-table {
  min-width: 1240px;
}

.status-dot.avail-dot-site { background: var(--status-fechado); }

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 86, 181, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--status-fechado);
  white-space: nowrap;
}

.site-badge.is-off {
  background: none;
  border: 1px solid rgba(13, 27, 61, 0.15);
  color: var(--text-muted);
}

.site-link {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-fechado);
  text-decoration: none;
}

.site-link:hover {
  text-decoration: underline;
}

.site-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.site-switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(13, 27, 61, 0.2);
  transition: background 0.2s ease;
}

.site-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(8, 18, 38, 0.3);
  transition: transform 0.2s ease;
}

.site-switch[aria-checked="true"] {
  color: var(--status-fechado);
}

.site-switch[aria-checked="true"] .site-switch-track {
  background: var(--status-fechado);
}

.site-switch[aria-checked="true"] .site-switch-thumb {
  transform: translateX(14px);
}

.site-switch:focus {
  outline: none;
}

.site-switch:focus-visible .site-switch-track {
  box-shadow: 0 0 0 3px rgba(31, 86, 181, 0.25);
}

/* Spec label: its attribute values as small tags ("AT20 | 100 | 1.250 mm"). */
.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.spec-value {
  padding: 2px 8px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 4px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.spec-value.is-missing {
  border-style: dashed;
  border-color: rgba(154, 103, 0, 0.5);
  color: var(--tone-warn);
  font-weight: 500;
}

.cell-warn {
  color: var(--tone-warn);
}

.price-unit {
  margin-left: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Attributes panel — first row of an open product. */
.attr-panel {
  position: sticky;
  left: 10px;
  width: min(calc(100% - 28px), calc(var(--wrap-width, 100%) - 48px));
  margin-left: 28px;
  padding: 16px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--white);
}

.attr-panel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.attr-panel-hint,
.attr-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.attr-empty {
  margin: 4px 0 10px;
}

.attr-line {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--admin-border);
}

.attr-line-name {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.attr-name {
  margin-right: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.icon-btn {
  display: inline-flex;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  opacity: 1;
  background: rgba(13, 27, 61, 0.08);
}

.attr-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.attr-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  background: var(--gray-light);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
}

/* How many specs use the value. */
.attr-chip-count {
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.attr-chip-count.is-zero {
  color: var(--text-muted);
  font-weight: 500;
}

.attr-chip button {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.attr-chip button:hover {
  background: rgba(13, 27, 61, 0.1);
  color: var(--navy);
}

.attr-add-value input,
.picker-new {
  width: 92px;
  padding: 4px 10px;
  border: 1px dashed rgba(13, 27, 61, 0.25);
  border-radius: 999px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--navy);
  outline: none;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.attr-add-value input:focus,
.picker-new:focus {
  width: 150px;
  border-style: solid;
  border-color: var(--navy);
}

.attr-add-btn {
  margin-top: 8px;
  padding: 6px 10px;
  margin-left: -10px;
  border: none;
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.attr-add-btn:hover {
  background: rgba(13, 27, 61, 0.06);
}

.attr-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

.attr-new-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
}

.attr-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.attr-suggestion {
  padding: 3px 10px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--navy);
  cursor: pointer;
}

.attr-suggestion:hover {
  border-color: var(--navy);
}

.attr-new .spec-edit-actions {
  justify-content: flex-start;
}

.attr-rename {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-input--sm input {
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.admin-btn.admin-btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

/* Value pickers in the spec forms — one chip per attribute value, like the
   color/size buttons on an e-commerce product page. */
.spec-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.picker-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.picker-chip {
  padding: 5px 12px;
  border: 1px solid rgba(13, 27, 61, 0.15);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.picker-chip:hover {
  border-color: var(--navy);
}

.picker-chip[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.picker-chip.is-new {
  border-style: dashed;
}

.picker-chip small {
  margin-left: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.spec-edit-spacer {
  flex: 1;
}

.admin-btn--danger {
  color: var(--tone-bad);
}

.admin-btn--danger:hover {
  border-color: var(--tone-bad);
  background: rgba(192, 57, 43, 0.06);
}

.admin-btn--danger.is-confirming {
  border-color: var(--tone-bad);
  background: var(--tone-bad);
  color: var(--white);
}

.admin-toast.is-error {
  background: var(--tone-bad);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-page {
    padding: 32px 16px 64px;
  }

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-kpi-value {
    font-size: 1.2rem;
  }

  /* Period + client share a row; "Expandir todos" gets its own. */
  .admin-dropdown {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .admin-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Half-width triggers: drop the leading icon so the label fits. */
  .admin-dropdown-trigger {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .admin-dropdown-trigger > svg:first-child {
    display: none;
  }

  .admin-controls-row > .admin-btn {
    flex: 1 1 100%;
  }

  .admin-site-header .logo {
    white-space: nowrap;
    font-size: 1.15rem;
  }

  .admin-nav {
    gap: 16px;
    margin-left: 20px;
  }

  .admin-nav a {
    font-size: 0.72rem;
  }

  .admin-site-header .admin-badge {
    display: none;
  }

  .orders-table .col-product {
    width: 200px;
    min-width: 200px;
  }

  .product-thumb {
    display: none;
  }

  .spec-panel {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    width: calc(var(--wrap-width, 100%) - 20px);
    left: 0;
  }

  .attr-panel {
    margin-left: 0;
    left: 0;
    width: calc(var(--wrap-width, 100%) - 20px);
  }

  .attr-line,
  .attr-new-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  /* Narrower sticky column on phones so more of the numbers fit. */
  .orders-table .col-status {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }

  /* Lets "Consulta de preço" break onto two lines instead of widening
     the sticky column. */
  .status-pill {
    white-space: normal;
    text-align: center;
    font-size: 0.64rem;
  }

  .orders-table .item-rail {
    background-position: 14px 0;
  }

  .item-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 220px));
    margin-left: 0;
  }
}
