/* ============================================
   PAWSHOP – Styles page catégorie
   ============================================ */

/* ---- HERO CATÉGORIE ---- */
.cat-hero {
  background: linear-gradient(135deg, var(--secondary), #0F2540);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.cat-hero-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cat-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* ---- LAYOUT CATÉGORIE ---- */
.cat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 40px 20px 80px;
  align-items: start;
}

/* ---- FILTRES ---- */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.filter-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 7px; cursor: pointer; }
.filter-group input { cursor: pointer; accent-color: var(--primary); }

/* ---- TRI ---- */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sort-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* ---- RANGÉE PRODUIT ---- */
.cat-product-row {
  display: grid;
  grid-template-columns: 32px 160px 1fr 160px;
  gap: 20px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
  position: relative;
}
.cat-product-row:hover { box-shadow: var(--shadow-hover); }
.featured-row { border: 2px solid var(--primary); }

.rank-badge {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}
.rank-2 { background: #7F8C8D; }
.rank-3 { background: #A04000; }

.cat-product-row img {
  width: 160px;
  height: 140px;
  object-fit: cover;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.row-brand { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.8px; display: block; margin-bottom: 4px; }
.row-info h2 { font-size: 1.05rem; font-weight: 600; color: var(--secondary); line-height: 1.3; margin-bottom: 8px; }
.row-info h2 a:hover { color: var(--primary); }

.row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--primary); color: var(--white); }
.tag-green { background: var(--success); }
.tag-prime { background: #146EB4; }

.stars { font-size: 0.85rem; color: var(--accent); margin-bottom: 8px; }
.stars span { color: var(--text-muted); font-size: 0.8rem; }
.row-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.row-specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); }

/* ---- COLONNE PRIX ---- */
.row-price-col { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.row-price { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.row-price-unit { font-size: 0.78rem; color: var(--text-muted); }
.btn-amazon-sm {
  display: block;
  width: 100%;
  background: #FF9900;
  color: var(--text);
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}
.btn-amazon-sm:hover { background: #E68900; }
.btn-review-link { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.btn-review-link:hover { text-decoration: underline; }

/* ---- LOAD MORE ---- */
.load-more-btn {
  display: block;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  margin-bottom: 48px;
}
.load-more-btn:hover { background: var(--border); }

/* ---- SEO CONTENT ---- */
.cat-seo-content {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.cat-seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}
.cat-seo-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--secondary); margin: 20px 0 8px; }
.cat-seo-content p { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 12px; }

/* ---- BREADCRUMB (partagé depuis product.css) ---- */
.breadcrumb-nav { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb a { color: var(--primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; } /* À remplacer par un toggle mobile */
  .cat-product-row { grid-template-columns: 32px 120px 1fr; }
  .row-price-col { display: none; } /* Affiché dans l'info sur mobile */
}
@media (max-width: 640px) {
  .cat-product-row { grid-template-columns: 1fr; }
  .cat-product-row img { width: 100%; height: 180px; }
}
