.product-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(11, 92, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.product-hero .hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  align-items: center;
}

.product-hero .hero-grid > * {
  min-width: 0;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(18, 38, 63, 0.08);
  padding: 2rem;
}

.product-card .product-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.product-card .product-tag {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(11, 92, 255, 0.08);
  color: #0b4fd8;
  margin-bottom: 1.25rem;
}

.product-meta {
  display: grid;
  gap: 0.6rem;
  margin: 1.8rem 0 2rem;
}

.product-meta > p {
  margin: 0;
  line-height: 1;
}

.product-meta-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 1.35fr);
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.product-meta-item strong {
  color: #111827;
  font-weight: 700;
}

.product-feature-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid rgba(11, 92, 255, 0.18);
}

.product-feature-list li {
  list-style: disc;
  margin-left: 0.75rem;
  color: #334155;
  line-height: 1.7;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-aside {
  display: grid;
  gap: 1.5rem;
}

.product-cover-link {
  display: block;
  width: 80%;
  max-width: 320px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-cover-link:hover,
.product-cover-link:focus-visible {
  transform: translateY(-2px);
  opacity: 0.96;
}

.product-cover {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 26px 48px rgba(18, 38, 63, 0.12);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(11, 92, 255, 0.08);
  color: #0b4fd8;
  font-weight: 700;
  font-size: 0.95rem;
}

.playlist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 28px 60px rgba(18, 38, 63, 0.05);
}

.playlist-section {
  display: none;
}

.playlist-card h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.playlist-card p {
  margin: 0 0 1rem;
  color: #475569;
}

.youtube-shell {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.youtube-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  background: #ff0000;
  color: #fff;
}

.youtube-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.youtube-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

.youtube-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

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

/* Ajustes para descrição do livro: justificar texto, reduzir espaçamento entre linhas e espaçar parágrafos */
.product-description {
  text-align: justify;
  line-height: 1.45;
  margin-top: 0.6rem;
  color: #334155;
}
.product-description p {
  margin: 0 0 0.9rem;
}

.chapters-page {
  padding: 2.5rem 0 3rem;
}

.chapters-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chapters-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.chapters-text {
  max-width: 820px;
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.chapters-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 1.25rem;
}

.chapters-search {
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.chapters-count {
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
}

.chapters-list {
  display: grid;
  gap: 0.85rem;
}

.chapter-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 38, 63, 0.05);
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
}

.chapter-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.chapter-authors {
  margin: -0.35rem 0 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chapter-actions .btn-sm {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
}

.chapter-actions .btn-ghost {
  display: none;
}

.chapter-card.is-hidden {
  display: none;
}

@media (max-width: 760px) {
  .product-hero {
    padding: 2rem 0;
  }

  .product-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .product-card .product-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .product-actions,
  .chapter-actions {
    gap: 0.55rem;
  }

  .product-actions .btn {
    flex: 1 1 180px;
    text-align: center;
  }

  .playlist-card {
    border-radius: 16px;
  }

  .playlist-section {
    display: block;
  }

  .product-meta-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .product-meta-item strong {
    overflow-wrap: anywhere;
  }

  .playlist-card .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .youtube-topbar {
    flex-wrap: wrap;
  }

  .chapters-page {
    padding: 2rem 0 2.5rem;
  }

  .chapters-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .chapters-tools {
    align-items: stretch;
  }

  .chapters-search {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .product-aside {
    gap: 1rem;
  }

  .product-card,
  .playlist-card,
  .chapter-card {
    padding: 0.9rem;
  }

  .product-card .product-tag {
    max-width: 100%;
    white-space: normal;
  }

  .product-actions .btn {
    flex-basis: 100%;
  }

  .youtube-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .chapter-actions .btn-sm {
    font-size: 0.72rem;
  }
}
