/* ===================================================
   FitnessKiezen — Shared UI components
   Cards, grids, value-score, stars, breadcrumb, page-header
   =================================================== */

/* ===== CATEGORIEËN ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.category-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.category-card-img {
  height: 130px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s;
}
.category-card:hover .category-card-img img {
  transform: scale(1.05);
}
.category-card-body {
  padding: 14px 16px;
}
.category-card-body h3 {
  font-size: 0.92rem;
  font-weight: 600;
}
.category-card-body span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== PRODUCTEN ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.product-card-img {
  height: 170px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
}
.product-card-body {
  padding: 18px;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}
.product-price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ===== VALUE SCORE BADGE ===== */
.value-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.value-score-badge.score-excellent {
  background: rgba(34,197,94,0.1);
  color: var(--accent-dark);
}
.value-score-badge.score-good {
  background: rgba(59,130,246,0.1);
  color: #2563EB;
}
.value-score-badge.score-average {
  background: rgba(100,116,139,0.08);
  color: #64748B;
}

/* ===== STAR RATING ===== */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stars-icons {
  display: inline-flex;
  gap: 1px;
  color: #FBBF24;
  font-size: 1rem;
  line-height: 1;
}
.stars-icons .star-empty { color: #D1D5DB; }
.stars-text {
  font-size: 0.82rem;
  color: var(--text-light);
}
.stars-text strong {
  color: var(--dark);
  font-weight: 600;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 32px 0 24px;
}
.page-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-light);
  font-size: 0.92rem;
  max-width: 600px;
}

/* ===== RESPONSIVE (components) ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-header h1 { font-size: 1.3rem; }
  .product-card-img { height: 140px; }
  .category-card-img { height: 100px; font-size: 2rem; }
}
