/* ================================================
   Aurea Édition – Catalogue dynamique
   ================================================ */

/* ---- Hero ---- */
.pe-acat-hero {
  background: linear-gradient(160deg, #064a59 0%, #0a677a 100%);
  color: white;
  padding: calc(110px + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.pe-acat-hero::after {
  content: '"';
  position: absolute;
  right: 4%;
  top: -2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.pe-acat-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: white;
}

.pe-acat-hero h1 em {
  font-style: italic;
  color: #f0e3d6;
}

.pe-acat-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 520px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.pe-acat-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.pe-acat-stat-num {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #f0e3d6;
}

.pe-acat-stat-lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* ---- Filter bar ---- */
.pe-acat-filters {
  background: #f8f3ee;
  border-bottom: 1px solid #ddd1c3;
  position: sticky;
  top: 90px; /* accounts for sticky header */
  z-index: 20;
  padding: 0.9rem 0;
  box-shadow: 0 2px 8px rgba(6, 74, 89, 0.06);
}

.pe-acat-filters-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pe-acat-search {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
}

.pe-acat-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border: 1.5px solid #c4b8aa;
  border-radius: 2em;
  font-size: 0.875rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: #1a2840;
}

.pe-acat-search input:focus {
  border-color: #064a59;
}

.pe-acat-search input::placeholder {
  color: #9a8e82;
}

.pe-acat-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9a8e82;
  pointer-events: none;
}

.pe-acat-select-wrap {
  position: relative;
  flex: 0 0 auto;
}

.pe-acat-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2.2rem 0.5rem 0.9rem;
  border: 1.5px solid #c4b8aa;
  border-radius: 2em;
  font-size: 0.82rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #3c3028;
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  white-space: nowrap;
  max-width: 220px;
}

.pe-acat-select:focus {
  border-color: #064a59;
}

.pe-acat-select-chevron {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9a8e82;
  pointer-events: none;
}

.pe-acat-count {
  font-size: 0.82rem;
  color: #6b5e52;
  font-family: 'Bricolage Grotesque', sans-serif;
  white-space: nowrap;
  margin-left: auto;
}

/* ---- Book grid ---- */
.pe-acat-section {
  background: #f8f3ee;
  padding: 2.5rem 0 5rem;
}

.pe-acat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.5rem;
}

.pe-acat-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(6, 74, 89, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.pe-acat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(6, 74, 89, 0.16);
}

.pe-acat-card-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  flex-shrink: 0;
}

.pe-acat-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.pe-acat-card:hover .pe-acat-card-cover img {
  transform: scale(1.03);
}

/* Elegant dark placeholder for books without cover */
.pe-acat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.9rem;
  background: linear-gradient(160deg, #0a677a 0%, #064a59 100%);
  color: white;
  text-align: center;
  gap: 0.6rem;
  position: relative;
}

.pe-acat-placeholder::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: rgba(240, 227, 214, 0.4);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.pe-acat-placeholder::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: rgba(240, 227, 214, 0.4);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pe-acat-ph-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: 'Bricolage Grotesque', sans-serif;
  opacity: 0.95;
  color: #f0e3d6;
}

.pe-acat-ph-author {
  font-size: 0.68rem;
  font-style: italic;
  opacity: 0.55;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #f0e3d6;
}

/* Bottom info strip — only shown when there's a cover */
.pe-acat-card-info {
  padding: 0.7rem 0.75rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 2px solid #f0e3d6;
}

.pe-acat-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a2840;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.pe-acat-card-author {
  font-size: 0.72rem;
  color: #064a59;
  opacity: 0.7;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.pe-acat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: #6b5e52;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.pe-acat-empty p {
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ---- CTA ---- */
.pe-acat-cta-section {
  background: #064a59;
  padding: 4rem 0;
  color: white;
}

.pe-acat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.pe-acat-cta-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.pe-acat-cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.6;
  max-width: 480px;
}

.pe-acat-cta-section .pe-btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.pe-acat-cta-section .pe-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.pe-acat-cta-logo {
  height: 60px;
  opacity: 1;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .pe-acat-search,
  .pe-acat-select {
    width: 100%;
    max-width: 100%;
  }

  .pe-acat-select-wrap {
    width: 100%;
  }

  .pe-acat-filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pe-acat-count {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .pe-acat-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .pe-acat-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .pe-acat-hero {
    padding: 3.5rem 0 2.5rem;
  }
}
