/**
 * Header V6 — Cursos Rateio — Consolidated Desktop+Mobile
 * v2 (corrigido): :root global, display control fora dos media queries
 */

/* === GLOBAIS (:root + display control) === */
:root {
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --success: #059669;
  --success-50: #D1FAE5;
  --danger: #DC2626;
  --amber: #F59E0B;
  --amber-50: #FEF3C7;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 2px 8px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.06);
  --shadow-focus: 0 0 0 3px rgba(29,78,216,.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --trans: .22s cubic-bezier(.4,0,.2,1);
  --trans-mega: .24s cubic-bezier(.16,1,.3,1);
}

/* Desktop visível só em tela grande, mobile visível só em tela pequena */
.dh { display: none; }
.mh { display: none; }

@media (min-width: 1024px) {
  .dh { display: block; }
  .mh { display: none !important; }
}

@media (max-width: 1023.98px) {
  .dh { display: none !important; }
  .mh { display: block; }
}

/* === DESKTOP CSS (só aplica em >= 1024px) === */
@media (min-width: 1024px) {

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 24px; }
.page-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.page-header p { color: var(--gray-500); font-size: 14px; max-width: 640px; margin: 0 auto; }
.page-header .version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.improvements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.improvements span {
  background: var(--primary-50);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.state-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.state-toggle .lbl { color: var(--gray-500); font-size: 11.5px; padding: 6px 2px; font-weight: 600; }
.state-toggle button {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 6px 13px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.state-toggle button.active { background: var(--navy); color: white; border-color: var(--navy); }
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.preview-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.preview-label {
  background: var(--navy);
  color: white;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.25); margin-right: 6px; display: inline-block; vertical-align: middle; }
.preview-label .size { opacity: .6; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.preview-card.desktop { display: block; }
.preview-card.mobile { display: none; max-width: 400px; margin: 0 auto; }
body.auth-guest .auth-logged { display: none !important; }
body.auth-logged .auth-guest { display: none !important; }


.preview-card.desktop { display: block !important; }
.preview-card.mobile { display: none !important; }

/* ===== DESKTOP HEADER ===== */
.dh { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; background: white; }
.dh-topbar { background: var(--navy); color: #CBD5E1; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.05); }
.dh-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.dh-trust { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.dh-trust-item { display: inline-flex; align-items: center; gap: 7px; color: #E2E8F0; font-weight: 500; white-space: nowrap; }
.dh-trust-item strong { color: white; font-weight: 700; }
.dh-trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.dh-trust-item.stat svg { color: var(--primary-light); }
.dh-trust-item.sales svg { color: #34D399; }
.dh-trust-item.delivery svg { color: #FBBF24; }
.dh-trust-sep { width: 1px; height: 12px; background: rgba(255,255,255,.1); }
.dh-topbar-right { display: flex; align-items: center; gap: 14px; }
.dh-coupon { display: inline-flex; align-items: center; gap: 6px; color: #CBD5E1; font-size: 12px; text-decoration: none; cursor: pointer; transition: color .2s; }
.dh-coupon:hover { color: white; }
.dh-coupon svg { width: 13px; height: 13px; color: var(--amber); }
.dh-coupon code { background: rgba(245,158,11,.12); color: #FCD34D; padding: 2px 7px; border-radius: 4px; font-family: 'SF Mono', Monaco, monospace; font-size: 10.5px; font-weight: 600; border: 1px solid rgba(245,158,11,.2); }
.dh-wa { display: inline-flex; align-items: center; gap: 6px; color: #86EFAC; font-size: 12px; text-decoration: none; font-weight: 600; transition: color .2s; }
.dh-wa:hover { color: #BBF7D0; }
.dh-wa svg { width: 13px; height: 13px; }

.dh-main { background: white; border-bottom: 1px solid var(--gray-200); padding: 18px 0; position: relative; z-index: 10; }
.dh-main-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.dh-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.crv-logo-mark { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(124,58,237,0.28)); transition: transform .3s; }
.dh-logo:hover .crv-logo-mark { transform: rotate(30deg) scale(1.05); }

.dh-logo-mark-old {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 18px; letter-spacing: -.02em;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(29,78,216,.28);
}
.dh-logo-mark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 50%); }
.dh-logo-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.dh-logo-text .brand { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.dh-logo-text .tag { font-size: 10.5px; font-weight: 600; color: var(--gray-500); }
.dh-logo-text .tag b { color: var(--primary); font-weight: 700; }

.dh-search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.dh-search-main {
  display: flex; align-items: center;
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill); padding: 4px;
  transition: all var(--trans); box-shadow: var(--shadow-sm);
}
.dh-search-main:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29,78,216,.14), 0 10px 30px rgba(29,78,216,.10);
  background: white;
}
.dh-search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; min-width: 0; }
.dh-search-input-wrap svg { position: absolute; left: 18px; color: var(--gray-400); width: 16px; height: 16px; pointer-events: none; }
.dh-search-input-wrap input {
  width: 100%; border: none; outline: none; background: transparent;
  padding: 10px 16px 10px 44px;
  font-family: inherit; font-size: 16px; color: var(--navy); font-weight: 500;
}
.dh-search-input-wrap input::placeholder { color: var(--gray-400); font-weight: 400; }
.dh-search-kbd {
  display: inline-flex; align-items: center; padding: 3px 7px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 5px; font-family: 'SF Mono', Monaco, monospace;
  font-size: 10.5px; color: var(--gray-500); font-weight: 600; margin-right: 10px;
}
.dh-refine-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: transparent; border: none;
  color: var(--gray-600); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius-pill); transition: all .2s; white-space: nowrap;
}
.dh-refine-btn:hover { background: var(--gray-100); color: var(--primary); }
.dh-refine-btn svg { width: 14px; height: 14px; transition: transform .25s; }
.dh-refine-btn.open .chev { transform: rotate(180deg); }
.dh-refine-btn .count-badge {
  background: var(--primary); color: white; border-radius: var(--radius-pill);
  padding: 1px 6px; font-size: 10px; font-weight: 700;
  min-width: 16px; text-align: center; display: none;
}
.dh-refine-btn .count-badge.show { display: inline-block; }
.dh-search-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; border: none;
  padding: 10px 22px; font-family: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 6px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 14px rgba(29,78,216,.32), 0 2px 6px rgba(29,78,216,.18);
  letter-spacing: .01em;
  position: relative; overflow: hidden;
}
.dh-search-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.dh-search-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy) 100%);
  box-shadow: 0 8px 22px rgba(29,78,216,.42), 0 4px 8px rgba(29,78,216,.22);
  transform: translateY(-1px);
}
.dh-search-btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(29,78,216,.3); }
.dh-search-btn svg { width: 14px; height: 14px; }

.dh-refine-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--trans-mega);
}
.dh-refine-panel.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dh-refine-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.dh-refine-field label {
  display: block; font-size: 10.5px; font-weight: 700;
  color: var(--gray-500); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.dh-refine-field select {
  width: 100%; padding: 10px 36px 10px 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  background: white; font-family: inherit; font-size: 13px;
  color: var(--navy); font-weight: 500; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.dh-refine-field select:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); }
.dh-refine-hot {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dh-refine-hot-label {
  font-size: 11px; font-weight: 700;
  color: var(--gray-500); letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.dh-refine-hot-label svg { width: 13px; height: 13px; color: var(--amber); }
.dh-hot-item {
  display: inline-flex; padding: 5px 11px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
  color: var(--gray-700); text-decoration: none; transition: all .15s;
}
.dh-hot-item:hover { background: var(--primary); color: white; border-color: var(--primary); }

.dh-actions { display: flex; align-items: center; gap: 6px; }
.dh-auth-guest { display: flex; align-items: center; gap: 2px; }
.dh-auth-guest a {
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  color: var(--gray-700); text-decoration: none;
  border-radius: var(--radius-md); transition: all .15s;
}
.dh-auth-guest a:hover { background: var(--gray-100); color: var(--primary); }
.dh-auth-guest .primary { color: var(--primary); }
.dh-account {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px; border-radius: var(--radius-md);
  text-decoration: none; color: var(--gray-700);
  transition: all .15s; cursor: pointer; border: 1px solid transparent;
}
.dh-account:hover { background: var(--gray-50); border-color: var(--gray-200); }
.dh-account-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px;
}
.dh-account-text { display: flex; flex-direction: column; line-height: 1.2; }
.dh-account-text .hi { font-size: 10.5px; color: var(--gray-500); font-weight: 500; }
.dh-account-text .name { font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.dh-account-text .name svg { width: 10px; height: 10px; opacity: .5; }
.dh-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); color: var(--navy);
  text-decoration: none; transition: all .15s; margin-left: 4px;
}
.dh-cart:hover { background: var(--primary); border-color: var(--primary); color: white; }
.dh-cart svg { width: 18px; height: 18px; }
.dh-cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: white;
  min-width: 18px; height: 18px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800;
  border: 2px solid white; padding: 0 4px;
  animation: pulseBadge 2s infinite;
}
.dh-cart-tip {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy); color: white;
  padding: 8px 12px; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .2s; pointer-events: none; box-shadow: var(--shadow-md);
}
.dh-cart-tip::before {
  content: ''; position: absolute; top: -4px; right: 14px;
  width: 8px; height: 8px; background: var(--navy); transform: rotate(45deg);
}
.dh-cart:hover .dh-cart-tip { opacity: 1; visibility: visible; transform: translateY(0); }

.dh-nav { background: white; border-bottom: 1px solid var(--gray-200); position: relative; z-index: 8; }
.dh-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: 50px; }
.dh-nav-left { display: flex; align-items: stretch; gap: 2px; }
.dh-nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 0 15px; height: 50px;
  color: var(--gray-700); text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  position: relative; transition: color var(--trans);
}
.dh-nav-link:hover { color: var(--primary); }
.dh-nav-link::after {
  content: ''; position: absolute; bottom: 0;
  left: 50%; right: 50%; height: 2.5px;
  background: var(--primary); border-radius: 2px 2px 0 0;
  transition: all var(--trans);
}
.dh-nav-link:hover::after, .dh-nav-link.active::after { left: 14px; right: 14px; }
.dh-nav-link.active { color: var(--primary); }
.dh-nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.dh-nav-item { position: relative; }
.dh-nav-item:hover .dh-nav-link svg { transform: rotate(180deg); }

.dh-megamenu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg); padding: 28px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--trans-mega), transform var(--trans-mega), visibility var(--trans-mega);
}
.dh-nav-item:hover .dh-megamenu,
.dh-nav-item:focus-within .dh-megamenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}

.dh-nav-right { display: flex; align-items: center; gap: 10px; }
.dh-nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--primary); color: white;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .18s; border: none;
}
.dh-nav-cta:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29,78,216,.22); }
.dh-nav-cta svg { width: 14px; height: 14px; }

.dh-nav-cta-indique {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; margin-left: 8px;
  background: #10B981;
  color: white; font-weight: 700; font-size: 13.5px;
  border-radius: var(--radius-pill); text-decoration: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(5,150,105,.18);
  letter-spacing: .01em;
  position: relative; overflow: hidden;
}
.dh-nav-cta-indique::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.dh-nav-cta-indique:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(5,150,105,.38);
  transform: translateY(-1px);
}
.dh-nav-cta-indique:active { transform: translateY(0); }
.dh-nav-cta-indique svg { width: 14px; height: 14px; }


.fake-page { padding: 48px 24px; background: linear-gradient(180deg, #F8FAFC 0%, white 100%); text-align: center; min-height: 280px; }
.fake-page h2 { font-size: 22px; color: var(--navy); margin-bottom: 10px; font-weight: 800; }
.fake-page p { color: var(--gray-500); max-width: 540px; margin: 0 auto 12px; font-size: 13.5px; }
.fake-page .demo-badge { display: inline-block; background: var(--primary-50); color: var(--primary); padding: 5px 13px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; }
.fake-page kbd { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 5px; padding: 2px 7px; font-family: 'SF Mono', Monaco, monospace; font-size: 12px; color: var(--navy); font-weight: 600; }



@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}
.mh-icon-btn .badge, .dh-cart-badge { animation: pulseBadge 2s infinite; }

/* ===== V5 MEGA-MENU (3 COLUNAS, FORMATO V2) ===== */
.dh-megamenu-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 36px !important;
}
.dh-mm-section h4 {
  font-size: 11px; font-weight: 700;
  color: var(--gray-400); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.dh-mm-section h4 .mm-count {
  background: var(--primary-50); color: var(--primary);
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 10px; letter-spacing: .02em; font-weight: 700;
}
.dh-mm-careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dh-mm-career-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--gray-700);
  font-size: 13px; font-weight: 500;
  transition: all .15s;
  gap: 10px;
}
.dh-mm-career-link:hover {
  background: var(--primary-50); color: var(--primary);
  transform: translateX(2px);
}
.dh-mm-career-link .career-name-wrap {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  flex: 1;
}
.dh-mm-career-link .career-name-wrap > span:last-child {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.dh-mm-career-link .career-icon-box {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  color: white; flex-shrink: 0;
  position: relative; overflow: hidden;
  transition: transform .2s ease;
}
.dh-mm-career-link .career-icon-box::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.dh-mm-career-link .career-icon-box svg {
  width: 18px; height: 18px;
  fill: white;
  position: relative; z-index: 2;
}
.dh-mm-career-link:hover .career-icon-box {
  transform: scale(1.08);
}
.dh-mm-career-link .career-count-num {
  font-size: 11px; color: var(--gray-400); font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 4px;
}
.dh-mm-status-cards { display: flex; flex-direction: column; gap: 8px; }
.dh-mm-status-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none; transition: all .2s;
}
.dh-mm-status-card:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}
.dh-mm-status-card .badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.dh-mm-status-card .badge-icon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 55%);
  pointer-events: none;
}
.dh-mm-status-card .badge-icon svg {
  width: 20px; height: 20px;
  fill: white;
  position: relative; z-index: 1;
}
.dh-mm-status-card.pos .badge-icon {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  box-shadow: 0 4px 10px rgba(5,150,105,0.35);
}
.dh-mm-status-card.pre .badge-icon {
  background: linear-gradient(135deg, #F59E0B 0%, #92400E 100%);
  box-shadow: 0 4px 10px rgba(217,119,6,0.35);
}
.dh-mm-status-card .status-info { display: flex; flex-direction: column; line-height: 1.2; }
.dh-mm-status-card .status-info strong { font-size: 13px; color: var(--navy); font-weight: 700; }
.dh-mm-status-card .status-info span { font-size: 11px; color: var(--gray-500); font-weight: 500; }
.dh-mm-editoras-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dh-mm-cta-box {
  padding: 20px 18px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-lg);
  position: relative;
}
.dh-mm-cta-box h5 {
  font-size: 15px; font-weight: 800;
  color: #047857; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.dh-mm-cta-box p {
  font-size: 12.5px; color: #065F46;
  line-height: 1.5; margin-bottom: 14px;
}
.dh-mm-cta-box p b { color: #047857; }
.dh-mm-cta-box .cta-btn-small {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 3px 10px rgba(5,150,105,.28);
}
.dh-mm-cta-box .cta-btn-small:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}
.dh-mm-cta-box .cta-btn-small svg { width: 12px; height: 12px; }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dh-megamenu.is-open,
.dh-nav-item:hover .dh-megamenu,
.dh-nav-item:focus-within .dh-megamenu {
  animation: fadeInDown .25s ease-out;
}

/* ===== V6 FASE 2 — ACESSIBILIDADE ===== */
/* Focus visible universal — só aparece com teclado, não com mouse */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Para cards e elementos com border-radius já maior, adequar ao raio */
.dh-mm-career-link:focus-visible,
.dh-mm-status-card:focus-visible,
.dh-nav-link:focus-visible,
.mh-drawer-item:focus-visible,
.mh-drawer-sub-item:focus-visible {
  outline-offset: -1px;
  border-radius: var(--radius-sm, 6px);
}
/* Skip link — visível apenas ao focar via teclado */
.sr-skip {
  position: absolute; left: -9999px; top: 8px;
  z-index: 999; background: var(--navy, #0F172A); color: white;
  padding: 10px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.sr-skip:focus { left: 8px; }
/* Classe para screen readers apenas */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .dh-cart-badge, .mh-icon-btn .badge {
    animation: none !important;
  }
}


/* ===== V6 FASE 3 — AUTOCOMPLETE ===== */
.dh-search, .mh-search-wrap { position: relative; }

.cr-ac-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 20px 40px -8px rgba(15,23,42,.18), 0 8px 16px -4px rgba(15,23,42,.08);
  z-index: 1100;
  max-height: 520px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
  font-family: inherit;
}
.cr-ac-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cr-ac-section { padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.cr-ac-section:last-child { border-bottom: 0; }
.cr-ac-section-title {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748B;
  text-transform: uppercase;
}
.cr-ac-section-title svg { width: 12px; height: 12px; }
.cr-ac-item {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px 9px 16px;
  min-width: 0;
  text-decoration: none;
  color: #0F172A;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s;
  line-height: 1.35;
}
.cr-ac-item:hover,
.cr-ac-item.is-active { background: #EFF6FF; }
.cr-ac-item.is-active { outline: none; }
.cr-ac-item-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
}
.cr-ac-item-icon svg { width: 14px; height: 14px; }
.cr-ac-item-text { flex: 1; min-width: 0; }
.cr-ac-item-name {
  color: #0F172A;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-ac-item-name mark {
  background: none;
  color: #1D4ED8;
  font-weight: 700;
}
.cr-ac-item-sub {
  color: #64748B;
  font-size: 11.5px;
  margin-top: 1px;
}
.cr-ac-item-count {
  font-size: 11px;
  color: #64748B;
  flex-shrink: 0;
  margin-left: 4px;
  background: #F1F5F9;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.cr-ac-item-remove {
  opacity: 0;
  transition: opacity .15s;
  background: none; border: 0; cursor: pointer;
  color: #94A3B8;
  padding: 4px;
  border-radius: 4px;
}
.cr-ac-item:hover .cr-ac-item-remove { opacity: 1; }
.cr-ac-item-remove:hover { background: #FEE2E2; color: #DC2626; }
.cr-ac-item-remove svg { width: 12px; height: 12px; }

.cr-ac-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 16px 10px;
}
.cr-ac-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: #F1F5F9;
  border-radius: 999px;
  font-size: 11.5px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all .15s;
  border: 1px solid transparent;
}
.cr-ac-chip:hover {
  background: white;
  border-color: #1D4ED8;
  color: #1D4ED8;
}

.cr-ac-empty, .cr-ac-loading {
  padding: 24px 20px;
  text-align: center;
  color: #64748B;
  font-size: 13px;
}
.cr-ac-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cr-ac-spinner {
  width: 14px; height: 14px;
  border: 2px solid #E2E8F0;
  border-top-color: #1D4ED8;
  border-radius: 50%;
  animation: cr-ac-spin .7s linear infinite;
}
@keyframes cr-ac-spin { to { transform: rotate(360deg); } }

.cr-ac-see-all {
  display: block;
  padding: 9px 16px;
  text-align: center;
  color: #1D4ED8;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  border-top: 1px solid #F1F5F9;
  margin-top: 2px;
  transition: background .12s;
}
.cr-ac-see-all:hover { background: #EFF6FF; }

/* Mobile fullscreen-like */
@media (max-width: 640px) {
  .cr-ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    max-height: calc(100dvh - 220px);
    border-radius: 12px;
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .cr-ac-dropdown { transition: opacity .01s, visibility .01s, transform .01s; }
  .cr-ac-spinner { animation: none; border-top-color: #1D4ED8; }
}


/* ===== V6 FASE 3 — AUTOCOMPLETE BUSCA ===== */

.dh-search-input-wrap {
  position: relative;
}

.dh-search-ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 99;
  max-height: 520px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.dh-search-ac.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dh-search-ac[hidden] {
  display: none !important;
}

/* Seções */
.dh-ac-section {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--gray-100, #F1F5F9);
}
.dh-ac-section:last-child {
  border-bottom: none;
}
.dh-ac-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray-500, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.dh-ac-section-title .count {
  font-weight: 600;
  color: var(--gray-400, #94A3B8);
  text-transform: none;
  letter-spacing: 0;
}

/* Editais quentes (grid de cards) */
.dh-ac-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.dh-ac-hot-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy, #0F172A);
  transition: all 0.15s;
}
.dh-ac-hot-card:hover,
.dh-ac-hot-card.is-active {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  border-color: var(--primary, #1D4ED8);
  transform: translateY(-1px);
}
.dh-ac-hot-card .nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.dh-ac-hot-card .meta {
  font-size: 10.5px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Histórico */
.dh-ac-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
  color: var(--navy);
}
.dh-ac-history-item:hover,
.dh-ac-history-item.is-active {
  background: var(--gray-50, #F8FAFC);
}
.dh-ac-history-item svg {
  width: 13px;
  height: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.dh-ac-history-item .query {
  flex: 1;
  font-weight: 500;
}
.dh-ac-history-item .remove {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  opacity: 0;
  transition: all 0.12s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.dh-ac-history-item:hover .remove {
  opacity: 1;
}
.dh-ac-history-item .remove:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Chips de categoria */
.dh-ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dh-ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gray-50, #F8FAFC);
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.12s;
}
.dh-ac-chip:hover,
.dh-ac-chip.is-active {
  background: var(--primary, #1D4ED8);
  border-color: var(--primary);
  color: white;
}

/* Resultados filtrados */
.dh-ac-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.12s;
}
.dh-ac-result-item:hover,
.dh-ac-result-item.is-active {
  background: var(--gray-50, #F8FAFC);
}
.dh-ac-result-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: var(--primary);
  flex-shrink: 0;
}
.dh-ac-result-item .icon svg {
  width: 14px;
  height: 14px;
}
.dh-ac-result-item.is-product .icon {
  background: #FEF3C7;
  color: #92400E;
}
.dh-ac-result-item.is-editora .icon {
  background: #F3E8FF;
  color: #7C3AED;
}
.dh-ac-result-item .info {
  flex: 1;
  min-width: 0;
}
.dh-ac-result-item .nome {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-ac-result-item .nome mark {
  background: #FEF08A;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.dh-ac-result-item .meta {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.dh-ac-result-item .arrow {
  color: var(--gray-400);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.12s;
}
.dh-ac-result-item:hover .arrow,
.dh-ac-result-item.is-active .arrow {
  opacity: 1;
}

/* Estado vazio (nenhum resultado) */
.dh-ac-no-results {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}
.dh-ac-no-results b {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Loading */
.dh-ac-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: var(--gray-500);
  font-size: 12px;
}
.dh-ac-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ac-spin 0.7s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* Mobile (responsivo dentro do mobile header) */
@media (max-width: 768px) {
  .dh-search-ac { max-height: 70vh; }
  .dh-ac-hot-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== V6.1 — MINI CART PREVIEW (desktop only) ===== */
.dh-cart-wrap { position: relative; margin-left: 4px; }
.dh-cart-preview {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 40px -8px rgba(15,23,42,.20), 0 8px 16px -4px rgba(15,23,42,.08);
  border: 1px solid #E2E8F0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  pointer-events: none;
}
.dh-cart-preview.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dh-cart-preview::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: white;
  border-top: 1px solid #E2E8F0;
  border-left: 1px solid #E2E8F0;
  transform: rotate(45deg);
}
.dh-cp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.dh-cp-title {
  font-size: 11px; font-weight: 700;
  color: #64748B; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dh-cp-count {
  font-size: 11px; font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 3px 10px; border-radius: 999px;
}
.dh-cp-items {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}
.dh-cp-item {
  display: flex; gap: 10px;
  padding: 10px 16px;
  transition: background .12s;
  position: relative;
}
.dh-cp-item:hover { background: #F8FAFC; }
.dh-cp-item + .dh-cp-item { border-top: 1px solid #F8FAFC; }
.dh-cp-thumb {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  display: grid; place-items: center;
  font-size: 18px;
  color: #1D4ED8;
}
.dh-cp-info { flex: 1; min-width: 0; }
.dh-cp-name {
  font-size: 12.5px; font-weight: 600;
  color: #0F172A;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.dh-cp-editora {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 3px;
}
.dh-cp-price {
  font-size: 13px; font-weight: 700;
  color: #059669;
}
.dh-cp-remove {
  background: transparent;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 6px;
  color: #94A3B8;
  cursor: pointer;
  flex-shrink: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .15s, color .12s, background .12s;
  align-self: flex-start;
}
.dh-cp-item:hover .dh-cp-remove { opacity: 1; }
.dh-cp-remove:hover { color: #DC2626; background: #FEE2E2; }
.dh-cp-remove svg { width: 13px; height: 13px; }
.dh-cp-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
}
.dh-cp-total-lbl { font-size: 12.5px; color: #475569; font-weight: 600; }
.dh-cp-total-val { font-size: 16px; font-weight: 800; color: #0F172A; }
.dh-cp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px 14px;
}
.dh-cp-btn {
  padding: 10px 12px;
  font-size: 12.5px; font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.dh-cp-btn-sec {
  background: #F1F5F9;
  color: #0F172A;
}
.dh-cp-btn-sec:hover { background: #E2E8F0; }
.dh-cp-btn-pri {
  background: #1D4ED8;
  color: white;
  box-shadow: 0 2px 6px rgba(29,78,216,.25);
}
.dh-cp-btn-pri:hover {
  background: #1E3A8A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,78,216,.30);
}

/* Estado vazio */
.dh-cp-empty {
  padding: 32px 20px 28px;
  text-align: center;
}
.dh-cp-empty-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #F1F5F9;
  display: grid; place-items: center;
  color: #94A3B8;
}
.dh-cp-empty-icon svg { width: 24px; height: 24px; }
.dh-cp-empty-text {
  font-size: 13.5px; font-weight: 600;
  color: #475569;
  margin-bottom: 14px;
}
.dh-cp-empty .dh-cp-btn-pri {
  display: inline-flex;
  padding: 9px 20px;
  font-size: 12.5px;
}

/* Mobile: esconde o preview (só funciona com hover) */
@media (max-width: 1024px) {
  .dh-cart-preview { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dh-cart-preview { transition: opacity .01s, visibility .01s, transform .01s; }
  .dh-cp-btn-pri:hover { transform: none; }
}
}

/* === MOBILE CSS (só aplica em < 1024px) === */
@media (max-width: 1023.98px) {

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 24px; }
.page-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.page-header p { color: var(--gray-500); font-size: 14px; max-width: 640px; margin: 0 auto; }
.page-header .version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.improvements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.improvements span {
  background: var(--primary-50);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.state-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.state-toggle .lbl { color: var(--gray-500); font-size: 11.5px; padding: 6px 2px; font-weight: 600; }
.state-toggle button {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 6px 13px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.state-toggle button.active { background: var(--navy); color: white; border-color: var(--navy); }
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.preview-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.preview-label {
  background: var(--navy);
  color: white;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.25); margin-right: 6px; display: inline-block; vertical-align: middle; }
.preview-label .size { opacity: .6; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.preview-card.desktop { display: block; }
.preview-card.mobile { display: none; max-width: 400px; margin: 0 auto; }
body.auth-guest .auth-logged { display: none !important; }
body.auth-logged .auth-guest { display: none !important; }


.preview-card.desktop { display: none !important; }
.preview-card.mobile { display: block !important; max-width: 420px; margin: 0 auto; }

/* ===== MOBILE HEADER ===== */
.mh { font-family: 'Plus Jakarta Sans', sans-serif; background: white; position: relative; overflow: hidden; }

.mh-topbar {
  background: var(--navy); color: #CBD5E1;
  font-size: 11px; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mh-trust-mini { display: inline-flex; align-items: center; gap: 5px; color: #E2E8F0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-trust-mini strong { color: white; font-weight: 700; }
.mh-trust-mini svg { width: 12px; height: 12px; color: #FBBF24; flex-shrink: 0; }
.mh-coupon-mini {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.2);
  color: #FCD34D; padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 600; text-decoration: none; flex-shrink: 0;
}
.mh-coupon-mini svg { width: 10px; height: 10px; }
.mh-coupon-mini code { font-family: 'SF Mono', Monaco, monospace; font-size: 9.5px; font-weight: 700; }

.mh-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: white;
  border-bottom: 1px solid var(--gray-200); gap: 10px;
}
.mh-menu-btn {
  width: 40px; height: 40px; border: 1px solid var(--gray-200);
  background: white; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--navy);
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.mh-menu-btn:hover { background: var(--gray-50); border-color: var(--primary); color: var(--primary); }
.mh-menu-btn svg { width: 20px; height: 20px; }

.mh-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin: 0 auto; }
.crv-logo-mark { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(124,58,237,0.22)); }

.mh-logo-mark-old {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px; display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 15px;
  box-shadow: 0 2px 8px rgba(29,78,216,.3);
}
.mh-logo-text { display: flex; flex-direction: column; line-height: 1.1; gap: 1px; }
.mh-logo-text .brand { font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.mh-logo-text .tag { font-size: 9.5px; font-weight: 600; color: var(--gray-500); }
.mh-logo-text .tag b { color: var(--primary); font-weight: 700; }

.mh-actions { display: flex; align-items: center; gap: 8px; }
.mh-icon-btn {
  position: relative; width: 40px; height: 40px;
  border: 1px solid var(--gray-200); background: white;
  border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--navy);
  text-decoration: none; transition: all .15s;
}
.mh-icon-btn:hover { background: var(--gray-50); border-color: var(--primary); color: var(--primary); }
.mh-icon-btn svg { width: 17px; height: 17px; }
.mh-icon-btn.cart { background: var(--primary); border-color: var(--primary); color: white; }
.mh-icon-btn.cart:hover { background: var(--primary-hover); }
.mh-icon-btn .badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger); color: white;
  min-width: 18px; height: 18px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  border: 2px solid white; padding: 0 4px;
  animation: pulseBadge 2s infinite;
}

.mh-search {
  padding: 12px 16px; background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex; gap: 8px; align-items: center;
}
.mh-search-input { flex: 1; position: relative; display: flex; align-items: center; }
.mh-search-input svg { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--gray-400); pointer-events: none; }
.mh-search-input input {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: var(--radius-pill);
  padding: 11px 16px 11px 40px;
  font-family: inherit; font-size: 14px; color: var(--navy); font-weight: 500;
  outline: none; background: var(--gray-50); transition: all .2s;
}
.mh-search-input input:focus { background: white; border-color: var(--primary); box-shadow: var(--shadow-focus); }
.mh-search-input input::placeholder { color: var(--gray-400); font-weight: 400; }
.mh-filter-btn {
  width: 44px; height: 44px;
  background: white; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill); color: var(--navy);
  cursor: pointer; display: grid; place-items: center;
  position: relative; transition: all .15s; flex-shrink: 0;
}
.mh-filter-btn:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.mh-filter-btn svg { width: 16px; height: 16px; }

.mh-quick {
  display: flex; gap: 6px; padding: 10px 16px;
  overflow-x: auto; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200); scrollbar-width: none;
}
.mh-quick::-webkit-scrollbar { display: none; }
.mh-quick-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--gray-700);
  text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: all .15s;
}
.mh-quick-item:hover, .mh-quick-item.active { background: var(--primary); border-color: var(--primary); color: white; }
.mh-quick-item .n { background: var(--primary-50); color: var(--primary); padding: 1px 6px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; }
.mh-quick-item.active .n, .mh-quick-item:hover .n { background: rgba(255,255,255,.22); color: white; }

.mh-drawer-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mh-drawer-overlay.show { opacity: 1; pointer-events: auto; }
.mh-drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 86%; max-width: 340px; background: white;
  z-index: 51; transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; box-shadow: 10px 0 30px rgba(15,23,42,.1);
  display: flex; flex-direction: column;
}
.mh-drawer.show { transform: translateX(0); }
.mh-drawer-header { background: var(--navy); color: white; padding: 20px; position: relative; }
.mh-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.08); border: none; border-radius: 50%;
  color: white; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.mh-drawer-close:hover { background: rgba(255,255,255,.15); }
.mh-drawer-close svg { width: 16px; height: 16px; }
.mh-drawer-guest { display: flex; flex-direction: column; gap: 10px; }
.mh-drawer-guest p { font-size: 13px; color: #CBD5E1; font-weight: 500; line-height: 1.5; }
.mh-drawer-guest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mh-drawer-guest-btns a {
  padding: 10px; text-align: center;
  font-size: 12.5px; font-weight: 700;
  text-decoration: none; border-radius: var(--radius-md); transition: all .15s;
}
.mh-drawer-guest-btns .login { background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.15); }
.mh-drawer-guest-btns .login:hover { background: rgba(255,255,255,.15); }
.mh-drawer-guest-btns .register { background: white; color: var(--primary); }
.mh-drawer-user { display: flex; align-items: center; gap: 12px; }
.mh-drawer-user .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 16px;
  border: 2px solid rgba(255,255,255,.2);
}
.mh-drawer-user .text .hi { font-size: 11px; color: #CBD5E1; font-weight: 500; display: block; margin-bottom: 1px; }
.mh-drawer-user .text .name { font-size: 16px; font-weight: 700; }
.mh-drawer-user-links { display: flex; gap: 6px; margin-top: 12px; }
.mh-drawer-user-links a {
  flex: 1; padding: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); color: white;
  text-align: center; font-size: 11.5px; font-weight: 600;
  text-decoration: none; transition: background .2s;
}
.mh-drawer-user-links a:hover { background: rgba(255,255,255,.15); }
.mh-drawer-body { flex: 1; padding: 8px 0; }
.mh-drawer-section { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.mh-drawer-section:last-child { border-bottom: none; }
.mh-drawer-section-title {
  font-size: 10px; font-weight: 700;
  color: var(--gray-400); letter-spacing: .12em;
  text-transform: uppercase; padding: 8px 20px;
}
.mh-drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--navy);
  text-decoration: none; font-size: 14px; font-weight: 600; transition: all .15s;
}
.mh-drawer-item:hover { background: var(--primary-50); color: var(--primary); }
.mh-drawer-item svg { width: 17px; height: 17px; color: var(--gray-500); flex-shrink: 0; }
.mh-drawer-item:hover svg { color: var(--primary); }
.mh-drawer-item.has-sub::after {
  content: ''; margin-left: auto;
  width: 7px; height: 7px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg); transition: transform .2s;
}
.mh-drawer-item.has-sub.open::after { transform: rotate(-135deg); }
.mh-drawer-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; background: var(--gray-50); }
.mh-drawer-sub.open { max-height: 600px; }
.mh-drawer-sub-item {
  display: flex; justify-content: space-between;
  padding: 9px 20px 9px 52px;
  color: var(--gray-700); text-decoration: none;
  font-size: 13px; font-weight: 500;
}
.mh-drawer-sub-item:hover { background: white; color: var(--primary); }
.mh-drawer-sub-item .n { color: var(--gray-400); font-size: 11px; font-weight: 600; }

.mh-drawer-cta-wrap { padding: 14px 20px; }
.mh-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; background: var(--primary); color: white;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.mh-drawer-cta:hover { background: var(--primary-hover); }
.mh-drawer-cta svg { width: 16px; height: 16px; }

.mh-drawer-indique {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--amber);
  text-decoration: none; font-size: 13.5px; font-weight: 600; transition: background .15s;
}
.mh-drawer-indique:hover { background: var(--amber-50); }
.mh-drawer-indique svg { width: 17px; height: 17px; }

.mh-drawer-footer {
  background: var(--gray-50);
  padding: 10px 20px 14px;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.mh-drawer-support {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--gray-200);
  transition: all .15s;
  min-height: 48px;
}
.mh-drawer-support:hover {
  border-color: var(--primary-200);
  background: var(--gray-50);
  transform: translateY(-1px);
}
.mh-drawer-support .sup-ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; flex-shrink: 0;
}
.mh-drawer-support .sup-ico svg { width: 14px; height: 14px; }
.mh-drawer-support.whatsapp .sup-ico { background: #25D366; }
.mh-drawer-support.telegram .sup-ico { background: #229ED9; }
.mh-drawer-support .sup-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.mh-filters-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white; border-radius: 20px 20px 0 0;
  z-index: 52; transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 85%; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(15,23,42,.15);
}
.mh-filters-sheet.show { transform: translateY(0); }
.mh-filters-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: white;
}
.mh-filters-header .grip {
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 4px; background: var(--gray-300); border-radius: 2px;
}
.mh-filters-header h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.mh-filters-close { background: none; border: none; color: var(--gray-500); cursor: pointer; padding: 4px; }
.mh-filters-close svg { width: 18px; height: 18px; }
.mh-filters-body { padding: 18px 20px; }
.mh-filter-group { margin-bottom: 16px; }
.mh-filter-group label {
  display: block; font-size: 10.5px; font-weight: 700;
  color: var(--gray-500); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px;
}
.mh-filter-group select {
  width: 100%; padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--gray-50); font-family: inherit; font-size: 14px;
  color: var(--navy); font-weight: 500; outline: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.mh-filter-group select:focus { border-color: var(--primary); background: white; }
.mh-filters-actions { display: flex; gap: 10px; padding-top: 6px; }
.mh-filters-actions button {
  flex: 1; padding: 13px;
  border-radius: var(--radius-md); font-family: inherit;
  font-size: 13.5px; font-weight: 700; cursor: pointer; border: none;
}
.mh-filters-actions .clear { background: var(--gray-100); color: var(--gray-700); }
.mh-filters-actions .apply { background: var(--primary); color: white; }


.mh-drawer-coupon-pill {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 20px 6px;
  padding: 8px 12px;
  background: #FFFBEB;
  border: 1px dashed #F59E0B;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px; line-height: 1.2;
  color: #92400E;
  transition: background .15s;
}
.mh-drawer-coupon-pill:hover { background: #FEF3C7; }
.mh-drawer-coupon-pill .cp-ico { width: 16px; height: 16px; color: #F59E0B; flex-shrink: 0; }
.mh-drawer-coupon-pill .cp-text { flex: 1; font-weight: 500; color: #78350F; }
.mh-drawer-coupon-pill .cp-text b { color: #92400E; font-weight: 800; }
.mh-drawer-coupon-pill .cp-code {
  background: white; border: 1px solid #F59E0B;
  color: #92400E; font-family: 'SF Mono', Monaco, monospace;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.03em;
}

.mh-drawer-cta-wrap {
  padding: 8px 20px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mh-drawer-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  transition: all .2s;
  letter-spacing: .01em;
  text-align: center;
  gap: 6px;
  min-height: 48px;
  border: 0;
}
.mh-drawer-cta.alugue {
  background: #FEF3C7;
  color: #92400E;
  box-shadow: 0 1px 0 rgba(245,158,11,.4), 0 2px 6px rgba(245,158,11,.12);
}
.mh-drawer-cta.alugue:hover {
  background: #FDE68A;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(245,158,11,.5), 0 4px 10px rgba(245,158,11,.2);
}
.mh-drawer-cta.indique {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(5,150,105,.28);
  position: relative; overflow: hidden;
}
.mh-drawer-cta.indique::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.mh-drawer-cta.indique:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,.38);
}
.mh-drawer-cta .cta-ico {
  width: 16px; height: 16px; flex-shrink: 0; position: relative; z-index: 1;
}
.mh-drawer-cta .cta-label { position: relative; z-index: 1; }

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

/* ===== V6 FASE 2 — ACESSIBILIDADE ===== */
/* Focus visible universal — só aparece com teclado, não com mouse */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Para cards e elementos com border-radius já maior, adequar ao raio */
.dh-mm-career-link:focus-visible,
.dh-mm-status-card:focus-visible,
.dh-nav-link:focus-visible,
.mh-drawer-item:focus-visible,
.mh-drawer-sub-item:focus-visible {
  outline-offset: -1px;
  border-radius: var(--radius-sm, 6px);
}
/* Skip link — visível apenas ao focar via teclado */
.sr-skip {
  position: absolute; left: -9999px; top: 8px;
  z-index: 999; background: var(--navy, #0F172A); color: white;
  padding: 10px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.sr-skip:focus { left: 8px; }
/* Classe para screen readers apenas */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .dh-cart-badge, .mh-icon-btn .badge {
    animation: none !important;
  }
}


/* ===== V6 FASE 3 — AUTOCOMPLETE ===== */
.dh-search, .mh-search-wrap { position: relative; }

.cr-ac-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 20px 40px -8px rgba(15,23,42,.18), 0 8px 16px -4px rgba(15,23,42,.08);
  z-index: 1100;
  max-height: 520px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
  font-family: inherit;
}
.cr-ac-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cr-ac-section { padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.cr-ac-section:last-child { border-bottom: 0; }
.cr-ac-section-title {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748B;
  text-transform: uppercase;
}
.cr-ac-section-title svg { width: 12px; height: 12px; }
.cr-ac-item {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px 9px 16px;
  min-width: 0;
  text-decoration: none;
  color: #0F172A;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s;
  line-height: 1.35;
}
.cr-ac-item:hover,
.cr-ac-item.is-active { background: #EFF6FF; }
.cr-ac-item.is-active { outline: none; }
.cr-ac-item-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
}
.cr-ac-item-icon svg { width: 14px; height: 14px; }
.cr-ac-item-text { flex: 1; min-width: 0; }
.cr-ac-item-name {
  color: #0F172A;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-ac-item-name mark {
  background: none;
  color: #1D4ED8;
  font-weight: 700;
}
.cr-ac-item-sub {
  color: #64748B;
  font-size: 11.5px;
  margin-top: 1px;
}
.cr-ac-item-count {
  font-size: 11px;
  color: #64748B;
  flex-shrink: 0;
  margin-left: 4px;
  background: #F1F5F9;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.cr-ac-item-remove {
  opacity: 0;
  transition: opacity .15s;
  background: none; border: 0; cursor: pointer;
  color: #94A3B8;
  padding: 4px;
  border-radius: 4px;
}
.cr-ac-item:hover .cr-ac-item-remove { opacity: 1; }
.cr-ac-item-remove:hover { background: #FEE2E2; color: #DC2626; }
.cr-ac-item-remove svg { width: 12px; height: 12px; }

.cr-ac-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 16px 10px;
}
.cr-ac-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: #F1F5F9;
  border-radius: 999px;
  font-size: 11.5px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all .15s;
  border: 1px solid transparent;
}
.cr-ac-chip:hover {
  background: white;
  border-color: #1D4ED8;
  color: #1D4ED8;
}

.cr-ac-empty, .cr-ac-loading {
  padding: 24px 20px;
  text-align: center;
  color: #64748B;
  font-size: 13px;
}
.cr-ac-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cr-ac-spinner {
  width: 14px; height: 14px;
  border: 2px solid #E2E8F0;
  border-top-color: #1D4ED8;
  border-radius: 50%;
  animation: cr-ac-spin .7s linear infinite;
}
@keyframes cr-ac-spin { to { transform: rotate(360deg); } }

.cr-ac-see-all {
  display: block;
  padding: 9px 16px;
  text-align: center;
  color: #1D4ED8;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  border-top: 1px solid #F1F5F9;
  margin-top: 2px;
  transition: background .12s;
}
.cr-ac-see-all:hover { background: #EFF6FF; }

/* Mobile fullscreen-like */
@media (max-width: 640px) {
  .cr-ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    max-height: calc(100dvh - 220px);
    border-radius: 12px;
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .cr-ac-dropdown { transition: opacity .01s, visibility .01s, transform .01s; }
  .cr-ac-spinner { animation: none; border-top-color: #1D4ED8; }
}


/* ===== V6 FASE 3 — AUTOCOMPLETE BUSCA ===== */

.dh-search-input-wrap {
  position: relative;
}

.dh-search-ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 99;
  max-height: 520px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.dh-search-ac.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dh-search-ac[hidden] {
  display: none !important;
}

/* Seções */
.dh-ac-section {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--gray-100, #F1F5F9);
}
.dh-ac-section:last-child {
  border-bottom: none;
}
.dh-ac-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray-500, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.dh-ac-section-title .count {
  font-weight: 600;
  color: var(--gray-400, #94A3B8);
  text-transform: none;
  letter-spacing: 0;
}

/* Editais quentes (grid de cards) */
.dh-ac-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.dh-ac-hot-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy, #0F172A);
  transition: all 0.15s;
}
.dh-ac-hot-card:hover,
.dh-ac-hot-card.is-active {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  border-color: var(--primary, #1D4ED8);
  transform: translateY(-1px);
}
.dh-ac-hot-card .nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.dh-ac-hot-card .meta {
  font-size: 10.5px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Histórico */
.dh-ac-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
  color: var(--navy);
}
.dh-ac-history-item:hover,
.dh-ac-history-item.is-active {
  background: var(--gray-50, #F8FAFC);
}
.dh-ac-history-item svg {
  width: 13px;
  height: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.dh-ac-history-item .query {
  flex: 1;
  font-weight: 500;
}
.dh-ac-history-item .remove {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  opacity: 0;
  transition: all 0.12s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.dh-ac-history-item:hover .remove {
  opacity: 1;
}
.dh-ac-history-item .remove:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Chips de categoria */
.dh-ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dh-ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gray-50, #F8FAFC);
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.12s;
}
.dh-ac-chip:hover,
.dh-ac-chip.is-active {
  background: var(--primary, #1D4ED8);
  border-color: var(--primary);
  color: white;
}

/* Resultados filtrados */
.dh-ac-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.12s;
}
.dh-ac-result-item:hover,
.dh-ac-result-item.is-active {
  background: var(--gray-50, #F8FAFC);
}
.dh-ac-result-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: var(--primary);
  flex-shrink: 0;
}
.dh-ac-result-item .icon svg {
  width: 14px;
  height: 14px;
}
.dh-ac-result-item.is-product .icon {
  background: #FEF3C7;
  color: #92400E;
}
.dh-ac-result-item.is-editora .icon {
  background: #F3E8FF;
  color: #7C3AED;
}
.dh-ac-result-item .info {
  flex: 1;
  min-width: 0;
}
.dh-ac-result-item .nome {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-ac-result-item .nome mark {
  background: #FEF08A;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.dh-ac-result-item .meta {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.dh-ac-result-item .arrow {
  color: var(--gray-400);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.12s;
}
.dh-ac-result-item:hover .arrow,
.dh-ac-result-item.is-active .arrow {
  opacity: 1;
}

/* Estado vazio (nenhum resultado) */
.dh-ac-no-results {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}
.dh-ac-no-results b {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Loading */
.dh-ac-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: var(--gray-500);
  font-size: 12px;
}
.dh-ac-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ac-spin 0.7s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* Mobile (responsivo dentro do mobile header) */
@media (max-width: 768px) {
  .dh-search-ac { max-height: 70vh; }
  .dh-ac-hot-grid { grid-template-columns: repeat(2, 1fr); }
}
}

/* ===== OVERRIDES PRODUCAO — Drawer e filter sheet cobrem tela toda ===== */
@media (max-width: 1023.98px) {
  body.cr-header-v6-active .mh-drawer-overlay {
    position: fixed !important;
    z-index: 99998 !important;
  }
  body.cr-header-v6-active .mh-drawer {
    position: fixed !important;
    z-index: 99999 !important;
  }
  body.cr-header-v6-active .mh-filters-sheet {
    position: fixed !important;
    z-index: 99999 !important;
  }
  /* Body lock quando drawer/sheet aberto */
  body.cr-header-v6-active.mh-no-scroll { overflow: hidden; }
}

/* ===== OVERRIDE BUSCA — garante padding e icone posicionados ===== */
body.cr-header-v6-active .mh-search-input,
body.cr-header-v6-active .dh-search-input-wrap {
  position: relative !important;
}
body.cr-header-v6-active .mh-search-input input[type='search'],
body.cr-header-v6-active .mh-search-input input {
  padding: 11px 16px 11px 40px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  background: var(--gray-50) !important;
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 9999px !important;
  font-size: 16px !important;
  -webkit-text-size-adjust: 100% !important;
}
body.cr-header-v6-active .mh-search-input svg {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
/* Desktop search também */
body.cr-header-v6-active .dh-search-input-wrap input[type='search'],
body.cr-header-v6-active .dh-search-input-wrap input {
  padding-left: 42px !important;
  box-sizing: border-box !important;
}
body.cr-header-v6-active .dh-search-input-wrap svg {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* =========================================================================
 * DROPDOWN CUSTOM CR-DD (bottom sheet mobile + popover desktop)
 * ========================================================================= */
.cr-dd {
  position: relative;
  width: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cr-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--gray-50, #F8FAFC);
  border: 1.5px solid var(--gray-200, #E2E8F0);
  border-radius: 12px;
  color: var(--navy, #0F172A);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.cr-dd-trigger:hover { background: #fff; border-color: #CBD5E1; }
.cr-dd-trigger:focus-visible,
.cr-dd[aria-expanded="true"] .cr-dd-trigger,
.cr-dd-trigger[aria-expanded="true"] {
  outline: none;
  background: #fff;
  border-color: var(--primary, #1D4ED8);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}
.cr-dd-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-dd-chev {
  width: 18px; height: 18px;
  color: var(--gray-500, #64748B);
  transition: transform .2s;
  flex-shrink: 0;
}
.cr-dd-trigger[aria-expanded="true"] .cr-dd-chev {
  transform: rotate(180deg);
  color: var(--primary, #1D4ED8);
}

/* ===== PANEL (desktop: popover) ===== */
.cr-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 340px;
  background: #fff;
  border: 1px solid var(--gray-200, #E2E8F0);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .14);
  z-index: 100000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cr-dd-fade .18s ease-out;
}
.cr-dd-panel[hidden] { display: none; }
@keyframes cr-dd-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SEARCH INPUT ===== */
.cr-dd-search-wrap {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--gray-100, #F1F5F9);
  flex-shrink: 0;
}
.cr-dd-search-wrap svg {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(calc(-50% - 4px));
  width: 14px; height: 14px;
  color: var(--gray-500, #64748B);
  pointer-events: none;
}
.cr-dd-search {
  width: 100%;
  padding: 9px 12px 9px 34px;
  font-family: inherit;
  font-size: 13px;
  background: var(--gray-50, #F8FAFC);
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: none;
  color: var(--navy, #0F172A);
  transition: all .15s;
  box-sizing: border-box;
}
.cr-dd-search:focus { background: #fff; border-color: var(--primary, #1D4ED8); }

/* ===== LIST ===== */
.cr-dd-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  flex: 1;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300, #CBD5E1) transparent;
}
.cr-dd-list::-webkit-scrollbar { width: 6px; }
.cr-dd-list::-webkit-scrollbar-thumb { background: var(--gray-300, #CBD5E1); border-radius: 3px; }

.cr-dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--navy, #0F172A);
  transition: background .12s;
  min-height: 40px;
}
.cr-dd-opt:hover,
.cr-dd-opt.cr-dd-focused {
  background: var(--gray-100, #F1F5F9);
}
.cr-dd-opt.is-active {
  background: #EFF6FF;
  color: var(--primary, #1D4ED8);
  font-weight: 700;
}
.cr-dd-opt.is-active:hover { background: #DBEAFE; }
.cr-dd-opt[hidden] { display: none; }
.cr-dd-opt-label { flex: 1; }
.cr-dd-opt-count {
  font-size: 11.5px;
  color: var(--gray-500, #64748B);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  background: var(--gray-100, #F1F5F9);
  border-radius: 999px;
  font-weight: 600;
}
.cr-dd-opt.is-active .cr-dd-opt-count {
  background: #DBEAFE;
  color: var(--primary, #1D4ED8);
}
.cr-dd-opt-check {
  width: 16px; height: 16px;
  color: var(--primary, #1D4ED8);
  flex-shrink: 0;
}
.cr-dd-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray-500, #64748B);
  font-size: 13px;
}

/* ===== MOBILE: GLASS FLOATING CARD (iOS Safari-safe) ===== */
@media (max-width: 1023.98px) {
  body.cr-dd-open { overflow: hidden; }

  /* Backdrop: blur FORTE no site atrás + leve escurecimento */
  .cr-dd-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .22);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    z-index: 999990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .cr-dd-backdrop.show { opacity: 1; pointer-events: auto; }

  /* Card flutuante — SEM backdrop-filter no panel (bug Safari iOS)
     O visual glass vem do backdrop borrando o site + card semi-translúcido */
  .cr-dd-panel {
    position: fixed !important;
    top: auto !important;
    bottom: 20px;
    left: 16px !important;
    right: 16px !important;
    max-height: 72vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .92);
    box-shadow:
      0 24px 60px rgba(15, 23, 42, .3),
      0 0 0 1px rgba(15, 23, 42, .04),
      inset 0 1px 0 rgba(255, 255, 255, .9);
    z-index: 999999;
    padding-top: 8px;
    overflow: hidden;
    isolation: isolate;
    animation: cr-dd-float-in .32s cubic-bezier(.22, 1, .36, 1);
  }

  /* Remove a barrinha drag-handle (não é mais bottom sheet) */
  .cr-dd-panel::before { display: none; }

  @keyframes cr-dd-float-in {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Search dentro do card — sutilmente translúcido */
  .cr-dd-search-wrap {
    background: rgba(248, 250, 252, .6);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
  }
  .cr-dd-search {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(15, 23, 42, .06);
  }
  .cr-dd-search:focus {
    background: #fff;
  }

  .cr-dd-list { max-height: 54vh; padding: 6px; }

  .cr-dd-opt {
    min-height: 48px;
    font-size: 14.5px;
    padding: 12px 14px;
  }
  .cr-dd-opt:hover,
  .cr-dd-opt.cr-dd-focused {
    background: rgba(241, 245, 249, .75);
  }
  .cr-dd-opt.is-active {
    background: rgba(239, 246, 255, .9);
  }
  .cr-dd-opt.is-active:hover {
    background: rgba(219, 234, 254, .95);
  }
}

/* ===== V6 HOME-PAGE SECTIONS TO HIDE (temp — remover no Elementor Fase 3) ===== */
/* 3 cards promocionais (banner-liberacao, banner-indique, banner-desconto) */
body.cr-header-v6-active .elementor-element.elementor-element-4b8655fc { display: none !important; }
/* Heading 'VEJA NOSSO ACERVO' (widget 24ffc713) */
body.cr-header-v6-active .elementor-element.elementor-element-24ffc713 { display: none !important; }
/* Menu nav com 14 carreiras principais (widget d1e341a) — a 'lista preta' */
body.cr-header-v6-active .elementor-element.elementor-element-d1e341a { display: none !important; }

/* TOP SEARCHES (Opcao C) */
.dh-ac-top-searches {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  line-height: 1.6;
}
.dh-ac-top-label {
  font-weight: 700;
  color: var(--navy, #0F172A);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 4px;
}
.dh-ac-top-chip {
  color: var(--primary, #1D4ED8);
  text-decoration: none;
  padding: 5px 11px;
  background: var(--primary-50, #EFF6FF);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  transition: all .12s;
  white-space: nowrap;
}
.dh-ac-top-chip:hover,
.dh-ac-top-chip:focus {
  background: var(--primary-100, #DBEAFE);
  color: var(--primary, #1D4ED8);
  outline: none;
}

/* ===== TELEGRAM CTA (refinado, elegante) ===== */
.mh-drawer-footer {
  display: flex !important;
  justify-content: center !important;
  padding: 12px 20px 16px !important;
  background: var(--gray-50, #F8FAFC) !important;
}

/* Botao pill branco com sotaque azul Telegram */
.mh-drawer-support.telegram {
  width: auto !important;
  max-width: 240px;
  min-height: 46px !important;
  padding: 9px 20px 9px 10px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1.5px solid #E2E8F0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s, border-color .2s;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.mh-drawer-support.telegram:hover,
.mh-drawer-support.telegram:focus-visible {
  transform: translateY(-2px);
  border-color: #229ED9 !important;
  box-shadow:
    0 8px 20px rgba(34, 158, 217, .18),
    0 2px 4px rgba(34, 158, 217, .08);
  outline: none;
}

.mh-drawer-support.telegram:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(34, 158, 217, .15);
}

/* Icone circular com gradient Telegram (sotaque de cor) */
.mh-drawer-support.telegram .sup-ico {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
  box-shadow:
    0 2px 6px rgba(34, 158, 217, .32),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .25s;
}

.mh-drawer-support.telegram:hover .sup-ico {
  transform: scale(1.06) rotate(-4deg);
}

.mh-drawer-support.telegram .sup-ico svg {
  width: 14px !important;
  height: 14px !important;
  color: #fff !important;
  fill: #fff;
  /* leve ajuste visual no icone de aviaozinho do Telegram */
  margin-left: -1px;
}

.mh-drawer-support.telegram .sup-label {
  color: var(--navy, #0F172A) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  line-height: 1;
}
/* ===== AUTOCOMPLETE V6 — resultados do endpoint cr/v1/search ===== */

/* Section wrapper */
.cr-ac-section { padding: 4px 0; }
.cr-ac-section + .cr-ac-section { border-top: 1px solid var(--gray-100, #F1F5F9); }

/* === CATEGORIAS (taxonomia detectada) === */
.cr-ac-cats { padding: 6px 0; }
.cr-ac-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  color: var(--navy, #0F172A);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.3;
  transition: background .12s;
}
.cr-ac-cat-item:hover,
.cr-ac-cat-item.is-active {
  background: var(--primary-50, #EFF6FF);
  outline: none;
}
.cr-ac-cat-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--primary, #1D4ED8);
  background: var(--primary-50, #EFF6FF);
  border-radius: 6px;
}
.cr-ac-cat-icon svg { width: 13px; height: 13px; }
.cr-ac-cat-name {
  flex: 1; min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-ac-cat-name mark {
  background: none;
  color: var(--primary, #1D4ED8);
  font-weight: 700;
}
.cr-ac-cat-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500, #64748B);
  background: var(--gray-100, #F1F5F9);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

/* === PRODUTOS === */
.cr-ac-products { padding: 6px 0; }
.cr-ac-prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: var(--navy, #0F172A);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.3;
  transition: background .12s;
}
.cr-ac-prod-item:hover,
.cr-ac-prod-item.is-active {
  background: var(--primary-50, #EFF6FF);
  outline: none;
}
.cr-ac-prod-img {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  background: var(--gray-100, #F1F5F9);
}
.cr-ac-prod-img-placeholder {
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--gray-400, #94A3B8);
}
.cr-ac-prod-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.cr-ac-prod-title {
  font-weight: 500;
  color: var(--navy, #0F172A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-ac-prod-title mark {
  background: none;
  color: var(--primary, #1D4ED8);
  font-weight: 700;
}
.cr-ac-prod-editora {
  display: none; /* mobile: oculto */
  font-size: 11.5px;
  color: var(--gray-500, #64748B);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-ac-prod-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #1D4ED8);
  margin-left: 4px;
}

/* === "Ver todos os X resultados" === */
.cr-ac-see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  color: var(--primary, #1D4ED8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--gray-100, #F1F5F9);
  background: var(--gray-50, #F8FAFC);
  transition: background .12s;
}
.cr-ac-see-all:hover,
.cr-ac-see-all.is-active {
  background: var(--primary-50, #EFF6FF);
  outline: none;
}
.cr-ac-see-all svg {
  transition: transform .18s;
}
.cr-ac-see-all:hover svg {
  transform: translateX(3px);
}

/* === DESKTOP: mais rico === */
@media (min-width: 1024px) {
  .cr-ac-prod-item {
    padding: 11px 16px;
    gap: 14px;
    font-size: 14px;
  }
  .cr-ac-prod-img { width: 48px; height: 48px; }
  .cr-ac-prod-img-placeholder { font-size: 20px; }
  .cr-ac-prod-editora { display: block; } /* mostra editora no desktop */
  .cr-ac-prod-price { font-size: 14px; }
  .cr-ac-cat-item { padding: 11px 16px; font-size: 14px; }
  .cr-ac-cat-icon { width: 30px; height: 30px; }
  .cr-ac-cat-icon svg { width: 15px; height: 15px; }
  .cr-ac-see-all { padding: 14px 16px; font-size: 13.5px; }
}

/* === Loading state === */
.dh-ac-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray-500, #64748B);
  font-size: 13px;
}

/* ============================================================================
 * FIX dropdown autocomplete mobile — quando teclado abre, dropdown ficava 
 * muito pequeno (max-height 100dvh - 220px = ~130px com teclado).
 * Agora: aumenta area disponivel + garante min-height.
 * ============================================================================ */
@media (max-width: 900px) {
    .cr-ac-dropdown {
        max-height: calc(100dvh - 130px) !important;  /* era -220px */
        min-height: 240px !important;                  /* garante 240px minimos */
    }
}

/* Itens mais compactos pra caber mais em tela pequena */
@media (max-width: 600px) {
    .cr-ac-item {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    .cr-ac-section-title {
        padding: 8px 16px 6px !important;
        font-size: 11px !important;
    }
    .cr-ac-section {
        padding: 6px 0 !important;
    }
}

/* ============================================================================
 * FIX DEFINITIVO dropdown mobile — overflow:hidden do .mh estava cortando
 * os itens. Usa position:fixed pra escapar do clip do ancestral.
 * ============================================================================ */
@media (max-width: 900px) {
    .mh .cr-ac-dropdown {
        position: fixed !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        z-index: 10000 !important;
    }
    
    /* JS precisa posicionar o top baseado no input - se nao fizer, fica abaixo do header */
    .mh .cr-ac-dropdown.is-open {
        /* Posiciona abaixo do input (~150px = header + topbar + input) */
        top: 150px !important;
    }
}

/* ============================================================================
 * AJUSTES DESKTOP - campo de busca mais visivel e proeminente
 * 1. Campo mais largo (720 vs 640) + mais alto (padding maior)
 * 2. Remove o atalho ⌘K (confunde usuario leigo)
 * 3. Borda mais definida
 * 4. Lupa maior e em cor mais forte
 * 5. Formato pill conjunto (ja era - so ajusta detalhes)
 * ============================================================================ */
@media (min-width: 1024px) {
    /* 1. Largura moderada (meio-termo 560px - antes era 640, exagerei com 720) */
    .dh-search {
        max-width: 560px !important;
    }
    
    /* Borda mais visivel + padding interno moderado */
    .dh-search-main {
        border: 1.5px solid #D1D5DB !important;
        padding: 3px !important;
    }
    
    /* 2. REMOVE o ⌘K */
    .dh-search-kbd {
        display: none !important;
    }
    
    /* 4. Lupa um pouco maior que o original */
    .dh-search-input-wrap svg {
        width: 17px !important;
        height: 17px !important;
        color: #475569 !important;
        left: 16px !important;
    }
    
    /* Input altura proporcional ao resto do header */
    .dh-search-input-wrap input {
        padding: 9px 14px 9px 42px !important;
        font-size: 14px !important;
    }
    
    /* Placeholder com mais peso pra melhor leitura */
    .dh-search-input-wrap input::placeholder {
        color: #64748B !important;
        font-weight: 400 !important;
    }
    
    /* Botoes Refinar e Pesquisar mais compactos */
    .dh-refine-btn {
        padding: 7px 12px !important;
        font-size: 13px !important;
    }
    .dh-search-btn {
        padding: 9px 20px !important;
        font-size: 13px !important;
    }
    .dh-search-btn svg,
    .dh-refine-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ============================================================================
 * FIX - Tema Porto aplicava border 1px + border-radius:0 no input,
 * causando 'linha dupla' visivel no canto inferior esquerdo do pill.
 * Forca override com especificidade alta.
 * ============================================================================ */
body.cr-header-v6-active .dh-search-input-wrap input,
body.cr-header-v6-active .dh-search-input-wrap input[type='search'],
body.cr-header-v6-active .dh-search-input-wrap input[type='text'] {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Mesmo fix pro mobile */
body.cr-header-v6-active .mh-search-input,
body.cr-header-v6-active .mh-search input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================================================================
 * FIX HOVERS - tema Porto aplicava hover laranja (rgb 255,165,0) em links
 * e hover preto em botoes. Sobrescreve mantendo paleta azul do V6.
 * ============================================================================ */

/* LOGO: hover nao muda cor - mantem azul-navy */
body.cr-header-v6-active a.dh-logo:hover,
body.cr-header-v6-active a.dh-logo:hover *,
body.cr-header-v6-active a.dh-logo:focus,
body.cr-header-v6-active a.dh-logo:focus * {
    color: var(--navy) !important;
}

/* CTAs Alugue seu Curso: hover mantem texto branco + azul mais escuro */
body.cr-header-v6-active a.dh-nav-cta,
body.cr-header-v6-active a.dh-nav-cta * {
    color: #fff !important;
}
body.cr-header-v6-active a.dh-nav-cta:hover {
    color: #fff !important;
    background: #1E40AF !important;
    transform: translateY(-1px);
}
body.cr-header-v6-active a.dh-nav-cta:hover * {
    color: #fff !important;
}

/* CTA Indique e Ganhe: verde, hover verde escuro */
body.cr-header-v6-active a.dh-nav-cta-indique,
body.cr-header-v6-active a.dh-nav-cta-indique * {
    color: #fff !important;
}
body.cr-header-v6-active a.dh-nav-cta-indique:hover {
    color: #fff !important;
    background: #047857 !important;
    transform: translateY(-1px);
}
body.cr-header-v6-active a.dh-nav-cta-indique:hover * {
    color: #fff !important;
}

/* Botao Pesquisar: hover nao pode virar preto - mantem degrade azul */
body.cr-header-v6-active .dh-search-btn:hover,
body.cr-header-v6-active button.dh-search-btn:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%) !important;
    color: #fff !important;
}

/* Links da topbar (cursos no acervo, WhatsApp): sem laranja */
body.cr-header-v6-active .dh-topbar a:hover,
body.cr-header-v6-active .dh-topbar a:hover * {
    color: #fff !important;
    opacity: 0.85;
}

/* Regra geral de seguranca: qualquer link no header que vire laranja vira azul */
body.cr-header-v6-active .dh a:hover,
body.cr-header-v6-active .dh button:hover {
    color: var(--primary, #1D4ED8) !important;
}
/* Excecoes: mantem branco em CTAs com fundo colorido */
body.cr-header-v6-active .dh .dh-nav-cta:hover,
body.cr-header-v6-active .dh .dh-nav-cta-indique:hover,
body.cr-header-v6-active .dh .dh-search-btn:hover {
    color: #fff !important;
}

/* ============================================================================
 * AJUSTE HOVER DOS 3 BOTOES DO LADO DIREITO (Entrar / Cadastrar / Carrinho)
 * - Entrar: secundario, hover discreto (cinza claro)
 * - Cadastrar: primario, hover com inversao (fundo azul + texto branco)
 * - Carrinho: icone sempre legivel (mantem branco + sombra no hover)
 * Todos com border-radius e transition consistentes.
 * ============================================================================ */

/* ENTRAR - secundario (ghost button) */
body.cr-header-v6-active .dh-auth-guest a:not(.primary),
body.cr-header-v6-active .dh-user-menu a:not(.primary) {
    padding: 9px 14px !important;
    border-radius: 10px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all .2s ease !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}
body.cr-header-v6-active .dh-auth-guest a:not(.primary):hover,
body.cr-header-v6-active .dh-user-menu a:not(.primary):hover {
    background: #F1F5F9 !important;
    color: #1D4ED8 !important;
    border-color: #E2E8F0 !important;
}

/* CADASTRAR - primario (solid button azul) */
body.cr-header-v6-active .dh-auth-guest a.primary,
body.cr-header-v6-active .dh-user-menu a.primary {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #1D4ED8, #1E40AF) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid transparent !important;
    transition: all .2s ease !important;
    box-shadow: 0 2px 8px rgba(29,78,216,.22) !important;
}
body.cr-header-v6-active .dh-auth-guest a.primary:hover,
body.cr-header-v6-active .dh-user-menu a.primary:hover {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(29,78,216,.38) !important;
}

/* CARRINHO - icon button, icone sempre visivel */
body.cr-header-v6-active .dh-cart,
body.cr-header-v6-active a.dh-cart {
    width: 42px !important; height: 42px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 10px !important;
    background: white !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    transition: all .2s ease !important;
    position: relative !important;
}
body.cr-header-v6-active .dh-cart svg,
body.cr-header-v6-active a.dh-cart svg {
    width: 18px !important; height: 18px !important;
    stroke: #0F172A !important;
    fill: none !important;
}
body.cr-header-v6-active .dh-cart:hover,
body.cr-header-v6-active a.dh-cart:hover {
    background: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(29,78,216,.30) !important;
}
body.cr-header-v6-active .dh-cart:hover svg,
body.cr-header-v6-active a.dh-cart:hover svg {
    stroke: white !important;
}
