/* ── TJIDDE Product Card (extracted from tjidde-product-card.php op 2026-04-30) ─── */

/* ── Even hoge cards in WC grid ─────────────────────────── */
.woocommerce ul.products li.product:has(.tjpc) {
  display: flex !important;
}

/* ── Product Reveal Card ──────────────────────────────────── */
.tjpc {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(58,21,40,.06);
  background: var(--wit, #fff);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(58,21,40,.04);
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 769px) {
  .tjpc:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(58,21,40,.10);
  }
}

/* ── Link wrapper ──────────────────────────────────────────── */
.tjpc-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Media ─────────────────────────────────────────────────── */
.tjpc-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg, #FBF7F5);
}
.tjpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 769px) {
  .tjpc:hover .tjpc-img { transform: scale(1.06); }
}
.tjpc-img--placeholder {
  background: linear-gradient(135deg, var(--card-bg, #F6E6EF), var(--licht, #ECE0E6));
}
.tjpc-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,21,40,.12) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Badge (altijd roze) ───────────────────────────────────── */
.tjpc-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .7rem;
  border-radius: 99px;
  font-family: var(--font-body, sans-serif);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--accent, #7A3058);
  z-index: 5;
}

/* ── Body ──────────────────────────────────────────────────── */
.tjpc-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tjpc-title {
  font-family: var(--font-display, system-ui, sans-serif); /* Bold-set: Bricolage i.p.v. Fraunces (sessie 40) */
  font-size: 1.05rem;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--donker, #3A1528);
  line-height: 1.3;
  margin: 0 0 .35rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.tjpc-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: auto;
}
.tjpc-price-current {
  font-family: var(--font-body, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent, #7A3058);
}
.tjpc-price-original {
  font-size: .85rem;
  color: var(--subtitel, #5A2444);
  text-decoration: line-through;
}

/* ── Mobiele acties (altijd zichtbaar op mobile) ────────────── */
.tjpc-mobile-actions {
  display: none;
  margin-top: .75rem;
}
@media (max-width: 768px) {
  .tjpc-mobile-actions { display: block; }
}

/* ── Reveal overlay (alleen desktop) ───────────────────────── */
.tjpc-reveal {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.98);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1),
              opacity .3s ease;
  pointer-events: none;
  z-index: 4;
}
@media (max-width: 768px) {
  .tjpc-reveal { display: none !important; }
}
.tjpc:hover .tjpc-reveal,
.tjpc:focus-within .tjpc-reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tjpc-reveal-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  box-sizing: border-box;
}

/* Sessie 31 — reveal-overlay restyling */
.tjpc-reveal-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.tjpc-reveal-title {
  font-family: var(--font-heading, var(--font-body, sans-serif));
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--donker, #3A1528);
  margin: 0;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tjpc-reveal-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.tjpc-reveal-price .tjpc-price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent, #7A3058);
  line-height: 1;
}
.tjpc-reveal-price .tjpc-price-original {
  font-size: .9rem;
  color: var(--subtitel, #5A2444);
  opacity: .65;
  text-decoration: line-through;
}
.tjpc-reveal .tjpc-desc {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--subtitel, #5A2444);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tjpc-reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.tjpc:hover .tjpc-reveal-item:nth-child(1),
.tjpc:focus-within .tjpc-reveal-item:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.06s; }
.tjpc:hover .tjpc-reveal-item:nth-child(2),
.tjpc:focus-within .tjpc-reveal-item:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.12s; }
.tjpc:hover .tjpc-reveal-item:nth-child(3),
.tjpc:focus-within .tjpc-reveal-item:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.18s; }

.tjpc-reveal h4 {
  font-family: var(--font-body, sans-serif);
  font-size: .75rem;
  font-weight: 700;
  color: var(--donker, #3A1528);
  margin: 0 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tjpc-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--subtitel, #5A2444);
  margin: 0;
}
.tjpc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tjpc-tag {
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent, #7A3058);
  background: var(--bg, #FBF7F5);
  padding: .2rem .5rem;
  border-radius: 99px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.tjpc-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.tjpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* width:100% + padding mag niet overflow geven, ook als parent geen global reset heeft */
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body, sans-serif);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: none;
  line-height: 1;
}
.tjpc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tjpc-btn--primary {
  background: var(--accent, #7A3058);
  color: #fff !important;
}
.tjpc-btn--primary:hover,
.tjpc-btn--primary:focus-visible { background: var(--hover, #C4709E); color: #fff !important; }
.tjpc-btn--outline {
  background: transparent;
  color: var(--accent, #7A3058);
  border: 1px solid rgba(122,48,88,.18);
}
.tjpc-btn--outline:hover,
.tjpc-btn--outline:focus-visible { background: var(--bg, #FBF7F5); color: var(--accent); }
.tjpc-btn--sm { padding: .65rem 1rem; font-size: .9rem; }

/* ── WC grid reset (li bevat .tjpc) ────────────────────────── */
.woocommerce ul.products li.product:has(.tjpc) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
.woocommerce ul.products li.product:has(.tjpc):hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tjpc, .tjpc-img, .tjpc-reveal, .tjpc-reveal-item, .tjpc-fav {
    transition-duration: 0s !important;
  }
}
