/* ================================================
   Pratico Édition Cuisine – Catalogue dynamique
   ================================================ */

/* ---- Hero ---- */
.pe-pcat-hero {
  background: linear-gradient(135deg, #2a72bb 0%, #1a5899 100%);
  color: white;
  padding: calc(110px + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.pe-pcat-hero::before {
  content: '';
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.pe-pcat-hero::after {
  content: '';
  position: absolute;
  right: 6rem;
  bottom: -6rem;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.pe-pcat-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}

.pe-pcat-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.65;
  max-width: 520px;
  font-family: 'Inter', sans-serif;
}

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

.pe-pcat-stat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.pe-pcat-stat-lbl {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
}

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

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

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

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

.pe-pcat-search input:focus {
  border-color: #2a72bb;
}

.pe-pcat-search input::placeholder {
  color: #9a9088;
}

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

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

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

.pe-pcat-select:focus {
  border-color: #2a72bb;
}

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

.pe-pcat-count {
  font-size: 0.82rem;
  color: #7a6e64;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  margin-left: auto;
}

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

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

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

.pe-pcat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(42, 114, 187, 0.17);
}

.pe-pcat-card-cover {
  overflow: hidden;
  background: white;
  position: relative;
  flex-shrink: 0;
}

.pe-pcat-card-cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.pe-pcat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  background: linear-gradient(135deg, #2a72bb 0%, #1a5899 100%);
  color: white;
  text-align: center;
}

.pe-pcat-placeholder-initial {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0.6;
  line-height: 1;
}

.pe-pcat-placeholder-title {
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.85;
}

.pe-pcat-card-info {
  padding: 0.7rem 0.75rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.pe-pcat-card-author {
  font-size: 0.73rem;
  color: #6b80a0;
  font-family: 'Inter', sans-serif;
}

.pe-pcat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: #7a6e64;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

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

/* ---- CTA ---- */
.pe-pcat-cta-section {
  padding: 4rem 0;
  background: white;
}

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

.pe-pcat-cta-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: #1a2840;
  margin-bottom: 0.5rem;
}

.pe-pcat-cta-text p {
  color: #5a5048;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

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

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

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

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

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

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

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