/**
 * Header V7 — Cursos Rateio
 * Premium Institucional · paleta v2 + Phosphor Duotone + Cormorant Garamond
 * @version 7.0.0
 */

/* ============================================================================
   TOKENS
   ============================================================================ */

.cr-header-v7 {
  --cr-brand-900: #0B1F3A;
  --cr-brand-800: #10294B;
  --cr-brand-700: #163A63;
  --cr-brand-600: #1F4E79;
  --cr-brand-100: #EAF1F8;
  --cr-gold-500: #D4A73F;
  --cr-gold-600: #BC9231;
  --cr-gold-100: #FBF4E2;
  --cr-gold-050: #F3E8C8;
  --cr-green-600: #5F8F6B;
  --cr-green-700: #4E7859;
  --cr-green-200: #C9E4D0;
  --cr-bg-page: #F8F6F1;
  --cr-surface-soft: #FCFBF8;
  --cr-border: #D9DEE8;
  --cr-text-strong: #162033;
  --cr-text-body: #5B6473;
  --cr-slate-100: #F1F5F9;

  --grad-gold: linear-gradient(135deg, #D4A73F 0%, #BC9231 100%);
  --grad-dark: linear-gradient(180deg, #0B1F3A 0%, #10294B 100%);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.12);
  --shadow-gold: 0 8px 28px -8px rgba(212,167,63,0.45);
}

/* ============================================================================
   BASE
   ============================================================================ */

.cr-header-v7 .dh7,
.cr-header-v7 .dh7 *,
.cr-header-v7 .mh7,
.cr-header-v7 .mh7 * {
  box-sizing: border-box;
}
.cr-header-v7 .dh7 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border-bottom: 1px solid var(--cr-border);
  position: relative;
  z-index: 100;
}
@media (max-width: 991px) {
  .cr-header-v7 .dh7 { display: none; }
}
.cr-header-v7 .mh7 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border-bottom: 1px solid var(--cr-border);
  position: relative;
  z-index: 100;
}
@media (min-width: 992px) {
  .cr-header-v7 .mh7 { display: none; }
}


/* ============================================================================
   TOP BAR (DESKTOP)
   ============================================================================ */

.cr-header-v7 .dh7-bar {
  background: linear-gradient(180deg, var(--cr-brand-900) 0%, var(--cr-brand-800) 100%);
  color: #fff;
  padding: 13px 40px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212,167,63,0.6);
  position: relative;
  overflow: hidden;
}
.cr-header-v7 .dh7-bar::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,167,63,0.1), transparent);
  animation: dh7-bar-shine 11s linear infinite;
  pointer-events: none;
}
@keyframes dh7-bar-shine {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.cr-header-v7 .dh7-bar-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.cr-header-v7 .dh7-gift-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--cr-gold-500);
  letter-spacing: 0.01em;
}
.cr-header-v7 .dh7-gift-tag i { font-size: 14px; opacity: 0.9; }
.cr-header-v7 .dh7-gift-tag strong {
  font-weight: 600;
  color: var(--cr-gold-100);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
}
.cr-header-v7 .dh7-hairline {
  width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,167,63,0.5), transparent);
  display: inline-block;
}
.cr-header-v7 .dh7-cupom-label {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cr-header-v7 .dh7-coupon-btn {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(212,167,63,0.1);
  color: var(--cr-gold-500);
  border: 1px solid rgba(212,167,63,0.6);
  padding: 4px 12px 4px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}
.cr-header-v7 .dh7-coupon-btn::before {
  content: "\eaf6";
  font-family: 'Phosphor';
  font-weight: 400;
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--cr-gold-500);
  opacity: 0.7;
}
.cr-header-v7 .dh7-coupon-btn:hover {
  background: rgba(212,167,63,0.2);
  color: var(--cr-gold-100);
  border-color: var(--cr-gold-500);
  box-shadow: 0 0 0 4px rgba(212,167,63,0.15), inset 0 0 12px rgba(212,167,63,0.1);
}
.cr-header-v7 .dh7-coupon-btn:hover::before { opacity: 1; color: var(--cr-gold-100); }
.cr-header-v7 .dh7-coupon-btn:active { transform: scale(0.98); }
.cr-header-v7 .dh7-coupon-btn::after {
  content: "Copiar cupom";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--cr-brand-900);
  color: var(--cr-gold-100);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  border: 1px solid rgba(212,167,63,0.4);
}
.cr-header-v7 .dh7-coupon-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.cr-header-v7 .dh7-coupon-btn.copied {
  background: rgba(95,143,107,0.15);
  border-color: var(--cr-green-600);
  color: var(--cr-green-200);
}
.cr-header-v7 .dh7-coupon-btn.copied::before { content: "\e182"; color: var(--cr-green-200); opacity: 1; }
.cr-header-v7 .dh7-coupon-btn.copied::after {
  content: "Cupom copiado!";
  background: var(--cr-green-600);
  color: #fff;
  border-color: var(--cr-green-600);
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cr-header-v7 .dh7-bar-right {
  display: flex;
  gap: 22px;
  position: relative;
  z-index: 2;
  align-items: center;
}
.cr-header-v7 .dh7-bar-right a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.cr-header-v7 .dh7-bar-right a:hover { color: var(--cr-gold-500); }
.cr-header-v7 .dh7-bar-right a i { color: var(--cr-gold-500); font-size: 13px; opacity: 0.85; }
.cr-header-v7 .dh7-bar-delim { width: 1px; height: 12px; background: rgba(255,255,255,0.15); }


/* ============================================================================
   MAIN BAR
   ============================================================================ */

.cr-header-v7 .dh7-main {
  padding: 22px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  align-items: center;
}

.cr-header-v7 .dh7-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.cr-header-v7 .dh7-logo-mark { width: 56px; height: 56px; flex-shrink: 0; }
.cr-header-v7 .dh7-logo-text { display: flex; flex-direction: column; gap: 4px; }
.cr-header-v7 .dh7-logo-brand {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 0.95;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.02em;
}
.cr-header-v7 .dh7-logo-cursos { color: var(--cr-brand-900); }
.cr-header-v7 .dh7-logo-rateio { font-style: italic; font-weight: 400; color: var(--cr-gold-500); }
.cr-header-v7 .dh7-logo-tagline {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--cr-brand-600);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cr-header-v7 .dh7-logo-tagline em { font-style: normal; color: var(--cr-gold-600); }

.cr-header-v7 .dh7-search {
  position: relative;
  max-width: 620px;
  width: 100%;
}
.cr-header-v7 .dh7-search input {
  width: 100%;
  background: var(--cr-slate-100);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 12px 18px 12px 44px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--cr-text-strong);
  transition: all 0.25s;
}
.cr-header-v7 .dh7-search input::placeholder { color: var(--cr-text-body); }
.cr-header-v7 .dh7-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--cr-brand-600);
  box-shadow: 0 0 0 3px rgba(31,78,121,0.1);
}
.cr-header-v7 .dh7-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--cr-text-body);
  font-size: 16px;
}

.cr-header-v7 .dh7-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-header-v7 .dh7-icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-brand-700);
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 19px;
  text-decoration: none;
}
.cr-header-v7 .dh7-icon:hover {
  background: var(--cr-brand-100);
  border-color: var(--cr-border);
  color: var(--cr-brand-700);
}
.cr-header-v7 .dh7-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--cr-gold-500);
  color: var(--cr-brand-900);
  font-size: 9px;
  font-weight: 800;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cr-header-v7 .dh7-cta {
  background: var(--grad-gold);
  color: var(--cr-brand-900);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: var(--shadow-gold);
}
.cr-header-v7 .dh7-cta:hover {
  transform: translateY(-1px);
  color: var(--cr-brand-900);
  text-decoration: none;
}
.cr-header-v7 .dh7-cta i { font-size: 14px; }


/* ============================================================================
   NAV INFERIOR (dividida 2 lados)
   ============================================================================ */

.cr-header-v7 .dh7-nav {
  background: #fff;
  border-top: 1px solid var(--cr-border);
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  position: relative;
}
.cr-header-v7 .dh7-nav-left,
.cr-header-v7 .dh7-nav-right {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.cr-header-v7 .dh7-nav-right { margin-left: auto; }
.cr-header-v7 .dh7-nav-spacer {
  flex: 1;
  position: relative;
}
.cr-header-v7 .dh7-nav-spacer::before {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  background: var(--cr-border);
  margin: auto 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cr-header-v7 .dh7-nav-link {
  color: var(--cr-brand-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 18px;
  position: relative;
  transition: all 0.2s;
  background: transparent;
  border: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cr-header-v7 .dh7-nav-link:hover { color: var(--cr-brand-900); }
.cr-header-v7 .dh7-nav-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--cr-gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cr-header-v7 .dh7-nav-link:hover::after,
.cr-header-v7 .dh7-nav-link.active::after,
.cr-header-v7 .dh7-nav-link[aria-expanded="true"]::after { transform: scaleX(1); }

.cr-header-v7 .dh7-nav-link.has-dropdown::after { /* mantém sublinhado */ }
.cr-header-v7 .dh7-nav-link.has-dropdown::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 2px;
  opacity: 0.5;
  order: 2;
  transition: transform 0.2s;
}
.cr-header-v7 .dh7-nav-link.has-dropdown[aria-expanded="true"]::before {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

.cr-header-v7 .dh7-nav-promo {
  color: var(--cr-gold-600);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
}
.cr-header-v7 .dh7-nav-promo i { color: #DC2626; font-size: 12px; }

.cr-header-v7 .dh7-nav-live::before {
  content: "";
  width: 7px; height: 7px;
  background: #DC2626;
  border-radius: 50%;
  margin-right: 7px;
  animation: dh7-pulse-live 2s infinite;
  flex-shrink: 0;
}
@keyframes dh7-pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}


/* ============================================================================
   MEGA MENU
   ============================================================================ */

.cr-header-v7 .dh7-megamenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 60px;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-top: 3px solid var(--cr-gold-500);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.14);
  padding: 26px 28px;
  z-index: 100;
  display: none;
  width: 760px;
  max-width: calc(100vw - 80px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.cr-header-v7 .dh7-megamenu.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.cr-header-v7 .dh7-megamenu-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.cr-header-v7 .dh7-mm-section h4.dh7-mm-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--cr-brand-900);
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.01em;
}
.cr-header-v7 .dh7-mm-title .left { display: flex; align-items: center; gap: 9px; }
.cr-header-v7 .dh7-mm-title .h4-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--cr-brand-900);
  font-size: 11px;
}
.cr-header-v7 .dh7-count-badge {
  background: var(--cr-gold-050);
  color: var(--cr-gold-600);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}

/* === Carreiras === */
.cr-header-v7 .dh7-mm-careers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.cr-header-v7 .dh7-career-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 8px;
  text-decoration: none;
  color: var(--cr-text-strong);
  border-radius: 8px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cr-header-v7 .dh7-career-link::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 70%;
  background: var(--cr-gold-500);
  transition: transform 0.25s;
}
.cr-header-v7 .dh7-career-link:hover { background: rgba(212,167,63,0.06); }
.cr-header-v7 .dh7-career-link:hover::before { transform: translateY(-50%) scaleY(1); }
.cr-header-v7 .dh7-career-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--grad-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-gold-500);
  flex-shrink: 0;
  border: 1px solid rgba(212,167,63,0.2);
  box-shadow: 0 4px 10px rgba(11,31,58,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  font-size: 19px;
  transition: all 0.25s;
}
.cr-header-v7 .dh7-career-link:hover .dh7-career-icon {
  border-color: var(--cr-gold-500);
  box-shadow: 0 6px 16px rgba(11,31,58,0.3), 0 0 0 3px rgba(212,167,63,0.15);
  transform: scale(1.05);
}
.cr-header-v7 .dh7-career-name-wrap {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.cr-header-v7 .dh7-career-name {
  font-family: 'Cormorant Garamond', 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--cr-brand-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-header-v7 .dh7-career-count {
  color: var(--cr-gold-600);
  font-weight: 700;
  font-size: 11px;
  background: var(--cr-gold-050);
  padding: 1px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ============================================================================
   CTA INDIQUE E GANHE (Cream Soft)
   ============================================================================ */

.cr-header-v7 .dh7-cta-indique {
  width: 100%;
  background: linear-gradient(135deg, #FBF4E2 0%, #F3E8C8 100%);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,167,63,0.4);
  box-shadow: 0 12px 30px -12px rgba(212,167,63,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cr-header-v7 .dh7-cta-indique::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cr-gold-600) 50%, transparent 100%);
}
.cr-header-v7 .dh7-cta-indique::after {
  content: "";
  position: absolute;
  bottom: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cr-gold-600) 50%, transparent 100%);
}
.cr-header-v7 .dh7-cta-indique-pattern {
  position: absolute;
  top: -8px; right: -8px;
  width: 80px; height: 80px;
  opacity: 0.12;
  color: var(--cr-gold-600);
  pointer-events: none;
}
.cr-header-v7 .dh7-cta-indique-pattern svg { width: 100%; height: 100%; }
.cr-header-v7 .dh7-cta-indique-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-gold-600);
  margin-bottom: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cr-header-v7 .dh7-cta-indique-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cr-gold-600);
}
.cr-header-v7 .dh7-cta-indique-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
}
.cr-header-v7 .dh7-cta-indique-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cr-gold-500) 0%, var(--cr-gold-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-brand-900);
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -4px rgba(188,146,49,0.55), inset 0 -2px 4px rgba(0,0,0,0.1), inset 0 2px 4px rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.4);
}
.cr-header-v7 .dh7-cta-indique-text { flex: 1; }
.cr-header-v7 .dh7-cta-indique-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--cr-brand-900);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 2px;
}
.cr-header-v7 .dh7-cta-indique-title em { font-style: italic; color: var(--cr-gold-600); font-weight: 600; }
.cr-header-v7 .dh7-cta-indique-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--cr-gold-600);
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.cr-header-v7 .dh7-cta-indique-value sup { font-size: 13px; }
.cr-header-v7 .dh7-cta-indique-value small { font-size: 10px; opacity: 0.6; margin-left: 1px; }
.cr-header-v7 .dh7-cta-indique-desc {
  font-size: 12.5px;
  color: var(--cr-brand-700);
  line-height: 1.55;
  margin-bottom: 16px;
  position: relative;
}
.cr-header-v7 .dh7-cta-indique-desc strong { color: var(--cr-gold-600); font-weight: 700; }
.cr-header-v7 .dh7-cta-indique-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cr-brand-900);
  color: var(--cr-gold-500);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  position: relative;
  border: 1px solid rgba(212,167,63,0.3);
}
.cr-header-v7 .dh7-cta-indique-button:hover {
  background: var(--cr-brand-800);
  gap: 12px;
  border-color: var(--cr-gold-500);
  color: var(--cr-gold-500);
  text-decoration: none;
}
.cr-header-v7 .dh7-cta-indique-button i { font-size: 13px; }


/* ============================================================================
   MEGA MENU FOOTER
   ============================================================================ */

.cr-header-v7 .dh7-mm-footer {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--cr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cr-header-v7 .dh7-mm-total {
  font-size: 12.5px;
  color: var(--cr-text-body);
  font-weight: 500;
}
.cr-header-v7 .dh7-mm-total strong {
  color: var(--cr-brand-700);
  font-size: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.cr-header-v7 .dh7-mm-cta-link {
  color: var(--cr-gold-600);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cr-gold-050);
  border-radius: 8px;
  transition: all 0.2s;
}
.cr-header-v7 .dh7-mm-cta-link:hover {
  background: var(--cr-gold-100);
  gap: 12px;
  color: var(--cr-gold-600);
  text-decoration: none;
}
.cr-header-v7 .dh7-mm-cta-link i { font-size: 13px; }


/* ============================================================================
   MOBILE
   ============================================================================ */

.cr-header-v7 .mh7-bar {
  background: linear-gradient(180deg, var(--cr-brand-900) 0%, var(--cr-brand-800) 100%);
  color: #fff;
  padding: 8px 14px;
  font-size: 11px;
  text-align: center;
  border-bottom: 1px solid var(--cr-gold-500);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.cr-header-v7 .mh7-gift-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--cr-gold-500);
  font-size: 11px;
}
.cr-header-v7 .mh7-gift-tag strong {
  color: var(--cr-gold-100);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 12px;
}
.cr-header-v7 .mh7-bar .dh7-coupon-btn {
  font-size: 10.5px;
  padding: 3px 9px 3px 24px;
}
.cr-header-v7 .mh7-bar .dh7-coupon-btn::before {
  left: 7px;
  font-size: 10px;
}

.cr-header-v7 .mh7-main {
  background: #fff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--cr-border);
}
.cr-header-v7 .mh7-burger {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-brand-100);
  color: var(--cr-brand-700);
  flex-shrink: 0;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.cr-header-v7 .mh7-burger:hover { background: var(--cr-brand-100); }

.cr-header-v7 .mh7-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-decoration: none;
  min-width: 0;
}
.cr-header-v7 .mh7-logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.cr-header-v7 .mh7-logo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cr-header-v7 .mh7-logo-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 0.95;
}
.cr-header-v7 .mh7-logo-cursos { color: var(--cr-brand-900); }
.cr-header-v7 .mh7-logo-rateio { color: var(--cr-gold-500); font-style: italic; font-weight: 400; }
.cr-header-v7 .mh7-logo-tagline {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--cr-brand-600);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cr-header-v7 .mh7-icons { display: flex; gap: 4px; }
.cr-header-v7 .mh7-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-brand-700);
  position: relative;
  font-size: 16px;
  text-decoration: none;
}
.cr-header-v7 .mh7-icon:hover { background: var(--cr-brand-100); color: var(--cr-brand-700); }
.cr-header-v7 .mh7-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--cr-gold-500);
  color: var(--cr-brand-900);
  font-size: 8px;
  font-weight: 800;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cr-header-v7 .mh7-search {
  background: var(--cr-slate-100);
  padding: 10px 14px;
  border-bottom: 1px solid var(--cr-border);
  position: relative;
}
.cr-header-v7 .mh7-search input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  padding: 9px 14px 9px 36px;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cr-header-v7 .mh7-search input:focus {
  outline: none;
  border-color: var(--cr-brand-600);
}
.cr-header-v7 .mh7-search-icon {
  position: absolute;
  left: 26px; top: 50%;
  transform: translateY(-50%);
  color: var(--cr-text-body);
  font-size: 14px;
}

.cr-header-v7 .mh7-quick {
  background: #fff;
  padding: 0 6px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  border-bottom: 1px solid var(--cr-border);
  font-size: 11.5px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cr-header-v7 .mh7-quick::-webkit-scrollbar { display: none; }
.cr-header-v7 .mh7-quick a {
  padding: 10px 11px;
  color: var(--cr-brand-700);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.cr-header-v7 .mh7-quick a.active { color: var(--cr-brand-900); border-bottom: 2px solid var(--cr-gold-500); }
.cr-header-v7 .mh7-quick a.mh7-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: #DC2626;
  border-radius: 50%;
  margin-right: 5px;
  animation: dh7-pulse-live 2s infinite;
}


/* ============================================================================
   DRAWER MOBILE
   ============================================================================ */

.cr-header-v7 .mh7-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.cr-header-v7 .mh7-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cr-header-v7 .mh7-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(11,31,58,0.3);
}
.cr-header-v7 .mh7-drawer.is-open {
  transform: translateX(0);
}
.cr-header-v7 .mh7-drawer-header {
  background: linear-gradient(135deg, var(--cr-brand-900) 0%, var(--cr-brand-700) 100%);
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cr-gold-500);
}
.cr-header-v7 .mh7-drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.cr-header-v7 .mh7-drawer-logo-mark { width: 38px; height: 38px; }
.cr-header-v7 .mh7-drawer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}
.cr-header-v7 .mh7-drawer-brand .mh7-logo-cursos { color: #fff; }
.cr-header-v7 .mh7-drawer-brand .mh7-logo-rateio { color: var(--cr-gold-500); font-style: italic; font-weight: 400; }

.cr-header-v7 .mh7-drawer-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-header-v7 .mh7-drawer-close:hover { background: rgba(212,167,63,0.2); border-color: var(--cr-gold-500); }

.cr-header-v7 .mh7-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.cr-header-v7 .mh7-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--cr-text-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.cr-header-v7 .mh7-drawer-link:hover {
  background: var(--cr-gold-100);
  border-left-color: var(--cr-gold-500);
  color: var(--cr-brand-900);
}
.cr-header-v7 .mh7-drawer-link i {
  font-size: 18px;
  color: var(--cr-gold-600);
  flex-shrink: 0;
}

.cr-header-v7 .mh7-drawer-divider {
  height: 1px;
  background: var(--cr-border);
  margin: 14px 18px;
}
.cr-header-v7 .mh7-drawer-section-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-text-body);
  padding: 4px 18px 8px;
}

.cr-header-v7 .mh7-drawer-career {
  padding: 10px 18px;
}
.cr-header-v7 .mh7-drawer-career-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cr-gold-500);
  flex-shrink: 0;
  border: 1px solid rgba(212,167,63,0.2);
  font-size: 16px;
}
.cr-header-v7 .mh7-drawer-career-icon i { color: var(--cr-gold-500); font-size: 16px; }
.cr-header-v7 .mh7-drawer-career-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  color: var(--cr-brand-900);
}
.cr-header-v7 .mh7-drawer-career-count {
  color: var(--cr-gold-600);
  font-weight: 700;
  font-size: 10px;
  background: var(--cr-gold-050);
  padding: 1px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}

.cr-header-v7 .mh7-drawer-live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: #DC2626;
  border-radius: 50%;
  margin-right: 8px;
  animation: dh7-pulse-live 2s infinite;
  flex-shrink: 0;
}

.cr-header-v7 .mh7-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 18px 24px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FBF4E2 0%, #F3E8C8 100%);
  color: var(--cr-brand-900);
  border-radius: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(212,167,63,0.4);
  box-shadow: 0 6px 16px -6px rgba(212,167,63,0.5);
}
.cr-header-v7 .mh7-drawer-cta i { color: var(--cr-gold-600); font-size: 18px; }


/* ============================================================================
   ACESSIBILIDADE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  .cr-header-v7 *,
  .cr-header-v7 *::before,
  .cr-header-v7 *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.cr-header-v7 .dh7-coupon-btn:focus-visible,
.cr-header-v7 .dh7-nav-link:focus-visible,
.cr-header-v7 .dh7-cta:focus-visible,
.cr-header-v7 .mh7-burger:focus-visible {
  outline: 2px solid var(--cr-gold-500);
  outline-offset: 2px;
}


/* ============================================================================
   VIEWPORT VISIBILITY · V7
   Mostra .dh7 (desktop) em ≥992px, .mh7 (mobile) em ≤991px
   Resolve renderização duplicada compatível com FlyingPress cache
   ============================================================================ */
.dh7-wrapper { display: none; }
.mh7-wrapper { display: block; }

@media (min-width: 992px) {
  .dh7-wrapper { display: block; }
  .mh7-wrapper { display: none; }
}


/* ============================================================================
   STICKY HEADER · V7
   Header acompanha scroll em desktop e mobile (UX padrão profissional)
   ============================================================================ */
.dh7-wrapper,
.mh7-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Drawer mobile não intercepta cliques quando fechado
   (transform:translateX -100% deixa visível mas fora da tela,
   o que faz interceptar pointer events e bloquear toques no header) */
.mh7-drawer {
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.mh7-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

/* Overlay também só ativo quando drawer aberto */
.mh7-drawer-overlay {
  pointer-events: none;
}
.mh7-drawer-overlay.is-open {
  pointer-events: auto;
}


/* ============================================================================
   DRAWER ANIMATION FIX · V7
   Slide-in da direita + overlay com fade + body lock + close button
   ============================================================================ */

/* Drawer container · slide da direita */
.mh7-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 380px);
  max-width: 380px;
  background: #fff;
  box-shadow: -8px 0 32px -8px rgba(11,31,58,0.25);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0.32, 1);
  will-change: transform;
}
.mh7-drawer:not([hidden]) { display: flex; }
.mh7-drawer.is-open {
  transform: translateX(0);
}

/* Overlay · fade + blur sutil */
.mh7-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease-out, visibility 250ms ease-out;
}
.mh7-drawer-overlay:not([hidden]) { display: block; }
.mh7-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Drawer header · logo lockup + botão fechar */
.mh7-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #D9DEE8;
  flex-shrink: 0;
  background: #FCFBF8;
}
.mh7-drawer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.mh7-drawer-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
}
.mh7-drawer-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #D9DEE8;
  background: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #163A63;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 12px;
}
.mh7-drawer-close:hover {
  background: #EAF1F8;
  color: #0B1F3A;
  border-color: #163A63;
}

/* Drawer body · scroll vertical */
.mh7-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 24px;
}

/* AUTH cards no topo · destaque premium */
.mh7-drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.mh7-drawer-auth-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #D9DEE8;
  background: #FCFBF8;
  transition: all 0.2s;
  position: relative;
}
.mh7-drawer-auth-link.primary {
  background: linear-gradient(135deg, #0B1F3A 0%, #163A63 100%);
  border-color: rgba(212,167,63,0.25);
  color: #fff;
}
.mh7-drawer-auth-link.primary > i:first-child {
  color: #D4A73F;
  font-size: 26px;
  flex-shrink: 0;
}
.mh7-drawer-auth-link.secondary {
  background: linear-gradient(135deg, #FBF4E2 0%, #F3E8C8 100%);
  border-color: rgba(212,167,63,0.4);
}
.mh7-drawer-auth-link.secondary > i:first-child {
  color: #BC9231;
  font-size: 24px;
  flex-shrink: 0;
}
.mh7-drawer-auth-link span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mh7-drawer-auth-link strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mh7-drawer-auth-link.primary strong { color: #fff; }
.mh7-drawer-auth-link.secondary strong { color: #0B1F3A; }
.mh7-drawer-auth-link small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mh7-drawer-auth-link.primary small { color: rgba(255,255,255,0.6); }
.mh7-drawer-auth-link.secondary small { color: #5B6473; }
.mh7-drawer-auth-arrow {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s;
}
.mh7-drawer-auth-link.primary .mh7-drawer-auth-arrow { color: #D4A73F; opacity: 0.7; }
.mh7-drawer-auth-link.secondary .mh7-drawer-auth-arrow { color: #BC9231; }
.mh7-drawer-auth-link:hover .mh7-drawer-auth-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Divider mais sutil */
.mh7-drawer-divider {
  height: 1px;
  background: #D9DEE8;
  margin: 14px 0;
}

/* Body lock quando drawer aberto */
body.mh7-drawer-locked {
  overflow: hidden;
  touch-action: none;
}

/* ============================================================================
   REMOÇÃO DO PULSE VERMELHO · "Inscrições"
   ============================================================================ */
.dh7-nav-live::before,
.dh7-nav-live::after,
.mh7-drawer-live::before,
.mh7-live::before { display: none !important; }

.dh7-nav-live,
.mh7-drawer-live,
.mh7-live { animation: none !important; }


/* ============================================================================
   DRAWER FIXES (4 problemas) · 2026-04-26
   1. Logo lockup horizontal maior e nítido no drawer
   2. Removido pulso vermelho de "Inscrições" (paleta v2 estrita)
   ============================================================================ */

/* (1) LOGO LOCKUP HORIZONTAL — drawer mobile */
.cr-header-v7 .mh7-drawer-logo {
  flex: 1;
  min-width: 0;
}
.cr-header-v7 .mh7-drawer-logo-img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: brightness(0) invert(1) sepia(0) saturate(0) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  /* Como o SVG tem cores fixas (marinho + dourado), em fundo escuro do header
     do drawer precisamos invertê-lo. Vamos usar versão com mask que respeita as cores: */
}
/* Override: mostrar SVG nas cores originais (marinho + dourado) sobre fundo claro */
.cr-header-v7 .mh7-drawer-logo-img {
  filter: none;
}
/* Header do drawer fica mais claro pra logo aparecer com cores originais */
.cr-header-v7 .mh7-drawer-header {
  background: #FBF4E2; /* gold-100 */
  border-bottom: 1px solid var(--cr-gold-500);
}
/* Botão fechar tem que ter contraste no novo fundo claro */
.cr-header-v7 .mh7-drawer-close {
  color: var(--cr-brand-900);
  background: rgba(11,31,58,0.06);
  border: 1px solid rgba(11,31,58,0.15);
}
.cr-header-v7 .mh7-drawer-close:hover {
  background: rgba(11,31,58,0.12);
  border-color: var(--cr-brand-700);
}

/* (2) REMOVER PULSO VERMELHO de "Inscrições" — paleta v2 estrita */
.cr-header-v7 .dh7-nav-live::before,
.cr-header-v7 .mh7-drawer-live::before,
.cr-header-v7 .mh7-quick a.mh7-live::before {
  display: none !important;
  animation: none !important;
}
.cr-header-v7 .dh7-nav-live,
.cr-header-v7 .mh7-drawer-live,
.cr-header-v7 .mh7-quick a.mh7-live {
  /* mantém a tipografia normal, sem indicador agressivo */
}


/* ============================================================================
   BTN-CLOSE-V2 · Botão fechar drawer · ESTILO B "Marinho com Anel" · 2026-04-26
   Sobrescreve regras anteriores em conflito (linhas 1035, 1295, 1455)
   ============================================================================ */
.cr-header-v7 .mh7-drawer-close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--cr-brand-900) 0%, var(--cr-brand-700) 100%) !important;
  color: var(--cr-gold-500) !important;
  border: 1.5px solid var(--cr-gold-500) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px -2px rgba(11,31,58,0.3),
              0 0 0 3px rgba(212,167,63,0.15) !important;
  flex-shrink: 0 !important;
  position: relative !important;
  padding: 0 !important;
}
/* Anel tracejado externo (estilo "selo institucional") */
.cr-header-v7 .mh7-drawer-close::before {
  content: "" !important;
  position: absolute !important;
  inset: -5px !important;
  border-radius: 50% !important;
  border: 1px dashed rgba(212,167,63,0.35) !important;
  pointer-events: none !important;
}
.cr-header-v7 .mh7-drawer-close:hover {
  background: linear-gradient(135deg, var(--cr-brand-800) 0%, var(--cr-brand-600) 100%) !important;
  transform: rotate(90deg) !important;
  box-shadow: 0 6px 18px -2px rgba(11,31,58,0.4),
              0 0 0 4px rgba(212,167,63,0.25) !important;
  border-color: var(--cr-gold-500) !important;
  color: var(--cr-gold-500) !important;
}
.cr-header-v7 .mh7-drawer-close:active {
  transform: rotate(90deg) scale(0.95) !important;
}
/* Garante que o ícone fique com peso bold pra contraste */
.cr-header-v7 .mh7-drawer-close i {
  font-weight: bold !important;
  line-height: 1 !important;
}


/* ============================================================================
   MOBILE-BIGGER-V2 · Header mobile · TUDO MAIOR + CENTRALIZADO · 2026-04-26
   Aprovado mockup B (logo 50px, texto 26px, ícones 44px, etc)
   ============================================================================ */

/* === BAR PROMO — Cupom 5% OFF === */
.cr-header-v7 .mh7-bar {
  padding: 12px 16px !important;
  min-height: 56px !important;
  gap: 10px !important;
}
.cr-header-v7 .mh7-bar i.ph-gift,
.cr-header-v7 .mh7-gift-tag i {
  font-size: 18px !important;
}
.cr-header-v7 .mh7-bar strong,
.cr-header-v7 .mh7-gift-tag strong {
  font-size: 13.5px !important;
}
.cr-header-v7 .mh7-bar .mh7-coupon,
.cr-header-v7 .mh7-bar .dh7-coupon-btn {
  font-size: 12.5px !important;
  padding: 5px 12px 5px 28px !important;
  letter-spacing: 0.06em !important;
}
.cr-header-v7 .mh7-bar .mh7-coupon::before,
.cr-header-v7 .mh7-bar .dh7-coupon-btn::before {
  font-size: 13px !important;
  left: 9px !important;
}
.cr-header-v7 .mh7-gift-tag {
  gap: 7px !important;
}

/* === MAIN ROW — Logo centralizado + ícones maiores === */
.cr-header-v7 .mh7-main {
  padding: 14px 14px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr 44px !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Burger ☰ → 44×44 */
.cr-header-v7 .mh7-burger {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  background: var(--cr-brand-100) !important;
  border: 1px solid var(--cr-border) !important;
  color: var(--cr-brand-700) !important;
}
.cr-header-v7 .mh7-burger i {
  font-size: 22px !important;
}

/* Logo container · centralizado (símbolo + texto LADO A LADO) */
.cr-header-v7 .mh7-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: center !important;
  text-decoration: none !important;
  flex: 1 !important;
  min-width: 0 !important;
}
/* Símbolo (estrela radial) → 50×50 */
.cr-header-v7 .mh7-logo-mark {
  width: 50px !important;
  height: 50px !important;
  flex-shrink: 0 !important;
}
.cr-header-v7 .mh7-logo-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
/* Texto "CursosRateio" → 26px */
.cr-header-v7 .mh7-logo-brand {
  font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: 26px !important;
  line-height: 0.95 !important;
  letter-spacing: -0.01em !important;
}
/* Tagline → 9px legível */
.cr-header-v7 .mh7-logo-tagline {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
}

/* === ÍCONES (carrinho) === */
.cr-header-v7 .mh7-icons {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}
.cr-header-v7 .mh7-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: var(--cr-brand-100) !important;
  border: 1px solid var(--cr-border) !important;
  color: var(--cr-brand-700) !important;
  font-size: 20px !important;
  position: relative !important;
}
.cr-header-v7 .mh7-icon i {
  font-size: 20px !important;
}
/* Badge "3" do carrinho → 18×18 com borda branca */
.cr-header-v7 .mh7-icon .badge,
.cr-header-v7 .mh7-icon .mh7-badge,
.cr-header-v7 .mh7-icons .badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: var(--cr-gold-500) !important;
  color: var(--cr-brand-900) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: 0 !important;
}


/* ============================================================================
   SEARCH-FILTER-V2 · Filtro de busca · 2026-04-26
   Desktop: botão Refinar + painel desliza · Mobile: ícone funnel + bottom-sheet
   ============================================================================ */

/* === DESKTOP · Wrapper + botão Refinar === */
.cr-header-v7 .dh7-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 720px;
}
.cr-header-v7 .dh7-search-wrapper .dh7-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.cr-header-v7 .dh7-search-wrapper input[type="search"] {
  padding-right: 130px; /* espaço pro botão Refinar */
}
.cr-header-v7 .dh7-refine-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--cr-border);
  color: var(--cr-brand-700);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cr-header-v7 .dh7-refine-btn:hover {
  background: var(--cr-brand-100);
  border-color: var(--cr-brand-600);
}
.cr-header-v7 .dh7-refine-btn[aria-expanded="true"] {
  background: var(--cr-brand-900);
  color: var(--cr-gold-500);
  border-color: var(--cr-brand-900);
}
.cr-header-v7 .dh7-refine-btn i { font-size: 14px; line-height: 1; }
.cr-header-v7 .dh7-refine-chev {
  transition: transform 0.2s;
  font-size: 12px !important;
}
.cr-header-v7 .dh7-refine-btn[aria-expanded="true"] .dh7-refine-chev {
  transform: rotate(180deg);
}

/* === DESKTOP · Painel Refinar === */
.cr-header-v7 .dh7-refine-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--cr-surface-soft, #FCFBF8);
  border: 1px solid var(--cr-gold-500);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11,31,58,0.18);
  padding: 22px 22px;
  z-index: 100;
  animation: dh7-refine-fadein 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cr-header-v7 .dh7-refine-panel[hidden] { display: none; }
@keyframes dh7-refine-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cr-header-v7 .dh7-refine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.cr-header-v7 .dh7-refine-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cr-header-v7 .dh7-refine-field label {
  font-family: 'Fraunces', serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cr-brand-700);
  letter-spacing: 0.02em;
}
.cr-header-v7 .dh7-refine-field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  padding: 10px 30px 10px 12px;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--cr-brand-900);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231F4E79' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.cr-header-v7 .dh7-refine-field select:hover,
.cr-header-v7 .dh7-refine-field select:focus {
  outline: none;
  border-color: var(--cr-gold-500);
  box-shadow: 0 0 0 3px rgba(212,167,63,0.15);
}


/* === MOBILE · Wrapper search + botão filtro === */
.cr-header-v7 .mh7-search-wrapper {
  position: relative;
}
.cr-header-v7 .mh7-search-wrapper .mh7-search {
  position: relative;
  display: flex;
  align-items: center;
}
.cr-header-v7 .mh7-search-wrapper input[type="search"] {
  padding-right: 50px;
  width: 100%;
}
.cr-header-v7 .mh7-filter-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cr-brand-100);
  border: 1px solid var(--cr-border);
  color: var(--cr-brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-header-v7 .mh7-filter-btn:hover,
.cr-header-v7 .mh7-filter-btn[aria-expanded="true"] {
  background: var(--cr-brand-900);
  color: var(--cr-gold-500);
  border-color: var(--cr-brand-900);
}

/* === MOBILE · Bottom-sheet === */
.cr-header-v7 .mh7-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.cr-header-v7 .mh7-filter-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cr-header-v7 .mh7-filter-overlay[hidden] { display: block !important; opacity: 0; pointer-events: none; }

.cr-header-v7 .mh7-filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  box-shadow: 0 -16px 40px rgba(11,31,58,0.25);
}
.cr-header-v7 .mh7-filter-sheet.is-open {
  transform: translateY(0);
}
.cr-header-v7 .mh7-filter-sheet[hidden] { display: flex !important; transform: translateY(100%); }

.cr-header-v7 .mh7-filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cr-border);
  background: var(--cr-gold-100);
  border-radius: 18px 18px 0 0;
  position: relative;
}
.cr-header-v7 .mh7-filter-sheet-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  background: rgba(11,31,58,0.18);
  border-radius: 999px;
}
.cr-header-v7 .mh7-filter-sheet-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--cr-brand-900);
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.cr-header-v7 .mh7-filter-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11,31,58,0.06);
  border: 1px solid rgba(11,31,58,0.15);
  color: var(--cr-brand-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.cr-header-v7 .mh7-filter-sheet-close:hover {
  background: var(--cr-brand-900);
  color: var(--cr-gold-500);
}

.cr-header-v7 .mh7-filter-sheet-body {
  padding: 20px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.cr-header-v7 .mh7-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.cr-header-v7 .mh7-filter-field:last-child { margin-bottom: 0; }
.cr-header-v7 .mh7-filter-field label {
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--cr-brand-700);
  letter-spacing: 0.02em;
}
.cr-header-v7 .mh7-filter-field select {
  width: 100%;
  background: var(--cr-surface-soft, #FCFBF8);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--cr-brand-900);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F4E79' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cr-header-v7 .mh7-filter-field select:focus {
  outline: none;
  border-color: var(--cr-gold-500);
  box-shadow: 0 0 0 3px rgba(212,167,63,0.15);
}

.cr-header-v7 .mh7-filter-sheet-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--cr-border);
  background: var(--cr-surface-soft, #FCFBF8);
}
.cr-header-v7 .mh7-filter-btn-clear {
  background: transparent;
  border: 1px solid var(--cr-border);
  color: var(--cr-text-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-header-v7 .mh7-filter-btn-clear:hover {
  background: var(--cr-brand-100);
  border-color: var(--cr-brand-600);
  color: var(--cr-brand-700);
}
.cr-header-v7 .mh7-filter-btn-apply {
  background: linear-gradient(135deg, var(--cr-gold-500) 0%, var(--cr-gold-600) 100%);
  color: var(--cr-brand-900);
  border: 1px solid rgba(255,255,255,0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -4px rgba(188,146,49,0.4);
}
.cr-header-v7 .mh7-filter-btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -4px rgba(188,146,49,0.55);
}

body.mh7-filter-locked { overflow: hidden; }
