/* ============================================================
   FEEDER DIGITAL THEME — main.css
   ============================================================ */

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

:root {
  --fd-primary: #6C3CE1;
  --fd-primary-dark: #5228C8;
  --fd-primary-light: #F3EFFE;
  --fd-gray-50:  #F8F9FA;
  --fd-gray-100: #F1F3F5;
  --fd-gray-200: #E9ECEF;
  --fd-gray-400: #ADB5BD;
  --fd-gray-600: #6C757D;
  --fd-gray-800: #343A40;
  --fd-gray-900: #212529;
  --fd-white: #FFFFFF;
  --fd-success: #2ECC71;
  --fd-radius: 12px;
  --fd-radius-sm: 8px;
  --fd-radius-lg: 20px;
  --fd-shadow: 0 4px 24px rgba(0,0,0,.08);
  --fd-shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --fd-transition: .22s cubic-bezier(.4,0,.2,1);
  --fd-container: 1240px;
  --fd-font-display: 'Plus Jakarta Sans', sans-serif;
  --fd-font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fd-font-body);
  color: var(--fd-gray-800);
  background: var(--fd-white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.fd-container {
  width: 100%;
  max-width: var(--fd-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--fd-radius);
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--fd-transition);
  white-space: nowrap;
  text-decoration: none;
}
.fd-btn-primary {
  background: var(--fd-primary);
  color: var(--fd-white);
  box-shadow: 0 4px 16px rgba(var(--fd-primary-rgb),.35);
}
.fd-btn-primary:hover {
  background: var(--fd-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--fd-primary-rgb),.45);
}
.fd-btn-outline {
  background: transparent;
  color: var(--fd-primary);
  border: 2px solid var(--fd-primary);
}
.fd-btn-outline:hover {
  background: var(--fd-primary-light);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.fd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--fd-white);
  border-bottom: 1px solid var(--fd-gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.fd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.fd-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fd-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.fd-logo-text {
  font-family: var(--fd-font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--fd-primary);
  letter-spacing: -.3px;
}

/* Nav */
.fd-nav { display: flex; align-items: center; gap: 4px; }
.fd-nav a {
  padding: 8px 16px;
  border-radius: var(--fd-radius-sm);
  font-family: var(--fd-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fd-gray-700, #495057);
  transition: var(--fd-transition);
}
.fd-nav a:hover { background: var(--fd-primary-light); color: var(--fd-primary); }
.fd-nav a.active { color: var(--fd-primary); }
.fd-nav li { list-style: none; }
.fd-nav .current-menu-item > a,
.fd-nav .current_page_item > a,
.fd-nav .current-menu-ancestor > a { color: var(--fd-primary); background: var(--fd-primary-light); }

/* Header actions */
.fd-header-actions { display: flex; align-items: center; gap: 12px; }
.fd-cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--fd-radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--fd-gray-700, #495057);
  transition: var(--fd-transition);
}
.fd-cart-link svg { width: 20px; height: 20px; }
.fd-cart-link:hover { background: var(--fd-gray-100); color: var(--fd-primary); }
.fd-cart-count {
  background: var(--fd-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.fd-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fd-gray-800);
}
.fd-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav overlay */
.fd-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.fd-mobile-nav.open { display: block; }
.fd-mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--fd-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.fd-mobile-nav.open .fd-mobile-nav-inner { transform: translateX(0); }
.fd-mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--fd-gray-600);
}
.fd-mobile-nav-close svg { width: 24px; height: 24px; }
.fd-mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--fd-radius-sm);
  font-family: var(--fd-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fd-gray-800);
  transition: var(--fd-transition);
  border-bottom: 1px solid var(--fd-gray-100);
}
.fd-mobile-nav a:hover { background: var(--fd-primary-light); color: var(--fd-primary); }
.fd-mobile-nav-inner li { list-style: none; }
.fd-mobile-nav-inner .current-menu-item > a,
.fd-mobile-nav-inner .current_page_item > a { color: var(--fd-primary); }

/* ══════════════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════════════ */
.fd-banner {
  width: 100%;
  overflow: hidden;
  max-height: 480px;
  aspect-ratio: 21 / 6; /* mantém proporção previsível em telas largas */
  background: var(--fd-gray-100);
}
.fd-banner a { display: block; height: 100%; }
.fd-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 480px;
  transition: transform .4s ease;
}
.fd-banner a:hover img { transform: scale(1.01); }
.fd-banner-placeholder {
  height: 320px;
  background: linear-gradient(135deg, var(--fd-primary) 0%, var(--fd-primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: white;
}
.fd-banner-placeholder h2 {
  font-family: var(--fd-font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.fd-banner-placeholder p {
  font-size: 16px;
  opacity: .85;
  max-width: 500px;
  margin-bottom: 32px;
}

/* ── Slider rotativo (até 3 banners) ──────────────────────────────────── */
.fd-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 480px;
  aspect-ratio: 21 / 6;
  background: var(--fd-gray-100);
}
.fd-banner-slider-track { position: relative; width: 100%; height: 100%; }
.fd-banner-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1;
  transition: opacity .5s ease;
}
.fd-banner-slide.is-active { opacity: 1 !important; visibility: visible !important; z-index: 2; }
.fd-banner-slide a { display: block; height: 100%; }
.fd-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fd-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--fd-transition);
}
.fd-banner-arrow:hover { background: rgba(0,0,0,.55); }
.fd-banner-arrow-prev { left: 16px; }
.fd-banner-arrow-next { right: 16px; }
.fd-banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.fd-banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
  transition: var(--fd-transition);
}
.fd-banner-dot.is-active { background: #fff; width: 22px; border-radius: 5px; }

/* ══════════════════════════════════════════════════════════════
   SEÇÃO DESTAQUES DE CURSOS (HOME)
══════════════════════════════════════════════════════════════ */
.fd-section { padding: 64px 0; }
.fd-section-title {
  font-family: var(--fd-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--fd-gray-900);
  margin-bottom: 8px;
}
.fd-section-subtitle {
  color: var(--fd-gray-600);
  font-size: 15px;
  margin-bottom: 40px;
}
.fd-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.fd-section-header-text { flex: 1; }

/* Grade 4 cards */
.fd-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card de curso */
.fd-course-card {
  background: var(--fd-white);
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  transition: var(--fd-transition);
  border: 1px solid var(--fd-gray-200);
  display: flex;
  flex-direction: column;
}
.fd-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fd-shadow-lg);
  border-color: var(--fd-primary);
}
.fd-course-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--fd-gray-100);
}
.fd-course-card-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--fd-primary-light), var(--fd-gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.fd-course-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fd-course-card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--fd-primary);
  margin-bottom: 8px;
}
.fd-course-card-title {
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fd-gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}
.fd-course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--fd-gray-100);
}
.fd-course-card-price {
  font-family: var(--fd-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--fd-primary);
}
.fd-course-card-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--fd-gray-400);
  text-decoration: line-through;
  margin-right: 4px;
}
.fd-course-card-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--fd-radius-sm);
  background: var(--fd-primary);
  color: white;
  font-weight: 700;
  transition: var(--fd-transition);
}
.fd-course-card-btn:hover { background: var(--fd-primary-dark); }

/* ══════════════════════════════════════════════════════════════
   SEÇÃO DE PLANOS
══════════════════════════════════════════════════════════════ */
.fd-plans-section {
  background: var(--fd-gray-50);
  padding: 80px 0;
}
.fd-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.fd-plan-card {
  background: var(--fd-white);
  border-radius: var(--fd-radius-lg);
  padding: 36px 28px;
  border: 2px solid var(--fd-gray-200);
  transition: var(--fd-transition);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fd-plan-card:hover {
  border-color: var(--fd-primary);
  transform: translateY(-4px);
  box-shadow: var(--fd-shadow-lg);
}
.fd-plan-card.highlighted {
  border-color: var(--fd-primary);
  box-shadow: 0 8px 40px rgba(var(--fd-primary-rgb),.18);
}
.fd-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fd-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.fd-plan-name {
  font-family: var(--fd-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--fd-gray-900);
  margin-bottom: 8px;
}
.fd-plan-price {
  font-family: var(--fd-font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--fd-primary);
  line-height: 1.1;
  margin: 16px 0 4px;
}
.fd-plan-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--fd-gray-600);
}
.fd-plan-desc {
  font-size: 14px;
  color: var(--fd-gray-600);
  margin-bottom: 24px;
}
.fd-plan-btn {
  margin-top: auto;
  display: block;
  padding: 14px;
  border-radius: var(--fd-radius);
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 15px;
  background: var(--fd-primary);
  color: white;
  transition: var(--fd-transition);
  text-align: center;
}
.fd-plan-btn:hover { background: var(--fd-primary-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   LOJA WOOCOMMERCE
══════════════════════════════════════════════════════════════ */
.fd-shop-wrapper { background: var(--fd-white); padding: 48px 0 80px; }
.fd-shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar categorias */
.fd-shop-sidebar {}
.fd-shop-sidebar-title {
  font-family: var(--fd-font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fd-gray-600);
  margin-bottom: 12px;
}
.fd-cat-list { display: flex; flex-direction: column; gap: 4px; }
.fd-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--fd-radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--fd-gray-700, #495057);
  transition: var(--fd-transition);
}
.fd-cat-list a:hover,
.fd-cat-list a.current-cat { background: var(--fd-primary-light); color: var(--fd-primary); font-weight: 700; }
.fd-cat-count {
  font-size: 12px;
  background: var(--fd-gray-100);
  color: var(--fd-gray-600);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* Mobile filter toggle */
.fd-filter-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--fd-gray-100);
  border: none;
  border-radius: var(--fd-radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  text-align: left;
  align-items: center;
  gap: 8px;
}
.fd-filter-toggle svg { width: 18px; height: 18px; }

/* Shop products grid */
.fd-shop-products { min-width: 0; }
.fd-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fd-gray-200);
}
.fd-shop-count { font-size: 14px; color: var(--fd-gray-600); }

/* WooCommerce product loop override */
.woocommerce ul.products {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
/* IMPORTANTE: excluímos aqui qualquer item que já venha oculto via estilo
   inline — display:none, opacity:0 ou visibility:hidden (comum em
   templates internos do WooCommerce ou de plugins, ex.: "quick view").
   Antes, o nosso "display:flex !important" se aplicava a TODOS os
   li.product sem exceção — inclusive esses ocultos — e como !important
   vence estilo inline sem !important, isso forçava esses itens escondidos
   a aparecerem como cards vazios/invisíveis ocupando uma vaga da grade
   (causa raiz do "card fantasma" que desalinhava a 1ª linha). */
.woocommerce ul.products li.product:not([style*="display: none"]):not([style*="display:none"]):not([style*="opacity: 0"]):not([style*="opacity:0"]):not([style*="visibility: hidden"]):not([style*="visibility:hidden"]):not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-width: 0;
  background: var(--fd-white);
  border-radius: var(--fd-radius-lg);
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  border: 1px solid var(--fd-gray-200);
  transition: var(--fd-transition);
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}
/* Proteção extra: um card de produto "quebrado" (sem título) às vezes fica
   presente no HTML mas invisível — como o grid não sabe disso, ele ocupa
   uma vaga da grade normalmente e empurra visualmente os cards reais uma
   posição adiante (ex: 1ª linha aparece com só 3 cards). Isso remove esse
   card fantasma completamente do fluxo do grid, fechando o buraco. */
.woocommerce ul.products li.product:not(:has(.woocommerce-loop-product__title)) {
  display: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--fd-shadow-lg);
  border-color: var(--fd-primary);
}

/* Selo "Oferta" — usa a cor da marca (definida em Personalizar > Minha
   Marca > Logo e Nome) em vez do amarelo/oliva padrão do WooCommerce. */
.woocommerce span.onsale {
  background: var(--fd-primary-dark) !important;
  color: var(--fd-white) !important;
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 12px;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  top: 12px;
  right: 12px;
  left: auto;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fd-gray-900);
  padding: 16px 16px 8px !important;
  flex-grow: 1; /* empurra preço/botão para o final, mesmo com títulos de tamanhos diferentes */
}
.woocommerce ul.products li.product .price {
  font-family: var(--fd-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--fd-primary) !important;
  padding: 0 16px 16px !important;
}
.woocommerce ul.products li.product .button {
  display: block;
  margin: auto 16px 16px !important; /* margin-top:auto ancora o botão sempre no rodapé do card */
  background: var(--fd-primary) !important;
  color: white !important;
  border-radius: var(--fd-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center;
  padding: 10px !important;
  transition: var(--fd-transition) !important;
  border: none !important;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--fd-primary-dark) !important;
}

/* WooCommerce pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--fd-radius-sm) !important;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--fd-gray-200) !important;
  color: var(--fd-gray-700, #495057) !important;
  transition: var(--fd-transition);
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--fd-primary) !important;
  color: white !important;
  border-color: var(--fd-primary) !important;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.fd-footer {
  background: var(--fd-gray-900);
  color: var(--fd-gray-400);
  padding: 56px 0 0;
}
.fd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.fd-footer-grid.fd-footer-grid--4col {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.fd-footer-app {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-footer-app img {
  max-width: 160px;
  height: auto;
  display: block;
}
.fd-footer-brand {}
.fd-footer-logo {
  margin-bottom: 16px;
}
.fd-footer-logo .fd-logo-img { height: 36px; filter: brightness(0) invert(1); opacity: .9; }
.fd-footer-logo .fd-logo-text { color: white; font-size: 18px; }
.fd-footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fd-gray-400);
  margin-bottom: 20px;
  max-width: 280px;
}
.fd-social-links { display: flex; gap: 10px; }
.fd-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--fd-gray-400);
  transition: var(--fd-transition);
}
.fd-social-link svg { width: 16px; height: 16px; }
.fd-social-link:hover { background: var(--fd-primary); color: white; }

.fd-footer-col-title {
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fd-footer-links { display: flex; flex-direction: column; gap: 10px; }
.fd-footer-links a {
  font-size: 14px;
  color: var(--fd-gray-400);
  transition: var(--fd-transition);
}
.fd-footer-links a:hover { color: white; padding-left: 4px; }

.fd-footer-contact { display: flex; flex-direction: column; gap: 12px; }
.fd-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fd-gray-400);
}
.fd-footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.fd-footer-contact-item a { color: var(--fd-gray-400); transition: var(--fd-transition); }
.fd-footer-contact-item a:hover { color: white; }

/* Selos */
.fd-seals {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fd-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fd-gray-400);
  opacity: .8;
}
.fd-seal svg { width: 28px; height: auto; }
.fd-seal span { display: none; }
.fd-seal:first-child { /* Pagamento Seguro */ }
.fd-seal:first-child svg { width: 18px; }
.fd-seal:first-child span { display: inline; font-size: 12px; }

/* Footer bottom */
.fd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fd-footer-bottom p { font-size: 13px; color: var(--fd-gray-600, #6C757D); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .fd-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .fd-shop-layout { grid-template-columns: 200px 1fr; gap: 24px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fd-footer-grid,
  .fd-footer-grid.fd-footer-grid--4col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .fd-nav,
  .fd-header-actions .fd-btn { display: none; }
  .fd-menu-toggle { display: flex; }

  .fd-courses-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Banner: no mobile o formato wide (21:6) fica fininho e quase some.
     Aqui ganha mais altura, em formato quase quadrado, para ficar visível. */
  .fd-banner, .fd-banner-slider { aspect-ratio: 4 / 5; max-height: 520px; }
  .fd-banner-placeholder { height: auto; aspect-ratio: 4 / 5; max-height: 520px; }

  .fd-shop-layout { grid-template-columns: 1fr; }
  .fd-shop-sidebar { display: none; }
  .fd-shop-sidebar.open { display: block; }
  .fd-filter-toggle { display: flex; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .fd-plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 40px auto 0; }

  .fd-footer-grid,
  .fd-footer-grid.fd-footer-grid--4col { grid-template-columns: 1fr; gap: 36px; }
  .fd-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .fd-courses-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .fd-container { padding: 0 16px; }
  .fd-section { padding: 48px 0; }
  .fd-banner, .fd-banner-slider { aspect-ratio: 1 / 1; max-height: 420px; }
  .fd-banner-placeholder { aspect-ratio: 1 / 1; max-height: 420px; }
  .fd-banner-arrow { width: 32px; height: 32px; font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   RESUMO DO PEDIDO (checkout) — protege contra a coluna do nome
   do produto encolher demais e o texto quebrar letra por letra
══════════════════════════════════════════════════════════════ */
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.wc-block-components-order-summary,
.wc-block-components-order-summary-item {
  table-layout: auto;
  width: 100%;
}
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout-review-order-table td.product-name,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__description,
.wc-block-components-product-name {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  min-width: 140px;
}
.woocommerce-checkout-review-order-table img,
.wc-block-components-order-summary-item__image img {
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0;
}
