/* Reparatieatelier Alkmaar · © Jaap Winder · kaartjes met diepte (versie 3) */
.product-card.pc3d {
    --rx: 0deg; --ry: 0deg; --px: 0; --py: 0; --gx: 50%; --gy: 30%; --lift: 0px;
    transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .35s ease, opacity .6s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 200, .07),
        0 2px 4px rgba(0, 0, 0, .45),
        0 18px 34px -12px rgba(0, 0, 0, .75);
    backface-visibility: hidden;
}
.product-card.pc3d.pc-live {
    --lift: -6px;
    transition: transform .1s linear, box-shadow .45s ease, border-color .35s ease;
    border-color: var(--brass, #d4af37);
    /* schaduw schuift tegen de kanteling in: het kaartje lijkt los te komen */
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 200, .10),
        calc(var(--px) * -14px) calc(10px + var(--py) * -10px) 18px -6px rgba(0, 0, 0, .55),
        calc(var(--px) * -26px) calc(30px + var(--py) * -18px) 50px -12px rgba(0, 0, 0, .8),
        0 0 26px rgba(200, 117, 51, .16);
}
.product-card.pc3d:hover { transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); }

/* lagen op eigen hoogte: bij kantelen schuiven ze een beetje ten opzichte van elkaar */
.product-card.pc3d .pc-well { transform: translate(calc(var(--px) * -5px), calc(var(--py) * -4px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.product-card.pc3d h3, .product-card.pc3d .product-category { transform: translate(calc(var(--px) * 3px), calc(var(--py) * 2px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), color .3s ease; }
.product-card.pc3d .product-footer { transform: translate(calc(var(--px) * 6px), calc(var(--py) * 4px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.product-card.pc3d.pc-live .pc-well, .product-card.pc3d.pc-live h3, .product-card.pc3d.pc-live .product-category, .product-card.pc3d.pc-live .product-footer { transition-duration: .1s; transition-timing-function: linear; }

/* de foto in een verzonken lijst */
.pc-well {
    position: relative; display: block; width: fit-content; max-width: 100%; margin: auto auto 15px;   /* margin-top auto: foto's in een rij op één lijn, ook als de titel langer is */ overflow: hidden; border-radius: 8px;
    background: #0b0907;
    border: 3px solid; border-color: #060504 #2a211a #3d3025 #060504;
    box-shadow: 0 1px 0 rgba(255, 230, 190, .10), 0 -1px 0 rgba(0, 0, 0, .6);
}
.pc-well img, .product-card .pc-well img {
    display: block; width: auto !important; max-width: 100%; padding: 0 !important; background: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
    transform: scale(1.04) translate(calc(var(--px) * 6px), calc(var(--py) * 5px));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.product-card.pc3d.pc-live .pc-well img { transform: scale(1.08) translate(calc(var(--px) * 7px), calc(var(--py) * 6px)); transition-duration: .1s; transition-timing-function: linear; }
.pc-well::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 4px; z-index: 2;
    box-shadow: inset 0 14px 20px -8px rgba(0, 0, 0, .7), inset 10px 0 16px -10px rgba(0, 0, 0, .5), inset -10px 0 16px -10px rgba(0, 0, 0, .35), inset 0 -10px 14px -10px rgba(0, 0, 0, .4);
}
/* glans over de foto, zoals licht op lak: schuift mee met de muis, en één keer bij in beeld komen */
.pc-sheen {
    position: absolute; inset: -20% -60%; pointer-events: none; z-index: 1; opacity: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 248, 230, .55) 48%, rgba(255, 236, 200, .2) 52%, transparent 62%);
    transform: translateX(calc(var(--px) * 22% - 10%));
    transition: opacity .4s ease;
    mix-blend-mode: soft-light;
}
.product-card.pc3d.pc-live .pc-sheen { opacity: 1; }
.product-card.pc3d.pc-in:not(.pc-now) .pc-sheen { animation: pcSweep 1.4s cubic-bezier(.3, .6, .2, 1) calc(var(--delay, 0ms) + .25s) 1 both; }
@keyframes pcSweep { 0% { opacity: 0; transform: translateX(-55%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(55%); } }

/* warme koperglans over het hele kaartje, volgt de muis */
.pc-glare {
    position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; opacity: 0;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 214, 150, .16), rgba(212, 175, 55, .05) 30%, transparent 58%);
    mix-blend-mode: screen;
    transition: opacity .45s ease;
}
.product-card.pc3d.pc-live .pc-glare { opacity: 1; }
/* het koperen randje bovenaan licht op */
.product-card.pc3d::before { transition: opacity .35s ease, filter .35s ease; }
.product-card.pc3d.pc-live::before { opacity: 1; filter: brightness(1.25) saturate(1.1); }

/* in beeld scrollen */
.product-card.pc3d.pc-wait { opacity: 0; --lift: 26px; }
.product-card.pc3d.pc-in { opacity: 1; transition-delay: var(--delay, 0ms); }
.product-card.pc3d.pc-in.pc-live { transition-delay: 0ms; }
/* telefoon: indrukken veert even in */
.product-card.pc3d.pc-press { --lift: 2px; transition-duration: .12s; box-shadow: inset 0 1px 0 rgba(255, 235, 200, .06), 0 1px 3px rgba(0, 0, 0, .5), 0 8px 16px -10px rgba(0, 0, 0, .7); }

/* verkocht: rustig */
.product-card.is-sold .pc-well { margin-bottom: 10px; border-width: 2px; }
.product-card.is-sold .pc-glare, .product-card.is-sold .pc-sheen { display: none; }
body.photos-light .product-card .pc-well { background: #1b1612; }

/* kaartjes zonder foto */
.product-card.pc-text .pc-glare { display: none; }

@media (prefers-reduced-motion: reduce) {
    .product-card.pc3d, .product-card.pc3d *, .pc-well img { transition: none !important; animation: none !important; }
    .product-card.pc3d { transform: none; }
    .product-card.pc3d.pc-wait { opacity: 1; }
}
