/* ---------- Author books page (reference hero) ---------- */
.author-page {
  background: #f7f4ef;
}

.author-page-head {
  padding-top: 15px;
  padding-bottom: 24px;
}

.author-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 28px 32px 28px 28px;
  border-radius: 16px;
  background: #f7f4ef;
  overflow: hidden;
  box-sizing: border-box;
}

.author-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.author-hero__blob {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.author-hero__blob--one {
  width: 220px;
  height: 220px;
  top: -40px;
  right: 18%;
  background: rgba(198, 214, 188, 0.45);
}

.author-hero__blob--two {
  width: 160px;
  height: 160px;
  bottom: -30px;
  right: 8%;
  background: rgba(232, 226, 214, 0.75);
}

.author-hero__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.author-hero__breadcrumb {
  margin-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #64748b;
}

.author-hero__breadcrumb a {
  color: #3b66d1;
  text-decoration: none;
  transition: color var(--transition);
}

.author-hero__breadcrumb a:hover {
  color: #1e40af;
}

.author-hero__breadcrumb .breadcrumb-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-hero__breadcrumb-sep {
  color: #94a3b8;
}

.author-hero__breadcrumb span:last-child {
  color: #3b66d1;
  font-weight: 500;
}

.author-hero__title {
  margin: 0 0 10px;
  font-family: Arial, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #0a1d37;
  text-align: left;
  text-transform: none;
}

.author-hero__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.author-hero__divider-line {
  display: block;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: #c9a86c;
}

.author-hero__divider-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a86c;
}

.author-hero__desc {
  max-width: none;
  color: #46505f;
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}

.author-hero__desc p {
  margin: 0;
}

.author-hero__desc p + p {
  margin-top: 0.85em;
}

.author-hero__desc--fallback {
  margin: 0;
}

.author-hero__art {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: auto;
  max-width: 320px;
  margin-left: auto;
}

.author-hero__art-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.author-page-body {
  padding-bottom: 80px;
}

.author-page-grid {
  gap: 24px;
}

.author-page-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #78716c;
}

.author-page-pagination {
  margin-top: 36px;
}

/* Author page product cards — align with tag archive styling */
.author-page .shop-card.has-meta {
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.author-page .shop-card.has-meta:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  transform: translateY(-2px);
}

.author-page .shop-card .cover {
  border-radius: 10px;
  margin-bottom: 14px;
}

.author-page .shop-card h3 {
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
}

.author-page .shop-card .card-rating {
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}

.author-page .shop-card .price,
.author-page .shop-card .price ins {
  color: #1c1917;
  font-size: 1.5rem;
}

.author-page .shop-card .price del {
  color: #a8a29e;
  font-size: 1rem;
}

.author-page .shop-card .add-btn {
  border-radius: 10px;
  background: #2563eb;
  border-color: #2563eb;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 600;
}

.author-page .shop-card .add-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

@media (max-width: 900px) {
  .author-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 24px;
    gap: 20px;
  }

  .author-hero__content {
    width: 100%;
  }

  .author-hero__art {
    width: auto;
    max-width: none;
    margin-left: auto;
    align-self: flex-end;
  }

  .author-hero__art-img {
    max-width: 260px;
  }

  .author-hero__blob--one {
    right: 0;
  }
}

@media (max-width: 767px) {
  .author-hero__art,
  .author-hero__blobs {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .author-page-head {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .author-hero {
    padding: 22px 18px 20px;
    border-radius: 12px;
  }

  .author-hero__title {
    font-size: 1.75rem;
  }

  .author-hero__desc {
    font-size: 0.9375rem;
  }
}
