/* ── Productkaarten (homepage, categoriepagina, gerelateerde producten) ───────── */

.pc {
  --pc-ink: #0F0F0F;
  --pc-muted: #6b6963;
  --pc-line: rgba(15, 15, 15, .08);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .04);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .2s;
  container-type: inline-size;
}
.pc.pc:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -18px rgba(15, 15, 15, .22), 0 2px 6px rgba(15, 15, 15, .05);
  border-color: rgba(15, 15, 15, .12);
}

/* ── Afbeelding ── */
.pc-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFEBE4;
}
.pc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.pc:hover .pc-media img { transform: scale(1.05); }

/* Studiofoto's (witte achtergrond): kleur de ondergrond in en laat het wit wegvallen,
   zodat het product los op een rustig vlak staat in plaats van in een wit vak. */
.pc-media.is-studio {
  background: radial-gradient(120% 95% at 50% 36%, #F6F3EC 0%, #EAE5DA 62%, #E1DBCE 100%);
}
.pc-media.is-studio img {
  object-fit: contain;
  padding: 8%;
  /* Geen filter erbij: Safari op iPhone rekent een brightness-filter mee in de menging,
     waardoor het fotovlak lichter wordt dan de achtergrond en als blok zichtbaar is. */
  mix-blend-mode: multiply;
}

.pc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: rgba(192, 66, 24, .55);
}

/* ── Labels ── */
.pc-tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #2b2a27;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: .42rem .7rem;
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .08), 0 0 0 1px rgba(15, 15, 15, .04);
}
.pc-star {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0F0F0F;
  color: #FBBF24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* ── Tekst ── */
.pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.35rem .35rem;
}
.pc-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--pc-ink);
  margin-bottom: .4rem;
}
.pc-desc {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--pc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin: 0;
}

/* ── Prijs en knop ── */
.pc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.35rem 1.3rem;
}
.pc-price { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pc-from {
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pc-muted);
  line-height: 1;
}
.pc-amount {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--pc-ink);
  white-space: nowrap;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 42px;
  padding: 0 1.05rem 0 .9rem;
  border: 0;
  border-radius: 12px;
  background: #161513;
  color: #fff;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .18s;
}
.pc-btn i { font-size: 1.05rem; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pc-btn:hover { background: var(--primary, #C04218); }
.pc-btn:hover i { transform: rotate(90deg); }
.pc-btn:active { transform: scale(.97); }
.pc-btn.added { background: #15803d; }
.pc-btn.added i { transform: none; }

/* Smalle kaart (bijv. twee kolommen op een telefoon): prijs boven, knop eronder over de volle breedte */
@container (max-width: 320px) {
  .pc-foot { flex-direction: column; align-items: stretch; gap: .8rem; }
  .pc-btn { width: 100%; height: 46px; }
  .pc-amount { font-size: 1.25rem; }
  .pc-body { padding: 1rem 1.1rem .3rem; }
  .pc-foot { padding: .85rem 1.1rem 1.1rem; }
  .pc-name { font-size: .98rem; }
  .pc-desc { font-size: .83rem; }
}

@media (max-width: 480px) {
  .pc-foot { padding: .9rem 1.2rem 1.2rem; }
  .pc-body { padding: 1.05rem 1.2rem .3rem; }
  .pc-btn { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc, .pc-media img, .pc-btn, .pc-btn i { transition: none; }
  .pc.pc:hover { transform: none; }
  .pc:hover .pc-media img { transform: none; }
}

/* Inline SVG-ster (de icoonfont heeft geen gevulde ster meer) */
.ico-star { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; display: block; }
.pc-star .ico-star { width: .85rem; height: .85rem; }
.cat-tab .ico-star { width: .95rem; height: .95rem; color: #d97706; }
.cat-tab.active .ico-star { color: #FBBF24; }
