/*
Theme Name: EduAtiva
Theme URI: https://example.com/eduativa
Author: EduAtiva
Description: Tema WordPress/WooCommerce para venda de materiais pedagógicos digitais.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: eduativa
License: GPL-2.0-or-later
*/

/* =========================================================
   01. Tokens e modos globais
   ========================================================= */
:root {
  --blue-950: #0a1628;
  --blue-900: #0d2240;
  --blue-800: #1a3a6b;
  --blue-700: #1e4d8c;
  --blue-600: #2563b0;
  --blue-500: #3b82d4;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --green: #10b981;
  --red: #ef4444;
  --white: #fff;
  --bg-primary: #fff;
  --bg-secondary: #f0f6ff;
  --bg-card: #fff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-card: #dbeafe;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(30,77,140,.12);
  --shadow-xl: 0 16px 48px rgba(30,77,140,.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-display: "Nunito", sans-serif;
  --font-body: "Merriweather", serif;
}

[data-theme="dark"] {
  --bg-primary: #0f1923;
  --bg-secondary: #0d2240;
  --bg-card: #152a47;
  --text-primary: #e2eaf5;
  --text-secondary: #93b8d8;
  --text-muted: #5a7fa0;
  --border-card: #1e3a5f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.5);
}

[data-font-size="small"] { font-size: 14px; }
[data-font-size="medium"] { font-size: 15px; }
[data-font-size="large"] { font-size: 18px; }
[data-font-size="xlarge"] { font-size: 21px; }
[data-contrast="high"] body { filter: contrast(1.14); }

/* =========================================================
   02. Reset e base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; background: var(--bg-primary); }
.section-alt { background: var(--bg-secondary); }
.section,
.freebies-section,
.stats-strip {
  position: relative;
}

.section::before,
.freebies-section::before,
.stats-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 54px;
  z-index: 1;
  pointer-events: none;
  background-color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 84% 52%, 67% 44%, 50% 60%, 32% 48%, 15% 58%, 0 43%);
  animation: eduativa-wave-drift 9s ease-in-out infinite alternate;
}

.section > .container,
.freebies-section > .container,
.stats-strip > .container {
  position: relative;
  z-index: 2;
}

@keyframes eduativa-wave-drift {
  from { clip-path: polygon(0 0, 100% 0, 100% 42%, 84% 52%, 67% 44%, 50% 60%, 32% 48%, 15% 58%, 0 43%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 55%, 84% 43%, 66% 58%, 49% 46%, 31% 61%, 14% 47%, 0 56%); }
}

@media (prefers-reduced-motion: reduce) {
  .section::before,
  .freebies-section::before,
  .stats-strip::before {
    animation: none;
  }
}
.section-header, .section-head { text-align: center; margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; text-align: left; }
.section-eyebrow, .eyebrow { color: var(--blue-600); font-size: .8rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 8px; }
.section-title, .section-head h2 { color: var(--blue-900); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; font-weight: 900; }
[data-theme="dark"] .section-title, [data-theme="dark"] .section-head h2 { color: var(--text-primary); }
.section-desc, .section-head p { color: var(--text-secondary); max-width: 650px; }

.reading-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--accent); z-index: 9999; }

/* Formularios globais */
body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(label, .wc-block-components-text-input label, .wc-block-components-combobox-control label, .wc-block-components-checkbox label, .form-row label) {
  color: var(--blue-900);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .01em;
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea, .select2-selection, .wc-block-components-text-input input, .wc-block-components-combobox-control input, .wc-block-components-address-form__address_2-toggle) {
  min-height: 50px;
  width: 100%;
  border: 1.5px solid var(--border-card) !important;
  border-radius: 12px !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 0 rgba(30,77,140,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea, .wc-block-components-text-input input, .wc-block-components-combobox-control input) {
  padding: 13px 16px !important;
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(textarea) {
  min-height: 120px;
  resize: vertical;
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input:focus, select:focus, textarea:focus, .select2-container--focus .select2-selection, .wc-block-components-text-input input:focus, .wc-block-components-combobox-control input:focus) {
  border-color: var(--blue-500) !important;
  box-shadow: 0 0 0 4px rgba(59,130,212,.16) !important;
  outline: none !important;
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input::placeholder, textarea::placeholder) {
  color: var(--text-muted);
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input[type="checkbox"], input[type="radio"], .wc-block-components-checkbox__input) {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-card);
  border-radius: 6px;
  accent-color: var(--blue-700);
}

body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input[type="radio"]) {
  border-radius: 999px;
}

.woocommerce form .form-row {
  margin-bottom: 16px;
}

.woocommerce form .form-row label {
  margin-bottom: 7px;
}

.woocommerce form.checkout,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation,
.wc-block-checkout,
.wc-block-cart {
  border-color: var(--border-card);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout {
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.woocommerce form.login .button,
.woocommerce form.register .button,
.woocommerce form.checkout #place_order,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 50px;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  font-weight: 950 !important;
  box-shadow: 0 14px 26px rgba(245,158,11,.26);
}

.woocommerce form.login .button:hover,
.woocommerce form.register .button:hover,
.woocommerce form.checkout #place_order:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.wc-block-components-validation-error,
.wc-block-components-notice-banner.is-error,
.woocommerce-error,
.woocommerce-invalid-required-field .woocommerce-input-wrapper {
  color: var(--red);
}

.wc-block-components-validation-error,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 12px;
}

[data-theme="dark"] body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(label, .wc-block-components-text-input label, .wc-block-components-combobox-control label, .wc-block-components-checkbox label, .form-row label) {
  color: var(--blue-100);
}

[data-theme="dark"] body :where(.woocommerce, .woocommerce-page, .wc-block-checkout, .wc-block-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .single-content, .entry-content) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea, .select2-selection, .wc-block-components-text-input input, .wc-block-components-combobox-control input) {
  background: #152a47 !important;
  color: var(--text-primary) !important;
  border-color: rgba(255,255,255,.14) !important;
}

[data-theme="dark"] .woocommerce form.login,
[data-theme="dark"] .woocommerce form.register,
[data-theme="dark"] .woocommerce form.checkout {
  background: var(--bg-card);
}

/* Pedido recebido */
.woocommerce-order-received .page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
}

.eduativa-thankyou {
  display: grid;
  gap: 28px;
}

.thankyou-card,
.woocommerce-order-details,
.woocommerce-customer-details {
  border: 1.5px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.thankyou-card {
  position: relative;
  overflow: hidden;
}

.thankyou-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ff7a18, var(--blue-500));
}

.thankyou-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #22c55e, #059669);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(5,150,105,.22);
}

.thankyou-message {
  margin: 0 0 22px !important;
  color: var(--blue-900);
  font-size: 1.35rem;
  font-weight: 950;
}

.thankyou-overview {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  list-style: none;
}

.thankyou-overview li {
  flex: 1 1 180px;
  min-width: 180px;
  margin: 0 !important;
  padding: 18px !important;
  border-right: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  background: linear-gradient(180deg, var(--white), var(--blue-50));
}

.thankyou-overview li:last-child {
  border-right: 0;
}

.thankyou-overview li:nth-last-child(-n+4) {
  border-bottom: 0;
}

.thankyou-overview span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-700);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.thankyou-overview strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.woocommerce .thankyou-downloads-btn.button,
.thankyou-downloads-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.28);
  font-size: 1rem;
  font-weight: 950 !important;
}

.woocommerce .thankyou-downloads-btn.button:hover,
.thankyou-downloads-btn:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.woocommerce .thankyou-secondary-btn.button,
.thankyou-secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px !important;
  background: var(--blue-50) !important;
  color: var(--blue-700) !important;
  border: 1px solid var(--border-card) !important;
  font-weight: 950 !important;
}

.woocommerce-order-details__title,
.woocommerce-customer-details h2 {
  color: var(--blue-900);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 950;
  margin-bottom: 18px;
}

.woocommerce-order-received .woocommerce-table,
.woocommerce-order-received .shop_table {
  overflow: hidden;
  border: 1px solid var(--border-card) !important;
  border-radius: 16px;
  background: var(--bg-card);
}

.woocommerce-order-received .woocommerce-table th,
.woocommerce-order-received .woocommerce-table td,
.woocommerce-order-received .shop_table th,
.woocommerce-order-received .shop_table td {
  padding: 16px 18px !important;
  font-size: 1.3em;
  border-color: var(--border-card) !important;
}

.woocommerce-order-received .woocommerce-table th,
.woocommerce-order-received .shop_table th {
  color: var(--blue-900);
  font-weight: 950 !important;
}

.woocommerce-order-received .woocommerce-table td,
.woocommerce-order-received .shop_table td {
  color: var(--text-primary);
  font-weight: 800;
}

.woocommerce-order-received .woocommerce-order-downloads {
  margin-top: 2px;
  padding: 26px 30px 30px;
  border: 1.5px solid var(--border-card);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-md);
}

.woocommerce-order-received .woocommerce-order-downloads__title,
.woocommerce-order-received .woocommerce-order-downloads h2 {
  margin: 0 0 16px;
  color: var(--blue-900);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.woocommerce-order-received .woocommerce-table--order-downloads {
  border: 1px solid var(--border-card) !important;
  border-radius: 18px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: none;
}

.woocommerce-order-received .woocommerce-table--order-downloads th,
.woocommerce-order-received .woocommerce-table--order-downloads td {
  padding: 16px 20px !important;
  font-size: 1rem !important;
  vertical-align: middle;
}

.woocommerce-order-received .woocommerce-table--order-downloads th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: .9rem !important;
  font-weight: 950 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.woocommerce-order-received .woocommerce-table--order-downloads td {
  background: var(--white);
  color: var(--text-primary);
  font-size: 1.08rem !important;
  font-weight: 900;
}

.woocommerce-order-received .woocommerce-table--order-downloads .download-product a {
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 950;
}

.woocommerce-order-received .woocommerce-table--order-downloads .download-remaining,
.woocommerce-order-received .woocommerce-table--order-downloads .download-expires {
  color: var(--blue-700);
}

.woocommerce-order-received .woocommerce-table--order-downloads .download-file a,
.woocommerce-order-received .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 12px 24px rgba(245,158,11,.24);
  font-size: .95rem;
  font-weight: 950 !important;
}

.woocommerce-order-received .woocommerce-table--order-downloads .download-file a::before,
.woocommerce-order-received .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file::before {
  content: "▼";
  font-size: .8rem;
  line-height: 1;
}

.woocommerce-order-received .woocommerce-table--order-downloads .download-file a:hover,
.woocommerce-order-received .woocommerce-table--order-downloads .woocommerce-MyAccount-downloads-file:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.woocommerce-order-received address {
  border: 1px solid var(--border-card) !important;
  border-radius: 16px;
  padding: 18px !important;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.7;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
}

[data-theme="dark"] .thankyou-card,
[data-theme="dark"] .woocommerce-order-details,
[data-theme="dark"] .woocommerce-customer-details,
[data-theme="dark"] .woocommerce-order-received .woocommerce-order-downloads,
[data-theme="dark"] .thankyou-overview li,
[data-theme="dark"] .woocommerce-order-received address {
  background: var(--bg-card);
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-downloads td {
  background: var(--bg-card);
}

[data-theme="dark"] .woocommerce-order-received .woocommerce-table--order-downloads th {
  background: var(--blue-900);
}

[data-theme="dark"] .thankyou-message,
[data-theme="dark"] .woocommerce-order-details__title,
[data-theme="dark"] .woocommerce-customer-details h2,
[data-theme="dark"] .woocommerce-order-received .woocommerce-order-downloads h2,
[data-theme="dark"] .woocommerce-order-received .woocommerce-table th,
[data-theme="dark"] .woocommerce-order-received .shop_table th {
  color: var(--text-primary);
}

@media (max-width: 780px) {
  .thankyou-overview {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thankyou-overview li {
    min-width: 0;
  }

  .thankyou-overview li:nth-child(2n) {
    border-right: 0;
  }

  .thankyou-overview li:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--border-card);
  }

  .thankyou-overview li:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .woocommerce-order-received .woocommerce-order-downloads {
    padding: 22px;
  }

  .woocommerce-order-received .woocommerce-table--order-downloads,
  .woocommerce-order-received .woocommerce-table--order-downloads tbody,
  .woocommerce-order-received .woocommerce-table--order-downloads tr,
  .woocommerce-order-received .woocommerce-table--order-downloads td {
    display: block;
    width: 100%;
  }

  .woocommerce-order-received .woocommerce-table--order-downloads thead {
    display: none;
  }

  .woocommerce-order-received .woocommerce-table--order-downloads tr {
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .woocommerce-order-received .woocommerce-table--order-downloads td {
    padding: 0 !important;
    border: 0 !important;
  }
}

@media (max-width: 540px) {
  .thankyou-card,
  .woocommerce-order-details,
  .woocommerce-customer-details {
    padding: 22px;
  }

  .thankyou-overview {
    grid-template-columns: 1fr;
  }

  .thankyou-overview li {
    border-right: 0;
    border-bottom: 1px solid var(--border-card);
  }

  .thankyou-overview li:last-child {
    border-bottom: 0;
  }
}

.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-order-summary__title-text,
.woocommerce-checkout h3,
.woocommerce-account h2 {
  color: var(--blue-900);
  font-weight: 950;
  letter-spacing: 0;
}

.wc-block-checkout .wc-block-components-checkout-step {
  margin-bottom: 28px;
}

.wc-block-checkout .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-country-input,
.wc-block-checkout .wc-block-components-state-input {
  margin-bottom: 12px;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-combobox-control label {
  transform-origin: left top;
}

.wc-block-checkout .has-error input,
.wc-block-checkout .has-error select,
.wc-block-checkout .wc-block-components-validation-error + input,
.woocommerce-invalid input.input-text {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12) !important;
}

.wc-block-components-notice-banner.is-error {
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  color: var(--red);
}

.wc-block-checkout .wc-block-components-checkbox,
.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 800;
}

.wc-block-checkout .wc-block-components-checkbox__mark {
  fill: var(--white);
}

[data-theme="dark"] .wc-block-checkout .wc-block-components-title,
[data-theme="dark"] .wc-block-checkout .wc-block-components-checkout-step__title,
[data-theme="dark"] .wc-block-checkout .wc-block-components-order-summary__title-text,
[data-theme="dark"] .woocommerce-checkout h3,
[data-theme="dark"] .woocommerce-account h2 {
  color: var(--text-primary);
}

/* Minha conta / perfil */
.woocommerce-account .single-card.single-content {
  max-width: 1200px;
  padding: 28px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-account:not(.logged-in) .single-card.single-content {
  max-width: 1120px;
  padding: 34px;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  width: auto !important;
  float: none !important;
  min-width: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-column1 h2,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 h2 {
  margin: 0 0 24px;
  color: var(--blue-900);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.1;
}

.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  display: grid;
  gap: 18px;
}

.woocommerce-account:not(.logged-in) .woocommerce form .form-row {
  margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce form .form-row input.input-text {
  width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce form .password-input {
  display: block;
  width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
  margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
  color: var(--text-secondary);
  font-size: .95rem;
}

.woocommerce-account .woocommerce {
  display: block !important;
  width: 100%;
}

.woocommerce-account .eduativa-account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  align-content: start;
  width: 100%;
}

.account-mobile-nav-btn {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-wrap {
  min-width: 0;
  display: contents;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 16px;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  clear: none !important;
  z-index: 5;
  transform: translateY(0) !important;
}

body.admin-bar.woocommerce-account .woocommerce-MyAccount-navigation {
  top: 128px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text-primary);
  font-weight: 900;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .95rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before { content: "⌂"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before { content: "▤"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before { content: "↓"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before { content: "⌖"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before { content: "●"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "↪"; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "◇"; }

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: rgba(255,255,255,.12);
  color: var(--white) !important;
  transform: translateX(2px);
  box-shadow: 0 12px 22px rgba(30,77,140,.2);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a *,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover * {
  color: var(--white) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover::before {
  background: rgba(255,255,255,.18);
  color: var(--white);
}

.woocommerce-account .woocommerce-MyAccount-content {
  align-self: start;
  min-height: 360px;
  padding: 28px;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  clear: none !important;
  overflow-x: auto;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
  color: var(--blue-700);
  font-weight: 900;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-column__title {
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 950;
  margin-bottom: 16px;
}

.woocommerce-account table.shop_table,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table--order-details,
.woocommerce-account .woocommerce-table--order-downloads {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-card) !important;
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  padding: 14px 16px !important;
  border-color: var(--border-card) !important;
}

.woocommerce-account table.shop_table th {
  color: var(--blue-900);
  font-weight: 950 !important;
  background: var(--blue-50);
}

.woocommerce-account table.shop_table td {
  color: var(--text-primary);
  font-weight: 700;
}

.woocommerce-account .woocommerce-orders-table__cell-order-number a,
.woocommerce-account .download-product a {
  color: var(--blue-700);
  font-weight: 950;
}

.woocommerce-account .woocommerce-button.button,
.woocommerce-account .button,
.woocommerce-account button.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)) !important;
  color: var(--white) !important;
  border: 0 !important;
  box-shadow: 0 10px 20px rgba(30,77,140,.22);
  font-weight: 950 !important;
}

.woocommerce-account .woocommerce-button.button:hover,
.woocommerce-account .button:hover,
.woocommerce-account button.button:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-column--billing-address,
.woocommerce-account .woocommerce-column--shipping-address,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after,
.woocommerce-account .addresses::before,
.woocommerce-account .addresses::after {
  display: none !important;
}

.woocommerce-account .woocommerce-Address {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}

.woocommerce-account .woocommerce-Address-title {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.woocommerce-account .woocommerce-Address-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.woocommerce-account .woocommerce-Address-title .edit {
  justify-self: start;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .86rem;
  font-weight: 950;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child + .woocommerce-Addresses,
.woocommerce-account .woocommerce-MyAccount-content > p:first-child + .addresses {
  margin-top: 24px;
}

.woocommerce-account .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.woocommerce-account address {
  color: var(--text-primary);
  font-style: normal;
  line-height: 1.7;
}

.woocommerce-account fieldset {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: var(--blue-50);
}

.woocommerce-account fieldset legend {
  padding: 0 8px;
  color: var(--blue-900);
  font-weight: 950;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-MyAccount-content mark {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  color: var(--green);
  font-weight: 950;
}

.account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.account-section-head h2 {
  margin: 0;
}

.account-small-link {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-weight: 950;
}

.account-dashboard-panel {
  display: grid;
  gap: 22px;
}

.account-greeting-card,
.account-wishlist-card {
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.account-greeting-title {
  margin: 6px 0 10px;
  color: var(--blue-900);
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.08;
  font-weight: 950;
}

.account-greeting-card p {
  max-width: 780px;
  margin: 0;
}

.account-wishlist-list {
  display: grid;
  gap: 10px;
}

.wishlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 8px 18px rgba(30,77,140,.08);
}

.wishlist-product-title {
  min-width: 0;
  color: var(--blue-900) !important;
  font-size: 1rem;
  font-weight: 950 !important;
  line-height: 1.25;
}

.wishlist-product-price {
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 950;
  white-space: nowrap;
}

.wishlist-product-price del {
  color: var(--text-muted);
  font-size: .86em;
  margin-right: 5px;
}

.wishlist-product-price ins {
  color: var(--blue-700);
  text-decoration: none;
}

.wishlist-add-cart {
  width: 36px !important;
  height: 36px !important;
  justify-self: end;
  border-radius: 999px !important;
  font-size: 1.25rem;
  line-height: 1;
}

.account-wishlist-status {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--border-card);
  border-radius: 14px;
  background: rgba(59,130,212,.06);
  color: var(--text-secondary);
  font-weight: 800;
}

.eduativa-downloads-grid {
  display: grid;
  gap: 14px;
}

.download-card,
.download-empty-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-sm);
}

.download-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 950;
}

.download-info h3,
.download-empty-card h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-size: .9rem !important;
  line-height: 1.25;
  font-weight: 950;
}

.download-info p,
.download-empty-card p {
  margin: 0;
  color: var(--text-secondary);
}

.download-card .download-info p {
  display: none;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59,130,212,.1);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 900;
}

.woocommerce-account .download-button,
.download-button {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff7a18);
  color: var(--white) !important;
  box-shadow: 0 12px 24px rgba(245,158,11,.24);
  font-weight: 950 !important;
}

.woocommerce-account .download-button:hover,
.download-button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark));
  color: var(--white) !important;
  transform: translateY(-1px);
}

.download-button.is-disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-navigation,
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content,
[data-theme="dark"] .woocommerce-account .woocommerce-Address,
[data-theme="dark"] .woocommerce-account .woocommerce-column--billing-address,
[data-theme="dark"] .woocommerce-account .woocommerce-column--shipping-address,
[data-theme="dark"] .woocommerce-account .u-column1,
[data-theme="dark"] .woocommerce-account .u-column2,
[data-theme="dark"] .woocommerce-account table.shop_table {
  background: var(--bg-card);
}

[data-theme="dark"] .download-card,
[data-theme="dark"] .download-empty-card,
[data-theme="dark"] .account-greeting-card,
[data-theme="dark"] .account-wishlist-card,
[data-theme="dark"] .wishlist-row {
  background: var(--bg-card);
}

[data-theme="dark"] .woocommerce-account table.shop_table th,
[data-theme="dark"] .woocommerce-account fieldset {
  background: var(--blue-900);
}

[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content h2,
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content h3,
[data-theme="dark"] .woocommerce-account .woocommerce-column__title,
[data-theme="dark"] .account-greeting-title,
[data-theme="dark"] .wishlist-product-title,
[data-theme="dark"] .woocommerce-account table.shop_table th,
[data-theme="dark"] .woocommerce-account fieldset legend {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .woocommerce-account .eduativa-account-layout {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation-wrap {
    display: block;
    order: 2;
    width: calc(100% - 80px);
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height .24s ease;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    order: 3;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    top: auto;
    padding: 0 0 8px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
  }

  .account-mobile-nav-btn {
    order: 1;
    width: calc(100% - 80px);
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e4d8c 0%, #347bd1 100%);
    color: var(--white);
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(30,77,140,.24);
  }

  .account-mobile-nav-btn span {
    font-size: 1rem;
    line-height: 1;
  }

  .account-mobile-nav-btn[aria-expanded="true"] {
    border-radius: 16px 16px 0 0;
    margin-bottom: -14px;
    box-shadow: 0 10px 22px rgba(30,77,140,.18);
  }

  .account-mobile-nav-btn[aria-expanded="true"] span {
    transform: rotate(90deg);
  }

  .woocommerce-account .woocommerce-MyAccount-navigation-wrap.is-open {
    max-height: 520px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation-wrap.is-open .woocommerce-MyAccount-navigation {
    margin-top: 0;
    padding: 0 14px 16px;
    border: 1px solid var(--border-card);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, var(--white), var(--blue-50));
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
  .woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    color: var(--white) !important;
  }

  .woocommerce-account .u-columns {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-Addresses,
  .woocommerce-account .addresses {
    grid-template-columns: 1fr;
  }

  .download-card,
  .download-empty-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .download-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .wishlist-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .wishlist-product-price {
    grid-column: 1 / 2;
  }

  .wishlist-add-cart {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 560px) {
  .woocommerce-account:not(.logged-in) .single-card.single-content {
    padding: 22px;
  }

  .woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
    display: flex !important;
    margin: 10px 0 0;
  }

  .woocommerce-account .single-card.single-content,
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 18px;
    margin: 20px;
  }

  .account-mobile-nav-btn {
    min-height: 46px;
    padding: 0 16px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation-wrap,
  .account-mobile-nav-btn {
    width: calc(100% - 60px);
  }

  .woocommerce-account table.shop_table,
  .woocommerce-account table.shop_table tbody,
  .woocommerce-account table.shop_table tr,
  .woocommerce-account table.shop_table td {
    display: block;
    width: 100%;
  }

  .woocommerce-account table.shop_table thead {
    display: none;
  }

  .woocommerce-account table.shop_table tr {
    border-bottom: 1px solid var(--border-card);
  }
}

/* =========================================================
   03. Topbar e header iguais à index.html
   ========================================================= */
.topbar { background: var(--blue-900); color: var(--white); padding: 6px 0; font-size: .75rem; position: relative; z-index: 100; }
[data-theme="dark"] .topbar { background: #060e1a; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-social, .topbar-right, .a11y-controls { display: flex; align-items: center; }
.topbar-social { gap: 10px; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.topbar-social a:hover { transform: translateY(-1px); }
.eduativa-svg-icon { display: block; width: 18px; height: 18px; object-fit: contain; }
.topbar-social .eduativa-svg-icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(65%) sepia(75%) saturate(2369%) hue-rotate(190deg) brightness(102%) contrast(97%);
}
.topbar-social a:hover .eduativa-svg-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(18%) saturate(3249%) hue-rotate(183deg) brightness(105%) contrast(98%);
}
.share-btn .eduativa-svg-icon { width: 18px; height: 18px; }
.footer-social .eduativa-svg-icon { width: 18px; height: 18px; }
.eduativa-svg-fallback { display: inline-flex; align-items: center; justify-content: center; }
.topbar-right { gap: 8px; flex-wrap: wrap; }
.topbar-auth { display: flex; align-items: center; gap: 8px; }
.topbar-auth-btn {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid rgba(147,197,253,.38);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white) !important;
  font-size: .76rem;
  font-weight: 950 !important;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(30,77,140,.18);
}
.topbar-auth-btn:hover { transform: translateY(-1px); color: var(--white) !important; }
.topbar-auth-btn-outline { background: rgba(59,130,212,.22); }
.a11y-controls { gap: 4px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px 8px; }
.a11y-btn, .contrast-toggle, .dark-toggle { color: var(--blue-200); background: rgba(255,255,255,.1); border-radius: 20px; font-size: .75rem; font-weight: 800; }
.a11y-btn { background: transparent; padding: 3px 6px; }
.contrast-toggle, .dark-toggle { padding: 4px 10px; }
.a11y-btn:hover, .contrast-toggle:hover, .dark-toggle:hover { background: rgba(255,255,255,.2); color: var(--white); }
.a11y-sep, .topbar .sep { color: rgba(255,255,255,.28); }

.header { background: var(--blue-800); color: var(--white); position: sticky; top: 0; z-index: 90; box-shadow: 0 4px 20px rgba(10,22,40,.18); }
[data-theme="dark"] .header { background: var(--blue-900); }
.header-main {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0 14px;
}
.header-nav-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.5rem; font-weight: 900; margin-right: 0; }
.logo.has-custom-logo,
.mobile-nav-logo.has-custom-logo {
  gap: 0;
}
.logo-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #f97316); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(245,158,11,.35); }
.logo-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo.has-custom-logo .logo-icon,
.mobile-nav-logo.has-custom-logo .logo-icon {
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 70px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  place-items: initial;
}

.logo.has-custom-logo .logo-image,
.mobile-nav-logo.has-custom-logo .logo-image {
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 70px;
  object-fit: contain;
}
.logo-text span { color: var(--accent); }
.nav { width: 100%; }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 6px; }
.nav-list li { position: relative; }
.nav-list a { display: block; color: var(--blue-100); font-size: .92rem; font-weight: 800; padding: 12px 15px; border-radius: var(--radius-sm); }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list a.active { background: rgba(255,255,255,.12); color: var(--white); }
.nav-list .menu-item-has-children > a { padding-right: 28px; position: relative; }
.nav-list .menu-item-has-children > a::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-65%) rotate(45deg); opacity: .72; transition: transform .18s ease; }
.nav-list .menu-item-has-children:hover > a::after,
.nav-list .menu-item-has-children:focus-within > a::after { transform: translateY(-35%) rotate(225deg); }
.nav-list .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 250; min-width: 210px; display: grid; gap: 4px; list-style: none; padding: 10px; margin: 0; background: #163a68; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 18px 42px rgba(8,20,38,.32); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-list .sub-menu::before { content: ""; position: absolute; left: 18px; top: -6px; width: 12px; height: 12px; background: #163a68; border-left: 1px solid rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); }
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub-menu a { color: var(--blue-100); border-radius: 8px; padding: 10px 12px; white-space: nowrap; }
.nav-list .sub-menu a:hover,
.nav-list .sub-menu .current-menu-item > a { background: rgba(255,255,255,.12); color: var(--white); }
.nav-list .sub-menu .sub-menu { top: 0; left: calc(100% + 10px); }
.nav-list .sub-menu .sub-menu::before { left: -6px; top: 14px; border: 0; border-left: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.header-search { display: flex; align-items: center; width: min(100%, 520px); justify-self: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.header-search input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--white); padding: 11px 13px; outline: none; }
.header-search input::placeholder { color: rgba(255,255,255,.55); }
.header-search button { width: 42px; background: transparent; color: var(--blue-200); font-size: 1rem; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.cart-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); color: var(--white); font-size: 1.1rem; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: var(--white); border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; font-size: .7rem; font-weight: 900; }
.cart-btn.is-shaking,
.cart-float.is-shaking { animation: eduativa-cart-shake .58s ease both; }
@keyframes eduativa-cart-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-3px) rotate(-8deg); }
  30% { transform: translateX(3px) rotate(7deg); }
  45% { transform: translateX(-2px) rotate(-5deg); }
  60% { transform: translateX(2px) rotate(4deg); }
  75% { transform: translateX(-1px) rotate(-2deg); }
}
.btn-store { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #f97316); color: var(--white); padding: 12px 20px; border-radius: 12px; font-weight: 900; box-shadow: 0 6px 18px rgba(245,158,11,.3); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease; }
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(245,158,11,.38);
  filter: brightness(1.04);
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
}

.mobile-menu-toggle span[aria-hidden="true"] {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: none;
  background: rgba(10,22,40,.58);
  backdrop-filter: blur(3px);
}

.mobile-nav-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2147483600;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, var(--blue-900), #102b4f);
  color: var(--white);
  box-shadow: 24px 0 48px rgba(8,20,38,.34);
  transform: translateX(-105%);
  transition: transform .24s ease;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 950;
}

.mobile-nav-logo.has-custom-logo .logo-icon,
.mobile-nav-logo.has-custom-logo .logo-image {
  max-height: 48px;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
}

.mobile-nav-search {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
}

.mobile-nav-search input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: var(--white) !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

.mobile-nav-search input::placeholder { color: rgba(255,255,255,.62); }
.mobile-nav-search button { width: 46px; height: 46px; background: transparent; color: var(--blue-200); }

.mobile-nav-menu {
  overflow-y: auto;
  padding-right: 3px;
}

.mobile-nav-list,
.mobile-nav-list .sub-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  color: var(--blue-100);
  font-weight: 900;
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item > a {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.mobile-nav-list .menu-item-has-children > a::after {
  content: "⌄";
  color: var(--blue-200);
  font-size: 1rem;
}

.mobile-nav-list .sub-menu {
  margin: 6px 0 4px 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(147,197,253,.25);
}

.mobile-nav-list .sub-menu a {
  min-height: 40px;
  background: rgba(255,255,255,.045);
  font-size: .92rem;
}

.mobile-nav-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mobile-nav-store,
.mobile-nav-account {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 950;
}

.mobile-nav-store {
  background: linear-gradient(135deg, var(--accent), #ff7a18);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(245,158,11,.24);
}

.mobile-nav-account {
  border: 1px solid rgba(147,197,253,.34);
  background: rgba(59,130,212,.2);
  color: var(--white);
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .topbar,
body.mobile-menu-open .header,
body.mobile-menu-open .cart-float,
body.mobile-menu-open .back-to-top {
  z-index: 1 !important;
}

body.mobile-menu-open .mobile-menu-backdrop {
  display: block;
}

body.mobile-menu-open .mobile-nav-panel {
  transform: translateX(0);
}

/* =========================================================
   04. Hero e home modular
   ========================================================= */
.hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: var(--white); padding: 78px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow { color: var(--blue-200); font-weight: 900; margin-bottom: 14px; }
.hero-title { font-size: clamp(2.7rem, 6vw, 4.4rem); line-height: .98; font-weight: 900; margin-bottom: 20px; }
.hero-title .highlight { color: var(--accent); }
.hero-sub { color: var(--blue-100); font-size: 1.12rem; max-width: 620px; margin-bottom: 24px; }
.hero-search { display: flex; max-width: 620px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-xl); margin-bottom: 18px; }
.hero-search input { flex: 1; border: 0; padding: 16px 18px; outline: none; }
.hero-search button, .btn-primary { background: var(--accent); color: var(--white); font-weight: 900; padding: 14px 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.18); font-weight: 900; padding: 14px 22px; border-radius: var(--radius-sm); }
.btn-primary { border-radius: var(--radius-sm); display: inline-flex; }
.hero-cards-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-card-preview, .hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 20px; }
.preview-icon { font-size: 2rem; margin-bottom: 8px; }
.preview-label { font-weight: 900; }
.preview-count, .stat-lbl { color: var(--blue-200); font-size: .86rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat-num { font-size: 1.5rem; font-weight: 900; color: var(--accent); }

/* =========================================================
   05. Cards de produto, posts e categorias
   ========================================================= */
.products-grid, .post-grid, .category-grid { display: grid; gap: 22px; }
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-card, .post-card, .category-card { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s ease; box-shadow: var(--shadow-sm); position: relative; }
.product-card:hover, .post-card:hover, .category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--blue-300); }
.product-thumb, .post-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-100), var(--blue-200)); display: grid; place-items: center; position: relative; overflow: hidden; }
.generated-icon { position: relative; z-index: 1; font-size: 3.4rem; }
.generated-label { position: absolute; bottom: 12px; color: rgba(10,22,40,.72); font-weight: 900; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.product-thumb-overlay, .post-thumb-overlay { position: absolute; inset: 0; background: rgba(30,77,140,.62); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.product-card:hover .product-thumb-overlay, .post-card:hover .post-thumb-overlay { opacity: 1; }
.btn-quick-buy, .btn-read-hover { background: var(--white); color: var(--blue-700); font-weight: 900; padding: 10px 22px; border-radius: var(--radius-sm); transform: translateY(8px); transition: transform .2s ease; }
.product-card:hover .btn-quick-buy, .post-card:hover .btn-read-hover { transform: translateY(0); }
.product-badge, .post-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--blue-600); color: var(--white); font-size: .65rem; font-weight: 900; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.badge-hot { background: var(--red); }
.badge-gratis, .badge-free { background: var(--green); }
.product-info, .post-body { padding: 16px; }
.product-subject, .post-cat { color: var(--blue-600); font-weight: 900; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.product-name, .post-title { color: var(--text-primary); font-weight: 900; line-height: 1.3; margin-bottom: 9px; }
.product-meta, .post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { color: var(--blue-700); font-weight: 900; font-size: 1.12rem; }
.product-price.free { color: var(--green); }
.product-level, .post-excerpt, .post-date { color: var(--text-muted); font-size: .86rem; }
.product-level { background: var(--bg-secondary); padding: 3px 8px; border-radius: 6px; font-weight: 800; }
.btn-add-cart { width: 36px; height: 36px; background: var(--blue-700); color: var(--white); border-radius: var(--radius-sm); display: grid; place-items: center; }
.category-card { padding: 28px 16px 24px; text-align: center; }
.cat-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; font-size: 1.75rem; transition: transform .2s ease; }
.category-card:hover .cat-icon { transform: scale(1.1) rotate(-3deg); }
.cat-icon.geo { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.cat-icon.hist { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.cat-icon.sci { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.cat-icon.color { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.cat-icon.free { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.cat-icon.quiz { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.cat-icon.print { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.cat-icon.map { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.cat-name { font-weight: 900; color: var(--text-primary); }
.cat-count { color: var(--text-muted); font-size: .75rem; font-weight: 800; }

/* =========================================================
   06. Blog, single e banners
   ========================================================= */
.page-hero, .blog-hero, .single-hero { background: linear-gradient(135deg, var(--blue-800), var(--blue-950)); color: var(--white); padding: 58px 0 62px; }
.breadcrumb { color: var(--blue-200); font-size: .82rem; font-weight: 800; margin-bottom: 14px; }
.hero-copy { color: var(--blue-100); font-size: 1.1rem; max-width: 720px; }
.single-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--blue-200);
  font-size: 1rem;
  font-weight: 600;
}
.single-hero .meta-pill {
  color: inherit;
}
.single-hero .meta-pill strong {
  color: var(--blue-100);
  font-weight: 900;
}
.single-hero .meta-separator {
  color: var(--blue-300);
  font-weight: 800;
}
.shop-hero-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-hero-title-row h1 { margin: 0; }
.shop-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(147,197,253,.5);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .86rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(2,8,23,.18);
}
.shop-clear-btn:hover {
  background: linear-gradient(135deg, var(--accent), #ff7a18);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-1px);
}
.blog-layout, .single-layout, .shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.blog-sidebar, .single-sidebar { display: grid; gap: 22px; }
.sidebar-box { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.sidebar-title { color: var(--text-primary); font-size: 1.25rem; font-weight: 900; margin-bottom: 14px; }
.sidebar-kicker {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-box-top-posts .sidebar-title {
  margin-bottom: 16px;
}
.popular-list { list-style: none; display: grid; gap: 12px; }
.popular-list li { margin: 0; }
.popular-list a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(59,130,246,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.92));
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.popular-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 14px 28px rgba(30,77,140,.12);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}
.popular-thumb-wrap {
  width: 62px;
  height: 62px;
  display: block;
}
.popular-thumb {
  width: 62px;
  height: 62px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
  border: 1px solid rgba(59,130,246,.1);
}
.popular-thumb-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-50), #dbeafe);
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.08);
}
.popular-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue-50), #dbeafe);
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.08);
}
.popular-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.popular-title {
  display: block;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}
.popular-meta {
  display: block;
  color: var(--blue-600);
  font-size: .82rem;
  font-weight: 800;
}
.sticky-banner,
.sidebar-box.sticky-banner,
.blog-sidebar .sticky-banner {
  position: sticky;
  top: 92px;
  align-self: start;
}
.banner-slot, .article-banner { min-height: 170px; border: 2px dashed var(--blue-200); border-radius: 16px; display: grid; place-items: center; text-align: center; color: var(--text-muted); font-weight: 900; background: linear-gradient(135deg, var(--blue-50), var(--bg-card)); padding: 22px; }
.marketing-banner {
  width: 100%;
  overflow: hidden;
}

.article-freebies-section {
  position: relative;
  padding: 78px 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, .16), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(245, 158, 11, .14), transparent 24%),
    linear-gradient(180deg, #eef6ff 0%, #e8f1ff 100%);
}

.article-freebies-head {
  margin-bottom: 26px;
}

.article-freebies-shell {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(59,130,246,.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)),
    linear-gradient(135deg, rgba(56,189,248,.08), rgba(245,158,11,.06));
  box-shadow: 0 24px 54px rgba(30,77,140,.10);
  overflow: hidden;
}

.article-freebies-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,77,140,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,77,140,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  opacity: .45;
}

.article-freebies-shell > * {
  position: relative;
  z-index: 1;
}

.article-freebies-head p {
  max-width: 720px;
}

.article-freebies-cta {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.article-freebies-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #059669);
  color: var(--white);
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(5,150,105,.20);
}

.article-freebies-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid rgba(59,130,246,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(30,77,140,.08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.article-freebies-link:hover {
  transform: translateY(-1px);
  border-color: rgba(245,158,11,.35);
  color: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(30,77,140,.12);
}

.article-freebies-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .article-freebies-section {
    padding: 56px 0;
  }

  .article-freebies-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .article-freebies-head {
    gap: 18px;
  }

  .article-freebies-cta {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .article-freebies-section {
    padding: 42px 0;
  }

  .article-freebies-shell {
    padding: 20px;
    border-radius: 20px;
  }

  .article-freebies-head {
    margin-bottom: 20px;
  }

  .article-freebies-cta {
    width: 100%;
    gap: 10px;
  }

  .article-freebies-badge,
  .article-freebies-link {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
  }

  .article-freebies-badge {
    padding: 12px 14px;
    font-size: .78rem;
    line-height: 1.2;
  }

  .article-freebies-link {
    padding: 0 14px;
    font-size: .94rem;
    white-space: normal;
  }
}

.marketing-banner.article-banner {
  border-style: solid;
  border-color: var(--border-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.marketing-banner :where(a, img, iframe, picture) {
  max-width: 100%;
}

.marketing-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.marketing-banner iframe {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
}

.sidebar-banner {
  display: grid;
  gap: 10px;
}
.single-card { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.featured-image { aspect-ratio: 16/8; background: linear-gradient(135deg, #d1fae5, #a7f3d0); position: relative; overflow: hidden; }
.single-content { padding: 30px; }
.single-content p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.78; margin: 16px 0; }
.single-content h2 { color: var(--text-primary); font-size: 1.85rem; line-height: 1.18; margin: 34px 0 12px; }

/* Conteudo editorial de paginas e posts */
.page-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.page-article-layout.no-toc {
  display: block;
}

.page-article-layout.no-toc .page-rich-content {
  max-width: 920px;
  margin: 0 auto;
}

.page-rich-content {
  overflow: visible;
}

.page-toc-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
}

.page-toc-toggle {
  display: none;
}

.page-toc {
  padding: 18px;
  border: 1.5px solid var(--border-card);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.page-toc-title {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.35;
}

.page-toc a:hover {
  background: var(--blue-50);
  color: var(--accent-dark);
}

.single-content :where(h2, h3, h4) {
  scroll-margin-top: 120px;
}

.single-content h2 {
  position: relative;
  padding-top: 6px;
  color: var(--blue-900);
  font-weight: 950;
}

.single-content h2::before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7a18);
}

.single-content h3 {
  margin: 28px 0 10px;
  color: var(--blue-800);
  font-size: 1.38rem;
  line-height: 1.25;
  font-weight: 950;
}

.single-content h4 {
  margin: 22px 0 8px;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 950;
}

.single-content a:not(.button):not(.btn):not(.share-btn):not(.wp-block-button__link) {
  color: var(--blue-700);
  font-weight: 900;
  
}

.single-content a:not(.button):not(.btn):not(.share-btn):not(.wp-block-button__link):hover {
  color: var(--accent-dark);
}

.single-content :where(ul, ol) {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.single-content :where(ul, ol) li {
  position: relative;
  margin-left: 24px;
  padding-left: 6px;
}

.single-content ul li::marker {
  color: var(--accent);
  font-size: 1.2em;
}

.single-content ol li::marker {
  color: var(--blue-700);
  font-weight: 950;
}

.single-content blockquote,
.single-content .wp-block-quote {
  position: relative;
  margin: 28px 0;
  padding: 24px 26px 24px 70px;
  border: 1.5px solid var(--border-card);
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--blue-50), var(--bg-card));
  box-shadow: var(--shadow-sm);
}

.single-content blockquote::before,
.single-content .wp-block-quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 22px;
  color: var(--blue-600);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 950;
}

.single-content blockquote p {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.14rem;
  font-weight: 750;
}

.single-content blockquote cite,
.single-content .wp-block-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .9rem;
  font-style: normal;
  font-weight: 900;
}

.single-content .wp-block-separator {
  width: 100%;
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--border-card);
}

.single-content .wp-block-table {
  overflow-x: auto;
  margin: 24px 0;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: var(--bg-card);
}

.single-content th,
.single-content td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
}

.single-content th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 950;
}

.single-content :where(.wp-block-gallery, .gallery) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  margin: 28px 0 !important;
}

.single-content :where(.wp-block-gallery figure, .wp-block-image, .gallery-item) {
  margin: 0 !important;
}

.single-content :where(.wp-block-gallery a, .wp-block-image a, .gallery-icon a) {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1.5px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  background: var(--blue-50);
}

.single-content :where(.wp-block-gallery img, .wp-block-image img, .gallery img) {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border: 0 !important;
  transition: transform .24s ease, filter .24s ease;
}

.single-content :where(.wp-block-gallery a:hover img, .wp-block-image a:hover img, .gallery-icon a:hover img) {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.single-content .wp-caption-text,
.single-content figcaption,
.single-content .gallery-caption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.45;
  text-align: center;
}

.eduativa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2,8,23,.82);
  backdrop-filter: blur(6px);
}

.eduativa-lightbox.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.eduativa-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,.44);
}

.eduativa-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-900);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.eduativa-lightbox-caption {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 18px;
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

[data-theme="dark"] .page-toc,
[data-theme="dark"] .single-content blockquote,
[data-theme="dark"] .single-content .wp-block-quote,
[data-theme="dark"] .single-content table {
  background: var(--bg-card);
}

[data-theme="dark"] .page-toc-title,
[data-theme="dark"] .single-content h2,
[data-theme="dark"] .single-content h3,
[data-theme="dark"] .single-content blockquote p,
[data-theme="dark"] .single-content th {
  color: var(--text-primary);
}

[data-theme="dark"] .page-toc a:hover,
[data-theme="dark"] .single-content th {
  background: rgba(59,130,212,.18);
}

.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.share-btn .eduativa-svg-icon {
  width: 20px;
  height: 20px;
}
.share-btn.whats .eduativa-svg-icon {
  filter: brightness(0) saturate(100%) invert(44%) sepia(98%) saturate(684%) hue-rotate(94deg) brightness(95%) contrast(88%);
}
.share-btn.face .eduativa-svg-icon {
  filter: brightness(0) saturate(100%) invert(34%) sepia(96%) saturate(1109%) hue-rotate(199deg) brightness(91%) contrast(89%);
}
.share-btn.copy .eduativa-svg-icon {
  filter: brightness(0) saturate(100%) invert(33%) sepia(14%) saturate(925%) hue-rotate(176deg) brightness(96%) contrast(89%);
}
.share-btn:hover .eduativa-svg-icon {
  transform: translateY(-1px);
}

.share-box {
  margin-top: 42px;
  padding: 22px 24px;
  border: 1.5px solid var(--border-card);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(37, 99, 235, .03)),
    var(--bg-card);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.share-title {
  margin: 0 0 14px;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.share-box .share-buttons {
  gap: 14px;
}

.share-box .share-btn .eduativa-svg-icon {
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .share-box {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .14), rgba(37, 99, 235, .06)),
    var(--bg-card);
}

[data-theme="dark"] .share-title {
  color: var(--blue-100);
}

/* Produto individual */
.product-single-hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: var(--white);
  padding: 32px 0;
}

.product-single-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.product-single-hero .breadcrumb a {
  color: var(--blue-200);
  font-weight: 900;
}

.product-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 30px;
  align-items: start;
}

.product-gallery-card,
.product-summary-card,
.product-description-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product-gallery-card {
  padding: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-main-media {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  cursor: zoom-in;
}

.product-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.product-main-media:hover img {
  transform: scale(1.08);
}

.single-product-fallback {
  font-size: 5rem;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-thumb-btn {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--border-card);
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 0;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-btn.is-active,
.product-thumb-btn:hover {
  border-color: var(--blue-400);
  box-shadow: 0 10px 24px rgba(30,77,140,.16);
}

.product-summary-card {
  padding: 28px;
  position: sticky;
  top: 92px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-tax-line {
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-tax-line a,
.product-meta-box a {
  color: var(--blue-600);
  font-weight: 900;
}

.product-single-title {
  color: var(--blue-950);
  font-size: clamp(1.6rem, 2.72vw, 2.4rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 14px;
}

html[data-theme="dark"] .product-single-title {
  color: var(--text-primary);
}

.product-single-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: #1e4d8c;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.product-single-price.free {
  color: var(--green);
}

.product-single-price .product-discount {
  color: #e11d48;
  font-size: .95rem;
  font-weight: 600;
}

.product-single-price .product-sale-price {
  color: #1e4d8c;
  font-size: 1.65rem;
  line-height: 1;
}

.product-single-price .product-sale-price .amount {
  color: inherit;
}

.product-single-price .product-regular-price {
  display: flex;
  width: 100%;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-single-price .product-regular-price del {
  margin-left: 3px;
}

.product-short-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 30px 0 22px;
  padding-top: 6px;
}

.single-add-cart,
.wishlist-btn,
.mini-cart-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.product-summary-card .single-add-cart,
.product-summary-card .single-add-cart.button,
.product-summary-card a.single-add-cart,
.product-summary-card a.single-add-cart.button,
.woocommerce .product-summary-card a.single-add-cart.button {
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.32) !important;
  font-size: 1.34rem !important;
  line-height: 1 !important;
  min-height: 66px;
  height: 66px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  border: 0 !important;
  border-radius: 10px !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  width: 100%;
  text-align: center;
  padding: 0 24px !important;
  margin: 0 !important;
}

.product-summary-card .single-add-cart .cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08em;
  line-height: 1;
  margin: 0;
}

.product-summary-card .single-add-cart.added::after,
.product-summary-card .single-add-cart.is-added::after,
.woocommerce .product-summary-card a.single-add-cart.added::after,
.woocommerce .product-summary-card a.single-add-cart.is-added::after,
.woocommerce a.button.added::after,
.woocommerce button.button.added::after {
  content: none !important;
  display: none !important;
}

.product-summary-card .single-add-cart.added,
.product-summary-card .single-add-cart.is-added {
  gap: 0 !important;
}

.product-summary-card .single-add-cart:hover,
.product-summary-card .single-add-cart.button:hover,
.product-summary-card a.single-add-cart:hover,
.product-summary-card a.single-add-cart.button:hover,
.woocommerce .product-summary-card a.single-add-cart.button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(245,158,11,.38) !important;
}


.single-add-cart.is-disabled {
  background: var(--text-muted);
  box-shadow: none;
}

.wishlist-btn {
  min-width: 52px;
  padding: 0 14px;
  color: var(--blue-700);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-card);
}

.wishlist-btn span {
  font-size: 1.3rem;
}

.wishlist-btn.is-active {
  color: #e11d48;
  border-color: rgba(225,29,72,.28);
  background: #fff1f2;
}

.wishlist-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 34px;
  min-width: 0;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .78rem;
  box-shadow: var(--shadow-sm);
}

.wishlist-badge span {
  font-size: 1rem;
}

.mini-cart-link {
  min-height: 36px;
  justify-self: start;
  padding: 0 12px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  font-size: .85rem;
}

.mini-cart-link:hover {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.product-actions .added_to_cart,
.product-actions .wc-forward,
.product-summary-card .added_to_cart.wc-forward,
.product-card .added_to_cart,
.product-card .wc-forward,
.product-card .added_to_cart.wc-forward {
  display: none !important;
}

/* Carrinho */
.cart-page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}

.cart-page-hero .page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 14px;
  border: 1px solid rgba(245,158,11,.55);
  border-radius: 999px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(245,158,11,.1);
}

.cart-page-hero h1 {
  margin-top: 12px;
}

.cart-page-hero p {
  max-width: 620px;
  color: var(--blue-100);
}

.eduativa-cart-page {
  background: var(--bg-secondary);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.cart-items-panel,
.cart-summary-panel,
.cart-empty-state {
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.cart-items-panel {
  padding: 24px;
}

.cart-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.cart-panel-head h2,
.cart-coupon-box h3,
.cart-empty-state h2 {
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.cart-continue-link,
.cart-remove-link {
  color: var(--blue-700);
  font-weight: 900;
}

.cart-continue-link:hover,
.cart-remove-link:hover {
  color: var(--accent-dark);
}

.cart-items-list {
  display: grid;
  gap: 14px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
}

.cart-item-thumb {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1;
  background: var(--blue-100);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  position: relative;
  padding-right: 74px;
}

.cart-item-main h3 {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cart-item-label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 800;
}

.cart-item-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(59,130,212,.1);
}

.cart-item-price {
  text-align: right;
}

.cart-item-price span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-item-price strong {
  color: #1e4d8c;
  font-size: 1.2rem;
  font-weight: 950;
}

.cart-remove-link {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239,68,68,.1);
  color: var(--red);
  font-size: .78rem;
}

.cart-coupon-box {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border: 1px dashed rgba(30,77,140,.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(59,130,212,.1));
}

.cart-coupon-box p {
  color: var(--text-secondary);
  margin-top: 4px;
}

.cart-coupon-form {
  display: flex;
  gap: 10px;
}

.cart-coupon-form input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary);
}

.cart-coupon-form input:focus {
  outline: 3px solid rgba(59,130,212,.18);
  border-color: var(--blue-500);
}

.cart-coupon-button,
.cart-update-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 900;
}

.woocommerce .cart-coupon-button.button {
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 12px 24px rgba(245,158,11,.28);
  border: 0;
}

.woocommerce .cart-coupon-button.button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.cart-update-button {
  margin-top: 16px;
  background: transparent !important;
  color: var(--blue-700) !important;
  border: 1px solid var(--border-card) !important;
}

.cart-summary-panel {
  position: sticky;
  top: 118px;
  padding: 20px;
}

.cart-summary-note {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-900);
}

.cart-summary-note span {
  color: var(--text-secondary);
  font-size: .9rem;
}

.woocommerce .cart_totals {
  width: 100%;
  float: none;
}

.woocommerce .cart_totals h2 {
  color: var(--blue-900);
  font-size: 1.45rem;
  font-weight: 950;
  margin-bottom: 12px;
}

.woocommerce .cart_totals table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-secondary);
}

.woocommerce .cart_totals table.shop_table th {
  font-weight: 950;
}

.woocommerce .cart_totals table.shop_table td {
  text-align: right;
  color: var(--text-primary);
  font-weight: 900;
}

.woocommerce .wc-proceed-to-checkout {
  padding: 0;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button,
.cart-primary-action {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.34);
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.cart-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(245,158,11,.42);
}

.cart-empty-state {
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 28px;
  text-align: center;
}

.eduativa-empty-cart-state {
  max-width: 720px;
  padding: clamp(34px, 5vw, 58px) 28px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
}

.cart-empty-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-700);
  font-size: 2rem;
}

.cart-empty-state p {
  color: var(--text-secondary);
  margin: 10px auto 22px;
}

.eduativa-empty-cart-state h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 950;
}

.eduativa-empty-cart-state p {
  max-width: 500px;
  font-size: 1.05rem;
}

.checkout-login-state {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 28px;
  border: 1.5px solid var(--border-card);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-md);
  text-align: center;
}

.checkout-login-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(13,34,64,.18);
}

.checkout-login-state h2 {
  margin: 8px 0 10px;
  color: var(--blue-900);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
  font-weight: 950;
}

.checkout-login-state p {
  max-width: 540px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.checkout-login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-login-actions .btn-primary,
.checkout-register-link {
  width: auto !important;
  min-width: 210px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 24px !important;
  line-height: 1;
}

.checkout-register-link {
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  background: var(--white);
  color: var(--blue-700);
  font-weight: 950;
}

.checkout-register-link:hover {
  border-color: rgba(245,158,11,.45);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* Carrinho em bloco do WooCommerce */
.wc-block-cart {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-cart .wc-block-cart-item__quantity-title {
  display: none !important;
}

.wc-block-cart .wc-block-cart-item__quantity {
  display: block !important;
  margin-top: 10px !important;
}

.wc-block-cart .wc-block-cart-items__header-product,
.wc-block-cart .wc-block-cart-items__header-total,
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-cart .wp-block-woocommerce-cart-order-summary-heading-block,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 950 !important;
}

.wc-block-cart .wc-block-components-totals-wrapper,
.wc-block-cart .wc-block-components-panel,
.wc-block-cart .wc-block-components-panel__content {
  border-color: var(--border-card) !important;
}

.wc-block-cart .wc-block-components-panel__content {
  display: block;
}

.wc-block-cart .wc-block-components-text-input input {
  min-height: 46px;
  border-radius: 12px !important;
  border-color: var(--border-card) !important;
}

.wc-block-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-totals-coupon__button {
  min-height: 52px;
  border-radius: 14px !important;
  color: var(--white) !important;
  border: 0 !important;
  font-weight: 950 !important;
}

.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-components-totals-coupon__button:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
}

.wc-block-cart .wc-block-components-totals-coupon__button {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)) !important;
  box-shadow: 0 14px 26px rgba(30,77,140,.28);
}

.wc-block-cart .wc-block-components-totals-coupon__button:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700)) !important;
  box-shadow: 0 18px 32px rgba(30,77,140,.34);
}

.wc-block-cart .wc-block-cart__submit-button {
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.3);
}

.wc-block-cart .wc-block-cart__submit-button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button[type="submit"],
.wc-block-checkout .wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button {
  min-height: 58px;
  padding: 0 28px;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.3);
  font-weight: 950 !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(245,158,11,.38);
}

.wc-block-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: var(--white) !important;
  font-weight: inherit !important;
}

.wc-block-checkout .wc-block-components-totals-coupon__button,
.wc-block-checkout .wc-block-components-totals-coupon__button[type="submit"],
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-button {
  min-height: 50px;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)) !important;
  color: var(--white) !important;
  box-shadow: 0 14px 26px rgba(30,77,140,.25);
  font-weight: 950 !important;
}

.wc-block-checkout .wc-block-components-totals-coupon__button:hover,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-button:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.wc-block-checkout .wc-block-components-totals-coupon__button .wc-block-components-button__text,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-button__text {
  color: var(--white) !important;
  font-weight: inherit !important;
}

.wc-block-cart .wc-block-components-button__text {
  color: inherit !important;
  font-weight: inherit !important;
}

.wc-block-cart .wc-block-cart-item__remove-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin-top: 10px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(239,68,68,.1) !important;
  color: var(--red) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
}

.wc-block-cart .wc-block-cart-item__remove-link:hover {
  background: var(--red) !important;
  color: var(--white) !important;
}

.wp-block-woocommerce-empty-cart-block {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) 24px;
  border: 1.5px solid var(--border-card);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-md);
  text-align: center;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  max-width: 520px;
  margin: 18px auto 10px !important;
  color: var(--blue-900);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem) !important;
  line-height: 1.12;
  font-weight: 950;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 22px !important;
  border-radius: 28px;
  background-color: var(--blue-900) !important;
  box-shadow: 0 18px 34px rgba(13,34,64,.18);
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p,
.wp-block-woocommerce-empty-cart-block p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: 1rem;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p::after {
  content: "";
  display: block;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .button,
.woocommerce .return-to-shop .button {
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 16px 30px rgba(245,158,11,.28);
  font-weight: 950 !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
.wp-block-woocommerce-empty-cart-block .button:hover,
.woocommerce .return-to-shop .button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-cart-cross-sells-block,
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-grid,
.wp-block-woocommerce-empty-cart-block .wc-block-product-new {
  display: none !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-heading,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  display: block !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font-size: 0 !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
  content: "";
  display: block;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::after {
  content: "Seu carrinho esta vazio";
  display: block;
  color: var(--blue-900);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  font-weight: 950;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p {
  font-size: 0;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p::before {
  content: "Escolha uma atividade pronta para imprimir e volte aqui para finalizar.";
  display: block;
  color: var(--text-secondary);
  font-size: 1rem;
}

.wp-block-woocommerce-empty-cart-block .eduativa-empty-cart-action {
  margin-top: 22px;
}

[data-theme="dark"] .wc-block-cart {
  background: var(--bg-card);
}

[data-theme="dark"] .wp-block-woocommerce-empty-cart-block {
  background: var(--bg-card);
}

[data-theme="dark"] .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  color: var(--text-primary);
}

[data-theme="dark"] .cart-item-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(30,77,140,.18));
}

[data-theme="dark"] .cart-coupon-form input,
[data-theme="dark"] .cart-coupon-box,
[data-theme="dark"] .cart-summary-note {
  background: var(--blue-900);
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .cart-items-panel {
    padding: 18px;
  }

  .cart-panel-head,
  .cart-coupon-box,
  .cart-coupon-form,
  .cart-item-info {
    grid-template-columns: 1fr;
  }

  .cart-panel-head {
    align-items: start;
  }

  .cart-item-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .cart-item-info {
    padding-right: 0;
  }

  .cart-item-price {
    text-align: left;
  }

  .cart-remove-link {
    position: static;
    justify-self: start;
    width: fit-content;
  }

  .cart-coupon-button,
  .cart-update-button {
    width: 100%;
  }
}

.product-meta-box {
  display: grid;
  gap: 9px;
  color: var(--text-secondary);
  font-size: .92rem;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
}

.product-share-box {
  margin-top: 18px;
}

.product-share-box > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 900;
}

.product-share-box .share-buttons {
  gap: 8px;
}

.product-share-box .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-description-card {
  padding: 28px;
}

.product-description-section {
  padding-top: 0;
}

.product-description-card .single-content {
  padding: 0;
}

.related-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .product-single-grid,
  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-summary-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-single-grid,
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .product-summary-card,
  .product-description-card {
    padding: 20px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .wishlist-btn:not(.wishlist-badge) {
    width: 100%;
  }

  .product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================================
   07. Gratuitos, newsletter e loja
   ========================================================= */
.freebies-section {
  background:
    radial-gradient(circle 460px at 72% 16%, rgba(56, 189, 248, .24), transparent 62%),
    linear-gradient(135deg, var(--blue-700), var(--blue-950));
  padding: 78px 0;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.freebies-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.5), #000 28%, #000 72%, rgba(0,0,0,.5));
  pointer-events: none;
}

.freebies-inner {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.freebies-copy {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(8, 28, 57, .38);
  box-shadow: 0 24px 70px rgba(2, 8, 23, .22);
}

.freebies-copy .section-eyebrow { color: #7fc1ff; }
.freebies-copy h2 { color: var(--accent); font-size: 2.05rem; line-height: 1.12; margin-bottom: 14px; text-align: left; }
.freebies-copy p { color: var(--blue-100); font-size: 1.04rem; margin-bottom: 24px; text-align: left; }
.email-form, .newsletter-input-group { display: flex; flex-direction: column; gap: 8px; }
.newsletter-interest-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter-interest-field span {
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue-100);
}
.email-form input, .newsletter-input-group input, .email-form select, .newsletter-input-group select {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
}
.email-form select, .newsletter-input-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.72) 50%), linear-gradient(135deg, rgba(255,255,255,.72) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.email-form select option, .newsletter-input-group select option {
  color: var(--blue-900);
}
.btn-email, .newsletter-input-group button { background: var(--accent); color: var(--white); font-weight: 900; padding: 13px 22px; border-radius: var(--radius-sm); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-email:hover, .newsletter-input-group button:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,158,11,.28); }
.newsletter-message {
  min-height: 20px;
  color: var(--blue-100);
  font-size: .86rem;
  font-weight: 800;
  margin-top: 4px;
}

.freebies-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue-100);
  font-weight: 950;
}

.freebies-more:hover { color: var(--accent); }

.freebies-board {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, .95fr);
  gap: 18px;
}

.freebie-featured,
.freebie-row-card {
  color: var(--white);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.freebie-featured {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 22px 54px rgba(2, 8, 23, .22);
}

.freebie-featured:hover,
.freebie-row-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.36);
  box-shadow: 0 28px 70px rgba(2, 8, 23, .3);
}

.freebie-featured-media {
  min-height: 260px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.freebie-featured-media::before,
.freebie-row-thumb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 18px;
  pointer-events: none;
}

.freebie-featured-media img,
.freebie-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.freebie-featured-media span,
.freebie-row-thumb span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  font-size: 2rem;
}

.freebie-featured-media strong {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #059669);
  color: var(--white);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.freebie-featured-body {
  padding: 20px 22px 22px;
}

.freebie-featured-body span,
.freebie-row-card span {
  color: var(--blue-200);
  font-size: .76rem;
  font-weight: 900;
}

.freebie-featured-body h3 {
  margin: 7px 0 8px;
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.12;
}

.freebie-featured-body p {
  margin: 0 0 14px;
  color: var(--blue-100);
  font-weight: 800;
}

.freebie-featured-body small,
.freebie-row-card small {
  display: inline-flex;
  color: var(--green);
  font-weight: 950;
}

.freebie-list-wrap {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.freebie-list-fade {
  position: absolute;
  left: 12px;
  right: 22px;
  height: 38px;
  z-index: 3;
  pointer-events: none;
}

.freebie-list-fade-top {
  top: 0;
  background: linear-gradient(180deg, rgba(15, 48, 88, .85) 0%, rgba(15, 48, 88, 0) 100%);
}

.freebie-list-fade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 48, 88, .9) 0%, rgba(15, 48, 88, 0) 100%);
}

.freebie-list {
  display: grid;
  gap: 12px;
  max-height: 542px;
  overflow: auto;
  padding: 18px 14px 18px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.freebie-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.freebie-row-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.freebie-list .freebie-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 8, 23, .18);
}

.freebie-row-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
}

.freebie-row-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  line-height: 1.25;
  font-weight: 950;
}

.freebie-row-card small {
  margin-top: 8px;
  font-size: .8rem;
}

.freebie-thumb-map,
.freebie-thumb-water { background: linear-gradient(135deg, #2563b0, #38bdf8); }
.freebie-thumb-color { background: linear-gradient(135deg, #ec4899, #fbbf24); }
.freebie-thumb-history { background: linear-gradient(135deg, #92400e, #f59e0b); }
.freebie-thumb-planner { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.freebie-thumb-quiz { background: linear-gradient(135deg, #0f766e, #22c55e); }

@media (max-width: 900px) {
  .freebies-board {
    grid-template-columns: 1fr;
  }

  .freebie-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .freebie-list-wrap {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .freebie-list-fade {
    display: none;
  }
}

@media (max-width: 560px) {
  .freebies-section {
    padding: 56px 0;
  }

  .freebies-copy {
    padding: 22px;
  }

  .freebies-copy h2 {
    font-size: 1.75rem;
  }

  .freebie-featured {
    grid-template-rows: 220px auto;
    border-radius: 20px;
  }

  .freebie-featured-media {
    min-height: 220px;
  }

  .freebie-list {
    grid-template-columns: 1fr;
  }

  .freebie-row-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 104px;
  }

  .freebie-row-thumb {
    width: 82px;
    height: 82px;
  }
}

.shop-sidebar { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.shop-content ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }

/* =========================================================
   08. Footer igual à index.html
   ========================================================= */
.footer { background: #081426; color: var(--blue-200); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 56px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { margin: 0 0 18px; display: inline-flex; }
.footer-desc { max-width: 330px; color: var(--blue-300); margin-bottom: 22px; }
.footer-brand .logo.has-custom-logo {
  gap: 0;
}
.footer-brand .logo.has-custom-logo .logo-icon {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}
.footer-brand .logo.has-custom-logo .logo-image {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 84px;
  object-fit: contain;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}
.footer-social .eduativa-svg-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(65%) sepia(75%) saturate(2369%) hue-rotate(190deg) brightness(102%) contrast(97%);
}
.footer-social a:hover { transform: translateY(-1px); }
.footer-social a:hover .eduativa-svg-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(18%) saturate(3249%) hue-rotate(183deg) brightness(105%) contrast(98%);
}
.footer-heading { color: var(--white); font-weight: 900; margin-bottom: 16px; }
.footer-accordion-toggle { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.footer-accordion-toggle span { display: none; }
.footer-links { list-style: none; }
.footer-links a { display: block; color: var(--blue-300); margin: 8px 0; }
.footer-links a:hover { color: var(--white); }
.footer-news-text { font-size: .9rem; margin-bottom: 12px; color: var(--blue-300); }
.payment-icons { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.payment-icon { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; padding: 4px 10px; color: var(--blue-100); font-size: .75rem; font-weight: 900; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #64748b; padding-top: 20px; font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 18px; list-style: none; }

/* =========================================================
   09. Responsivo e performance visual
   ========================================================= */
@media (max-width: 1024px) {
  .products-grid, .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar-social, .header-search, .btn-store, .header-nav-row { display: none; }
  .header-main { min-height: 70px; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0; }
  .logo { margin-right: auto; }
  .header-actions { margin-left: auto; gap: 12px; }
  .mobile-menu-toggle { display: inline-flex; order: 1; }
  .header .cart-btn { order: 2; }
  .hero-inner, .blog-layout, .single-layout, .shop-layout, .freebies-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .products-grid, .post-grid, .freebies-grid, .shop-content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero-search { flex-direction: column; }
  .products-grid, .post-grid, .category-grid, .freebies-grid, .shop-content ul.products { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .footer-grid { gap: 0; }
  .footer-brand { margin-bottom: 24px; }
  .footer-accordion {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .footer-accordion:last-child {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .footer-accordion-toggle {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    color: var(--white);
  }
  .footer-accordion-toggle span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--blue-100);
    font-size: 1.05rem;
    transition: transform .18s ease, background .18s ease;
  }
  .footer-accordion.is-open .footer-accordion-toggle span {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--accent), #ff7a18);
    color: var(--white);
  }
  .footer-accordion-panel {
    display: none;
    padding: 0 0 18px;
  }
  .footer-accordion.is-open .footer-accordion-panel {
    display: block;
  }
  .footer-links a {
    margin: 0;
    padding: 8px 0;
  }
  .sticky-banner,
  .sidebar-box.sticky-banner,
  .blog-sidebar .sticky-banner {
    position: static;
  }
}

/* =========================================================
   10. Home: ajustes de fidelidade visual do index.html
   ========================================================= */
.header {
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 32px rgba(2, 8, 23, .28);
}

.header-search,
.btn-store,
.cart-btn,
.nav a {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.header-search:focus-within {
  background: rgba(255, 255, 255, .16);
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, .18);
}

.btn-store:hover,
.cart-btn:hover,
.nav a:hover {
  transform: translateY(-1px);
}

.home-section,
.section-pad {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin: 0 auto 32px;
}

.section-header .eyebrow,
.section-header .section-title,
.section-header .section-desc {
  text-align: center;
}

.section-header .section-desc {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#prodCarouselWrapper {
  width: 100vw;
  overflow: visible;
  padding: 18px max(24px, calc((100vw - 1180px) / 2)) 34px;
  margin: -18px 0 -34px calc(50% - 50vw);
}

#prodTrack {
  padding-bottom: 8px;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  transition: transform .42s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.carousel-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.carousel-track.category-grid,
.carousel-track.categories-grid,
.carousel-track.products-grid,
.carousel-track.freebies-grid {
  display: flex;
  grid-template-columns: none;
}

.carousel-track .category-card {
  flex: 0 0 calc(20% - 13px);
  min-width: 160px;
}

.carousel-track.products-grid .product-card,
.carousel-track .product-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 220px;
}

.carousel-track.freebies-grid .freebie-card,
.carousel-track .freebie-card {
  flex: 0 0 calc(25% - 11px);
  min-width: 210px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.carousel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--blue-600);
  color: var(--white);
}

.carousel-btn:disabled {
  cursor: default;
  opacity: .45;
}

.carousel-dark .carousel-btn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  color: var(--blue-100);
}

.carousel-dark .carousel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-300);
  opacity: .55;
  transition: width .18s ease, opacity .18s ease, background .18s ease;
}

.carousel-dot.active {
  width: 24px;
  background: var(--blue-700);
  opacity: 1;
}

.carousel-dark .carousel-dot {
  background: rgba(255, 255, 255, .38);
}

.carousel-dark .carousel-dot.active {
  background: var(--white);
}

.category-card {
  min-height: 168px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-4px);
}

.cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#catCarouselWrapper {
  overflow: visible;
  padding: 26px 6px 34px;
  margin: -26px -6px -34px;
}

#catCarouselWrapper .carousel-viewport {
  overflow: hidden;
  padding: 26px 6px 34px;
}

#catTrack {
  padding: 0 0 6px;
}

#catTrack .category-card {
  overflow: visible;
  isolation: isolate;
  flex-basis: calc((100% - 64px) / 5);
  min-width: 0;
}

#catTrack .category-card::before {
  border-radius: inherit;
}

#catTrack .category-card:hover {
  z-index: 3;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,77,140,.14);
}

.category-card h3,
.category-card p,
.badge-free {
  position: relative;
  z-index: 1;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, .22), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(251, 191, 36, .16), transparent 30%),
    linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: var(--white);
}

.tag-section .eyebrow,
.tag-section .section-title,
.tag-section .section-desc {
  color: var(--white);
}

.tag-section .section-desc {
  color: var(--blue-200);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.tag-filter-btn {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--blue-100);
  padding: 9px 14px;
  font-weight: 900;
  font-size: .86rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  padding: 11px 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(2, 8, 23, .12);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.tag-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .18);
}

.tag-item.hidden {
  display: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-100);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.blog-cat {
  color: var(--blue-600);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-title {
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: 16px;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 800;
}

.read-more {
  color: var(--blue-700);
  font-weight: 900;
  white-space: nowrap;
}

.read-more:hover {
  color: var(--accent);
}

.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid var(--blue-300);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--blue-700);
  font-size: .94rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.view-all-btn:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.view-all-btn span {
  font-size: 1.04rem;
  transition: transform .18s ease;
}

.view-all-btn:hover span {
  transform: translateX(3px);
}

.stats-strip {
  background: var(--blue-700);
  color: var(--white);
  padding: 40px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  color: var(--white);
  font-size: clamp(2.55rem, 4vw, 3.45rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  color: var(--blue-200);
  font-size: .9rem;
  font-weight: 600;
  margin-top: 6px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.testimonial-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  right: 18px;
  top: 8px;
  color: var(--blue-100);
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 900;
}

.test-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.test-text {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  color: var(--white);
  font-weight: 900;
}

.test-name {
  color: var(--text-primary);
  font-weight: 900;
}

.test-role {
  color: var(--text-muted);
  font-size: .82rem;
}

.back-to-top,
.cart-float {
  position: fixed;
  z-index: 120;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(2, 8, 23, .24);
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.back-to-top {
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-float {
  right: 78px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
}

.back-to-top:hover,
.cart-float:hover {
  transform: translateY(-2px);
}

html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .category-card {
  background: #12213a;
  border-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .carousel-btn {
  background: #172846;
  border-color: rgba(255, 255, 255, .12);
  color: var(--blue-100);
}

html[data-theme="dark"] .view-all-btn {
  background: #12213a;
  border-color: var(--blue-600);
  color: var(--blue-200);
}

html[data-theme="dark"] .view-all-btn:hover {
  background: var(--blue-600);
  border-color: var(--blue-500);
  color: var(--white);
}

html[data-contrast="high"] .tag-section,
html[data-contrast="high"] .freebies-section,
html[data-contrast="high"] .stats-strip {
  background: #000;
}

html[data-contrast="high"] .view-all-btn {
  background: #000;
  border-color: #fff;
  color: #fff;
}

html[data-contrast="high"] .view-all-btn:hover {
  background: #fff;
  color: #000;
}

/* Copia fiel da area "Encontre por tema ou serie" da index.html. */
.tag-section {
  padding: 56px 0;
  background: var(--blue-800);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

html[data-theme="dark"] .tag-section {
  background: var(--blue-900);
}

.tag-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(59,130,212,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.tag-section .container {
  position: relative;
  z-index: 1;
}

.tag-section .section-header {
  text-align: center;
  margin: 0 0 48px;
}

.tag-section .section-eyebrow {
  display: inline-block;
  color: var(--blue-300);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tag-section .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  text-align: center;
}

.tag-section .section-desc {
  color: var(--blue-200);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

.tag-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tag-filter-btn {
  background: rgba(255,255,255,0.1);
  color: var(--blue-200);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  transition: all .2s ease;
  letter-spacing: 0.3px;
  box-shadow: none;
  transform: none;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
  transform: none;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: none;
  margin: 0 auto;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--blue-200);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all .2s ease;
  cursor: pointer;
  box-shadow: none;
  gap: 0;
}

.tag-item:hover {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
  transform: translateY(-2px);
}

.tag-item.hidden {
  display: none;
}

html[data-contrast="high"] .tag-section {
  background: #000;
}

html[data-contrast="high"] .tag-section::before {
  display: none;
}

html[data-contrast="high"] .tag-filter-btn,
html[data-contrast="high"] .tag-item {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 560px) {
  .tag-section {
    padding: 44px 0;
  }

  .tag-section .section-header {
    margin-bottom: 32px;
  }

  .tag-filter-btn,
  .tag-item {
    padding: 7px 13px;
  }
}

/* Copia fiel dos cards de produtos da home na index.html. */
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  flex: 0 0 calc(25% - 16px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-300);
}

.product-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme="dark"] .product-thumb {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
}

.product-thumb-art {
  position: absolute;
  inset: 0;
}

.product-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,77,140,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.product-card:hover .product-thumb-overlay {
  opacity: 1;
}

.btn-quick-buy {
  background: var(--white);
  color: var(--blue-700);
  font-weight: 800;
  font-size: .875rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transform: translateY(8px);
  transition: transform .2s ease;
}

.product-card:hover .btn-quick-buy {
  transform: translateY(0);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-new {
  background: var(--blue-600);
  color: var(--white);
}

.badge-hot {
  background: #ef4444;
  color: var(--white);
}

.badge-gratis {
  background: var(--green);
  color: var(--white);
}

.product-info {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-subject {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.product-name {
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
  min-height: 42px;
}

.product-name a {
  color: inherit;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
}

.product-meta > div {
  min-width: 0;
}

.product-price {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--blue-700);
}

.product-price .product-discount,
.product-price .product-sale-price,
.product-price .product-regular-price {
  display: inline-flex;
  align-items: baseline;
}

.product-price .product-discount {
  margin-right: 5px;
  color: #e11d48;
  font-size: 1.08rem;
  font-weight: 500;
}

.product-price .product-sale-price {
  color: #1e4d8c;
  font-size: 1.54rem;
  line-height: 1;
}

.product-price .product-sale-price .amount {
  color: inherit;
}

.product-price .product-regular-price {
  display: flex;
  width: 100%;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-price .product-regular-price del {
  margin-left: 3px;
  color: inherit;
  opacity: .9;
}

html[data-theme="dark"] .product-price {
  color: var(--blue-300);
}

.product-price.free {
  color: var(--green);
}

.product-level {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 4px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  max-width: 116px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add-cart {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), #ff7a18);
  color: var(--white);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  transition: all .2s ease;
  flex-shrink: 0;
  box-shadow: 0 9px 18px rgba(245, 158, 11, .28);
}

.btn-add-cart.is-download {
  background: linear-gradient(135deg, #22c55e, #059669);
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 9px 18px rgba(5, 150, 105, .24);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark));
  transform: scale(1.05);
}

.btn-add-cart.is-download:hover {
  background: linear-gradient(135deg, #34d399, #047857);
}

.btn-add-cart.added,
.btn-add-cart.is-added {
  background: #94a3b8 !important;
  color: var(--white) !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: default;
  transform: none !important;
}

/* Hero da home: clone visual da index.html. */
.hero {
  background: var(--blue-900);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  color: var(--white);
}

html[data-theme="dark"] .hero {
  background: #060e1a;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59,130,212,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(245,158,11,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,212,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-sub {
  color: var(--blue-200);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
  box-shadow: none;
  max-width: none;
}

.hero-search:focus-within {
  border-color: var(--blue-300);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(59,130,212,0.2);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 20px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.4);
}

.hero-search button {
  background: var(--blue-600);
  color: var(--white);
  padding: 0 24px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background .2s ease;
}

.hero-search button:hover {
  background: var(--blue-500);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  font-weight: 800;
  font-size: .875rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(37,99,176,0.4);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,176,0.5);
}

.hero .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-cards-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card-preview {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease;
  animation: hero-float 4s ease-in-out infinite;
}

.hero-card-preview:nth-child(2) { animation-delay: 0.8s; }
.hero-card-preview:nth-child(3) { animation-delay: 1.6s; }
.hero-card-preview:nth-child(4) { animation-delay: 2.4s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-card-preview:hover {
  transform: translateY(-4px) scale(1.02);
}

.preview-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.preview-label {
  color: var(--white);
  font-weight: 800;
  font-size: .875rem;
  line-height: 1.3;
}

.preview-count {
  color: var(--blue-300);
  font-size: .75rem;
  margin-top: 3px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0;
}

.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-num {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  color: var(--blue-300);
  font-size: .75rem;
  margin-top: 3px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  fill: var(--bg-primary);
}

@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 56px 0 82px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    padding: 14px 20px;
  }
}

/* Loja: copia fiel da estrutura visual de loja.html. */
.shop-page .shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.shop-page .shop-sidebar {
  position: sticky;
  top: 104px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sidebar-head h2 {
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 900;
}

.shop-search {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.shop-search input {
  min-width: 0;
  width: 100%;
  border: 1.5px solid var(--border-card);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 13px;
  outline: none;
}

.shop-search button {
  width: 44px;
  border-radius: 9px;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 900;
  flex-shrink: 0;
}

.filter-group {
  display: grid;
  gap: 10px;
  padding: 17px 0;
  border-top: 1px solid var(--border-card);
}

.filter-title {
  color: var(--text-primary);
  font-weight: 900;
  margin-bottom: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-700);
}

.filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 900;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.btn.alt {
  background: var(--blue-700);
  color: var(--white);
  border: 2px solid var(--blue-700);
}

.btn.light {
  background: var(--bg-secondary);
  color: var(--blue-700);
  border: 2px solid var(--blue-200);
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.shop-toolbar h2 {
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.shop-toolbar p {
  color: var(--text-secondary);
}

.shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.shop-toolbar select,
.woocommerce-ordering select {
  border: 1.5px solid var(--border-card);
  border-radius: 9px;
  background: var(--bg-card);
  padding: 11px 12px;
  color: var(--text-primary);
  font-weight: 800;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  clear: both;
}

.shop-products .product-card {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  min-width: 0;
  flex: initial;
  display: flex;
  flex-direction: column;
}

.shop-products .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-products .product-meta {
  margin-top: auto;
}

.shop-products::before,
.shop-products::after {
  display: none;
  content: none;
}

.shop-products .btn-quick-buy::before {
  content: "";
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.load-more-btn {
  min-width: 220px;
  background: var(--bg-card);
  border: 2px solid var(--blue-300);
  color: var(--blue-700);
  border-radius: 9px;
  padding: 13px 28px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30,77,140,.1);
}

.load-more-btn:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.load-more-btn:disabled {
  opacity: .55;
  cursor: default;
}

.load-more-ended {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 900;
  text-align: center;
}

.mobile-filter-btn {
  display: none;
  position: fixed;
  right: 18px;
  top: 128px;
  bottom: auto;
  z-index: 10020;
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 17px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(2,8,23,.22);
}

.filter-backdrop {
  display: none;
}

html[data-theme="dark"] .shop-sidebar,
html[data-theme="dark"] .shop-toolbar select,
html[data-theme="dark"] .woocommerce-ordering select,
html[data-theme="dark"] .shop-search input {
  background: #152a47;
  color: #e2eaf5;
  border-color: #1e3a5f;
}

html[data-theme="dark"] .shop-toolbar h2,
html[data-theme="dark"] .sidebar-head h2,
html[data-theme="dark"] .filter-title {
  color: #e2eaf5;
}

html[data-contrast="high"] .shop-sidebar,
html[data-contrast="high"] .shop-search input,
html[data-contrast="high"] .shop-toolbar select,
html[data-contrast="high"] .woocommerce-ordering select,
html[data-contrast="high"] .load-more-btn {
  background: #000;
  border-color: #fff;
  color: #fff;
}

@media (max-width: 1024px) {
  .shop-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-page .shop-layout {
    display: block;
  }

  .shop-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .shop-sidebar,
  .shop-page .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    z-index: 10040;
    border-radius: 0 18px 18px 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  body.filters-open .shop-sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-grid;
    place-items: center;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
  }

  body.admin-bar .mobile-filter-btn {
    top: 174px;
  }

  body.filters-open .mobile-filter-btn {
    z-index: 10060;
    background: linear-gradient(135deg, #1e4d8c 0%, #347bd1 100%);
    pointer-events: auto;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0 0 0 min(86vw, 360px);
    z-index: 10010;
    background: rgba(10,22,40,.44);
  }

  body.filters-open .filter-backdrop {
    display: block;
  }
}

@media (max-width: 560px) {
  .mobile-filter-btn {
    top: 120px;
    left: 18px;
    right: auto;
    padding: 11px 15px;
  }

  body.admin-bar .mobile-filter-btn {
    top: 190px;
  }

  .shop-products {
    grid-template-columns: 1fr;
  }

  .shop-toolbar h2 {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  body.filters-open .shop-sidebar,
  body.filters-open .shop-page .shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(86vw, 360px) !important;
    z-index: 2147483000 !important;
    isolation: isolate;
    transform: translateX(0) !important;
    opacity: 1 !important;
    filter: none !important;
  }

  body.filters-open .mobile-filter-btn {
    position: fixed !important;
    z-index: 2147483001 !important;
  }

  body.filters-open .filter-backdrop {
    z-index: 2147482000 !important;
    pointer-events: none;
  }
}

@media (max-width: 1024px) {
  .carousel-track .category-card {
    flex-basis: calc(33.333% - 11px);
  }

  #catTrack .category-card {
    flex-basis: calc((100% - 32px) / 3);
  }

  .carousel-track.products-grid .product-card,
  .carousel-track .product-card,
  .carousel-track.freebies-grid .freebie-card,
  .carousel-track .freebie-card {
    flex-basis: calc(33.333% - 14px);
  }
}

@media (max-width: 900px) {
  .blog-grid,
  .testimonials-grid,
  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel-track .category-card {
    flex-basis: calc(33.333% - 11px);
  }

  #catTrack .category-card {
    flex-basis: calc((100% - 32px) / 3);
  }

  .carousel-track.products-grid .product-card,
  .carousel-track.freebies-grid .freebie-card,
  .carousel-track .freebie-card {
    flex-basis: calc(50% - 8px);
    min-width: 0;
  }

  .carousel-track.products-grid .product-card {
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .home-section,
  .section-pad {
    padding: 54px 0;
  }

  #prodCarouselWrapper {
    width: 100%;
    overflow: hidden;
    padding: 18px 0 34px;
    margin: -18px 0 -34px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .carousel-controls {
    margin-top: 22px;
  }

  .blog-grid,
  .testimonials-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .carousel-track .category-card {
    flex-basis: calc(50% - 8px);
    min-width: 0;
  }

  #catTrack .category-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .cart-float {
    right: 16px;
    bottom: 76px;
  }

  .back-to-top {
    right: 16px;
    bottom: 22px;
  }
}

/* Blog */
.blog-page .blog-hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  padding: 58px 0;
  color: var(--white);
}

.blog-page .blog-hero .section-head {
  margin-bottom: 28px;
}

.blog-page .blog-hero .section-head h1,
.blog-page .blog-hero .section-head p {
  color: var(--white);
}

.blog-page .blog-hero .eyebrow {
  color: var(--blue-300);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 22px;
}

.featured-grid .post-card:first-child .post-title {
  font-size: 26px;
}

.blog-menu {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 30;
}

body.admin-bar .blog-menu {
  top: 32px;
}

.blog-menu-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
}

.blog-menu-list a {
  flex: 0 0 auto;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 900;
}

.blog-menu-list a.active,
.blog-menu-list a:hover {
  background: var(--blue-700);
  color: var(--white);
}

.blog-main-section .post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.blog-main-column .section-head {
  margin-bottom: 24px;
}

.blog-page .blog-sidebar {
  position: static;
}

.blog-empty-message {
  color: var(--text-secondary);
  font-weight: 800;
}

html[data-theme="dark"] .blog-menu {
  background: var(--bg-primary);
}

@media (max-width: 980px) {
  .featured-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-page .blog-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .blog-main-section .post-list {
    grid-template-columns: 1fr;
  }

  body.admin-bar .blog-menu {
    top: 0;
  }
}

/* Login e cadastro da Minha Conta */
body.woocommerce-account:not(.logged-in) .single-card.single-content {
  max-width: 1120px !important;
  margin: 64px auto !important;
  padding: 34px !important;
  border: 1.5px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 42px !important;
  align-items: start !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce .col2-set::before,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set::after,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns::before,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce .col-1,
body.woocommerce-account:not(.logged-in) .woocommerce .col-2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce .col-1 h2,
body.woocommerce-account:not(.logged-in) .woocommerce .col-2 h2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column1 h2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 h2 {
  margin: 0 0 22px !important;
  color: var(--blue-900);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 950;
  line-height: 1.1;
}

body.woocommerce-account:not(.logged-in) .woocommerce form.login,
body.woocommerce-account:not(.logged-in) .woocommerce form.register {
  width: 100% !important;
  max-width: none !important;
  display: grid;
  gap: 18px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce form .form-row {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce form .form-row label {
  display: block;
  margin: 0 0 8px;
  color: var(--blue-900);
  font-weight: 950;
}

body.woocommerce-account:not(.logged-in) .woocommerce form .form-row input.input-text {
  width: 100% !important;
  min-height: 50px;
}

body.woocommerce-account:not(.logged-in) .woocommerce form .password-input {
  display: block;
  width: 100%;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  color: var(--text-secondary);
  font-weight: 900;
}

body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
  margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
  color: var(--text-secondary);
  font-size: .95rem;
}

@media (max-width: 900px) {
  body.woocommerce-account:not(.logged-in) .woocommerce,
  body.woocommerce-account:not(.logged-in) .woocommerce .col2-set,
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Nova tela de login/cadastro */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
}

body.woocommerce-account:not(.logged-in) .auth-page-content {
  max-width: 1120px;
}

body.woocommerce-account:not(.logged-in) .eduativa-auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.55fr);
  gap: 0;
  min-height: 560px;
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.eduativa-auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 46px);
  background:
    linear-gradient(rgba(13,34,64,.92), rgba(30,77,140,.9)),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}

.eduativa-auth-aside .section-eyebrow {
  color: var(--blue-200);
}

.eduativa-auth-aside h2 {
  max-width: 420px;
  margin: 10px 0 16px;
  color: var(--white);
  font-size: clamp(1.6rem, 2.4vw, 2.48rem);
  line-height: 1.04;
  font-weight: 950;
}

.eduativa-auth-aside h2 span {
  color: var(--accent);
}

.eduativa-auth-aside p {
  max-width: 410px;
  margin: 0 0 24px;
  color: var(--blue-100);
  font-size: 1.05rem;
}

.eduativa-auth-aside ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eduativa-auth-aside li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--blue-100);
  font-weight: 850;
}

.eduativa-auth-aside li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: .8rem;
  font-weight: 950;
}

.eduativa-auth-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  padding: clamp(30px, 4vw, 46px);
}

.eduativa-auth-panel {
  min-width: 0;
}

.eduativa-auth-panel h2 {
  margin: 0 0 22px;
  color: var(--blue-900);
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 950;
  line-height: 1.1;
}

body.woocommerce-account:not(.logged-in) .eduativa-auth-panel form.login,
body.woocommerce-account:not(.logged-in) .eduativa-auth-panel form.register {
  display: grid;
  gap: 17px;
}

.eduativa-auth-panel .auth-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.eduativa-auth-panel .woocommerce-form-login__rememberme {
  margin: 0 !important;
}

.eduativa-auth-panel .woocommerce-LostPassword a {
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
}

.eduativa-auth-panel .auth-hint,
.eduativa-auth-panel .woocommerce-privacy-policy-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: .67rem;
  line-height: 1.65;
}

.eduativa-auth-panel .woocommerce-privacy-policy-text a {
  color: var(--blue-700) !important;
  font-weight: 950 !important;
}

.eduativa-auth-panel .woocommerce-privacy-policy-text a:hover {
  color: var(--accent-dark) !important;
}

body.woocommerce-account:not(.logged-in) .eduativa-auth-panel .button {
  justify-self: start;
  min-width: 128px;
}

[data-theme="dark"] .eduativa-auth-shell,
[data-theme="dark"] .eduativa-auth-panel {
  background: var(--bg-card);
}

[data-theme="dark"] .eduativa-auth-panel h2 {
  color: var(--text-primary);
}

@media (max-width: 1040px) {
  body.woocommerce-account:not(.logged-in) .eduativa-auth-shell {
    grid-template-columns: 1fr;
  }

  .eduativa-auth-aside {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .eduativa-auth-forms {
    grid-template-columns: 1fr;
  }

  .eduativa-auth-panel-register {
    padding-top: 28px;
    border-top: 1px solid var(--border-card);
  }
}

@media (max-width: 560px) {
  body.woocommerce-account:not(.logged-in) .eduativa-auth-shell {
    border-radius: 18px;
  }

  .eduativa-auth-aside,
  .eduativa-auth-forms {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  body.woocommerce-account:not(.logged-in) .single-card.single-content {
    margin: 34px auto !important;
    padding: 22px !important;
  }

  body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
    display: flex !important;
    margin: 10px 0 0;
  }
}

/* Redefinicao de senha */
.eduativa-reset-shell {
  max-width: 760px;
  margin: 0 auto;
}

.eduativa-reset-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-md);
}

.eduativa-reset-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ff7a18, var(--blue-500));
}

.reset-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(30,77,140,.2);
}

.reset-icon-success {
  background: linear-gradient(135deg, var(--green), #059669);
  box-shadow: 0 14px 28px rgba(16,185,129,.2);
}

.eduativa-reset-card h2 {
  margin: 6px 0 10px;
  color: var(--blue-900);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
  font-weight: 950;
}

.eduativa-reset-card p {
  max-width: 620px;
  color: var(--text-secondary);
}

.eduativa-reset-card form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.eduativa-reset-card .form-row {
  margin: 0 !important;
  padding: 0 !important;
}

.eduativa-reset-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-weight: 950;
}

.eduativa-reset-card input.input-text {
  width: 100%;
  min-height: 54px;
}

.reset-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.reset-back-link {
  color: var(--blue-700) !important;
  font-weight: 950 !important;
}

.reset-back-link:hover {
  color: var(--accent-dark) !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-info {
  max-width: 760px;
  margin: 0 auto 18px !important;
  border-radius: 16px;
  border-top-color: var(--green) !important;
  box-shadow: var(--shadow-sm);
}

.eduativa-reset-confirmation .eduativa-reset-card p + p {
  margin-top: 8px;
}

.eduativa-reset-confirmation .reset-actions {
  margin-top: 22px;
}

.reset-login-button {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 20px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--accent), #ff7a18) !important;
  color: var(--white) !important;
  box-shadow: 0 14px 26px rgba(245,158,11,.24);
  font-weight: 950 !important;
}

.reset-login-button:hover {
  background: linear-gradient(135deg, #ffad16, var(--accent-dark)) !important;
  color: var(--white) !important;
}

[data-theme="dark"] .eduativa-reset-card {
  background: var(--bg-card);
}

[data-theme="dark"] .eduativa-reset-card h2,
[data-theme="dark"] .eduativa-reset-card label {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .page-article-layout {
    grid-template-columns: 1fr;
  }

  .page-toc-sidebar {
    position: static;
    order: -1;
  }

  .page-toc-toggle {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 1.5px solid var(--border-card);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--blue-900);
    font-weight: 950;
    box-shadow: var(--shadow-sm);
  }

  .page-toc-toggle span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff7a18);
    color: var(--white);
  }

  .page-toc-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
  }

  .page-toc {
    display: none;
  }

  .page-toc.is-open {
    display: block;
  }

  .single-content :where(.wp-block-gallery, .gallery) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .single-content {
    padding: 22px;
    margin: 18px;
  }

  .share-box {
    margin-top: 34px;
    padding: 18px 18px 20px;
  }

  .share-title {
    margin-bottom: 12px;
    font-size: .92rem;
  }

  .single-content p {
    font-size: 1rem;
  }

  .single-content h2 {
    font-size: 1.55rem;
  }

  .single-content h3 {
    font-size: 1.22rem;
  }

  .single-content blockquote,
  .single-content .wp-block-quote {
    padding: 22px 18px 22px 54px;
  }

  .single-content blockquote::before,
  .single-content .wp-block-quote::before {
    left: 16px;
    font-size: 2.8rem;
  }

  .single-content :where(.wp-block-gallery, .gallery) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.filters-open > .shop-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 360px) !important;
    z-index: 2147483646 !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    filter: none !important;
    background: var(--bg-card) !important;
    pointer-events: auto !important;
  }

  body.filters-open .topbar,
  body.filters-open .header,
  body.filters-open .cart-float,
  body.filters-open .back-to-top {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body.filters-open > .mobile-filter-btn {
    display: none !important;
    pointer-events: none !important;
  }

  body.filters-open > .filter-backdrop {
    z-index: 2147483000 !important;
  }
}

@media (max-width: 900px) {
  body.home .topbar,
  body.front-page .topbar,
  body.eduativa-front-page .topbar {
    position: relative;
    z-index: 10040;
  }

  body.home .header,
  body.front-page .header,
  body.eduativa-front-page .header {
    position: sticky;
    top: 0;
    z-index: 10030;
    transform: translateZ(0);
  }

  body.home .mobile-menu-toggle,
  body.front-page .mobile-menu-toggle,
  body.eduativa-front-page .mobile-menu-toggle,
  body.home .header .cart-btn,
  body.front-page .header .cart-btn,
  body.eduativa-front-page .header .cart-btn {
    display: inline-flex !important;
    visibility: visible;
    opacity: 1;
  }

  body.home .cart-float,
  body.front-page .cart-float,
  body.eduativa-front-page .cart-float {
    display: inline-flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 10050 !important;
  }

  body.home .back-to-top,
  body.front-page .back-to-top,
  body.eduativa-front-page .back-to-top {
    z-index: 10045 !important;
  }
}

@media (max-width: 560px) {
  body.home .cart-float,
  body.front-page .cart-float,
  body.eduativa-front-page .cart-float {
    right: 16px !important;
    bottom: 76px !important;
    z-index: 10120 !important;
  }

  body.home .back-to-top,
  body.front-page .back-to-top,
  body.eduativa-front-page .back-to-top {
    right: 16px !important;
    bottom: 22px !important;
    z-index: 10110 !important;
  }

  body.home .footer,
  body.front-page .footer,
  body.eduativa-front-page .footer {
    position: relative;
    z-index: 10000;
    isolation: isolate;
  }

  body.home .footer .container,
  body.front-page .footer .container,
  body.eduativa-front-page .footer .container,
  body.home .footer-grid,
  body.front-page .footer-grid,
  body.eduativa-front-page .footer-grid,
  body.home .footer-accordion,
  body.front-page .footer-accordion,
  body.eduativa-front-page .footer-accordion,
  body.home .footer-accordion-toggle,
  body.front-page .footer-accordion-toggle,
  body.eduativa-front-page .footer-accordion-toggle,
  body.home .footer-accordion-panel,
  body.front-page .footer-accordion-panel,
  body.eduativa-front-page .footer-accordion-panel {
    position: relative;
    z-index: 4;
    pointer-events: auto;
  }
}
