/*
Theme Name: Ohmyprint Camadas 3.4
Theme URI: https://www.instagram.com/oh.myprint/
Author: Ohmyprint
Description: Evolução de UX do tema Ohmyprint Camadas para WooCommerce: orçamento guiado, interesse por peça, busca com sugestões, navegação sazonal e navegação mais curta no celular. Mantém o contrato do plugin Ohmyprint — Loja e Orçamentos.
Version: 3.4.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: ohmyprint-camadas-3
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --paper: #fbf8f1;
  --paper-2: #f3eee2;
  --studio: #f5e6da;           /* mesmo fundo de estúdio das imagens da coleção */
  --ink: #10261b;
  --ink-2: #284034;
  --muted: #566457;
  --line: #e2dbcb;
  --line-strong: #cfc6b2;
  --green: #0d803d;            /* verde do logo */
  --green-d: #0a6631;
  --lime: #c8f27a;
  --lime-d: #b4e35c;
  --coral: #e85a26;
  --mint: #d3efdc;
  --sand: #f1e1bd;
  --lilac: #e1d6ff;
  --sky: #d5e9ff;
  --peach: #ffdccb;

  --f-display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + .65vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.47rem + 1.4vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.8rem + 2.9vw, 4.25rem);
  --step-5: clamp(2.75rem, 1.9rem + 4.4vw, 5.75rem);

  --r-xs: 8px;
  --r-s: 12px;
  --r: 20px;
  --r-l: 32px;
  --pill: 999px;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms;
  --t: 280ms;

  --shadow-s: 0 1px 2px rgba(16, 38, 27, .06), 0 2px 8px rgba(16, 38, 27, .05);
  --shadow: 0 2px 4px rgba(16, 38, 27, .05), 0 12px 32px -8px rgba(16, 38, 27, .16);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--green);

  color-scheme: light;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-s); text-decoration: none; font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.content-area { padding-block: clamp(32px, 5vw, 64px) var(--section); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 var(--step--1)/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow-lime { color: var(--lime); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.fine-print { margin-top: 20px; font-size: var(--step--1); color: var(--muted); }

/* Cenários de cor (categorias, caminhos, selos) */
.tone-mint { --tone: var(--mint); }
.tone-sand { --tone: var(--sand); }
.tone-lilac { --tone: var(--lilac); }
.tone-sky { --tone: var(--sky); }
.tone-peach { --tone: var(--peach); }
.tone-lime { --tone: var(--lime); }

/* =========================================================
   3. Botões e links
   ========================================================= */
.btn, .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .omp-services .button {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--step-0)/1.1 var(--f-body); text-decoration: none; letter-spacing: -.005em;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon, .button .icon { width: 18px; height: 18px; transition: transform var(--t) var(--spring); }
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { --btn-bg: var(--green); --btn-bd: var(--green); color: var(--btn-fg); background: var(--btn-bg); border-color: var(--btn-bd); }
.btn:hover .icon-arrow, .link-arrow:hover .icon-arrow { transform: translate(3px, -3px); }
.btn:active, .button:active { transform: scale(.97); }
.btn:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-primary { --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: var(--paper); }
.btn-lime { --btn-bg: var(--lime); --btn-bd: var(--lime); --btn-fg: var(--ink); }
.btn-lime:hover { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--ink); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(251, 248, 241, .35); }
.btn-ghost-light:hover { --btn-bg: var(--paper); --btn-bd: var(--paper); --btn-fg: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn-lg { min-height: 56px; padding: 14px 28px; }
.btn-block { width: 100%; }

.link-arrow, .text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--t) var(--ease), color var(--t-fast);
}
.link-arrow:hover, .text-link:hover { background-size: 100% 1.5px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t) var(--spring); }
.link-arrow-light { color: var(--lime); }
.link-arrow-light:hover { color: var(--lime); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--pill); background: transparent; color: var(--ink); text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .icon { width: 22px; height: 22px; }

/* =========================================================
   4. Cabeçalho
   ========================================================= */
.header-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(16, 38, 27, .35); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

.header-bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); transition: min-height var(--t) var(--ease); }
.is-stuck .header-bar { min-height: 60px; }

.brand, .custom-logo-link { display: inline-flex; align-items: center; color: var(--green); margin-right: auto; flex: none; }
.brand:hover { color: var(--green); }
.brand .logo-mark, .custom-logo-link img { width: 52px; height: auto; transition: width var(--t) var(--ease); }
.is-stuck .brand .logo-mark, .is-stuck .custom-logo-link img { width: 44px; }
.logo-mark .logo-frame { transform-origin: center; transition: transform var(--t) var(--spring); }
.brand:hover .logo-frame { transform: scale(1.04); }

.header-actions { display: flex; align-items: center; gap: 2px; }
.header-cta { display: none; margin-left: 8px; }
.account-link { display: none; }

.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--pill); background: var(--green); color: #fff;
  font: 700 11px/18px var(--f-body); text-align: center;
}
.cart-count.is-empty { background: var(--paper-2); color: var(--muted); }

.menu-toggle { order: 3; width: auto; padding: 0 12px 0 10px; gap: 6px; grid-auto-flow: column; font-weight: 600; font-size: var(--step--1); }

/* Gaveta móvel */
.site-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 70;
  width: min(420px, 100%); height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 24px;
  padding: 16px 20px 28px; background: var(--paper);
  box-shadow: -24px 0 60px -20px rgba(16, 38, 27, .35);
  transform: translateX(105%); visibility: hidden;
  transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
}
.site-nav.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
.nav-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(16, 38, 27, .42);
  animation: fade-in var(--t) var(--ease);
}
.menu-open body { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title, .drawer-label { font: 600 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.drawer-label { margin-bottom: 10px; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 700 var(--step-2)/1.1 var(--f-display); letter-spacing: -.02em;
}
.nav-list a::after { content: "→"; font-family: var(--f-body); font-weight: 400; color: var(--green); transform: translateX(-6px); opacity: 0; transition: var(--t) var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current]::after, .nav-list .current-menu-item > a::after { transform: none; opacity: 1; }
.site-nav.is-open .nav-list li { animation: rise 520ms var(--ease-out) both; }
.site-nav.is-open .nav-list li:nth-child(2) { animation-delay: 50ms; }
.site-nav.is-open .nav-list li:nth-child(3) { animation-delay: 100ms; }
.site-nav.is-open .nav-list li:nth-child(4) { animation-delay: 150ms; }
.site-nav.is-open .nav-list li:nth-child(5) { animation-delay: 200ms; }
.drawer-cat-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }

/* Sem JS: o menu aparece como lista simples abaixo do cabeçalho */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .site-nav { position: static; transform: none; visibility: visible; width: 100%; height: auto; box-shadow: none; padding: 0 0 16px; order: 10; }
html:not(.js) .header-bar { flex-wrap: wrap; }
html:not(.js) .drawer-head, html:not(.js) .search-toggle { display: none; }

/* Busca do topo */
.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding: 16px 0 20px; animation: drop var(--t) var(--ease-out); }
.search-form { position: relative; display: flex; align-items: center; }
.search-form input[type="search"] {
  width: 100%; min-height: 48px; padding: 10px 52px 10px 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.search-form input[type="search"]::placeholder { color: #677164; }
.search-form input[type="search"]:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(13, 128, 61, .14); }
.search-form button {
  position: absolute; right: 4px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--pill); background: var(--ink); color: var(--paper);
  transition: background var(--t-fast), transform var(--t-fast);
}
.search-form button:hover { background: var(--green); }
.search-form button:active { transform: scale(.92); }
.search-form-lg input[type="search"] { min-height: 56px; font-size: var(--step-1); padding-left: 22px; }
.search-form-lg button { width: 48px; height: 48px; }

/* Faixa de categorias (páginas da loja) */
.header-cats { border-top: 1px solid var(--line); }
.chip-rail ul, .sub-rail ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chip-rail ul::-webkit-scrollbar, .sub-rail ul::-webkit-scrollbar { display: none; }
.chip-rail li, .sub-rail li { scroll-snap-align: start; flex: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: var(--step--1); white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { background: var(--tone, var(--paper-2)); border-color: transparent; color: var(--ink); transform: translateY(-1px); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@media (min-width: 640px) {
  .account-link { display: inline-grid; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .menu-toggle, .drawer-head, .drawer-search, .drawer-cats, .drawer-foot { display: none; }
  .site-nav {
    position: static; transform: none; visibility: visible; width: auto; height: auto; overflow: visible;
    flex-direction: row; padding: 0; background: none; box-shadow: none; margin-right: auto; transition: none;
  }
  .brand, .custom-logo-link { margin-right: 36px; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a { position: relative; padding: 10px 14px; border: 0; font: 600 var(--step-0)/1 var(--f-body); letter-spacing: 0; border-radius: var(--pill); transition: background var(--t-fast) var(--ease); }
  .nav-list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; opacity: 1; transition: transform var(--t) var(--ease-out); }
  .nav-list a:hover { background: var(--paper-2); color: var(--ink); }
  .nav-list a:hover::after { transform: scaleX(0); }
  .nav-list a[aria-current]::after, .nav-list .current-menu-item > a::after, .nav-list .current_page_item > a::after { transform: scaleX(1); }
  .header-cta { display: inline-flex; }
  .nav-scrim { display: none; }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero { position: relative; padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 88px); overflow: clip; }
.hero::before { /* linhas de camada, como uma peça vista de perto */
  content: ""; position: absolute; inset: 0 0 auto auto; width: min(64vw, 820px); height: 100%;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(13, 128, 61, .07) 9px 10px);
  -webkit-mask: radial-gradient(closest-side at 60% 45%, #000 40%, transparent);
          mask: radial-gradient(closest-side at 60% 45%, #000 40%, transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--line); border-radius: var(--pill); background: #fff;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(13, 128, 61, .15); animation: pulse 2.4s var(--ease) infinite; }
.hero-title { font-size: var(--step-5); line-height: .95; letter-spacing: -.045em; font-weight: 800; margin: 0 0 24px; }
.print-line { display: block; position: relative; padding-bottom: .06em; }
.hero-title mark {
  position: relative; display: inline-block; background: none; color: var(--green); padding: 0 .08em; margin: 0 -.04em; z-index: 0;
}
.hero-title mark::before {
  content: ""; position: absolute; inset: .14em 0 .02em; z-index: -1; border-radius: .12em; background: var(--lime);
  transform-origin: left; animation: swipe 700ms var(--ease-out) 1.15s both;
}
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-services a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.hero-services a:hover { color: var(--green); }
.hero-services .icon { width: 18px; height: 18px; color: var(--green); }

/* Palco do produto: moldura em colchetes do logo + base de impressão */
.hero-stage { position: relative; --rx: 0deg; --ry: 0deg; perspective: 1100px; }
.stage-plate {
  position: relative; aspect-ratio: 1; border-radius: var(--r-l); background: var(--studio); overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 600ms var(--ease-out);
  box-shadow: inset 0 -80px 120px -60px rgba(232, 90, 38, .12);
}
.stage-plate::after { /* base da mesa de impressão */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 7%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 38, 27, .16), transparent);
  pointer-events: none;
}
.stage-hero { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; animation: float 7s ease-in-out 1.8s infinite; transition: opacity 220ms var(--ease-out); }
.stage-hero.is-changing { opacity: .2; }
.stage-corner { position: absolute; z-index: 2; width: 44px; height: 44px; border: 4px solid var(--green); pointer-events: none; transition: width var(--t) var(--ease), height var(--t) var(--ease); }
.stage-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.stage-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.hero-stage:hover .stage-corner { width: 60px; height: 60px; }
.stage-note {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; white-space: nowrap;
  padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .78);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px;
  border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  font-size: var(--step--1); line-height: 1.3; max-width: 250px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.float-card.is-dragging { z-index: 5; cursor: grabbing; transition: none; box-shadow: 0 14px 32px rgba(16, 38, 27, .2); }
.float-card[data-dragged="true"] { -webkit-user-drag: none; }
.float-card img { border-radius: 12px; object-fit: cover; flex: none; }
.float-card strong { display: block; font-family: var(--f-display); font-size: var(--step-0); letter-spacing: -.01em; }
.float-card .icon { display: inline; width: 14px; height: 14px; vertical-align: -2px; color: var(--green); }
.float-real { left: -8px; bottom: 12%; }
.float-real img { width: 56px; height: 70px; }
.float-real:hover { color: var(--ink); }
.float-mini { right: -8px; top: 8%; }
.float-mini img { width: 56px; height: 56px; background: var(--studio); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .float-real { left: -40px; }
  .float-mini { right: -24px; }
  .float-real img { width: 72px; height: 90px; }
  .float-mini img { width: 64px; height: 64px; }
}
@media (max-width: 639px) {
  .float-real { bottom: 60px; }
  .cat-card.is-wide .cat-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 479px) {
  .float-card { max-width: min(190px, 46vw); padding: 6px 9px 6px 6px; gap: 8px; font-size: 11px; }
  .float-real img { width: 42px; height: 52px; }
  .float-mini img { width: 40px; height: 40px; }
  .float-card strong { font-size: 13px; }
  .stage-note { bottom: 14px; left: 12px; right: 104px; translate: 0 0; white-space: normal; font-size: 10px; }
}

/* Faixa de destaques: fluxo contínuo para a direita, com pausa e arraste */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 1px solid var(--ink); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ticker.is-dragging { cursor: grabbing; }
.ticker:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.ticker-track { display: flex; width: max-content; transform: translate3d(0, 0, 0); will-change: transform; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font: 600 var(--step-1)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.ticker li::after { content: ""; width: 10px; height: 10px; background: var(--lime); transform: rotate(45deg); }

/* =========================================================
   6. Seções
   ========================================================= */
.section { padding-block: var(--section) 0; }
.section:last-child { padding-bottom: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { max-width: 720px; }
.section-title { font-size: var(--step-4); margin: 0; letter-spacing: -.035em; }
.section-title-sm { font-size: var(--step-3); }
.section-aside { max-width: 38ch; color: var(--muted); margin: 0; }

/* Categorias: mosaico */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card:not([class*="tone-"]) { --tone: var(--mint); }
.cat-card.is-wide { grid-column: 1 / -1; }
.cat-card a {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px; overflow: hidden;
  border-radius: var(--r); background: var(--tone); text-decoration: none; color: var(--ink);
  isolation: isolate; transition: box-shadow 280ms var(--ease-out), background-color 280ms var(--ease-out);
}
.cat-media { position: relative; display: block; aspect-ratio: 1; margin-bottom: 12px; border-radius: calc(var(--r) - 6px); overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 380ms var(--ease-out); }
.tone-peach .cat-media img { mix-blend-mode: normal; object-position: center 35%; }
.cat-copy { display: grid; gap: 4px; padding-right: 36px; }
.cat-count { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cat-count.is-quote { padding: 3px 8px; border-radius: var(--pill); background: var(--ink); color: var(--lime); }
.cat-name { font: 700 var(--step-1)/1.1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.cat-short { font-size: var(--step--1); color: var(--ink-2); display: none; }
.cat-go {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--paper); transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.cat-go .icon { width: 18px; height: 18px; transition: transform 280ms var(--ease-out); }
.cat-card a:hover { color: var(--ink); }
.cat-card a:focus-visible { outline: none; box-shadow: var(--focus); }

@media (hover: hover) and (pointer: fine) {
  .cat-card a:hover { box-shadow: 0 5px 16px rgba(16, 38, 27, .1); }
  .cat-card a:hover .cat-media img { transform: scale(1.015); }
  .cat-card a:hover .cat-go { background: var(--green); }
  .cat-card a:hover .cat-go .icon, .cat-card a:focus-visible .cat-go .icon { transform: rotate(45deg) translateX(1px); }
}

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cat-card.is-wide { grid-column: span 1; grid-row: span 2; }
  .cat-card.is-wide .cat-media { flex: 1; aspect-ratio: auto; min-height: 260px; }
  .cat-short { display: block; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; }
  .cat-card a { padding: 18px; }
  .cat-card.is-wide .cat-name { font-size: var(--step-3); }
}

/* Vitrine da home */
.section-collection { position: relative; }

/* Portfólio escuro */
.section-dark { margin-top: var(--section); padding-bottom: var(--section); background: var(--ink); color: var(--paper); }
.section-dark .section-aside { color: rgba(251, 248, 241, .72); }
.section-dark .link-arrow { margin-top: 32px; }

/* Caminhos para orçamento */
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.path a {
  position: relative; display: grid; gap: 8px; height: 100%; padding: 24px; min-height: 240px;
  border-radius: var(--r-l); background: var(--tone); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: box-shadow 280ms var(--ease-out), background-color 280ms var(--ease-out);
}
.path a::before {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; z-index: 0;
  border-radius: 3px 3px 0 0; background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease-out);
}
.path a > * { position: relative; z-index: 1; }
.path-num { font: 800 var(--step-0)/1 var(--f-display); opacity: .55; }
.path-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .6); margin: 8px 0 12px; transition: background-color 280ms var(--ease-out); }
.path-icon .icon { width: 26px; height: 26px; }
.path-title { font: 700 var(--step-2)/1.1 var(--f-display); letter-spacing: -.02em; }
.path-text { color: var(--ink-2); max-width: 32ch; }
.path-go { align-self: end; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; }
.path-go .icon { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.path a:hover { box-shadow: 0 5px 16px rgba(16, 38, 27, .1); color: var(--ink); }
.path a:hover::before, .path a:focus-visible::before { transform: scaleX(1); }
.path a:hover .path-go .icon { transform: translate(2px, -2px); }
.path a:focus-visible { outline: none; box-shadow: var(--focus); }

.paths + .process { margin-block-start: 48px !important; padding-block-start: 28px; border-top: 1px solid var(--line); }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: p; }
.process li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; font-weight: 600; font-size: var(--step--1); color: var(--ink-2); transition: background-color 420ms var(--ease-out), border-color 420ms var(--ease-out), box-shadow 420ms var(--ease-out), color 420ms var(--ease-out); }
.process li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--green); }
.process.is-running li.is-active::after { animation: process-progress 3200ms linear both; }
.process li.is-active { border-color: var(--green); background: var(--mint); color: var(--ink); }
.process span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); font: 700 13px/1 var(--f-display); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out), transform 420ms var(--ease-out); }
.process li.is-active span { background: var(--green); color: #fff; }
.process li.is-active span { transform: scale(1.06); }
@keyframes process-progress { from { width: 0; } to { width: 100%; } }
@media (min-width: 768px) {
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .paths + .process { margin-block-start: 56px !important; padding-block-start: 32px; }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .process.is-running li.is-active::after { animation: none; }
}

/* História */
.story { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.story-mark {
  position: relative; display: grid; place-items: center; gap: 24px; aspect-ratio: 4 / 3; padding: 40px;
  border-radius: var(--r-l); background: var(--green); color: #fff; overflow: hidden;
}
.story-mark::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, .07) 11px 12px); }
.story-mark .logo-mark { position: relative; width: min(46%, 220px); }
.story-mark .logo-frame { animation: breathe 6s var(--ease) infinite; transform-origin: center; }
.story-mark p { position: relative; margin: 0; font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.story-copy p:not(.eyebrow) { color: var(--ink-2); font-size: var(--step-1); max-width: 52ch; }
.story-copy .section-title { margin-bottom: 20px; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }

/* Contato */
.contact-card { display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-l); background: var(--paper-2); border: 1px solid var(--line); }
.contact-list { display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: #fff; text-decoration: none;
  border: 1px solid var(--line); transition: transform var(--t) var(--ease), border-color var(--t-fast);
}
.contact-list a:hover { transform: translateX(4px); border-color: var(--green); color: var(--ink); }
.contact-list .icon { width: 26px; height: 26px; color: var(--green); flex: none; }
.contact-list strong { display: block; font-family: var(--f-display); }
.contact-list span { min-width: 0; overflow-wrap: anywhere; font-size: var(--step--1); color: var(--muted); }
.contact-list strong { color: var(--ink); font-size: var(--step-0); }
@media (min-width: 900px) { .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }

/* Chamada final */
.next-step {
  position: relative; display: grid; gap: 20px; margin-top: var(--section); padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-l); background: var(--ink); color: var(--paper); overflow: hidden;
}
.next-step::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border: 18px solid var(--green); border-left: 0; border-bottom: 0; border-radius: 0 var(--r-l) 0 0; opacity: .7; }
.next-step h2 { font-size: var(--step-3); margin-bottom: 8px; }
.next-step p { color: rgba(251, 248, 241, .75); margin: 0; }
.next-step-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .next-step { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* =========================================================
   7. Cartões de produto (WooCommerce)
   ========================================================= */
.woocommerce ul.products, ul.products {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px;
}
/* O CSS de layout do WooCommerce usa floats e larguras em %; aqui a grade é CSS Grid. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, ul.products li.product {
  position: relative; float: none !important; width: auto !important; margin: 0 !important; clear: none !important;
  padding: 0; display: flex; flex-direction: column;
}
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.loop-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--studio); margin-bottom: 14px;
}
.loop-media img, .woocommerce ul.products li.product a img { width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform 420ms var(--ease-out); }
.loop-media::after { /* colchetes do logo aparecem no hover */
  content: ""; position: absolute; inset: 12px; border: 3px solid var(--green); border-radius: 2px; pointer-events: none;
  -webkit-mask: conic-gradient(at 22px 22px, transparent 75%, #000 0) 0 0 / calc(100% - 22px) calc(100% - 22px);
          mask: conic-gradient(at 22px 22px, transparent 75%, #000 0) 0 0 / calc(100% - 22px) calc(100% - 22px);
  opacity: 0; transform: scale(1.06); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
li.product a:focus-visible .loop-media::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  li.product:hover .loop-media img { transform: scale(1.012); }
  li.product:hover .loop-media::after { opacity: .4; transform: none; }
}
.loop-note { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products li.product h2, ul.products li.product h3 {
  margin: 0 0 6px; padding: 0; font: 700 var(--step-1)/1.15 var(--f-display); letter-spacing: -.015em; color: var(--ink);
}
.woocommerce ul.products li.product .price, ul.products li.product .price {
  position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0; color: var(--ink); font-size: var(--step--1); font-weight: 700;
}
.woocommerce ul.products li.product .price:not(:has(.omp-coming-soon)) { position: static; display: block; order: 3; font-size: var(--step-0); }
.omp-coming-soon {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); background: var(--ink); color: var(--lime);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.omp-coming-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse-dot 2s var(--ease) infinite; }
.woocommerce ul.products li.product .button, ul.products li.product .button {
  --btn-bg: transparent; --btn-fg: var(--green); --btn-bd: transparent;
  align-self: flex-start; min-height: 0; margin: 2px 0 0; padding: 4px 0; border-radius: 0; font-size: var(--step--1);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; color: var(--green); border: 0;
}
.woocommerce ul.products li.product .button::after { content: " →"; transition: margin var(--t) var(--spring); }
.woocommerce ul.products li.product .button:hover { background-size: 100% 1.5px; background-color: transparent; color: var(--green); }
.woocommerce ul.products li.product .button:hover::after { margin-left: 4px; }
.woocommerce ul.products li.product .onsale { display: none; }
@media (min-width: 900px) {
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Portfólio (shortcode do plugin) */
.portfolio-grid { display: grid; gap: 16px; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: #fff; color: var(--ink); }
.section-dark .project-card { background: #183528; color: var(--paper); }
.project-image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter var(--t); }
.project-card:nth-child(2) .project-image img { object-fit: contain; background: #d9b98c; }
.project-image span {
  position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: var(--pill); background: var(--lime); color: var(--ink);
  font-size: 12px; font-weight: 700;
}
.project-copy { display: grid; gap: 8px; padding: 20px 22px 24px; }
.project-copy h3 { margin: 0; font-size: var(--step-2); }
.project-copy h3 a { text-decoration: none; }
.project-copy h3 a::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */
.project-copy p { margin: 0; font-size: var(--step--1); opacity: .78; }
.project-copy .text-link { position: relative; z-index: 1; justify-self: start; }
.section-dark .project-copy .text-link, .section-dark .project-copy h3 a:hover { color: var(--lime); }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-card:has(a:focus-visible) { box-shadow: 0 0 0 3px var(--lime); }
@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .home-portfolio .project-card:nth-child(2) { translate: 0 48px; }
  .home-portfolio { padding-bottom: 48px; }
}

/* =========================================================
   8. Páginas internas
   ========================================================= */
.page-head { max-width: 860px; margin-bottom: clamp(28px, 5vw, 56px); }
.page-title { font-size: var(--step-4); letter-spacing: -.04em; margin: 0 0 16px; }
.page-head .lead { margin: 0; }

.entry-content { max-width: 72ch; }
.entry-wide { max-width: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: var(--step-3); margin-top: 1.6em; }
.entry-content h3 { font-size: var(--step-2); margin-top: 1.4em; }
.entry-content a:not(.btn):not(.button):not(.text-link) { color: var(--green); }
.entry-content img { border-radius: var(--r); }

/* História */
.about-layout { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-collage { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.collage-a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.collage-b { aspect-ratio: 3 / 4; object-fit: contain !important; background: #d9b98c; }
.collage-c { aspect-ratio: 3 / 4; }
.about-collage figcaption { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.about-content { font-size: var(--step-1); }
.about-content p { color: var(--ink-2); }
.about-content h2, .about-content strong:only-child { display: block; font: 700 var(--step-2)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin-top: 1.6em; }
@media (min-width: 1024px) {
  .about-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .about-collage { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Serviços (shortcode do plugin) */
.omp-services { display: grid; gap: 16px; }
.omp-services section {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-l); background: var(--mint); overflow: hidden;
}
.omp-services section:nth-child(2) { background: var(--sky); }
.omp-services section::before {
  content: ""; position: absolute; right: 24px; top: 24px; width: 56px; height: 56px; border: 4px solid var(--ink); border-left: 0; border-bottom: 0; opacity: .2;
}
.omp-services h2 { font-size: var(--step-3); margin: 6px 0 12px; }
.omp-services p { color: var(--ink-2); }
.omp-services .eyebrow { color: var(--ink-2); }
.omp-services .button { margin-top: auto; }
@media (min-width: 900px) { .omp-services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.services-page .process { margin-top: 24px; }

/* Orçamento */
.quote-layout { display: grid; gap: 32px; align-items: start; }
.quote-aside { padding: 24px; border-radius: var(--r-l); background: var(--paper-2); border: 1px solid var(--line); }
.quote-aside-title { font-size: var(--step-2); }
.steps { counter-reset: s; display: grid; gap: 18px; margin-bottom: 24px; }
.steps li { position: relative; padding-left: 44px; font-size: var(--step--1); color: var(--muted); counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ink); color: var(--lime); font: 700 13px/1 var(--f-display);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: -16px; width: 2px; background: repeating-linear-gradient(var(--line-strong) 0 4px, transparent 4px 8px); }
.steps strong { display: block; color: var(--ink); font-size: var(--step-0); }
.quote-chat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #fff; text-decoration: none; border: 1px solid var(--line); transition: border-color var(--t-fast), transform var(--t) var(--ease); }
.quote-chat:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.quote-chat .icon { width: 26px; height: 26px; color: var(--green); flex: none; }
.quote-chat strong { display: block; }
.quote-chat span { font-size: var(--step--1); color: var(--muted); }
.quote-form-wrap { max-width: none; }
@media (max-width: 1023px) { .quote-aside { order: 2; } }
@media (min-width: 1024px) {
  .quote-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
  .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.omp-quote-intro { padding: 16px 20px; margin-bottom: 24px; border-radius: var(--r); background: var(--mint); }
.omp-quote-intro p { margin: 0; }
.omp-quote-intro p + p { margin-top: 4px; font-size: var(--step--1); color: var(--ink-2); }
.omp-quote-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.omp-form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .omp-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.omp-quote-form label { display: grid; gap: 8px; font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.omp-quote-form input:not([type="file"]):not([type="hidden"]), .omp-quote-form select, .omp-quote-form textarea, .woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background-color: var(--paper);
  font-size: 16px; font-weight: 400; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.omp-quote-form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.omp-quote-form select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2310261b' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.omp-quote-form input:hover, .omp-quote-form select:hover, .omp-quote-form textarea:hover { border-color: #b2a993; }
.omp-quote-form input:focus, .omp-quote-form select:focus, .omp-quote-form textarea:focus, .woocommerce form .form-row .input-text:focus {
  border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(13, 128, 61, .14); outline: none;
}
.omp-quote-form :is(input, select, textarea):user-invalid { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232, 90, 38, .12); }
.omp-quote-form ::placeholder { color: #677164; }
.omp-quote-form input[type="file"] {
  width: 100%; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--r); background: var(--paper);
  font-size: var(--step--1); font-weight: 400; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast);
}
.omp-quote-form input[type="file"]:hover, .omp-quote-form input[type="file"]:focus-visible { border-color: var(--green); background: #f3faf5; }
.omp-quote-form input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer;
  transition: background var(--t-fast);
}
.omp-quote-form input[type="file"]:hover::file-selector-button { background: var(--green); }
.file-status { font-weight: 400; color: var(--muted); }
.file-status.is-ok { color: var(--green-d); font-weight: 600; }
.file-status.is-error { color: #b23d12; font-weight: 600; }
.omp-form-note { margin: 0; font-size: var(--step--1); color: var(--muted); }
.omp-quote-form .button[type="submit"] { justify-self: start; min-height: 54px; padding-inline: 28px; --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: #fff; }
.omp-quote-form .button[type="submit"]:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.omp-quote-form .button[disabled] { opacity: .7; cursor: progress; }
.omp-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Projeto individual */
.back-link { margin-bottom: 20px; }
.project-layout { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
.project-photo { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.project-photo img { width: 100%; height: auto; }
.project-photo figcaption { position: absolute; left: 16px; top: 16px; }
.tag-real { display: inline-block; padding: 5px 11px; border-radius: var(--pill); background: var(--lime); font-size: 12px; font-weight: 700; }
.project-body { max-width: 56ch; font-size: var(--step-1); }
.project-body .page-title { font-size: var(--step-4); }
.project-body p:not(.eyebrow) { color: var(--ink-2); }
.project-reference { padding: 14px 16px; border-left: 3px solid var(--green); background: var(--paper-2); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--step--1); color: var(--ink-2); }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.more-projects { margin-top: var(--section); }
.more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.more-list a { display: grid; gap: 12px; text-decoration: none; font: 700 var(--step-1)/1.2 var(--f-display); }
.more-list img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r); transition: transform var(--t) var(--ease); }
.more-list a:hover img { transform: translateY(-4px); }
.more-list .icon { display: inline; width: 16px; height: 16px; vertical-align: -2px; color: var(--green); }
@media (min-width: 900px) {
  .project-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-photo { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 404 */
.not-found { text-align: center; }
.not-found .page-head { margin-inline: auto; }
.not-found .lead { margin-inline: auto; }
.not-found .search-form { max-width: 560px; margin: 0 auto 24px; }
.nf-art { display: flex; justify-content: center; gap: .05em; font: 800 clamp(5rem, 22vw, 11rem)/1 var(--f-display); letter-spacing: -.06em; color: var(--green); margin-bottom: 8px; }
.nf-layer { color: transparent; background: repeating-linear-gradient(0deg, var(--green) 0 4px, transparent 4px 9px); -webkit-background-clip: text; background-clip: text; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Estado vazio de categoria */
.empty-state {
  display: grid; justify-items: start; gap: 4px; max-width: 760px; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-l); background: var(--paper-2); border: 1.5px dashed var(--line-strong);
}
.empty-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); margin-bottom: 12px; }
.empty-mark .icon { width: 28px; height: 28px; }
.empty-state h2 { font-size: var(--step-3); }
.empty-state p:not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }

/* =========================================================
   9. Loja: arquivo, produto, carrinho, conta
   ========================================================= */
.woocommerce-breadcrumb { margin-bottom: 18px; font-size: var(--step--1); color: var(--muted); }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 18px; font-size: var(--step--1); color: var(--muted); }
.woocommerce-breadcrumb a { color: var(--ink-2); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--green); }
.crumb-sep { margin: 0 8px; opacity: .5; }

.woocommerce-products-header { margin-bottom: 8px; }
.woocommerce-products-header__title.page-title { font-size: var(--step-4); }
.term-description { color: var(--muted); max-width: 60ch; }
.catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 20px 0 8px; }
.catalog-tools .search-form { max-width: 640px; margin-bottom: 8px; }
.chip-rail-catalog ul { padding-top: 4px; }
.sub-rail ul { padding: 2px 0 8px; }
.sub-rail a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 4px 4px 14px; border-radius: var(--pill);
  text-decoration: none; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); background: transparent; border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sub-rail a span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--pill); background: var(--paper-2); font-size: 12px; }
.sub-rail a:first-child, .sub-rail li:first-child a { padding-right: 14px; }
.sub-rail a:hover { border-color: var(--line); }
.sub-rail a[aria-current] { background: var(--lime); color: var(--ink); }
.sub-rail a[aria-current] span { background: rgba(255, 255, 255, .6); }
.catalog-tools .link-arrow { justify-self: start; margin-top: 4px; }

.woocommerce .woocommerce-result-count, .woocommerce-result-count { margin: 16px 0 20px; font-size: var(--step--1); color: var(--muted); }
.woocommerce .woocommerce-ordering { margin: 10px 0 20px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; padding: 6px 36px 6px 14px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; font-size: var(--step--1); }

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; padding: 10px; border-radius: var(--pill); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--paper); }

/* Produto individual */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images { border-radius: var(--r-l); overflow: hidden; background: var(--studio); }
.woocommerce div.product div.images img { border-radius: 0; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; padding: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: var(--r-xs); opacity: .6; transition: opacity var(--t-fast); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .product_title { font-size: var(--step-4); letter-spacing: -.04em; margin-bottom: 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: var(--step-2); font-weight: 700; margin-bottom: 18px; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: var(--step-1); color: var(--ink-2); }
.woocommerce div.product .stock, .woocommerce div.product p.stock.out-of-stock {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-s); background: var(--paper-2); color: var(--ink-2); font-size: var(--step--1); font-weight: 600;
}
.woocommerce div.product .summary .omp-form-note { margin: 18px 0 6px; }
.woocommerce div.product .summary .text-link { font-size: var(--step-0); }
.woocommerce div.product .product_meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: var(--step--1); color: var(--muted); }
.woocommerce div.product .product_meta a { color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; display: flex; gap: 6px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: var(--pill); background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; border-radius: var(--pill); font-weight: 600; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--paper); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 72ch; }
.related > h2, .upsells > h2 { font-size: var(--step-3); margin: var(--section) 0 28px; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* Purchase and freight controls stay in document flow so they cannot cover related products. */
.single-product div.product { position: relative; isolation: isolate; }
.single-product div.product .summary { position: static; min-width: 0; }
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells { position: relative; z-index: 0; clear: both; }
.single-product .me-cep-calc { margin: 22px 0 18px; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.single-product .me-cep-calc h2,
.single-product .me-cep-calc h3 { margin: 0 0 10px; font-size: var(--step-1); }
.single-product .me-cep-calc label { display: block; margin: 0 0 6px; font-size: var(--step--1); font-weight: 600; }
.single-product .me-cep-calc input[type="text"],
.single-product .me-cep-calc input[type="tel"] { min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; }
.single-product .me-cep-calc button,
.single-product .me-cep-calc input[type="submit"] { min-height: 46px; border-radius: var(--pill); padding: 10px 18px; }
.single-product .summary form.cart { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.single-product .summary form.cart .single_add_to_cart_button { min-height: 48px; padding-inline: 24px; }
@media (max-width: 899px) {
  .single-product div.product { gap: 22px; }
  .single-product div.product div.summary { position: static; }
  .single-product .me-cep-calc { margin: 18px 0 14px; }
}

/* Produto no celular: cotações como opções legíveis e abas alinhadas. */
.single-product .me-cep-calc { min-width: 0; }
.single-product .me-cep-calc table { width: 100%; border-collapse: separate; border-spacing: 0; }
.single-product .me-cep-calc th,
.single-product .me-cep-calc td { padding: 11px 12px; border-color: var(--line); vertical-align: middle; }
.single-product .me-cep-calc thead th { background: var(--paper-2); color: var(--ink); font-size: var(--step--1); }
.single-product .me-cep-calc tbody tr { background: #fff; }
.single-product .me-cep-calc tbody tr + tr td { border-top: 1px solid var(--line); }
.single-product .woocommerce-tabs ul.tabs { align-items: stretch; }
.single-product .woocommerce-tabs ul.tabs li { flex: 0 1 auto; }
.single-product .woocommerce-tabs ul.tabs li a { display: flex; min-height: 48px; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
@media (max-width: 600px) {
  .single-product .me-cep-calc { padding: 16px; border-radius: 18px; }
  .single-product .me-cep-calc input[type="text"],
  .single-product .me-cep-calc input[type="tel"] { width: 100%; }
  .single-product .me-cep-calc table,
  .single-product .me-cep-calc tbody { display: block; }
  .single-product .me-cep-calc thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .single-product .me-cep-calc tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "service price" "carrier price" "deadline price"; align-items: center; gap: 3px 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; }
  .single-product .me-cep-calc tbody tr + tr { margin-top: 9px; }
  .single-product .me-cep-calc tbody td { display: block; min-width: 0; padding: 0; border: 0; }
  .single-product .me-cep-calc tbody td:nth-child(1) { grid-area: carrier; color: var(--muted); font-size: 12px; }
  .single-product .me-cep-calc tbody td:nth-child(2) { grid-area: service; color: var(--ink); font-weight: 700; }
  .single-product .me-cep-calc tbody td:nth-child(3) { grid-area: deadline; color: var(--muted); font-size: 12px; }
  .single-product .me-cep-calc tbody td:nth-child(4) { grid-area: price; color: var(--green); font-size: 16px; font-weight: 700; white-space: nowrap; }
  .single-product .me-cep-calc tbody td:nth-child(1)::before { content: "Transportadora · "; }
  .single-product .me-cep-calc tbody td:nth-child(3)::before { content: "Prazo · "; }
  .single-product .woocommerce-tabs ul.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; margin-bottom: 22px; }
  .single-product .woocommerce-tabs ul.tabs li { min-width: 0; }
  .single-product .woocommerce-tabs ul.tabs li a { min-height: 52px; padding: 8px 6px; font-size: 12px; overflow-wrap: anywhere; }
  .single-product .woocommerce-tabs .panel { margin: 0; }
  .single-product .product_meta { margin-top: 20px; }
  .single-product .summary form.cart { margin-top: 18px; padding-top: 18px; }
  .single-product .summary form.cart .quantity { margin-right: 8px; }
  .single-product .summary form.cart .single_add_to_cart_button { min-height: 50px; }
}

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 0; border-radius: var(--r); padding: 18px 22px 18px 56px; background: var(--mint); color: var(--ink); box-shadow: none;
}
.woocommerce-info { background: var(--sky); }
.woocommerce-error { background: var(--peach); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--ink); top: 18px; left: 22px; }
.woocommerce-message h2 { font-size: var(--step-2); margin-bottom: 8px; }
.woocommerce-message a:not(.button) { color: var(--green); font-weight: 600; }

/* Carrinho, checkout e conta: refino leve sobre o padrão WooCommerce */
.woocommerce table.shop_table { border-radius: var(--r); border-color: var(--line); background: #fff; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--f-display); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border-color: var(--line); border-radius: var(--r-l); background: #fff; padding: clamp(20px, 3vw, 32px); }
.woocommerce form .form-row label { font-weight: 600; font-size: var(--step--1); }

/* =========================================================
   10. Rodapé
   ========================================================= */
.site-footer { position: relative; margin-top: 0; padding: clamp(56px, 8vw, 96px) 0 28px; background: var(--ink); color: var(--paper); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: repeating-linear-gradient(0deg, rgba(200, 242, 122, .045) 0 1px, transparent 1px 10px); pointer-events: none; }
.site-footer > .wrap { position: relative; }
.footer-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(251, 248, 241, .14); }
.footer-logo { color: #fff; }
.footer-logo .logo-mark { width: 92px; }
.footer-logo:hover { color: var(--lime); }
.footer-claim { margin: 0; font: 800 var(--step-4)/.95 var(--f-display); letter-spacing: -.045em; }
.footer-claim span { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 40px 0; }
.footer-title { margin: 0 0 14px; font: 600 var(--step--1)/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(251, 248, 241, .55); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--paper); text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 1px no-repeat; transition: background-size var(--t) var(--ease), color var(--t-fast); }
.footer-links a:hover { color: var(--lime); background-size: 100% 1px; }
.footer-insta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: var(--pill); background: rgba(251, 248, 241, .08); color: var(--paper); text-decoration: none; font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.footer-insta:hover { background: var(--lime); color: var(--ink); }
.footer-small { margin: 14px 0 0; font-size: var(--step--1); color: rgba(251, 248, 241, .6); max-width: 28ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(251, 248, 241, .14); font-size: 13px; color: rgba(251, 248, 241, .6); }
.site-footer :focus-visible { outline-color: var(--lime); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =========================================================
   11. Movimento
   ========================================================= */
@keyframes print-layer { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { 0% { bottom: 0; opacity: 1; } 92% { bottom: 100%; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(13, 128, 61, 0); } }
@keyframes pulse-dot { 50% { opacity: .35; } }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* Título "imprimindo" camada a camada, de baixo para cima */
.print-line { animation: print-layer 900ms steps(14, end) var(--d, 0ms) both; }
.print-line::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--lime); border-radius: 2px; pointer-events: none;
  animation: nozzle 900ms steps(14, end) var(--d, 0ms) both;
}
.stage-plate { animation: print-layer 900ms steps(16, end) 80ms both; }

/* Revelação ao rolar (só quando o JS confirma suporte) */
.reveal-ready [data-reveal],
.reveal-ready .home-portfolio .project-card,
.reveal-ready .portfolio-page .project-card,
.reveal-ready ul.products li.product {
  opacity: 0; transform: translateY(28px);
  transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 700ms var(--ease-out) var(--d, 0ms);
}
.reveal-ready ul.products li.product .loop-media { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 800ms steps(12, end) calc(var(--d, 0ms) + 120ms); }
.reveal-ready .is-in { opacity: 1 !important; transform: none !important; }
.reveal-ready ul.products li.product.is-in .loop-media { clip-path: inset(0 0 0 0 round var(--r)); }

/* Navegação entre páginas com transição suave (navegadores compatíveis) */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none !important; flex-wrap: nowrap; width: max-content; }
  .cat-card a, .cat-media img, .cat-go, .path a, .path a::before, .path-go .icon, .process li, .process span,
  li.product .loop-media img, li.product .loop-media::after { transition-duration: 180ms !important; }
  .cat-card a:hover, .path a:hover { transform: none !important; }
  .cat-card a:hover .cat-media img, li.product:hover .loop-media img { transform: scale(1.01); }
  .print-line::after { display: none; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* =========================================================
   12. Interações 2.1 — leves, sem listeners de rolagem
   ========================================================= */

/* 12.1 Barra de "impressão" no cabeçalho: acompanha a rolagem (CSS puro, fora da thread principal) */
.print-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .print-progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--green), var(--lime-d));
    transform-origin: left; transform: scaleX(0);
    animation: grow-x linear both; animation-timeline: scroll(root block);
  }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* 12.2 Títulos das seções impressos camada a camada ao entrar na tela
   (não se aplica ao título principal da página, para não atrasar o LCP) */
.reveal-ready .section-head .section-title { clip-path: inset(100% 0 0 0); }
.reveal-ready .section-head.is-in .section-title { animation: print-layer 760ms steps(12, end) 140ms both; }

/* 12.3 Profundidade leve nas fotos reais ao rolar */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .project-image img, .about-collage img {
      scale: 1.08; animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }

/* 12.4 Trilhos de categorias: bordas esmaecem só quando há mais itens para rolar */
@property --fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@supports (animation-timeline: scroll()) {
  .chip-rail ul, .sub-rail ul {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    animation: rail-fade linear both; animation-timeline: scroll(self inline);
  }
}
@keyframes rail-fade {
  0% { --fade-l: 0px; --fade-r: 36px; }
  10% { --fade-l: 36px; }
  90% { --fade-r: 36px; }
  100% { --fade-l: 36px; --fade-r: 0px; }
}

/* 12.5 Retorno ao toque: cartões "afundam" levemente ao serem pressionados */
.cat-card a:active, .path a:active, .contact-list a:active, .quote-chat:active { transform: scale(.985); transition-duration: 80ms; }
li.product a:active .loop-media { transform: scale(.985); transition: transform 80ms var(--ease); }
.loop-media { transition: transform var(--t) var(--ease); }

/* 12.6 Foto do produto viaja do cartão para a página do produto */
@supports (view-transition-name: none) {
  ::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(root) { animation: 180ms cubic-bezier(.2, .7, .2, 1) both vt-out; }
  ::view-transition-new(root) { animation: 260ms cubic-bezier(.16, 1, .3, 1) 60ms both vt-in; }
  ::view-transition-image-pair(*) { isolation: isolate; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* 12.7 Formulário: confirmação nos campos preenchidos, contador da descrição, arraste de arquivo */
.omp-quote-form :is(input:not([type]), input[type="email"], textarea) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%230d803d'/%3E%3Cpath d='m6 10.3 2.6 2.6L14.2 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 0 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), background-size 260ms var(--spring);
}
.omp-quote-form textarea { background-position: right 14px top 14px; }
.omp-quote-form :is(input:not([type]), input[type="email"]):required:valid,
.omp-quote-form textarea:valid:not(:placeholder-shown) { background-size: 18px 18px; padding-right: 42px; }
.char-meter {
  position: relative; display: block; padding-top: 10px; font-size: var(--step--1); font-weight: 400; color: var(--muted);
}
.char-meter::before { /* trilho que "imprime" conforme a descrição cresce */
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) calc(var(--p, 0) * 100%), var(--line) 0);
  transition: background .2s;
}
.char-meter.is-ok { color: var(--green-d); font-weight: 600; }
.omp-quote-form input[type="file"].is-drag { border-color: var(--green); border-style: solid; background: #eaf7ee; transform: scale(1.01); }
.omp-quote-form input[type="file"] { transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--spring); }

/* 12.8 Copiar e-mail */
.contact-list .has-copy { position: relative; }
.copy-btn {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.copy-btn.is-done .copy-label { animation: pop 320ms var(--spring); }
.has-copy a { padding-right: 104px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* 12.9 Atalho flutuante de orçamento (somente telas menores) */
.quick-cta {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px;
  border-radius: var(--pill); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: var(--step--1);
  box-shadow: 0 10px 30px -8px rgba(16, 38, 27, .5);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform 420ms var(--ease-out), opacity 240ms var(--ease);
}
.quick-cta .icon { width: 18px; height: 18px; color: var(--lime); }
.quick-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.quick-cta:hover { color: var(--paper); background: var(--green); }
.menu-open .quick-cta { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .quick-cta { display: none; } }

/* 12.10 Renderização sob demanda das seções abaixo da dobra */
.section-dark, .section-story, .section-contact, .site-footer, .more-projects, .related.products {
  /* Reserva só a ALTURA estimada: reservar também a largura alarga grades de coluna automática (corrigido na 2.2). */
  content-visibility: auto; contain-intrinsic-block-size: auto 900px;
}

@media (prefers-reduced-motion: reduce) {
  .print-progress, .char-meter::before { transition: none; }
  .reveal-ready .section-head .section-title { clip-path: none; }
  .project-image img, .about-collage img { scale: none; }
}

/* =========================================================
   13. Motion de conversão (2.2) — estados de compra, contador, shimmer
   Curvas e molas: inc/motion.php (fonte única). Os valores abaixo de --ease-* são apenas fallback.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-emphasized: cubic-bezier(.05, .7, .1, 1); --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1); --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --t-fast: 160ms; --t-base: 280ms; --t-slow: 520ms;
}

/* 13.1 Botão de compra com estados (idle · loading · success) */
.omp-atc.omp-atc { position: relative; overflow: hidden; white-space: nowrap; isolation: isolate; }
.omp-atc__label { display: inline-flex; align-items: center; gap: 8px; }
.omp-atc__fx { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.omp-atc__fx svg { grid-area: 1 / 1; width: 20px; height: 20px; opacity: 0; visibility: hidden; }
.omp-atc__spin circle { transform-box: fill-box; transform-origin: center; }
.omp-atc[data-state="loading"] .omp-atc__spin circle { animation: omp-spin 800ms linear infinite; }
.omp-atc[data-state="loading"] { cursor: progress; pointer-events: none; }
@keyframes omp-spin { to { transform: rotate(360deg); } }
/* Neutraliza o ícone-fonte e o esmaecimento que o WooCommerce aplica em .loading/.added */
.woocommerce .omp-atc.omp-atc.loading { opacity: 1; }
.woocommerce .omp-atc.omp-atc.loading::after, .woocommerce .omp-atc.omp-atc.added::after { content: none; display: none; }
/* Nos cartões, o botão comprável vira um botão de verdade (o "Ver detalhes" dos itens Em breve continua como link) */
.woocommerce ul.products li.product .button.omp-atc, ul.products li.product .button.omp-atc {
  --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: #fff;
  align-self: flex-start; min-height: 44px; margin-top: 10px; padding: 10px 20px; border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg); font-size: var(--step--1);
}
.woocommerce ul.products li.product .button.omp-atc::after { content: none; }
.woocommerce ul.products li.product .button.omp-atc:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); background: var(--btn-bg); color: #fff; }
.woocommerce .single_add_to_cart_button.omp-atc { min-height: 52px; padding-inline: 28px; }
.woocommerce a.added_to_cart {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; font-size: var(--step--1); font-weight: 600; color: var(--green);
  animation: omp-fade-up var(--t-slow) var(--ease-out) both;
}
.woocommerce a.added_to_cart::after { content: "→"; }
@keyframes omp-fade-up { from { opacity: 0; transform: translateY(6px); } }

/* 13.2 Contador do carrinho em roleta */
.cart-count { overflow: hidden; }
.omp-odo { display: grid; }
.omp-odo > span { grid-area: 1 / 1; }

/* 13.3 Shimmer enquanto as imagens carregam (classes aplicadas pelo skeleton.js) */
.loop-media, .project-image, .woocommerce-product-gallery__image { isolation: isolate; }
.woocommerce-product-gallery__image { position: relative; }
.is-pending::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
  transform: translateX(-100%); animation: omp-shimmer 1.4s var(--ease-inout) infinite;
}
.is-pending.is-lazy img { opacity: 0; }
.is-loaded img { transition: opacity var(--t-slow) var(--ease-out); }
@keyframes omp-shimmer { to { transform: translateX(100%); } }
/* Sobreposição que o WooCommerce põe sobre o carrinho/checkout enquanto recalcula */
.woocommerce .blockUI.blockOverlay { background: var(--paper) !important; opacity: .72 !important; overflow: hidden; border-radius: inherit; }
.woocommerce .blockUI.blockOverlay::before {
  content: "" !important; position: absolute; inset: 0; width: auto; height: auto; margin: 0; top: 0; left: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .8) 50%, transparent 75%) !important;
  font-family: inherit; animation: omp-shimmer 1.2s var(--ease-inout) infinite !important; transform: translateX(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .is-pending::before, .woocommerce .blockUI.blockOverlay::before { animation: none !important; transform: none; background: rgba(255, 255, 255, .35) !important; }
  .omp-atc[data-state="loading"] .omp-atc__spin circle { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

/* =========================================================
   14. UX 3.0 — menos rolagem no celular, próximo passo claro, formulário guiado
   ========================================================= */

/* 14.1 Carrinho vazio sem "0": durante o pré-lançamento ninguém consegue comprar, o número só gerava ruído.
   O texto para leitores de tela continua ("Carrinho, 0 itens"). */
.cart-count.is-empty { display: none; }

/* 14.2 Busca: sugestões com termos que existem na coleção */
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.search-suggest-label { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.search-suggest ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip-sm { min-height: 36px; padding: 4px 14px; }
.not-found .search-suggest { justify-content: center; margin: -8px auto 24px; }
.empty-search .search-suggest { margin: 4px 0 12px; }

/* 14.3 Categorias no catálogo com contagem: o visitante sabe antes de clicar onde há peças e onde é sob orçamento */
.chip-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px;
  border-radius: var(--pill); background: var(--paper-2); font-size: 11px; font-weight: 700; color: var(--ink-2);
}
.chip-count.is-quote { min-width: 0; height: auto; padding: 0; margin-left: 6px; background: none; font-weight: 600; color: var(--muted); }
.chip:hover .chip-count:not(.is-quote) { background: rgba(255, 255, 255, .7); }
.chip[aria-current] .chip-count { background: rgba(251, 248, 241, .16); color: var(--paper); }
.chip[aria-current] .chip-count.is-quote { background: none; color: rgba(251, 248, 241, .75); }

/* 14.4 Produto "Em breve": um cartão com o estado e uma ação principal (antes: três linhas soltas e um link pequeno) */
.interest-card {
  display: grid; gap: 14px; margin: 8px 0 14px; padding: clamp(18px, 2.5vw, 24px);
  border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line);
}
.interest-status { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 700; line-height: 1.4; color: var(--ink); }
.interest-dot { flex: none; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(13, 128, 61, .15); animation: pulse 2.4s var(--ease) infinite; }
.interest-text { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.interest-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-actions .btn { flex: 1 1 220px; }
.woocommerce div.product .summary .interest-note { margin: 0 0 6px; }

/* 14.5 Orçamento: peça ou busca em contexto */
.quote-context {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 16px 12px 12px;
  border-radius: var(--r); background: #fff; border: 1.5px solid var(--green); box-shadow: var(--shadow-s);
}
.quote-context-media { flex: none; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--studio); }
.quote-context-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.quote-context-media.is-icon { display: grid; place-items: center; background: var(--mint); color: var(--green); }
.quote-context-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.quote-context-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-context strong { font: 700 var(--step-1)/1.2 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.quote-context-link { flex: none; font-size: var(--step--1); font-weight: 600; color: var(--green); }

/* 14.6 Rascunho recuperado */
.draft-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--sand); font-size: var(--step--1);
  animation: drop var(--t) var(--ease-out);
}
.draft-note p { margin: 0; }
.draft-reset { min-height: 36px; padding: 4px 0; border: 0; background: none; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.draft-reset:hover { color: var(--green); }

/* 14.7 "O que você precisa?" em cartões (o select original fica escondido, mas continua sendo o campo enviado) */
.omp-quote-form .is-proxied {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.service-pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-pick legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.service-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.omp-quote-form .service-opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 14px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.service-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.service-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--green); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.service-copy { display: grid; gap: 2px; }
.service-copy strong { font: 700 var(--step-0)/1.25 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.service-copy small { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.omp-quote-form .service-opt::after { /* marcação de escolhido */
  content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff; transition: border-color var(--t-fast), background var(--t-fast);
}
.omp-quote-form .service-opt:hover { border-color: #b2a993; background: #fff; }
.omp-quote-form .service-opt:active { transform: scale(.985); }
.omp-quote-form .service-opt:has(input:checked) { border-color: var(--green); background: #f1faf4; box-shadow: inset 0 0 0 1px var(--green); }
.omp-quote-form .service-opt:has(input:checked)::after {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.6 2.6L14.2 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.service-opt:has(input:checked) .service-ico { background: var(--green); border-color: var(--green); color: #fff; }
.omp-quote-form .service-opt:has(input:focus-visible) { box-shadow: var(--focus); }
.service-pick.is-invalid .service-opt { border-color: var(--coral); }
.service-error { margin: 8px 0 0; font-size: var(--step--1); font-weight: 600; color: #b23d12; }

/* 14.8 Anexo: área de soltar em português (o input nativo fica por cima, transparente) */
.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 2px dashed var(--line-strong); border-radius: var(--r); background: var(--paper);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--spring);
}
.omp-quote-form .dropzone input[type="file"] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
.dz-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--green); }
.dz-copy { display: grid; gap: 2px; min-width: 0; }
.dz-title { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.dz-title u { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.dropzone .file-status { font-size: 13px; }
.dropzone:hover { border-color: var(--green); background: #f3faf5; }
.dropzone:has(input:focus-visible) { border-color: var(--green); box-shadow: var(--focus); }
.dropzone.is-drag { border-style: solid; border-color: var(--green); background: #eaf7ee; transform: scale(1.01); }
.dropzone.is-ok { border-style: solid; border-color: var(--green); background: #f1faf4; }
.dropzone.is-error { border-style: solid; border-color: var(--coral); background: #fff3ee; }
.dropzone.is-error .dz-ico { color: #b23d12; }
.dz-clear {
  justify-self: start; min-height: 36px; padding: 4px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--pill);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink);
}
.dz-clear:hover { border-color: var(--coral); color: #b23d12; }
.dz-clear[hidden] { display: none; }
/* O destaque de arraste da 2.1 ficava no input; agora fica na área */
.omp-quote-form input[type="file"].is-drag { transform: none; }

/* 14.9 Pedido recebido: confirmação clara e próximos passos */
.quote-page.is-sent .woocommerce-message { padding: 22px 24px; background: var(--mint); border-radius: var(--r-l); }
.quote-page.is-sent .woocommerce-message::before { content: none; }
.quote-page.is-sent .woocommerce-message h2 { font-size: var(--step-3); }
.quote-page.is-sent .woocommerce-message > a { font-weight: 700; }
.sent-next { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 900px) { .sent-next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sent-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast), transform var(--t) var(--ease);
}
.sent-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.sent-card .icon { flex: none; width: 24px; height: 24px; color: var(--green); }
.sent-card span { font-size: var(--step--1); color: var(--muted); }
.sent-card strong { display: block; font-family: var(--f-display); font-size: var(--step-0); color: var(--ink); }
.steps.is-progress li.is-done::before { content: "✓"; background: var(--green); color: #fff; }
.steps.is-progress li.is-current::before { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 242, 122, .45); }
.steps.is-progress li.is-current strong::after { content: " · próximo passo"; font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--green); }
@media (max-width: 1023px) { .quote-page.is-sent .quote-aside { order: 0; } }

/* 14.10 Celular: categorias em lista (5 linhas compactas em vez de um mosaico de ~1.100 px) */
@media (max-width: 639px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cat-card a { flex-direction: row; align-items: center; gap: 14px; padding: 10px 56px 10px 10px; }
  .cat-media, .cat-card.is-wide .cat-media { flex: none; width: 84px; aspect-ratio: 1; margin: 0; }
  .cat-copy { padding-right: 0; }
  .cat-name { overflow-wrap: normal; hyphens: manual; }
  .cat-short { display: block; }
  .cat-go { top: 50%; bottom: auto; right: 12px; translate: 0 -50%; }
}

/* 14.11 Celular: portfólio da home em carrossel com o próximo cartão aparecendo (antes: três fotos 4:5 empilhadas) */
@media (max-width: 767px) {
  .home-portfolio .portfolio-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-padding-inline: var(--gut);
  }
  .home-portfolio .portfolio-grid::-webkit-scrollbar { display: none; }
  .home-portfolio .project-card { scroll-snap-align: start; }
  .home-portfolio .project-image { aspect-ratio: 1; }
  .home-portfolio::after { content: "Deslize para ver mais →"; display: block; margin-top: 10px; font-size: var(--step--1); color: rgba(251, 248, 241, .6); }
}

/* Impressão */
@media print {
  .site-header, .site-footer, .ticker, .nav-scrim, .hero-stage, .quick-cta { display: none !important; }
  body { background: #fff; }
}

/* Product color choices */
.omps-color-options{border:0;padding:0;margin:1.25rem 0}.omps-color-options legend{font-weight:700;margin-bottom:.65rem}.omps-color-options legend small{font-size:.78em;color:var(--omp-muted,#68716a);margin-left:.4rem}.omps-color-swatches{display:flex;flex-wrap:wrap;gap:.55rem}.omps-color-swatch{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .8rem;border:1px solid #d8ddd7;border-radius:999px;background:#fff;color:inherit;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}.omps-color-swatch:hover{transform:translateY(-1px)}.omps-color-swatch[aria-pressed=true]{border-color:var(--omp-green,#247451);box-shadow:0 0 0 2px color-mix(in srgb,var(--omp-green,#247451) 20%,transparent)}.omps-color-swatch span{width:1.15rem;height:1.15rem;border-radius:50%;background:var(--swatch);border:1px solid #8a918b}.omps-color-status{font-size:.9rem;color:var(--omp-muted,#68716a);margin:.7rem 0}

/* =========================================================
   16. Página de produto 3.3
   Hierarquia de PDP dos grandes e-commerces brasileiros:
   foto grande · título, código e preço · cor · quantidade + botão · garantias · frete.
   A caixa de compra acompanha a rolagem no desktop; no celular, a barra fixa assume.
   ========================================================= */
.single-product div.product.pdp { display: block; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .pdp-top { grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: clamp(32px, 4.5vw, 72px); }
  /* A coluna mais curta acompanha a rolagem: foto quando o resumo é longo, resumo quando a foto é maior. */
  .single-product div.product.pdp .summary,
  .single-product .pdp-top > .pdp-media { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Foto */
.pdp-media { position: relative; min-width: 0; }
.woocommerce div.product.pdp div.images { border-radius: var(--r-l); }
.woocommerce div.product.pdp div.images .flex-control-thumbs { gap: 10px; padding: 12px; background: var(--paper); }
.woocommerce div.product.pdp div.images .flex-control-thumbs li { width: 68px; }
.woocommerce div.product.pdp div.images .flex-control-thumbs img { border-radius: var(--r-s); opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--t-fast), outline-color var(--t-fast); }
.woocommerce div.product.pdp div.images .flex-control-thumbs img.flex-active { opacity: 1; outline-color: var(--green); }
.pdp-photo-note {
  position: absolute; z-index: 3; top: 16px; left: 16px; margin: 0; padding: 6px 12px; border-radius: var(--pill);
  background: rgba(251, 248, 241, .94); color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.3; pointer-events: none;
}
.woocommerce div.product.pdp .woocommerce-product-gallery__trigger {
  top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 248, 241, .94);
  box-shadow: var(--shadow-s); transition: transform var(--t-fast) var(--ease);
}
.woocommerce div.product.pdp .woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }
.woocommerce div.product.pdp .woocommerce-product-gallery__trigger:focus-visible { outline: none; box-shadow: var(--focus); }

/* Título, código e preço */
.woocommerce div.product.pdp .product_title { font-size: var(--step-3); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 8px; text-wrap: balance; }
.pdp-ref { margin: 0 0 18px; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.woocommerce div.product.pdp .woocommerce-product-rating { margin: -8px 0 16px; font-size: var(--step--1); }
.woocommerce div.product.pdp p.price { margin: 0 0 4px; font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.woocommerce div.product.pdp p.price del { font-size: .55em; font-weight: 500; color: var(--muted); }
.woocommerce div.product.pdp p.price ins { text-decoration: none; }
.pdp-installments { margin: 0 0 4px; font-size: var(--step--1); color: var(--ink-2); }
.pdp-installments .amount { font-weight: 700; }
.woocommerce div.product.pdp .woocommerce-product-details__short-description { margin-top: 16px; font-size: var(--step-0); color: var(--ink-2); max-width: 60ch; }
.woocommerce div.product.pdp .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Formulário de compra */
.single-product .pdp .summary form.cart {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.single-product .pdp .summary form.cart > :not(.quantity):not(.single_add_to_cart_button):not([type="hidden"]) { flex: 1 0 100%; }
.single-product .pdp .summary form.cart .single_add_to_cart_button {
  flex: 1 1 200px; min-height: 56px; margin: 0; font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em;
  --btn-bg: var(--green); --btn-bd: var(--green); --btn-fg: #fff;
  /* Explícito: o CSS do WooCommerce pinta .button.alt de roxo com especificidade maior que a base do tema. */
  background: var(--btn-bg); border-color: var(--btn-bd); color: var(--btn-fg);
}
.single-product .pdp .summary form.cart .single_add_to_cart_button:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.single-product .pdp p.stock { margin: 18px 0 0; }

/* Cor: círculos com o nome embaixo; o grupo mostra a cor escolhida */
.single-product .pdp .omps-color-options { margin: 0 0 6px; }
.single-product .pdp .omps-color-options legend { padding: 0; margin-bottom: 12px; font-size: var(--step-0); font-weight: 700; color: var(--ink); }
.pdp-color-picked { font-weight: 500; color: var(--ink-2); }
.single-product .pdp .omps-color-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 6px; }
.single-product .pdp .omps-color-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 4px 2px; border: 0; border-radius: var(--r-s);
  background: none; box-shadow: none; font-size: 12px; line-height: 1.2; color: var(--ink-2); text-align: center; transform: none;
}
.single-product .pdp .omps-color-swatch span {
  width: 40px; height: 40px; border: 1px solid rgba(16, 38, 27, .22); background: var(--swatch);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .08); transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.single-product .pdp .omps-color-swatch:hover { transform: none; color: var(--ink); }
.single-product .pdp .omps-color-swatch:hover span { transform: scale(1.06); }
.single-product .pdp .omps-color-swatch[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: none; outline: none; }
.single-product .pdp .omps-color-swatch[aria-pressed="true"] span { box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .08), 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.single-product .pdp .omps-color-swatch:focus-visible,
.single-product .pdp .omps-color-swatch[aria-pressed="true"]:focus-visible { outline: none; }
.single-product .pdp .omps-color-swatch:focus-visible span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.single-product .pdp .omps-color-status { margin: 12px 0 0; font-size: var(--step--1); color: var(--muted); }
.single-product .pdp .omps-color-options.is-missing .omps-color-status { color: #b23a12; font-weight: 600; }
.single-product .pdp .omps-color-options.is-missing legend { color: #b23a12; }

/* Quantidade − n + */
.single-product .pdp form.cart .quantity.qty-stepper {
  display: inline-flex; align-items: center; flex: 0 0 auto; height: 56px; margin: 0; padding: 0 4px;
  border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: #fff;
}
.single-product .pdp form.cart .qty-stepper input.qty {
  width: 40px; height: 100%; padding: 0; border: 0; background: none; text-align: center; font: 700 var(--step-0) var(--f-body);
  color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.single-product .pdp form.cart .qty-stepper input.qty::-webkit-inner-spin-button,
.single-product .pdp form.cart .qty-stepper input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .pdp form.cart .qty-stepper input.qty:focus-visible { outline: none; border-radius: var(--r-xs); box-shadow: var(--focus); }
.qty-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; transition: background var(--t-fast);
}
.qty-btn:hover:not(:disabled) { background: var(--paper-2); }
.qty-btn:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty-btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Garantias: lista simples sob o botão, sem cartão */
.single-product .pdp .pdp-perks { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.pdp-perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step--1); line-height: 1.45; color: var(--ink-2); }
.pdp-perks .icon { width: 22px; height: 22px; color: var(--green); }
.pdp-perks strong { color: var(--ink); font-weight: 700; }
.pdp-perks a { color: var(--green-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pdp-perks a:hover { color: var(--ink); }

/* Frete (Melhor Envio): mesma linguagem, sem cartão branco solto */
.single-product .pdp .me-cep-calc { margin: 22px 0 0; background: var(--paper-2); border-color: transparent; }

/* "Em breve": o cartão de interesse ocupa o lugar do formulário */
.single-product .pdp .interest-card { margin-top: 22px; }

/* Detalhes em sanfona */
.pdp-details { max-width: 860px; margin-top: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.pdp-acc { border-top: 1px solid var(--line); }
.pdp-acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 4px;
  cursor: pointer; list-style: none; font: 650 var(--step-1)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--ink);
}
.pdp-acc > summary::-webkit-details-marker { display: none; }
.pdp-acc > summary .icon { flex: none; width: 22px; height: 22px; color: var(--ink-2); transition: transform var(--t) var(--ease-out); }
.pdp-acc[open] > summary .icon { transform: rotate(180deg); }
.pdp-acc > summary:hover { color: var(--green-d); }
.pdp-acc > summary:focus-visible { outline: none; border-radius: var(--r-xs); box-shadow: var(--focus); }
.pdp-acc-body { padding: 0 4px 28px; max-width: 72ch; color: var(--ink-2); }
.pdp-acc-body > :first-child { margin-top: 0; }
.pdp-acc-body table.shop_attributes { width: 100%; border: 0; border-collapse: collapse; }
.pdp-acc-body table.shop_attributes th,
.pdp-acc-body table.shop_attributes td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-style: normal; text-align: left; vertical-align: top; }
.pdp-acc-body table.shop_attributes th { width: 38%; font-weight: 600; color: var(--ink); }
.pdp-acc-body table.shop_attributes tr:last-child th,
.pdp-acc-body table.shop_attributes tr:last-child td { border-bottom: 0; }
.pdp-acc-body table.shop_attributes p { margin: 0; }
.pdp-acc-body #reviews h2 { font-size: var(--step-1); }
@supports (interpolate-size: allow-keywords) {
  .pdp-acc { interpolate-size: allow-keywords; }
  .pdp-acc::details-content { block-size: 0; overflow: clip; transition: block-size var(--t) var(--ease-out), content-visibility var(--t) allow-discrete; }
  .pdp-acc[open]::details-content { block-size: auto; }
}

/* Relacionados: grade no desktop, trilho deslizante no celular */
.single-product .pdp .related > h2 { margin: clamp(56px, 8vw, 104px) 0 24px; font-size: var(--step-3); }
@media (max-width: 639px) {
  .single-product .pdp .related ul.products {
    display: grid; grid-auto-flow: column; grid-auto-columns: 64%; grid-template-columns: none; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
    margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 8px; scrollbar-width: none;
  }
  .single-product .pdp .related ul.products::-webkit-scrollbar { display: none; }
  .single-product .pdp .related ul.products li.product { scroll-snap-align: start; }
}

/* Barra de compra fixa (celular) */
.pdp-bar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -6px rgba(16, 38, 27, .45);
  transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}
.pdp-bar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.pdp-bar-info { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.pdp-bar-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: rgba(251, 248, 241, .72); }
.pdp-bar-price { font: 700 var(--step-1)/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.pdp-bar-price del { font-size: .7em; font-weight: 500; opacity: .6; }
.pdp-bar-price ins { text-decoration: none; }
.pdp-bar .btn { flex: none; min-height: 48px; padding-inline: 20px; }
.menu-open .pdp-bar { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .pdp-bar { display: none; } }

@media (max-width: 600px) {
  .woocommerce div.product.pdp div.images { border-radius: var(--r); }
  .single-product .pdp .summary form.cart .single_add_to_cart_button { flex-basis: 160px; padding-inline: 16px; font-size: var(--step-0); }
  .single-product .pdp form.cart .quantity.qty-stepper { padding: 0 2px; }
  .qty-btn { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-bar, .pdp-acc > summary .icon, .single-product .pdp .omps-color-swatch span { transition: none; }
  .pdp-acc::details-content { transition: none; }
}
@media print { .pdp-bar { display: none !important; } }
