/* ============================================================
   IC Digital — Tema (recriação original)
   Tokens, modo claro/escuro, componentes partilhados
   ============================================================ */

:root {
  /* Tipografia */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Raios */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(18,18,26,.05), 0 1px 3px rgba(18,18,26,.06);
  --shadow: 0 6px 18px -6px rgba(18,18,26,.12), 0 2px 6px rgba(18,18,26,.06);
  --shadow-lg: 0 30px 60px -22px rgba(18,18,26,.28), 0 10px 24px -12px rgba(18,18,26,.16);

  /* Layout */
  --maxw: 1100px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Acento (constante nos dois modos) */
  --accent: #2e5bff;
  --accent-hover: #1d44d8;
  --accent-ink: #ffffff;
  --green: #20bd6b;

  /* Transições */
  --t: .25s cubic-bezier(.4, 0, .2, 1);

  /* Altura do header (usada para posicionar os painéis abaixo) */
  --header-h: 116px;
}

/* ---- Modo claro (default) ---- */
:root,
[data-theme="light"] {
  --bg: #f7f7f4;
  --bg-2: #efefea;
  --surface: #ffffff;
  --surface-2: #f4f4f0;
  --ink: #14141a;
  --ink-soft: #45454f;
  --muted: #8a8a95;
  --border: #e6e6df;
  --border-strong: #d8d8cf;
  --accent-soft: rgba(46, 91, 255, .09);
  --hero-grid: rgba(20, 20, 26, .045);
  --logo-light: block;
  --logo-dark: none;
  /* Newsletter — modo claro */
  --nl-bg: var(--surface);
  --nl-ink: var(--ink);
  --nl-muted: var(--muted);
  --nl-input-bg: var(--bg);
  --nl-input-border: var(--border-strong);
  --nl-border: var(--border);
  --nl-glow: .14;
}

/* ---- Modo escuro ---- */
[data-theme="dark"] {
  --bg: #0c0c10;
  --bg-2: #111117;
  --surface: #16161d;
  --surface-2: #1d1d26;
  --ink: #f4f4f1;
  --ink-soft: #b6b6c1;
  --muted: #797986;
  --border: #272730;
  --border-strong: #34343f;
  --accent: #5b7cff;
  --accent-hover: #7591ff;
  --accent-soft: rgba(91, 124, 255, .14);
  --hero-grid: rgba(255, 255, 255, .04);
  --logo-light: none;
  --logo-dark: block;
  /* Newsletter — modo escuro */
  --nl-bg: #1d1d26;
  --nl-ink: #f4f4f1;
  --nl-muted: rgba(244,244,241,.55);
  --nl-input-bg: rgba(255,255,255,.07);
  --nl-input-border: rgba(255,255,255,.14);
  --nl-border: transparent;
  --nl-glow: .55;
}

/* ============================================================ Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Secções */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }

/* Eyebrow / cabeçalho de secção */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; max-width: 16ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-2px); }
.btn--surface { background: var(--surface); color: var(--ink); border-color: transparent; font-weight: 700; }
.btn--surface:hover { background: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; justify-content: center; }

/* Pílulas / badges */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.pill--avail { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .35; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* ============================================================ Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-block: 24px 8px;
  background: var(--bg);
}
.header-inner {
  /* Largura = conteúdo interno das secções (maxw − 2×gutter), centrado */
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: clamp(14px, 2vw, 22px);
  display: flex; align-items: center; height: 76px;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(18,18,26,.07), 0 2px 6px rgba(18,18,26,.04);
}
[data-theme="dark"] .header-inner {
  box-shadow: 0 2px 28px rgba(255, 255, 255, .07), 0 1px 6px rgba(255, 255, 255, .04);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand .logo-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; flex: none; transition: background var(--t), color var(--t); }
.brand .logo-mark span { transform: translateY(.5px); }
.brand .logo-mark-img { width: 38px; height: 38px; object-fit: contain; flex: none; display: block; }
.brand b { color: var(--accent); font-weight: 700; }

.nav-area { display: flex; align-items: center; gap: 10px; }
.nav-area .brand { margin-inline: 4px 24px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--ink-soft); padding: 9px 14px; border-radius: var(--r-pill);
  transition: color var(--t), background var(--t);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.header-actions { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: none; color: var(--ink);
  transition: var(--t);
}
.icon-btn:hover { color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .ico-sun { display: var(--logo-dark); }
.icon-btn .ico-moon { display: var(--logo-light); }
.menu-btn { display: grid; }

/* Logo imagens (alternam por tema) */
.brand-img { height: 32px; width: auto; }
.brand-img.logo--light { display: var(--logo-light); }
.brand-img.logo--dark { display: var(--logo-dark); }

/* ============================================================ Off-canvas panel */

.panel {
  position: fixed;
  top: var(--header-h);
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .28s, visibility 0s .3s;
}
.panel.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .28s, visibility 0s;
}
/* Painéis alinhados com as bordas do header card (maxw − 2×gutter, centrado) */
.panel--nav {
  left:  max(var(--gutter), calc((100vw - var(--maxw) + 2 * var(--gutter)) / 2));
  right: max(var(--gutter), calc((100vw - var(--maxw) + 2 * var(--gutter)) / 2));
}
.panel--search {
  left:  max(var(--gutter), calc((100vw - var(--maxw) + 2 * var(--gutter)) / 2));
  right: max(var(--gutter), calc((100vw - var(--maxw) + 2 * var(--gutter)) / 2));
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 17px; }
.panel-body { padding: 26px var(--gutter) 40px; display: flex; flex-direction: column; gap: 30px; }
.panel-block h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.panel-search { display: flex; gap: 8px; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a { font-family: var(--font-display); font-size: 24px; font-weight: 600; padding: 8px 0; color: var(--ink); display: flex; justify-content: space-between; align-items: center; transition: color var(--t), padding var(--t); }
.panel-nav a:hover { color: var(--accent); padding-left: 8px; }
.panel-nav .nav-label { display: flex; align-items: center; gap: 12px; }
.panel-nav .nav-label svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); opacity: .75; transition: opacity var(--t); }
.panel-nav a:hover .nav-label svg { opacity: 1; }
.panel-nav .nav-desc { color: var(--muted); font-size: 14px; font-family: var(--font-body); font-weight: 400; }
.banner-stack { display: flex; flex-direction: row; gap: 12px; }
.banner-stack a { flex: 1; min-width: 0; }
.banner-stack a { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); display: block; transition: transform var(--t); }
.banner-stack a:hover { transform: translateY(-2px); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); transition: var(--t); }
.social-row a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

/* mini case widget */
.mini-case { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: var(--t); }
.mini-case:hover { border-color: var(--ink); }
.mini-case img { width: 78px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.mini-case .yr { font-size: 12px; color: var(--accent); font-weight: 700; }
.mini-case h5 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 3px 0 0; line-height: 1.2; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-family: var(--font-display); }
.input, .textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { resize: vertical; min-height: 120px; }
.input.invalid, .textarea.invalid { border-color: #e2453d; box-shadow: 0 0 0 4px rgba(226,69,61,.12); }
.field-error { font-size: 12.5px; color: #e2453d; min-height: 1em; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-ok { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 600; font-family: var(--font-display); }

/* ============================================================ Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(48px, 7vw, 96px); align-items: center; }
.hero-text { flex: 0 1 540px; }
.hero-text { display: flex; flex-direction: column; }
.hero-text h1           { order: 1; }
.hero-text .hero-eyebrows { order: 2; margin-bottom: 0; margin-top: 20px; }
.hero-text .hero-lead   { order: 3; }
.hero-text .hero-cta    { order: 4; }
.hero-text .hero-stats  { order: 5; }
.hero-eyebrows { display: flex; gap: 10px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.03em; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 46ch; margin: 24px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stats .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.hero-stats .lbl { font-size: 13.5px; color: var(--muted); }

.hero-card { position: relative; display: flex; flex-direction: column; align-items: center; }
.portrait-slot { display: block; height: clamp(280px, 45vh, 440px); width: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-float {
  position: absolute; left: -36px; bottom: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero-float .fav { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-float .fav svg { width: 20px; height: 20px; }
.hero-float small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; }
.hero-float b { font-family: var(--font-display); font-size: 15px; white-space: nowrap; }

/* ============================================================ Tools */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: var(--t); position: relative; overflow: hidden;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tool-card .tool-top { display: flex; align-items: center; justify-content: space-between; }
.tool-card .tool-logo { width: 36px; height: 36px; object-fit: contain; }
.tool-card h3 { font-size: 19px; }
.tool-card .tool-domain { font-size: 13px; color: var(--accent); font-weight: 600; }
.tool-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.tool-card .arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-soft); transition: var(--t); }
.tool-card:hover .arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }

/* ============================================================ Cases */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-tabs button,
.filter-tabs a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border); padding: 9px 20px; border-radius: var(--r-pill); transition: var(--t);
}
.filter-tabs button.active,
.filter-tabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-tabs button:not(.active):hover,
.filter-tabs a:not(.active):hover { border-color: var(--ink); }

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cases-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cases-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cases-grid--3col { grid-template-columns: 1fr; } }
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: var(--t); display: flex; flex-direction: column;
}
.case-card.feature { grid-column: 1 / -1; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.case-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.case-card.feature .case-thumb { aspect-ratio: 21/9; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-thumb img { transform: scale(1.045); }
.case-tag { position: absolute; top: 16px; left: 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; font-family: var(--font-display); }
.case-body { padding: 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-body .yr { font-size: 13px; color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.case-body .client { font-size: 14px; color: var(--muted); }
.case-body h3 { font-size: clamp(20px, 2.4vw, 27px); margin-top: 4px; }
.case-body .case-link { margin-top: 14px; font-family: var(--font-display); font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.case-card:hover .case-link svg { transform: translateX(4px); }
.case-link svg { width: 16px; height: 16px; transition: transform var(--t); }

/* ---- Lista horizontal de cases (archive) ---- */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: case-num;
}
.cases-list .case-card {
  flex-direction: row;
  align-items: stretch;
  counter-increment: case-num;
  min-height: 0;
}
.cases-list .case-card:hover { transform: none; box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cases-list .case-thumb {
  width: 38%;
  flex-shrink: 0;
  aspect-ratio: unset;
}
.cases-list .case-body {
  flex: 1;
  padding: 18px 22px 18px 28px;
  position: relative;
  justify-content: center;
  overflow: hidden;
  gap: 7px;
}
.cases-list .case-body::after {
  content: counter(case-num, decimal-leading-zero);
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  font-size: 52px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cases-list .case-body h3 { font-size: clamp(17px, 1.8vw, 22px); }
.cases-list .case-body h3 a { color: inherit; }
.case-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.case-tag-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--ink-soft);
}
.cases-list .case-link {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cases-list .case-link svg { width: 14px; height: 14px; transition: transform var(--t); }
.cases-list .case-card:hover .case-link svg { transform: translateX(4px); }

@media (max-width: 860px) {
  .cases-list .case-card { flex-direction: column; }
  .cases-list .case-thumb { width: 100%; aspect-ratio: 16/9; }
  .cases-list .case-body::after { font-size: 38px; right: 18px; }
}

/* Adjust spacing between Cases and the following section (add 20px) */
#cases { padding-block-end: calc(clamp(18px, 3vw, 36px) + 20px); }
#cases + .section--tight { padding-block-start: calc(clamp(18px, 3vw, 36px) + 20px); }

@media (max-width: 560px) {
  /* add 20px on small screens as well */
  #cases { padding-block-end: 40px; }
  #cases + .section--tight { padding-block-start: 40px; }
}

/* ============================================================ Blog */
.blog-list { display: flex; flex-direction: column; }
.blog-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--border); transition: var(--t);
}
.blog-row:last-child { border-bottom: 1px solid var(--border); }
.blog-row .idx { font-family: var(--font-display); font-size: 15px; color: var(--muted); font-weight: 600; }
.blog-row h3 { font-size: clamp(19px, 2.3vw, 26px); transition: color var(--t); }
.blog-row .date { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.blog-row .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-soft); flex: none; transition: var(--t); }
.blog-row:hover { padding-inline: 14px; }
.blog-row:hover h3 { color: var(--accent); }
.blog-row:hover .go { background: var(--accent); color: #fff; border-color: var(--accent); }
.blog-row .go svg { width: 18px; height: 18px; }
.blog-cat { display: inline-block; font-size: 12px; font-weight: 700; font-family: var(--font-display); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

/* Cartões blog (página listagem) */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card .pc-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); display: grid; place-items: center; color: var(--muted); font-family: var(--font-display); }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 20px; }
.post-card .pc-meta { font-size: 13px; color: var(--muted); margin-top: auto; }

/* ============================================================ Newsletter */
.newsletter { background: var(--nl-bg); color: var(--nl-ink); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; border: 1px solid var(--nl-border); }
.newsletter::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 68%); opacity: var(--nl-glow, .55); }
.newsletter .inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; max-width: 680px; }
.newsletter-eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--nl-muted); display: block; margin-bottom: 12px; }
.newsletter h2 { color: var(--nl-ink); font-size: clamp(28px, 4vw, 44px); margin: 0; }
.newsletter p { color: var(--nl-muted); margin: 14px 0 0; font-size: 16px; line-height: 1.6; }
.newsletter-text { display: flex; flex-direction: column; }

/* Keep newsletter heading on one line when possible; allow wrap on very small screens */
.newsletter h2 { white-space: nowrap; }
@media (max-width: 560px) {
  .newsletter h2 { white-space: normal; }
}
.news-form { display: flex; gap: 10px; }
.news-form .input { flex: 1; background: var(--nl-input-bg); border-color: var(--nl-input-border); color: var(--nl-ink); }
.news-form .input::placeholder { color: var(--nl-muted); }
.news-form .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ============================================================ Testemunhos */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: var(--t); }
.testi-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.testi-card .quote-mark { font-family: var(--font-display); font-size: 56px; line-height: .6; color: var(--accent); opacity: .35; }
.testi-card p { font-size: 16.5px; color: var(--ink-soft); margin: 0; }
.testi-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-foot img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.testi-foot h4 { font-size: 16px; }
.testi-foot small { color: var(--muted); font-size: 13px; }

/* ============================================================ Experiência */
.timeline { position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-left: 48px; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.tl-period { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.tl-item h3 { font-size: 21px; margin: 6px 0 8px; }
.tl-item p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ============================================================ Contacto */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside .pill { margin-bottom: 22px; }
.contact-aside h2 { font-size: clamp(28px, 4vw, 46px); }
.contact-aside p { color: var(--ink-soft); margin-top: 18px; max-width: 42ch; }
.contact-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-meta a, .contact-meta span { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 500; }
.contact-meta svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }

/* ============================================================ Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 76px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand p { color: var(--ink-soft); max-width: 34ch; margin: 18px 0 22px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); padding: 6px 0; font-size: 15.5px; transition: color var(--t); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--ink); }

/* ============================================================ Páginas internas */
.subhero {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 160% 140% at 100% 0%, #000 20%, transparent 68%);
}
.subhero > * { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 14px; height: 14px; }
.page-title { font-size: clamp(34px, 6vw, 64px); letter-spacing: -.03em; max-width: 18ch; }

/* meta projeto */
.proj-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 32px; }
.proj-meta .pm-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); }
.proj-meta .pm-val { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 6px; }
.proj-hero-img { width: 100%; border-radius: var(--r-lg); overflow: hidden; margin-block: clamp(28px, 4vw, 48px); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Prosa (post / case body / legal) */
.prose { max-width: 760px; margin: 0 auto; font-size: 18px; color: var(--ink-soft); }
.prose.wide { max-width: 860px; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: clamp(21px, 2.6vw, 26px); color: var(--ink); margin-top: 1.5em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: .45em; }
.prose li:last-child { margin-bottom: 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { padding: 20px 26px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.prose blockquote cite { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 10px; font-style: normal; }
.prose pre { background: var(--ink); color: var(--bg); padding: 16px 20px; border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; }
.prose figure { }
.prose img { border-radius: var(--r); border: 1px solid var(--border); }

.post-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; margin-top: 20px; }
.author-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; text-decoration: none; transition: color var(--t); }
.author-chip:hover { color: var(--accent); }
.author-chip .av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-family: var(--font-display); }

.share-row { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-row span { font-size: 13px; color: var(--muted); font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================ Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } .dot::after { animation: none; } }

/* ============================================================ Responsivo */
@media (max-width: 980px) {
  .hero-grid { flex-direction: column; }
  .hero-card { display: none; }
  .hero-text { flex: unset; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-text h1        { order: 1; }
  .hero-text .hero-eyebrows { order: 2; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; margin-bottom: 0; }
  .hero-text .hero-lead     { order: 3; margin-top: 16px; }
  .hero-text .hero-cta      { order: 4; flex-direction: column; align-items: center; margin-top: 24px; }
  .hero-text .hero-stats    { order: 5; justify-content: center; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .btn--cta-header { display: none; }
  /* Panel nav — links menores */
  .panel-nav a { font-size: 19px; padding: 6px 0; }
  .cases-grid, .testi-grid, .posts-grid { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .news-form { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .blog-row { grid-template-columns: 1fr auto; }
  .blog-row .idx { display: none; }
  .filter-tabs { gap: 6px; margin-bottom: 24px; }
  .filter-tabs button,
  .filter-tabs a { font-size: 13px; padding: 7px 12px; }
  .post-meta-row { font-size: 13px; gap: 8px; }
  .post-meta-row .sep { display: none; }
  .subhero { padding-top: clamp(24px,4vw,48px); padding-bottom: clamp(16px,2.5vw,28px); }
}
@media (max-width: 560px) {
  /* Footer bottom */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom .links { width: 100%; }
  /* Blog rows */
  .blog-row h3 { font-size: 16px; }
  .blog-row { padding-block: 14px; }
  /* Newsletter */
  .newsletter { padding: clamp(28px,5vw,40px) clamp(20px,4vw,32px); }
  /* Share row */
  .share-row { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 460px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stats .num { font-size: 26px; }
  .hero-stats .lbl { font-size: 12px; }
  /* Hero card ainda menor em mobile pequeno */
  .portrait-slot { height: 130px; }
  /* Proj meta — coluna única */
  .proj-meta { grid-template-columns: 1fr; gap: 12px; }
  /* Tool card — empilha verticalmente */
  .tool-card-full { flex-direction: column; gap: 14px; }
  .tcf-logo, .tcf-logo img { width: 52px; height: 52px; }
  /* Header */
  .header-inner { padding-inline: clamp(10px,3vw,16px); gap: 8px; }
  /* Breadcrumb */
  .breadcrumb { font-size: 13px; flex-wrap: wrap; gap: 4px; }
}

/* ============================================================ WordPress nav menu overrides
   wp_nav_menu() wraps items in <ul><li> — the rules below make that transparent
   to the existing flex/block layouts from the prototype. */
.nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav > ul > li { list-style: none; }
.panel-nav > ul { display: flex; flex-direction: column; gap: 2px; list-style: none; padding: 0; margin: 0; }
.panel-nav > ul > li { list-style: none; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { display: block; }
.footer-bottom .links ul { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-bottom .links li { display: block; }

/* ============================================================ Paginação */
.ic-pagination .nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }
.ic-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding-inline: 10px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-soft); border: 1px solid var(--border); transition: var(--t); gap: 6px; }
.ic-pagination .page-numbers:hover { color: var(--ink); border-color: var(--ink); }
.ic-pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ic-pagination .page-numbers.dots { border: none; }

/* proj-hero-img responsive */
.proj-hero-img img { width: 100%; height: auto; display: block; }

/* ============================================================ Painel Nav — layout 2 colunas */
.panel--nav .panel-head { justify-content: space-between; }
.panel--nav .panel-head .brand { font-size: 18px; }
.panel-nav-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.panel-nav-col { padding: 28px 22px 36px; border-right: 1px solid var(--border); }
.panel-cases-col { padding: 28px 22px 36px; border-right: 1px solid var(--border); }
.panel-posts-col { padding: 28px 22px 36px; }
.panel-nav-col h4,
.panel-cases-col h4,
.panel-posts-col h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Coluna de artigos */
.panel-posts-nav { display: flex; flex-direction: column; }
.panel-post-link { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: var(--t); }
.panel-post-link:last-child { border-bottom: none; }
.panel-post-title { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color var(--t); }
.panel-post-link:hover .panel-post-title { color: var(--accent); }
.panel-post-date { font-size: 11px; color: var(--muted); }

/* Painel Nav — mobile (≤720px): coluna única */
@media (max-width: 720px) {
  .panel-nav-grid { grid-template-columns: 1fr; }
  .panel-nav-col { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 20px; }
  .panel-cases-col { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 20px; }
  .panel-posts-col { padding: 18px 20px 24px; }
  .mini-case--wide img { width: 80px; height: 52px; }
  .mini-case--wide h5 { font-size: 13px; line-height: 1.3; }
  .mini-case--wide .yr { white-space: nowrap; }
}

/* mini-case variante wide (painel nav) */
.mini-case--wide { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: var(--t); }
.mini-case--wide:hover { border-color: var(--ink); }
.mini-case--wide img { width: 110px; height: 64px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.mini-case--wide .yr { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* ============================================================
   CTA Bar (template-parts/components/cta-bar.php)
   ============================================================ */
.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 3vw, 40px);
}
.cta-bar-left { flex: 1; min-width: 0; }
.cta-bar-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.cta-bar-pill { }
.cta-bar-btn {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .cta-bar-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Acessibilidade — skip link + screen reader
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--accent);
  color: var(--accent-ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 8px;
  top: 8px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  width: auto;
  z-index: 9999;
  border-radius: var(--r-sm);
}

/* ============================================================
   Classes WordPress obrigatórias (Theme Check)
   ============================================================ */

/* Alinhamento de blocos */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter, .alignfull, .alignwide { display: block; margin-inline: auto; }
.alignwide  { max-width: 1100px; }
.alignfull  { max-width: 100%; }

/* Legendas de imagens */
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin: 6px 0 0; }

/* Galeria */
.gallery-caption { font-size: 13px; color: var(--muted); }

/* Post states */
.sticky { border-left: 3px solid var(--accent); padding-left: 16px; }
.bypostauthor { /* sem estilo especial, presença suficiente */ }

/* ============================================================
   Comentários
   ============================================================ */
.comments-area { margin-top: clamp(36px,5vw,60px); }
.comments-title {
  font-family: var(--font-display);
  font-size: clamp(20px,2.4vw,26px);
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Lista */
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.comment-list ol { padding-left: clamp(20px,4vw,48px); margin-top: 12px; }

/* Card de comentário */
.comment-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(16px,2.5vw,24px);
}
.comment-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.comment-avatar { flex: none; }
.comment-avatar .avatar { border-radius: 50%; display: block; }
.comment-author-info { flex: 1; min-width: 0; }
.comment-author-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); display: block; }
.comment-date { font-size: 12px; color: var(--muted); text-decoration: none; transition: color var(--t); }
.comment-date:hover { color: var(--ink-soft); }
.comment-reply-wrap { flex: none; }
.comment-reply-wrap a, .comment-reply-link {
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  text-decoration: none;
  transition: var(--t);
  display: inline-block;
}
.comment-reply-wrap a:hover, .comment-reply-link:hover { color: var(--accent); border-color: var(--accent); }
.comment-awaiting { font-size: 13px; color: var(--muted); font-style: italic; margin: 0 0 10px; }
.comment-content p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.comment-content p:last-child { margin-bottom: 0; }

/* Navegação de comentários */
.comments-pagination, .comment-navigation { margin-top: 24px; display: flex; gap: 8px; }
.comments-pagination a, .comment-navigation a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 6px 16px; text-decoration: none; transition: var(--t);
}
.comments-pagination a:hover, .comment-navigation a:hover { color: var(--accent); border-color: var(--accent); }

/* Formulário de comentário */
.comment-respond { margin-top: clamp(32px,4vw,48px); }
.comment-reply-title {
  font-family: var(--font-display);
  font-size: clamp(18px,2.2vw,24px);
  color: var(--ink);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.comment-reply-title small a { font-size: 13px; color: var(--muted); font-weight: 400; text-decoration: none; }
.comment-reply-title small a:hover { color: var(--accent); }
.comment-form .logged-in-as,
.comment-form .comment-notes { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.comment-form .logged-in-as a,
.comment-form .comment-notes a { color: var(--accent); }
.comment-form-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.comment-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.comment-form .required { color: var(--accent); }
.form-submit { margin-top: 8px; }
@media (max-width: 560px) { .comment-form-fields-row { grid-template-columns: 1fr; } }

/* Paginação de posts (wp_link_pages) */
.page-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* Foco visível global (complementa :focus-visible do tema) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Estilo de pesquisa vazia */
.search-empty { max-width: 560px; }
.search-empty p { font-size: 17px; color: var(--ink-soft); margin-bottom: 16px; }

/* Back to top — posicionado acima do wa-fab */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 29px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -4px rgba(46,91,255,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background var(--t);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }
@media (max-width: 600px) { .back-to-top { bottom: 90px; right: 22px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-fab:hover { transform: scale(1.07) translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37,211,102,.7); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: .5;
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 600px) { .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }

/* ============================================================
   Fase 2 — Serviços, Processo, Logos, FAQ (páginas)
   ============================================================ */

/* ---- Faixa de logos de clientes ---- */
.logos-strip { border-block: 1px solid var(--border); padding-block: clamp(28px, 4vw, 44px); }
.logos-strip .lead { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); margin-bottom: 26px; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 64px); }
.logos-row .client-logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); color: var(--ink-soft); opacity: .55; transition: opacity var(--t), color var(--t); letter-spacing: -.01em; }
.logos-row .client-logo:hover { opacity: 1; color: var(--ink); }

/* ---- Grelha de serviços ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .svc-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.service-card .svc-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 22px; }
.service-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.service-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 9px; }
.service-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.service-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.service-card .svc-link { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.service-card:hover .svc-link svg { transform: translateX(4px); }
.service-card .svc-link svg { width: 16px; height: 16px; transition: transform var(--t); }

/* ---- Processo (passos numerados) ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; background: var(--surface); }
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.process-grid.connected .process-step::after { content: ""; position: absolute; top: 30px; left: 52px; right: -11px; height: 1px; background: var(--border); }
.process-grid.connected .process-step:last-child::after { display: none; }

/* ---- FAQ (estilo de linha — páginas de serviços/sobre) ---- */
.faq-list--page { gap: 0; }
.faq-list--page .faq-item { border: none; border-radius: 0; overflow: visible; border-top: 1px solid var(--border); }
.faq-list--page .faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 24px 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2.2vw, 21px); color: var(--ink); cursor: pointer; transition: color var(--t); }
.faq-q:hover { color: var(--accent); }
.faq-q .faq-ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; flex: none; transition: var(--t); color: var(--ink-soft); }
.faq-q .faq-ico svg { width: 18px; height: 18px; transition: transform var(--t); }
.faq-list--page .faq-item.open .faq-q { color: var(--accent); }
.faq-list--page .faq-item.open .faq-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-list--page .faq-item.open .faq-ico svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 8px 24px; color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

/* ---- Preços ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--t);
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 20px 50px -28px var(--accent); }
.price-card.featured::before {
  content: "Mais popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-card .tier { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.price-card .tier-sub { font-size: 14px; color: var(--muted); margin-top: -10px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount .cur { font-family: var(--font-display); font-size: 18px; color: var(--ink-soft); }
.price-amount .val { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -.02em; }
.price-amount .per { font-size: 14px; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-soft); }
.price-card li svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 2px; }
.price-card li.off { color: var(--muted); }
.price-card li.off svg { color: var(--muted); }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---- Resultados de Projetos (métricas no single-projects) ---- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-block: clamp(28px, 4vw, 44px); }
.results-grid .result-stat { text-align: center; padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.results-grid .result-val { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); color: var(--accent); letter-spacing: -.02em; }
.results-grid .result-lbl { font-size: 13px; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); font-weight: 600; }

/* ---- Sobre — Bio, Estatísticas, Valores ---- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}
.about-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  border: 2px dashed var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.about-text h2 { font-size: clamp(28px, 4vw, 44px); }
.about-text p { color: var(--ink-soft); margin-top: 16px; line-height: 1.75; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.about-stats .stat { text-align: center; padding: 26px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.about-stats .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--accent); }
.about-stats .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; transition: var(--t); }
.value-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.value-card .val-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.value-card .val-ico svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---- Responsivo Fase 2 ---- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid.connected .process-step::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait, .about-portrait-placeholder { max-width: 360px; margin-inline: auto; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .services-grid, .process-grid, .pricing-grid, .values-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
}

/* Página de Autor */
.author-hero {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 24px;
}
.author-avatar-wrap { flex: none; }
.author-avatar, .author-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--border);
}
.author-avatar-placeholder {
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}
.author-info { flex: 1; min-width: 0; }
.author-name { font-size: clamp(26px, 4vw, 44px); margin: 10px 0 12px; }
.author-bio  { font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 560px; margin: 0 0 18px; }
.author-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.author-count { font-size: 14px; color: var(--muted); font-weight: 500; }
.author-website {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-decoration: none;
  transition: var(--t);
}
.author-website:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .author-hero { flex-direction: column; align-items: center; text-align: center; }
  .author-bio { margin-inline: auto; }
  .author-links { justify-content: center; }
}

/* Tags do post */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill); padding: 4px 12px; text-decoration: none; transition: var(--t); }
.post-tag:hover { background: var(--accent); color: var(--accent-ink); }

/* Widget sidebar */
.widget { margin-bottom: 32px; }
.widget-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }

/* ============================================================
   Página de Ferramentas (template-ferramentas.php)
   ============================================================ */

/* Layout principal: sidebar + conteúdo */
.tools-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tools-layout--no-sidebar { grid-template-columns: 1fr; }

/* Sidebar de categorias — sticky */
.tools-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.tools-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tools-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.tools-cat-btn:hover {
  background: var(--surface);
  color: var(--ink);
}
.tools-cat-btn.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
}
.tools-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  flex: none;
}
.tools-cat-btn.active .tools-cat-count {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* Contador e mensagem de vazio */
.tools-count-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.tools-empty-msg {
  color: var(--ink-soft);
  padding: 40px 0;
}

/* Grelha de cards */
.tools-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Responsivo */
@media (max-width: 900px) {
  .tools-layout {
    grid-template-columns: 1fr;
  }
  .tools-sidebar {
    position: static;
  }
  .tools-cat-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tools-cat-btn {
    width: auto;
    flex-direction: row-reverse;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 5px 12px;
    font-size: 13px;
  }
  .tools-cat-btn.active { border-color: var(--accent); }
}
@media (max-width: 620px) {
  .tools-full-grid { grid-template-columns: 1fr; }
}

/* Card horizontal expandido */
.tool-card-full {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color var(--t), box-shadow var(--t);
}
.tool-card-full:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* Logo */
.tcf-logo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcf-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.tcf-logo-placeholder {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

/* Conteúdo */
.tcf-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tcf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tcf-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.3;
}
.tcf-name a {
  color: inherit;
  text-decoration: none;
}
.tcf-name a:hover { color: var(--accent); }
.tcf-domain {
  font-size: 12px;
  color: var(--muted);
}
.tcf-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.tcf-cta {
  align-self: flex-start;
  font-size: 13px;
  padding: 7px 14px;
  margin-top: 4px;
}

/* Badge */
.tcf-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

/* Fallback para browsers sem color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .tcf-badge { background: rgba(46, 91, 255, .1); border-color: rgba(46, 91, 255, .25); }
  .tools-cat-btn.active .tools-cat-count { background: rgba(46, 91, 255, .12); }
}
.mini-case--wide h5 { font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ============================================================
   Tokens adicionais para componentes de UI
   ============================================================ */
:root {
  --warning:      #f59e0b;
  --warning-dark: #d97706;
  --danger:       #e2453d;
  --danger-dark:  #c0392b;
}

/* ============================================================
   UI Kit — Layout da página de showcase
   ============================================================ */
.uikit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
}
.uikit-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.uikit-comp {
  padding-bottom: clamp(40px, 5vw, 60px);
  margin-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--border);
}
.uikit-comp:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.uikit-comp-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.uikit-comp-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.uikit-row  { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.uikit-stack { display: flex; flex-direction: column; gap: 12px; }
.uikit-variant { margin-top: 24px; }
.uikit-variant-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  margin: 0 0 10px;
  display: block;
}
.uikit-heading-demo h1 { font-size: clamp(32px, 5.5vw, 60px); }
.uikit-heading-demo h2 { font-size: clamp(26px, 3.8vw, 42px); }
.uikit-heading-demo h3 { font-size: clamp(22px, 2.8vw, 32px); }
.uikit-heading-demo h4 { font-size: clamp(18px, 2vw, 24px); }
.uikit-heading-demo h5 { font-size: clamp(15px, 1.6vw, 19px); }
.uikit-heading-demo > * + * { margin-top: 10px; }
@media (max-width: 820px) {
  .uikit-layout { grid-template-columns: 1fr; }
  .uikit-sidebar { position: static; order: -1; max-height: none; }
}

/* ============================================================
   Post Image (figure com legenda)
   ============================================================ */
.post-image {
  display: block;
  margin: 0;
}
.post-image img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
}
.post-image figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}
.post-image--wide { margin-inline: -2em; }
/* Dentro de .prose, as imagens já têm estilos; override de radius */
.prose .post-image img { border-radius: var(--r); }

/* ============================================================
   External Link (link externo com ícone inline)
   ============================================================ */
.ext-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color var(--t);
}
.ext-link:hover { color: var(--accent-hover); }
.ext-link svg { width: 13px; height: 13px; flex: none; }

/* ============================================================
   Download Link
   ============================================================ */
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong);
  color: var(--ink-soft);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
}
.dl-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.dl-link svg { width: 17px; height: 17px; flex: none; }
.dl-link .dl-meta { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 2px; }

/* Variante como botão primário */
.btn--download { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--download:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ============================================================
   Blockquote standalone (fora de .prose)
   ============================================================ */
.ic-blockquote {
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.ic-blockquote p { margin: 0; }
.ic-blockquote cite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  font-style: normal;
  font-weight: 400;
}
.ic-blockquote cite::before { content: "—"; }

/* ============================================================
   Note Block
   ============================================================ */
.note-block {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.note-block .nb-icon {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}
.note-block .nb-body { flex: 1; min-width: 0; }
.note-block .nb-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.note-block p { margin: 0; }

/* ============================================================
   Alert — bloco de aviso com variantes
   ============================================================ */
.alert {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.alert .al-icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
.alert .al-body { flex: 1; min-width: 0; }
.alert .al-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}
.alert p { margin: 0; }

/* Info */
.alert--info {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.alert--info .al-icon { color: var(--accent); }
.alert--info .al-title { color: var(--accent); }

/* Warning */
.alert--warning {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--border));
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
}
.alert--warning .al-icon { color: var(--warning-dark); }
.alert--warning .al-title { color: var(--warning-dark); }

/* Success */
.alert--success {
  border-color: color-mix(in srgb, var(--green) 35%, var(--border));
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
}
.alert--success .al-icon { color: var(--green); }
.alert--success .al-title { color: var(--green); }

/* Error */
.alert--error {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.alert--error .al-icon { color: var(--danger); }
.alert--error .al-title { color: var(--danger); }

/* Outline modifier — remove background fill */
.alert--outline { background: transparent; }

/* Fallback para browsers sem color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .alert--info    { border-color: rgba(46,91,255,.35);  background: rgba(46,91,255,.07); }
  .alert--warning { border-color: rgba(245,158,11,.40); background: rgba(245,158,11,.08); }
  .alert--success { border-color: rgba(32,189,107,.35); background: rgba(32,189,107,.07); }
  .alert--error   { border-color: rgba(226,69,61,.40);  background: rgba(226,69,61,.08); }
  .alert--outline { background: transparent; }
}

/* ============================================================
   Table
   ============================================================ */
.ic-table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.ic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.ic-table th,
.ic-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ic-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.ic-table tbody tr:last-child td { border-bottom: none; }
.ic-table tbody tr:hover td { background: var(--surface-2); }
.ic-table td:first-child { font-weight: 600; color: var(--ink); }

/* ============================================================
   Steps (lista de passos numerados)
   ============================================================ */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.step-item { display: flex; gap: 20px; }
.step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: none;
  line-height: 1;
}
.step-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  min-height: 18px;
  margin-block: 6px;
}
.step-item:last-child .step-line { display: none; }
.step-body {
  flex: 1;
  padding-top: 7px;
  padding-bottom: 32px;
}
.step-item:last-child .step-body { padding-bottom: 0; }
.step-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.step-body p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Code Block
   ============================================================ */
.code-block {
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.code-lang {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.code-copy:hover  { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.code-copy.copied { color: var(--green);  border-color: var(--green);  background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.code-copy svg { width: 13px; height: 13px; flex: none; }
.code-block pre {
  margin: 0;
  padding: 20px;
  background: #0f111a;
  color: #cdd6f4;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.code-block code {
  font-family: 'Courier New', Courier, ui-monospace, monospace;
  font-size: inherit;
}
/* Comentários / palavras-chave — coloring básico sem lib externa */
.code-block .c-keyword  { color: #cba6f7; }
.code-block .c-string   { color: #a6e3a1; }
.code-block .c-comment  { color: #6c7086; font-style: italic; }
.code-block .c-fn       { color: #89dceb; }
.code-block .c-num      { color: #fab387; }
.code-block .c-tag      { color: #f38ba8; }
.code-block .c-attr     { color: #89b4fa; }

/* ============================================================
   Spoiler
   ============================================================ */
.spoiler {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.spoiler.open { border-color: var(--border-strong); }
.spoiler__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  text-align: left;
  transition: background var(--t);
}
.spoiler__toggle:hover { background: var(--surface-2); }
.spoiler__toggle .sp-ico {
  width: 18px; height: 18px;
  flex: none;
  color: var(--muted);
  transition: transform var(--t), color var(--t);
}
.spoiler.open .spoiler__toggle .sp-ico { transform: rotate(180deg); color: var(--accent); }
.spoiler__content {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.spoiler.open .spoiler__content { max-height: 1000px; }
.spoiler__body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.spoiler__body p { margin: 0 0 .8em; }
.spoiler__body p:last-child { margin-bottom: 0; }

/* ============================================================
   Accordion
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.accordion__item.open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: var(--surface);
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: background var(--t);
}
.accordion__trigger:hover { background: var(--surface-2); }
.accordion__icon {
  width: 20px; height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform var(--t), color var(--t);
}
.accordion__item.open .accordion__icon { transform: rotate(45deg); color: var(--accent); }
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.accordion__item.open .accordion__panel { max-height: 800px; }
.accordion__body {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.accordion__body > * + * { margin-top: .8em; }

/* ============================================================
   FAQ (accordion + Schema.org microdata)
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: var(--surface);
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: background var(--t);
}
.faq-trigger:hover { background: var(--surface-2); }
.faq-icon {
  width: 20px; height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform var(--t), color var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-panel { max-height: 800px; }
.faq-answer {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-answer > * + * { margin-top: .8em; }

/* ============================================================
   Table of Contents widget
   ============================================================ */
.toc-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
}
.toc-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.toc-title svg { width: 13px; height: 13px; flex: none; }
.toc-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.toc-nav li { display: block; }
.toc-nav a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 5px 0 5px 13px;
  border-left: 2px solid var(--border);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--t), border-color var(--t), padding-left var(--t);
}
.toc-nav a:hover { color: var(--accent); border-color: var(--accent); padding-left: 17px; }
.toc-nav a.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.toc-nav .toc-depth-3 a { padding-left: 26px; font-size: 12.5px; color: var(--muted); }
.toc-nav .toc-depth-3 a:hover { padding-left: 30px; }

/* ============================================================
   Related Posts
   ============================================================ */
.related-posts { }
.related-posts-head {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-posts-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   Lazy YouTube
   ============================================================ */
.lazy-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  display: block;
  border: 1px solid var(--border);
}
.lazy-yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .4s ease, transform .4s ease;
}
.lazy-yt:hover .lazy-yt-thumb { opacity: .85; transform: scale(1.03); }
.lazy-yt-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.28);
  transition: background var(--t);
}
.lazy-yt:hover .lazy-yt-overlay { background: rgba(0,0,0,.18); }
.lazy-yt-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px -8px rgba(46,91,255,.65);
  transition: transform var(--t), box-shadow var(--t);
  pointer-events: none;
}
.lazy-yt:hover .lazy-yt-btn { transform: scale(1.12); box-shadow: 0 16px 40px -8px rgba(46,91,255,.75); }
.lazy-yt-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.lazy-yt-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
}
.lazy-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Placeholder de thumb sem imagem */
.lazy-yt-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

@media (max-width: 560px) {
  .lazy-yt-btn { width: 56px; height: 56px; }
  .lazy-yt-btn svg { width: 22px; height: 22px; margin-left: 3px; }
}

/* ============================================================
   Sprint 14 — Blog rico + Página de Contacto
   ============================================================ */

/* ---- Blog toolbar ---- */
.blog-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.blog-toolbar .filter-tabs { flex: 1; min-width: 0; }
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0 14px;
  min-width: 220px;
  transition: border-color var(--t);
}
.blog-search svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.blog-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 11px 0;
  outline: none;
  min-width: 0;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-search:focus-within { border-color: var(--accent); }

/* ---- Badge de categoria na thumbnail do post ---- */
.post-card .pc-thumb { position: relative; }
.pc-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  line-height: 1.6;
}

/* ---- Estado "sem resultados" do blog ---- */
.blog-empty {
  display: none;
  text-align: center;
  padding: clamp(48px, 6vw, 80px) 20px;
  color: var(--muted);
}
.blog-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; display: block; opacity: .35; }
.blog-empty p { font-size: 15px; }

/* ============================================================
   Sprint 20 — Blog Mosaico Bold (cor por categoria)
   ============================================================ */

/* Filtro em pílulas coloridas */
.mz-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.mz-filter button {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); padding: 10px 18px;
  border-radius: var(--r-pill); cursor: pointer; transition: var(--t);
}
.mz-filter button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc, var(--muted)); transition: var(--t); }
.mz-filter button[data-filter="all"]::before { display: none; }
.mz-filter button:hover { border-color: var(--cc, var(--ink)); transform: translateY(-2px); }
.mz-filter button.active { background: var(--cc, var(--ink)); border-color: transparent; color: #fff; }
.mz-filter button[data-filter="all"].active { color: var(--bg); }
.mz-filter button.active::before { background: rgba(255,255,255,.9); }

/* Grelha em mosaico (colunas) */
.mz-grid { columns: 3; column-gap: 22px; }
.mz-card {
  display: block; break-inside: avoid; margin-bottom: 22px; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
}
.mz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.mz-bar { display: block; height: 5px; background: var(--cc, var(--accent)); }

/* Palco tonalizado (cards "tall") */
.mz-stage { position: relative; aspect-ratio: 5/4; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; isolation: isolate; }
.mz-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mz-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .9; background: radial-gradient(120% 120% at 18% 0%, color-mix(in srgb, var(--cc) 24%, transparent), transparent 58%), radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--cc) 16%, transparent), transparent 55%); }
.mz-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px); background-size: 30px 30px; }
.mz-stage-cat { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 7px 15px; border-radius: var(--r-pill); border: 1px solid var(--border); }
.mz-stage-num { position: absolute; right: 18px; bottom: 6px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 80px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--cc) 50%, var(--border)); }

.mz-body { padding: 20px 22px 22px; }
.mz-cat { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cc, var(--accent)); }
.mz-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.2; margin: 8px 0; letter-spacing: -.01em; color: var(--ink); transition: color var(--t); }
.mz-card:hover h3 { color: var(--cc, var(--accent)); }
.mz-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 12px; }
.mz-meta { font-size: 13px; color: var(--muted); font-family: var(--font-display); font-weight: 500; }

/* Cartão sólido (destaque colorido) */
.mz-solid { background: var(--cc, var(--accent)); border-color: transparent; padding: 26px 24px; }
.mz-solid .mz-bar { display: none; }
.mz-solid .mz-cat { color: rgba(255,255,255,.85); }
.mz-solid h3, .mz-solid:hover h3 { color: #fff; font-size: 24px; }
.mz-solid p { color: rgba(255,255,255,.92); }
.mz-solid .mz-meta { color: rgba(255,255,255,.8); }

@media (max-width: 860px) { .mz-grid { columns: 2; } }
@media (max-width: 560px) { .mz-grid { columns: 1; } .mz-filter { width: 100%; } }

/* ---- Select estilizado (página de contacto) ---- */
select.input {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a95' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* ---- Cartões de contacto ---- */
.contact-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
a.contact-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.cc-ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink-soft);
}
.cc-ico svg { width: 20px; height: 20px; }
.cc-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cc-val { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 1px; }

/* ---- Mapa ---- */
.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: none; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(48px, 7vw, 80px) 24px;
  text-align: center;
  color: var(--muted);
  min-height: 280px;
}
.map-placeholder .map-pin svg { width: 44px; height: 44px; color: var(--accent); opacity: .65; }
.map-placeholder strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.map-placeholder p { font-size: 14px; max-width: 42ch; margin: 0; }

/* ============================================================
   WooCommerce: campos de formulário (checkout/account)
   ============================================================ */

/* Campos WC → igual ao .field do tema */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields { margin: 0; }

/* Headings WC — esconder (títulos estão no .checkout-section) */
.woocommerce-billing-fields > h3,
.woocommerce-billing-fields__field-wrapper > h3,
.woocommerce-shipping-fields > h3 { display: none !important; }

/* Grid 2 colunas — abordagem dupla: ic-billing-grid (form-billing.php override) + __field-wrapper (WC nativo) */
.ic-billing-grid,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.ic-billing-grid p.form-row-wide, .ic-billing-grid p.full,
.woocommerce-billing-fields__field-wrapper p.form-row-wide,
.woocommerce-shipping-fields__field-wrapper p.form-row-wide { grid-column: 1 / -1; }

/* Campos hidden (não no protótipo) */
.ic-hidden-field { display: none !important; }

.woocommerce form .form-row,
.woocommerce-page form .form-row {
  padding: 0; margin-bottom: 16px;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
  display: block; font-size: 14px; color: var(--ink-soft);
  margin-bottom: 6px; font-family: var(--font-display);
}
.woocommerce form .form-row .required { color: var(--accent); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--font-body);
  font-size: 15px; color: var(--ink); transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #e2453d; }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--green); }

/* (regra duplicada removida — grid já definido acima) */

/* ---- WooCommerce: payment section no checkout ---- */
#payment { background: none; padding: 0; border: none; border-radius: 0; }
#payment ul.payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#payment ul.payment_methods li.payment_method {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--r); cursor: pointer;
  transition: var(--t); position: relative;
}
#payment ul.payment_methods li.payment_method:has(input[type="radio"]:checked),
#payment ul.payment_methods li.payment_method.wc_payment_method.checked {
  border-color: var(--accent); background: var(--accent-soft);
}
#payment ul.payment_methods li input[type="radio"] { accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
#payment ul.payment_methods li label { font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: pointer; margin: 0; flex: 1; }
#payment ul.payment_methods li .payment_method_icon { margin-left: auto; max-height: 24px; }
#payment .payment_box { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); padding: 12px 0 0; display: none; }
#payment .payment_method_input:checked ~ .payment_box { display: block; }
#payment .place-order { margin-top: 20px; }
#payment .place-order .button,
#payment #place_order {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: 15px !important; color: var(--accent-ink) !important;
  background: var(--accent) !important; border: none !important;
  padding: 15px 28px !important; border-radius: var(--r-pill) !important;
  cursor: pointer; transition: var(--t); text-align: center;
}
#payment .place-order .button:hover,
#payment #place_order:hover { background: var(--accent-hover) !important; }

/* Esconder o bloco #order_review que o WC insere (usamos o nosso) */
.woocommerce-checkout-review-order-table { display: none; }

/* ---- WooCommerce: my account ---- */
/* Formulários de edição de conta e endereço */
.woocommerce-EditAccountForm,
.woocommerce-address-fields form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-EditAccountForm .form-row-wide,
.woocommerce-address-fields .form-row-wide { grid-column: 1 / -1; }
.woocommerce-EditAccountForm fieldset { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; margin: 0; }
.woocommerce-EditAccountForm fieldset legend { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 0 8px; }

.woocommerce .woocommerce-Button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 14px !important;
  color: var(--accent-ink) !important; background: var(--accent) !important;
  border: none !important; padding: 12px 24px !important; border-radius: var(--r-pill) !important;
  cursor: pointer; transition: var(--t);
}
.woocommerce .woocommerce-Button:hover,
.woocommerce button.button:hover { background: var(--accent-hover) !important; }

/* Tabela de encomendas WC nativa */
.woocommerce-orders-table { width: 100%; }
.woocommerce-orders-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce-orders-table td,
.woocommerce-orders-table th { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; }

/* Lost password form */
.woocommerce-ResetPassword .form-row { margin-bottom: 16px; }

/* ============================================================
   WooCommerce: espaçamento de topo + WC Blocks
   ============================================================ */

/* Padding de topo para páginas WC (blocks ou shortcode) */
body.woocommerce-cart    #main,
body.woocommerce-checkout #main,
body.woocommerce-account  #main { padding-top: clamp(32px, 5vw, 64px); }

/* Container dos WC Blocks — usa a nossa variável */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: var(--container, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

/* Inputs dos WC Blocks → estilo do tema */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-components-phone-input input {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
  outline: none !important;
}

/* ---- Select2 (WooCommerce país/estado) → estilo do tema ---- */
.select2-container--default .select2-selection--single {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
  outline: none !important;
}
/* Dropdown de opções */
.select2-dropdown {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-lg) !important;
}
.select2-container--default .select2-results__option {
  font-family: var(--font-body) !important;
  font-size: 14.5px !important;
  color: var(--ink-soft) !important;
  padding: 10px 14px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--accent-soft) !important;
  color: var(--ink) !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 12px !important;
  font-family: var(--font-body) !important;
  font-size: 14.5px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}

/* Labels dos WC Blocks */
.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-checkout-step__title,
.wc-block-components-form label {
  font-family: var(--font-display) !important;
  color: var(--ink-soft) !important;
  font-size: 13.5px !important;
}

/* Títulos de secção do checkout block */
.wc-block-components-checkout-step__title {
  font-size: 16px !important; font-weight: 700 !important;
}

/* Botões primários WC Blocks → accent do tema */
.wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wp-element-button,
.wc-block-components-button:not(.is-link):not(.outlined):not(.is-secondary) {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 28px !important;
  transition: background var(--t) !important;
  height: auto !important;
  min-height: 0 !important;
}
.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
.wp-element-button:hover { background: var(--accent-hover) !important; }

/* Order summary block — estilo do tema */
.wc-block-order-summary,
.wc-block-components-order-summary {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
}

/* Coupon block */
.wc-block-components-coupon button {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}

/* Radio/checkbox WC Blocks */
.wc-block-components-radio-control__input { accent-color: var(--accent); }
.wc-block-components-checkbox input[type="checkbox"] { accent-color: var(--accent); }

/* "Não há métodos de pagamento" — aviso */
.wc-block-components-notice.is-error {
  background: color-mix(in srgb, #e2453d 10%, transparent) !important;
  border: 1px solid #e2453d !important;
  border-radius: var(--r) !important;
  color: var(--ink) !important;
}

/* ---- Responsivo Sprint 14 ---- */
@media (max-width: 720px) {
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { min-width: 0; }
}

/* ============================================================
   FASE 3 — Loja (WooCommerce com estilo do tema)
   ============================================================ */

/* Ícone de carrinho no header */
.cart-btn { position: relative; }
.cart-btn .cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; line-height: 19px;
  text-align: center; border: 2px solid var(--bg); transition: transform var(--t);
}
.cart-btn .cart-count.bump { animation: cart-bump .4s ease; }
@keyframes cart-bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.4); } }

/* Toolbar da loja */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 32px; }
.shop-toolbar .result-count { font-size: 14.5px; color: var(--muted); font-family: var(--font-display); white-space: nowrap; }
.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort label { font-size: 13px; color: var(--muted); font-family: var(--font-display); }
.shop-sort select {
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px 38px 10px 16px; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a95' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; transition: border-color var(--t), box-shadow var(--t);
}
.shop-sort select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Grelha de produtos */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--t);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.product-media {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center; padding: 26px;
  background: var(--surface-2); overflow: hidden;
}
.product-media::before {
  content: ""; position: absolute; inset: 0; opacity: .8;
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
}
.product-media img { position: relative; z-index: 1; max-height: 100%; width: auto; border-radius: var(--r-sm); transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05) rotate(-1deg); }

.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-display);
  font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
}
.product-badge.sale { background: #e2453d; }
.product-badge.new { background: var(--green); }

.wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-soft); transition: var(--t);
}
.wishlist:hover { color: #e2453d; border-color: #e2453d; }
.wishlist.active { color: #e2453d; }
.wishlist.active svg { fill: #e2453d; }
.wishlist svg { width: 18px; height: 18px; }

.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.product-body h3 { font-size: 19px; line-height: 1.25; }
.product-rating { display: flex; align-items: center; gap: 6px; }
.product-rating .stars { display: inline-flex; gap: 2px; color: #f5a623; }
.product-rating .stars svg { width: 15px; height: 15px; }
.product-rating .count { font-size: 12.5px; color: var(--muted); }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price .now { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.product-price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.add-cart {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--accent-ink); background: var(--accent); border: none;
  transition: transform var(--t), background var(--t); cursor: pointer;
}
.add-cart:hover { background: var(--accent-hover); transform: translateY(-2px); }
.add-cart.added { background: var(--green); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, calc(100% + 40px)); z-index: 120;
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; transition: transform .4s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--green); }

/* Notices impressas pelo shortcode antes do nosso container — constringir ao mesmo max-width */
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(16px, 3vw, 28px) var(--gutter) 0;
  box-sizing: border-box;
}

/* Carrinho vazio */
.cart-empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cart-empty-state svg { width: 80px; height: 80px; margin-bottom: 8px; }
.cart-empty-state h2 { font-size: clamp(22px, 3vw, 32px); }
.cart-empty-state p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.cart-empty-state .btn { margin-top: 8px; }

/* WooCommerce notices com estilo do tema */
.woocommerce-message,
.woocommerce-error li,
.woocommerce-info {
  list-style: none; padding: 14px 20px; border-radius: var(--r); margin-bottom: 20px;
  font-family: var(--font-display); font-size: 15px; border: 1px solid;
}
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper { margin-bottom: 0; }
.woocommerce-message { background: color-mix(in srgb, var(--green) 10%, transparent); border-color: var(--green); color: var(--ink); }
.woocommerce-error  { background: color-mix(in srgb, #e2453d 10%, transparent); border-color: #e2453d; color: var(--ink); list-style: none; padding: 0; }
.woocommerce-info   { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.woocommerce-message a.button,
.woocommerce-message a { color: var(--accent); font-weight: 600; }

@media (max-width: 920px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .shop-sort { justify-content: space-between; }
}

/* ============================================================
   FASE 3b — Detalhe do produto, carrinho, checkout, conta, mini-cart
   ============================================================ */

/* ---- Detalhe do produto ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.pd-gallery { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.pd-main {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; padding: clamp(24px, 4vw, 48px);
}
.pd-main::before { content: ""; position: absolute; inset: 0; opacity: .85; background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%); }
.pd-main img, .pd-main .pd-emoji { position: relative; z-index: 1; }
.pd-main img { max-height: 100%; width: auto; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.pd-main .pd-emoji { font-size: clamp(80px, 14vw, 150px); line-height: 1; }
.pd-thumbs { display: flex; gap: 12px; }
.pd-thumb { width: 78px; height: 70px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: var(--t); font-size: 26px; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--accent); }

.pd-info .product-cat { font-size: 12px; }
.pd-info h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 0; letter-spacing: -.02em; }
.pd-rating-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.pd-rating-row .stars { display: inline-flex; gap: 2px; color: #f5a623; }
.pd-rating-row .stars svg { width: 16px; height: 16px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.pd-price .now { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--ink); }
.pd-price .was { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pd-price .save { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; background: #e2453d; padding: 4px 10px; border-radius: var(--r-pill); }
.pd-desc { color: var(--ink-soft); font-size: 16.5px; }
.pd-meta-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--border); }
.pd-meta-list div { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.pd-meta-list svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.pd-buy { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); overflow: hidden; }
.qty button { width: 44px; height: 50px; border: none; background: none; color: var(--ink); font-size: 20px; cursor: pointer; transition: background var(--t); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; text-align: center; border: none; background: none; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-buy .btn--primary { flex: 1; min-width: 200px; height: 50px; }
.pd-share { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---- WooCommerce: form.cart (botão add-to-cart + quantity nativa) ---- */
.woocommerce .pd-buy form.cart,
form.cart { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin: 0; }

/* quantity wrapper nativo WC → igual ao nosso .qty */
.woocommerce div.quantity,
.woocommerce .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); overflow: hidden;
}
.woocommerce .quantity input.qty,
.woocommerce input.qty {
  width: 56px; text-align: center; border: none; background: none;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink);
  height: 50px; padding: 0; -moz-appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* botão principal de compra */
.woocommerce .single_add_to_cart_button,
.single_add_to_cart_button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 15px !important;
  color: var(--accent-ink) !important; background: var(--accent) !important;
  border: none !important; padding: 14px 26px !important; border-radius: var(--r-pill) !important;
  cursor: pointer; transition: var(--t); flex: 1; min-width: 200px; height: 50px;
  text-decoration: none !important;
}
.woocommerce .single_add_to_cart_button:hover { background: var(--accent-hover) !important; }
.woocommerce .single_add_to_cart_button.loading::after { margin-left: 8px; }

/* Esconder label "Quantidade" do WC (temos o .qty visual) */
.woocommerce .quantity label { display: none; }

/* ---- Avaliações / comentários WC ---- */
#reviews { padding-top: 0; }
#reviews h2, #reviews #reply-title { font-size: 20px; margin-bottom: 20px; }
#reviews .comment-form-rating label { font-size: 14px; color: var(--ink-soft); }

/* ---- Input de estrelas no formulário de avaliação ---- */
#reviews .comment-form-rating select { display: none; }
#reviews .comment-form-rating .stars {
  display: inline-flex; gap: 4px; margin: 8px 0 14px;
}
#reviews .comment-form-rating .stars a {
  display: inline-block; width: 28px; height: 28px;
  font-size: 0; text-decoration: none; position: relative;
}
#reviews .comment-form-rating .stars a::before {
  content: "★"; font-size: 24px; line-height: 1;
  color: #ddd; position: absolute; top: 2px; left: 0;
  transition: color .12s;
}
/* hover: todas as estrelas até à hovered ficam douradas */
#reviews .comment-form-rating .stars:hover a::before { color: #f5a623; }
/* estrelas após a hovered voltam a cinza */
#reviews .comment-form-rating .stars a:hover ~ a::before { color: #ddd; }
/* estado selected (depois de clicar) */
#reviews .comment-form-rating .stars.selected a::before { color: #f5a623; }
#reviews .comment-form-rating .stars.selected a.active ~ a::before { color: #ddd; }

/* ---- Display de estrelas (avaliação existente) ---- */
.woocommerce .star-rating,
#reviews .star-rating {
  display: inline-block; position: relative;
  width: 5.3em; height: 1.1em; font-size: 14px; line-height: 1; overflow: hidden;
}
.woocommerce .star-rating::before,
#reviews .star-rating::before {
  content: "★★★★★"; letter-spacing: .2em;
  color: #ddd; position: absolute; top: 0; left: 0;
}
.woocommerce .star-rating span,
#reviews .star-rating span {
  position: absolute; top: 0; left: 0; overflow: hidden;
  font-size: 0; /* esconde o texto "X de 5" sem criar espaço extra */
}
.woocommerce .star-rating span::before,
#reviews .star-rating span::before {
  content: "★★★★★"; letter-spacing: .2em;
  font-size: 14px; /* reset explícito — herda font-size:0 do pai */
  color: #f5a623; position: absolute; top: 0; left: 0;
}
.woocommerce #reviews .review,
.woocommerce-Reviews .review { display: flex; gap: 16px; padding: 22px 0; border-bottom: none; }
.woocommerce #reviews .review .rv-av,
.comment-author { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.woocommerce #reviews .commentlist { list-style: none; padding: 0; margin: 0; }
.woocommerce #reviews .commentlist .comment_container { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.woocommerce #reviews .commentlist .comment_container img.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.woocommerce #reviews .commentlist .woocommerce-review__author { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.woocommerce #reviews .commentlist .woocommerce-review__published-date { font-size: 12.5px; color: var(--muted); }
.woocommerce #reviews .star-rating { color: #f5a623; }
.woocommerce #reviews .description p { color: var(--ink-soft); font-size: 15px; margin: 8px 0 0; }
.woocommerce #review_form_wrapper { margin-top: 0; padding-top: 0; border-top: none; }
.woocommerce #review_form .comment-form-email,
.woocommerce #review_form .comment-form-author,
.woocommerce #review_form .comment-form-comment { margin-bottom: 16px; }
.woocommerce #review_form label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; font-family: var(--font-display); }
.woocommerce #review_form input,
.woocommerce #review_form textarea { width: 100%; }
.woocommerce #review_form .form-submit input[type="submit"] {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700;
  color: var(--accent-ink) !important; background: var(--accent) !important;
  border: none; padding: 13px 28px; border-radius: var(--r-pill); cursor: pointer;
  font-size: 15px; transition: var(--t);
}

/* Abas */
.tabs { margin-top: clamp(40px, 6vw, 72px); }
.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-nav button { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--muted); background: none; border: none; padding: 14px 20px; cursor: pointer; position: relative; transition: color var(--t); }
.tab-nav button.active { color: var(--ink); }
.tab-nav button.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.tab-panel { display: none; padding-top: 28px; }
.tab-panel.active { display: block; }

/* Avaliações */
.review { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.review .rv-av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.review .rv-stars { display: inline-flex; gap: 2px; color: #f5a623; margin: 4px 0 8px; }
.review .rv-stars svg { width: 14px; height: 14px; }
.review h4 { font-size: 15px; }
.review .rv-date { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.review p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- Layout 2 colunas (carrinho / checkout) ---- */
.shop-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 48px); align-items: start; }

/* ---- Header da tabela do carrinho ---- */
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---- Linha de item do carrinho — 3 colunas ---- */
.cart-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.cart-row:first-child { border-top: 1px solid var(--border); }

.cart-thumb {
  width: 108px; height: 90px; border-radius: var(--r-sm);
  background: var(--surface-2); display: grid; place-items: center;
  overflow: hidden; font-size: 40px; border: 1px solid var(--border); flex: none;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info principal — empilhada */
.cart-info h4 { font-size: 16px; margin: 0 0 6px; }

.ci-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ci-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.ci-now { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.ci-save {
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  color: #fff; background: #e2453d; padding: 3px 8px; border-radius: var(--r-pill);
}
.ci-desc { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; }

/* Qty + Remover na mesma linha */
.ci-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ci-actions .qty { transform: scale(.85); transform-origin: left center; }
.cart-remove {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: var(--t);
  text-decoration: none; flex: none;
}
.cart-remove:hover { color: #e2453d; border-color: #e2453d; }
.cart-remove svg { width: 16px; height: 16px; }

.cart-line-total {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  min-width: 70px; text-align: right; padding-top: 4px;
}

.cart-foot { margin-top: 20px; }

/* ---- Sidebar do carrinho ---- */
.cart-summary-label {
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

/* Cupão em acordeão */
.cart-coupon-wrap { border-bottom: 1px solid var(--border); margin-bottom: 0; }
.cart-coupon-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 14px 0;
  font-family: var(--font-display); font-size: 15px; color: var(--ink-soft);
  transition: color var(--t);
}
.cart-coupon-toggle:hover { color: var(--ink); }
.cart-coupon-toggle svg { transition: transform var(--t); }
.cart-coupon-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.coupon.coupon--collapsed { display: none; padding-bottom: 14px; }
.coupon.coupon--collapsed.open,
.coupon { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: nowrap; }
/* Reforço: garante row + alinhamento quando o accordion está aberto */
.cart-coupon-wrap .coupon.open {
  display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: nowrap;
}
.coupon .input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; }
/* Anula o margin-top genérico do .order-summary .btn para o botão dentro do cupão */
.order-summary .coupon .btn,
.cart-coupon-wrap .btn { margin-top: 0 !important; }
.btn--sm { padding: 0 18px !important; font-size: 13px !important; height: 44px; line-height: 1; white-space: nowrap; }

/* Total estimado — destaque maior */
.sum-row--total-est {
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink);
}

.coupon { display: flex; gap: 10px; }

/* Resumo do pedido */
.order-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px; }
.order-summary h3 { font-size: 19px; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.sum-row .muted { color: var(--muted); font-size: 13px; }
.order-summary .btn { margin-top: 18px; }
.trust-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.trust-row svg { width: 15px; height: 15px; color: var(--green); }

/* Mini resumo de produtos no checkout */
.checkout-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.checkout-item { display: flex; gap: 12px; align-items: center; }
/* overflow:visible para o badge .ck-qty poder sobressair; imagem clipa com border-radius próprio */
.checkout-item .ck-thumb { width: 48px; height: 44px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; flex: none; border: 1px solid var(--border); position: relative; overflow: visible; }
.checkout-item .ck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.checkout-item .ck-qty { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; font-family: var(--font-display); display: grid; place-items: center; }
.checkout-item .ck-name { font-size: 14px; font-weight: 600; flex: 1; }
.checkout-item .ck-price { font-family: var(--font-display); font-weight: 600; font-size: 14px; }

/* Checkout items com detalhe completo (sidebar) */
.ck-items-detail { display: flex; flex-direction: column; gap: 16px; margin-bottom: 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ck-item-detail { display: flex; gap: 14px; align-items: flex-start; }
.ck-thumb-wrap { position: relative; flex: none; width: 56px; height: 52px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.ck-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ck-thumb-wrap .ck-qty { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-display); display: grid; place-items: center; line-height: 1; }
.ck-item-info { flex: 1; min-width: 0; }
.ck-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ck-item-top .ck-name { font-size: 14px; font-weight: 600; font-family: var(--font-display); flex: 1; }
.ck-item-top .ck-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; flex: none; }
.ck-sale-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ck-desc { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }

/* Botão "Place order" do WC fica escondido — o botão visível está no sidebar */
.ic-payment-section #place_order { display: none; }

/* Trust text do checkout — bloco centrado, sem o flex da .trust-row */
.ck-trust { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; line-height: 1.5; }
.ck-trust a { color: var(--accent); text-decoration: none; }
.ck-trust a:hover { text-decoration: underline; }

/* Checkout: formulário */
.checkout-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.checkout-section h3 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; display: grid; place-items: center; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Métodos de pagamento */
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; transition: var(--t); }
.pay-method:hover { border-color: var(--border-strong); }
.pay-method.active { border-color: var(--accent); background: var(--accent-soft); }
.pay-method .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; transition: var(--t); }
.pay-method.active .radio { border-color: var(--accent); }
.pay-method.active .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pay-method .pm-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.pay-method .pm-sub { font-size: 13px; color: var(--muted); }
.pay-method .pm-ico { margin-left: auto; color: var(--muted); }
.pay-method .pm-ico svg { width: 24px; height: 24px; }

/* ---- Minha Conta ---- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: var(--t); }
.account-nav a svg { width: 19px; height: 19px; }
.account-nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-nav a.active { background: var(--ink); color: var(--bg); }
.account-greet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.account-greet .av { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; flex: none; }
.account-greet h2 { font-size: 20px; }
.account-greet p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.account-stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.account-stats .num { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--accent); }
.account-stats .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Tabela de encomendas */
.orders-table { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; border-collapse: collapse; }
.orders-table th { text-align: left; font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.orders-table td { padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table .o-id { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; font-family: var(--font-display); }
.status-badge.done { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.status-badge.proc { color: #d98a1f; background: color-mix(in srgb, #d98a1f 14%, transparent); }
.orders-table .o-link { color: var(--accent); font-weight: 600; font-family: var(--font-display); }

/* ---- Thank you (confirmação de pedido) ---- */
.thankyou-header { text-align: center; padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.thankyou-icon { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--green) 12%, transparent); display: grid; place-items: center; margin: 0 auto 22px; }
.thankyou-icon svg { width: 36px; height: 36px; color: var(--green); }
.thankyou-icon--error { background: color-mix(in srgb, #e2453d 12%, transparent); }
.thankyou-icon--error svg { color: #e2453d; }
.thankyou-header h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; }
.thankyou-header p { color: var(--ink-soft); font-size: 17px; }
.thankyou-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.order-overview-grid { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.order-overview-grid li { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 5px; }
.order-overview-grid .oog-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-display); }
.order-overview-grid strong { font-family: var(--font-display); font-size: 16px; color: var(--ink); }

/* ---- My Account: login/registo ---- */
.account-login-wrap { display: grid; grid-template-columns: 1fr; gap: 32px; }
.account-login-wrap--two-col { grid-template-columns: 1fr 1fr; }
.account-login-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.account-login-box h2 { font-size: 22px; margin-bottom: 22px; }
.account-login-box .field { margin-bottom: 16px; }
.account-login-box .field label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; font-family: var(--font-display); }
.account-login-box .field .input { width: 100%; }
.account-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.account-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.account-lostpw { font-size: 14px; margin: 14px 0 0; }
.account-lostpw a { color: var(--accent); }
.account-hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* ---- My Account: tabela de encomendas ---- */
.account-orders-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.account-orders-table th { text-align: left; font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.account-orders-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }
.account-orders-table tr:last-child td { border-bottom: none; }
.account-orders-table .orders-col-order-number a { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.order-status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; font-family: var(--font-display); }
.order-status-badge--completed { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.order-status-badge--processing { color: #d98a1f; background: color-mix(in srgb, #d98a1f 14%, transparent); }
.order-status-badge--on-hold   { color: var(--muted); background: var(--surface-2); }
.order-status-badge--cancelled { color: #e2453d; background: color-mix(in srgb, #e2453d 10%, transparent); }
.order-status-badge--refunded  { color: var(--muted); background: var(--surface-2); }
.order-status-badge--pending   { color: #d98a1f; background: color-mix(in srgb, #d98a1f 14%, transparent); }
.account-orders-nav { display: flex; gap: 10px; margin-top: 20px; }
.account-empty-state { text-align: center; padding: clamp(40px, 7vw, 80px) 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.account-empty-state svg { width: 48px; height: 48px; color: var(--muted); }
.account-empty-state p { color: var(--ink-soft); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---- My Account: editar conta ---- */
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; margin: 22px 0; }
.account-fieldset legend { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 0 8px; color: var(--ink); }
.account-field-hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; font-style: normal; }
.account-section-title { font-size: 18px; margin: 22px 0 14px; }

/* ---- My Account: ver encomenda ---- */
.order-status-summary { font-size: 16px; color: var(--ink-soft); margin-bottom: 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.order-status-summary mark { background: none; color: var(--ink); font-weight: 600; }
.order-updates-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.order-update { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; }
.order-update-date { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.order-update-text p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---- Loja: sem produtos ---- */
.shop-empty-state { text-align: center; padding: clamp(40px, 8vw, 80px) 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shop-empty-state svg { width: 48px; height: 48px; color: var(--muted); }
.shop-empty-state p { color: var(--ink-soft); font-size: 16px; }

/* ---- Mini-cart (painel lateral) ---- */
/* Minicart — dropdown alinhado à direita do header (mesma lógica dos outros painéis) */
.minicart {
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  left:  auto;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--header-h) - 20px);
  display: flex;
  flex-direction: column;
}
.minicart .panel-body {
  gap: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
}
/* Scrim do minicart: mais suave que o scrim principal */
#mc-scrim {
  background: transparent;
  pointer-events: none;
}
#mc-scrim.open { pointer-events: all; }
.mc-items { display: flex; flex-direction: column; }
.mc-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mc-thumb { width: 60px; height: 54px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; font-size: 24px; border: 1px solid var(--border); overflow: hidden; }
.mc-thumb img { max-height: 100%; width: auto; }
.mc-info h5 { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.mc-info .mc-qp { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mc-line { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mc-foot { padding-top: 20px; }
.mc-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.mc-subtotal .lbl { color: var(--ink-soft); }
.mc-subtotal .val { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.mc-actions { display: flex; flex-direction: column; gap: 10px; }
.minicart-empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .account-login-wrap--two-col { grid-template-columns: 1fr; }
  .account-orders-table { display: block; overflow-x: auto; }
  .account-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .cart-thumb { width: 72px; height: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr; }
  .orders-table { display: block; overflow-x: auto; white-space: nowrap; }
}
