:root {
  --navy: #082b69;
  --navy-2: #061f4f;
  --blue: #1765ee;
  --teal: #10b8ad;
  --ink: #172a42;
  --muted: #64748b;
  --line: #dce7f2;
  --soft: #f3f8fc;
  --white: #ffffff;
  --danger: #b42318;
  --success: #087f5b;
  --shadow-sm: 0 8px 24px rgba(8, 43, 105, 0.08);
  --shadow-md: 0 18px 45px rgba(8, 43, 105, 0.14);
  --radius: 22px;
  font-family: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f7fafc; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.page-main { min-height: 70vh; }
.section { padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, #edf5fb 0%, #f8fbfd 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: .76rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow.light { color: #8ee9df; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.45rem, 5vw, 5rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.05; }
h3 { line-height: 1.16; }
p { color: var(--muted); line-height: 1.68; }

.button {
  border: 0; border-radius: 13px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--blue), #0aa7c2); color: white; box-shadow: 0 10px 24px rgba(23, 101, 238, .22); }
.button-primary:hover { box-shadow: 0 13px 30px rgba(23, 101, 238, .3); }
.button-ghost { background: #eef5fb; color: var(--navy); border: 1px solid #d7e5f1; }
.button-light { background: white; color: var(--navy); box-shadow: var(--shadow-sm); }
.button-outline-light { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: white; }
.button.full { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; }
.centered-link { justify-content: center; margin-top: 18px; }
.icon-button { padding-inline: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(218,230,240,.85); }
.header-row { height: 92px; display: grid; grid-template-columns: 230px minmax(250px, 1fr) auto auto; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 220px; height: auto; max-height: 72px; object-fit: contain; object-position: left center; }
.header-search { height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid #d8e4ef; border-radius: 13px; padding: 0 14px; background: #f7fafc; color: #7d8ba0; }
.header-search input { border: 0; outline: 0; background: transparent; flex: 1; color: var(--ink); min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { display: flex; align-items: center; gap: 6px; color: #44536a; font-weight: 750; font-size: .92rem; white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); }
.cart-button, .mobile-menu { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: #eef5fb; color: var(--navy); position: relative; }
.cart-button span { position: absolute; right: -5px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--teal); color: white; font-size: .72rem; font-weight: 900; border-radius: 999px; border: 2px solid white; }
.mobile-menu { display: none; }
.homologation-banner { background: #fff4d6; color: #7a4d00; text-align: center; padding: 6px 14px; font-size: .78rem; font-weight: 800; border-top: 1px solid #f3d997; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #061e4d 0%, #08367f 48%, #087e93 100%); color: white; min-height: 650px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(24,216,199,.22), transparent 67%); right: -170px; top: -180px; }
.hero-grid-pattern { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: center; padding: 80px 0; }
.hero-copy h1 { color: white; max-width: 760px; margin: 18px 0 24px; }
.hero-copy > p { color: #d3e5f6; font-size: 1.18rem; max-width: 690px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .86rem; font-weight: 800; }
.hero-search { background: white; border-radius: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin: 32px 0 22px; max-width: 700px; box-shadow: 0 24px 50px rgba(0,0,0,.18); color: #75869a; }
.hero-search input { border: 0; outline: 0; min-width: 0; color: var(--ink); }
.hero-search button { border: 0; border-radius: 11px; padding: 13px 19px; background: linear-gradient(135deg, var(--blue), var(--teal)); color: white; font-weight: 850; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: #cfe7f8; font-size: .85rem; font-weight: 700; }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 17px; color: #72e6d6; }
.hero-books { min-height: 500px; position: relative; }
.hero-books img { position: absolute; width: 205px; border-radius: 12px; box-shadow: 0 24px 40px rgba(0,0,0,.28); transform: translate(calc(var(--book-index) * 45px), calc(var(--book-index) * 18px)) rotate(calc((var(--book-index) - 2) * 3deg)); right: calc(175px - var(--book-index) * 30px); top: calc(42px + var(--book-index) * 24px); border: 1px solid rgba(255,255,255,.32); transition: transform .3s ease; }
.hero-books:hover img { transform: translate(calc(var(--book-index) * 48px), calc(var(--book-index) * 12px - 9px)) rotate(calc((var(--book-index) - 2) * 2deg)); }
.hero-price-card { position: absolute; right: 5px; bottom: 48px; z-index: 8; width: 160px; padding: 18px; background: rgba(255,255,255,.92); color: var(--navy); border-radius: 17px; box-shadow: var(--shadow-md); backdrop-filter: blur(9px); }
.hero-price-card span, .hero-price-card small { display: block; color: var(--muted); font-size: .76rem; }
.hero-price-card strong { display: block; font-size: 1.65rem; margin: 3px 0; }

.category-strip { background: white; border-bottom: 1px solid var(--line); }
.category-carousel-shell { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; align-items: center; }
.category-list { display: flex; gap: 9px; overflow-x: auto; padding: 18px 2px; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
.category-list::-webkit-scrollbar { display: none; }
.category-list a { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #eff6fb; color: #315071; font-size: .84rem; font-weight: 750; scroll-snap-align: start; transition: background .18s ease, color .18s ease, transform .18s ease; }
.category-list a:hover { background: #e4f6f4; color: #087e78; transform: translateY(-1px); }
.category-arrow { width: 40px; height: 40px; border: 1px solid #d8e5ef; border-radius: 50%; background: white; color: var(--navy); display: grid; place-items: center; font-size: 1.75rem; line-height: 1; box-shadow: 0 7px 18px rgba(8,43,105,.09); transition: transform .18s ease, opacity .18s ease, background .18s ease; }
.category-arrow:hover:not(:disabled) { transform: translateY(-1px); background: #eef7fb; }
.category-arrow:disabled { opacity: .28; cursor: default; box-shadow: none; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 34px; }
.section-heading h2 { margin: 7px 0 0; }
.section-heading.centered { display: block; text-align: center; max-width: 740px; margin: 0 auto 46px; }
.section-heading.centered p { font-size: 1.05rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid #e1eaf2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 25px rgba(17,52,92,.06); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.cover-link { display: block; background: linear-gradient(145deg, #e7f1f8, #f8fbfd); padding: 20px 24px 0; }
.cover-shell { position: relative; overflow: visible; }
.cover-shell img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 10px 10px 0 0; box-shadow: 0 16px 30px rgba(8,43,105,.19); }
.badge { position: absolute; z-index: 2; left: -9px; top: 13px; padding: 6px 10px; border-radius: 8px; background: var(--teal); color: white; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 8px 16px rgba(17,183,173,.26); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-card-body h3 { font-size: 1.12rem; min-height: 2.58em; margin: 8px 0 10px; }
.product-title-link:hover h3 { color: var(--blue); }
.product-card-body > p { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.45em; }
.product-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf2f6; padding-top: 14px; margin-top: auto; }
.product-meta span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .79rem; }
.product-meta strong { color: var(--navy); font-size: 1.08rem; }
.product-actions { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8px; margin-top: 16px; }
.product-actions .button { min-height: 42px; padding: 0 10px; font-size: .82rem; }

/* Bundles */
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.bundle-card { height: 100%; display: flex; flex-direction: column; background: white; border: 1px solid #dce8f2; border-radius: 25px; padding: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.bundle-covers { height: 210px; position: relative; margin-bottom: 20px; }
.bundle-covers img { position: absolute; width: 120px; aspect-ratio: 1/1.414; object-fit: cover; border-radius: 7px; left: calc(18px + var(--index) * 58px); top: calc(7px + var(--index) * 7px); transform: rotate(calc((var(--index) - 1) * 4deg)); box-shadow: 0 12px 24px rgba(8,43,105,.22); border: 1px solid white; }
.bundle-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bundle-copy h3 { margin: 8px 0 9px; font-size: 1.3rem; }
.bundle-copy p { font-size: .9rem; min-height: 3em; }
.bundle-pricing { display: flex; align-items: end; justify-content: space-between; margin: 18px 0 3px; }
.bundle-pricing span { color: var(--muted); font-size: .78rem; }
.bundle-pricing strong { color: var(--navy); font-size: 1.6rem; }
.bundle-count { display: block; color: #65809a; font-size: .78rem; margin-bottom: 15px; }
.bundle-card .button { width: 100%; margin-top: auto; }
.full-library-wrap { margin-top: 30px; }
.full-library-wrap .featured-bundle { height: auto; background: linear-gradient(120deg, #061f4f 0%, #073b86 56%, #088a98 100%); color: white; display: grid; grid-template-columns: 1fr 1.3fr; gap: 34px; align-items: center; }
.featured-bundle .bundle-covers { margin: 0; height: 290px; }
.featured-bundle .bundle-covers img { width: 155px; left: calc(30px + var(--index) * 74px); top: calc(22px + var(--index) * 9px); }
.featured-bundle h3, .featured-bundle .bundle-pricing strong { color: white; font-size: 2rem; }
.featured-bundle p, .featured-bundle .bundle-count, .featured-bundle .bundle-pricing span { color: #cfe3f3; }
.featured-bundle .eyebrow { color: #8de9de; }
.all-bundles { margin-top: 34px; }
.top-bundle { margin-top: 0; margin-bottom: 40px; }


/* Aprendizado rápido e prático */
.quick-learning-section { padding: 18px 0 84px; background: linear-gradient(180deg, #f8fbfd 0%, #f3f8fc 100%); }
.quick-learning-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; padding: 42px; border: 1px solid #dce8f2; border-radius: 28px; background: white; box-shadow: var(--shadow-sm); }
.quick-learning-copy h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 10px 0 16px; max-width: 620px; }
.quick-learning-copy p { margin-bottom: 20px; }
.quick-learning-points { display: grid; gap: 12px; }
.quick-learning-points article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 17px; border: 1px solid #e2ebf3; border-radius: 17px; background: #f8fbfd; }
.quick-learning-points article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #e6efff, #dcf8f4); color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.quick-learning-points h3 { font-size: 1rem; margin: 2px 0 4px; }
.quick-learning-points p { font-size: .84rem; line-height: 1.55; margin: 0; }

/* How */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.steps-grid article { position: relative; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.steps-grid article > span { position: absolute; right: 18px; top: 16px; font-size: 2.1rem; font-weight: 900; color: #e3eef6; }
.steps-grid svg { color: var(--blue); width: 42px; height: 42px; margin: 4px auto 18px; }
.steps-grid h3 { margin-bottom: 7px; }
.steps-grid p { margin-bottom: 0; font-size: .91rem; }
.cta-band { padding: 70px 0; background: linear-gradient(120deg, #061f4f, #0a4c93 58%, #08a19b); color: white; }
.cta-band-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: white; margin: 8px 0; }
.cta-band p { color: #cfe4f2; margin: 0; }

/* Catalog */
.page-hero { background: linear-gradient(120deg, #061f4f, #073d84 57%, #078d99); color: white; }
.compact-hero { padding: 64px 0; }
.compact-hero h1 { color: white; font-size: clamp(2.4rem, 4vw, 4.2rem); max-width: 850px; margin: 10px 0 14px; }
.compact-hero p { color: #cfe1f1; font-size: 1.05rem; margin-bottom: 0; }
.catalog-layout { padding: 46px 0 88px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.catalog-search { display: flex; align-items: center; gap: 10px; border: 1px solid #d9e5ef; border-radius: 14px; padding: 0 15px; height: 50px; flex: 1; background: white; color: #7890a5; box-shadow: var(--shadow-sm); }
.catalog-search input { flex: 1; border: 0; outline: 0; min-width: 0; }
.catalog-count { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.filter-chips { display: flex; gap: 9px; margin: 25px 0 34px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.filter-chips button { white-space: nowrap; border: 1px solid #d9e5ef; border-radius: 999px; background: white; color: #466178; padding: 9px 14px; font-weight: 750; }
.filter-chips button.active { background: var(--navy); color: white; border-color: var(--navy); }
.catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.empty-state { text-align: center; padding: 70px 25px; border: 1px dashed #c8d9e7; border-radius: 24px; background: white; max-width: 760px; margin: 20px auto; }
.empty-state svg { color: var(--blue); }
.empty-state h2 { margin: 15px 0 6px; }
.empty-state.compact { border: 0; padding: 60px 15px; }

/* Product detail */
.product-detail-hero { background: linear-gradient(120deg, #061f4f, #073f87 60%, #078e98); padding: 42px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #cfe2f3; font-weight: 750; margin-bottom: 28px; }
.product-detail-grid { display: grid; grid-template-columns: 365px 1fr; gap: 65px; align-items: center; }
.product-detail-cover img { width: 100%; border-radius: 14px; box-shadow: 0 30px 55px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.38); }
.product-detail-copy h1 { color: white; font-size: clamp(2.4rem,4vw,4.2rem); line-height: 1.02; margin: 12px 0 20px; }
.product-lead { color: #d1e5f4; font-size: 1.05rem; max-width: 760px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 25px 0; }
.detail-meta span { display: flex; align-items: center; gap: 7px; color: #cce1f1; font-size: .84rem; }
.detail-meta svg { width: 17px; color: #8ce7de; }
.detail-price { margin: 25px 0 18px; }
.detail-price span, .detail-price small { display: block; color: #b9d2e6; }
.detail-price strong { display: block; color: white; font-size: 2.15rem; margin: 2px 0; }
.detail-buy { min-width: 240px; }
.detail-security { display: flex; align-items: center; gap: 7px; color: #c7deed; font-size: .82rem; margin: 14px 0 0; }
.product-content { display: grid; grid-template-columns: 1fr 330px; gap: 32px; padding: 65px 0 86px; align-items: start; }
.content-main { display: grid; gap: 25px; }
.content-card { background: white; border: 1px solid var(--line); border-radius: 23px; padding: 30px; box-shadow: var(--shadow-sm); }
.content-card h2 { font-size: 2rem; margin: 8px 0 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.check-list li { display: flex; gap: 10px; color: #365069; line-height: 1.45; }
.check-list svg { flex: 0 0 auto; color: var(--teal); background: #e6f8f5; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.chapter-list li { display: flex; gap: 10px; align-items: center; min-height: 58px; background: #f3f8fc; border-radius: 13px; padding: 12px 14px; color: #31506b; font-weight: 700; font-size: .9rem; }
.chapter-list span { font-size: .75rem; color: var(--teal); font-weight: 900; }
.sticky-card { position: sticky; top: 115px; }
.sticky-card h3 { font-size: 1.3rem; }
.sticky-card > ul { padding-left: 19px; color: #526b82; line-height: 1.58; }
.sticky-card > ul li { margin-bottom: 10px; }
.included-box { display: grid; gap: 9px; margin-top: 22px; padding: 18px; border-radius: 14px; background: #eef7fb; color: #37536b; font-size: .87rem; }
.included-box strong { color: var(--navy); }
.included-box span::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: 7px; }

/* Cart */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5,21,49,.58); backdrop-filter: blur(4px); }
.cart-drawer { margin-left: auto; width: min(470px,100%); height: 100%; background: white; display: flex; flex-direction: column; box-shadow: -20px 0 55px rgba(0,0,0,.18); }
.cart-drawer > header { min-height: 78px; border-bottom: 1px solid var(--line); padding: 0 23px; display: flex; justify-content: space-between; align-items: center; }
.cart-drawer > header div { display: flex; align-items: center; gap: 10px; }
.cart-drawer h2 { margin: 0; font-size: 1.35rem; }
.cart-drawer header button, .modal-close { border: 0; background: #edf4f8; color: var(--navy); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; }
.cart-items { padding: 16px 22px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf2f6; align-items: center; }
.cart-item img { width: 58px; height: 82px; object-fit: cover; border-radius: 6px; box-shadow: 0 5px 12px rgba(8,43,105,.16); }
.bundle-mini { width: 58px; height: 62px; display: grid; place-items: center; background: linear-gradient(135deg,var(--blue),var(--teal)); color: white; border-radius: 9px; font-size: .7rem; font-weight: 900; }
.cart-item span { color: var(--teal); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.cart-item h3 { font-size: .91rem; margin: 3px 0 5px; }
.cart-item strong { color: var(--navy); }
.cart-item > button { border: 0; background: transparent; color: #9b6a6a; }
.clear-cart { border: 0; background: transparent; color: #7b8793; font-size: .8rem; margin: 5px 24px 10px auto; }
.cart-summary { border-top: 1px solid var(--line); padding: 20px 23px 25px; background: #f7fafc; }
.cart-summary > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.cart-summary > div:first-child strong { font-size: 1.55rem; color: var(--navy); }
.cart-summary label, .login-panel label { display: block; font-size: .78rem; font-weight: 800; color: #536b81; margin-bottom: 6px; }
.cart-summary input, .login-panel input { width: 100%; height: 48px; border: 1px solid #d6e3ee; border-radius: 12px; padding: 0 13px; outline: 0; background: white; margin-bottom: 10px; }
.cart-summary input:focus, .login-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,101,238,.1); }
.secure-note { display: flex; align-items: center; gap: 6px; font-size: .76rem; margin: 13px 0 0; }

/* Login */
.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.login-panel { position: relative; width: min(450px,100%); background: white; border-radius: 25px; padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-close { position: absolute; right: 16px; top: 16px; }
.icon-bubble { width: 58px; height: 58px; display: grid; place-items: center; background: linear-gradient(135deg,#e6f0ff,#defaf5); color: var(--blue); border-radius: 17px; }
.login-panel h2 { font-size: 1.8rem; margin: 18px 0 8px; }
.login-panel form { margin-top: 22px; }
.alert { margin-top: 13px; border-radius: 11px; padding: 11px 13px; font-size: .84rem; display: flex; gap: 7px; align-items: center; }
.alert.success { color: #076e51; background: #e5f8f1; }
.alert.error { color: var(--danger); background: #fff0ed; }
.alert.warning { color: #795200; background: #fff4d6; }
.alert.wide { margin-bottom: 24px; }

/* Library */
.library-login-page, .callback-page, .success-page { display: grid; place-items: center; min-height: 72vh; padding: 60px 20px; background: radial-gradient(circle at top,#e8f5fb,#f7fafc 55%); }
.library-login-card, .callback-card, .success-card { width: min(580px,100%); text-align: center; background: white; border: 1px solid var(--line); border-radius: 26px; padding: 45px; box-shadow: var(--shadow-md); }
.library-login-card .icon-bubble, .callback-card .icon-bubble { margin: 0 auto; }
.library-login-card h1, .callback-card h1, .success-card h1 { font-size: 2.25rem; margin: 20px 0 10px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.library-hero h1 { font-size: clamp(2.35rem, 4vw, 3.8rem); margin-bottom: 12px; }
.library-user-line { color: #d7e8f5; margin: 0; font-size: 1rem; }
.library-user-line strong { color: white; overflow-wrap: anywhere; }
.library-content-section { min-height: 420px; }
.library-empty-state { max-width: 720px; margin: 0 auto; }
.library-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.library-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 19px; padding: 18px; box-shadow: var(--shadow-sm); }
.library-card img { width: 120px; aspect-ratio: 1/1.414; object-fit: cover; border-radius: 8px; }
.library-card h3 { font-size: 1.05rem; margin: 7px 0 15px; }
.loading-page { min-height: 340px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { color: white!important; background: var(--danger)!important; font-weight: 900; font-size: 1.5rem; }
.success-big { width: 68px; height: 68px; color: var(--success); }
.pending-big { width: 68px; height: 68px; color: #c58a0d; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 25px; }

/* Legal */
.legal-content { max-width: 820px; padding: 60px 0 90px; }
.legal-content p { background: white; border: 1px solid var(--line); padding: 20px; border-radius: 14px; }

/* Footer */
.site-footer { background: #061b42; color: white; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .8fr 1fr; gap: 45px; padding-bottom: 45px; }
.footer-logo { width: 230px; height: auto; max-height: 78px; object-fit: contain; object-position: left center; opacity: 1; }
.site-footer p { color: #a9c0d7; font-size: .88rem; }
.footer-gc2 { color: #72e0d5; font-weight: 800; font-size: .8rem; }
.site-footer h4 { color: white; margin-bottom: 16px; }
.site-footer a { display: block; color: #afc3d8; font-size: .88rem; margin: 10px 0; }
.site-footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; color: #8ca6c0; font-size: .78rem; }
.footer-bottom a { display: inline; margin: 0; color: #72e0d5; font-weight: 800; }
.footer-bottom a:hover { color: white; }

/* WhatsApp */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 48; width: 54px; min-height: 54px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: white; box-shadow: 0 16px 36px rgba(9, 94, 55, .28); transition: transform .18s ease, box-shadow .18s ease; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(9,94,55,.36); }
.whatsapp-float svg { width: 30px; height: 30px; flex: 0 0 auto; }

@media (max-width: 1060px) {
  .header-row { grid-template-columns: 190px 1fr auto auto; gap: 13px; }
  .main-nav { position: fixed; top: 92px; left: 0; right: 0; background: white; padding: 22px 24px 28px; display: none; flex-direction: column; align-items: flex-start; box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .main-nav.open { display: flex; }
  .mobile-menu { display: grid; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-books { display: none; }
  .hero { min-height: auto; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(3,1fr); }
  .bundle-grid { grid-template-columns: repeat(2,1fr); }
  .product-detail-grid { grid-template-columns: 310px 1fr; gap: 40px; }
  .library-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-row { height: 74px; grid-template-columns: 160px 1fr auto auto; }
  .brand img { width: 155px; max-height: 56px; }
  .header-search { display: none; }
  .main-nav { top: 74px; }
  .section { padding: 62px 0; }
  .hero-content { padding: 62px 0; }
  .hero-copy h1 { font-size: 3.2rem; }
  .hero-search { grid-template-columns: auto 1fr; padding: 13px 15px; }
  .hero-search button { grid-column: 1 / -1; }
  .hero-trust { display: grid; gap: 8px; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 15px; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .cover-link { padding: 13px 14px 0; }
  .product-card-body { padding: 15px; }
  .product-card-body h3 { font-size: .96rem; }
  .product-card-body > p { font-size: .8rem; -webkit-line-clamp: 2; min-height: 2.9em; }
  .product-actions { grid-template-columns: 1fr; }
  .product-actions .button { font-size: .78rem; }
  .bundle-grid { grid-template-columns: 1fr; }
  .full-library-wrap .featured-bundle { display: block; }
  .featured-bundle .bundle-covers { height: 250px; }
  .quick-learning-panel { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-band-content { display: block; }
  .cta-band .button { margin-top: 22px; }
  .catalog-toolbar { display: block; }
  .catalog-count { margin-top: 12px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-cover { max-width: 300px; margin: 0 auto; }
  .product-detail-copy { text-align: center; }
  .detail-meta { justify-content: center; }
  .detail-security { justify-content: center; }
  .product-content { grid-template-columns: 1fr; }
  .chapter-list { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .library-heading { display: block; }
  .library-hero h1 { font-size: 2.55rem; }
  .library-heading .button { margin-top: 18px; }
  .library-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-carousel-shell { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 6px; }
  .category-arrow { width: 36px; height: 36px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .header-row { grid-template-columns: 142px 1fr auto; }
  .cart-button { grid-column: 2; justify-self: end; }
  .mobile-menu { grid-column: 3; }
  .hero-copy h1 { font-size: 2.65rem; }
  .hero-copy > p { font-size: 1rem; }
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 130px 1fr; }
  .cover-link { padding: 12px 0 12px 12px; }
  .cover-shell img { border-radius: 8px; }
  .product-card-body { padding: 13px; }
  .product-card-body h3 { min-height: 0; }
  .product-card-body > p { display: none; }
  .product-meta { display: block; }
  .product-meta span { margin-bottom: 5px; }
  .product-actions .button-ghost { display: none; }
  .quick-learning-panel { padding: 24px 20px; border-radius: 22px; }
  .quick-learning-points article { grid-template-columns: 42px 1fr; padding: 14px; }
  .quick-learning-points article > span { width: 42px; height: 42px; }
  .bundle-covers { height: 190px; }
  .bundle-covers img { width: 105px; left: calc(10px + var(--index) * 50px); }
  .featured-bundle .bundle-covers img { width: 120px; left: calc(6px + var(--index) * 55px); }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { right: 14px; bottom: 14px; }
  .whatsapp-float svg { width: 29px; height: 29px; }
  .library-login-card, .callback-card, .success-card { padding: 30px 20px; }
  .library-card { grid-template-columns: 90px 1fr; }
  .library-card img { width: 90px; }
}

/* Ajustes da versão estática */
.filter-chips a { white-space: nowrap; border: 1px solid #d9e5ef; border-radius: 999px; background: white; color: #466178; padding: 9px 14px; font-weight: 750; }
.filter-chips a.active { background: var(--navy); color: white; border-color: var(--navy); }
.step-icon { color: var(--blue); font-size: 2.5rem; margin: 4px auto 18px; }
.empty-icon { color: var(--blue); font-size: 3rem; line-height: 1; }
.spin-text { display: inline-block; animation: spin 1s linear infinite; font-size: 2.5rem; color: var(--blue); }
.success-symbol { width: 70px; height: 70px; border-radius: 50%; background: #e5f8f1; color: #087f5b; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; margin: 0 auto 18px; }
.success-symbol.failure { background: #fff0ed; color: var(--danger); }
.cart-button { font-size: 1.25rem; font-weight: 900; }
.main-nav a { text-decoration: none; }
