.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.collection { padding-top: 70px; }
.collection-intro { display: grid; grid-template-columns: minmax(0, 1fr) 172px; align-items: start; gap: 38px; }
.collection-intro .section-heading { position: relative; grid-template-columns: 153px minmax(0, 1fr); column-gap: 27px; overflow: hidden; margin-bottom: 0; padding-bottom: 22px; }
.collection-intro .section-heading .eyebrow { grid-column: 1; grid-row: 1 / 3; align-self: end; }
.collection-intro .section-heading h2 { grid-column: 2; grid-row: 1; max-width: none; font-size: clamp(44px, 5.1vw, 76px); white-space: nowrap; }
.collection-intro .section-heading > p:last-child { grid-column: 2; grid-row: 2; max-width: 540px; margin: 13px 0 0; }
.collection-watermark { position: absolute; width: 240px; right: 7%; bottom: -74px; opacity: .055; mix-blend-mode: multiply; pointer-events: none; transform: rotate(-8deg); }
.collection-front-portrait { position: relative; align-self: end; margin: 0; padding: 7px; background: var(--cream); box-shadow: 6px 6px 0 var(--red); }
.collection-front-portrait::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(25,23,20,.36); pointer-events: none; }
.collection-front-portrait img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.collection-front-portrait figcaption { position: absolute; z-index: 1; left: -7px; bottom: 14px; margin: 0; padding: 6px 8px; background: var(--ink); color: var(--paper); font: 8px/1.35 var(--mono); letter-spacing: .075em; text-transform: uppercase; }

/* La baraja se recorre como una mesa larga: no es un grid de catálogo genérico. */
.collection-deckbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 17px 0 24px;
  color: #665f55;
  font: 500 11px/1.45 var(--mono);
  letter-spacing: .015em;
}
.collection-deckbar p { margin: 0; }
.collection-deckbar p span { color: var(--red); font-size: 16px; vertical-align: -1px; }
.deck-controls { display: flex; align-items: center; gap: 7px; flex: none; color: var(--ink); }
.deck-controls > span { min-width: 48px; text-align: center; font-size: 10px; }
.deck-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 18px/1 var(--display);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.deck-arrow:hover { background: var(--ink); color: var(--paper); transform: scale(1.06); }
.deck-arrow:focus-visible, .product button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.products {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  overflow-y: clip;
  padding: 2px max(2px, calc((100vw - 1300px) / 2)) 26px 2px;
  margin-right: calc(-1 * max(2px, calc((100vw - 1300px) / 2)));
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--cream);
  overscroll-behavior-inline: contain;
}
.products::-webkit-scrollbar { height: 5px; }
.products::-webkit-scrollbar-track { background: var(--cream); }
.products::-webkit-scrollbar-thumb { background: var(--red); }
.product {
  flex: 0 0 min(356px, 29vw);
  scroll-snap-align: start;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.product-image {
  position: relative;
  isolation: isolate;
  background: #d8cbb1;
  box-shadow: 0 14px 30px rgba(44, 32, 17, .10);
}
.product-image .tag { z-index: 6; }
.product-shot { position: absolute; z-index: 1; inset: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.product-shot-front { opacity: 0; transform: translateX(18%) scale(.95); }
.product-image[data-face="front"] .product-shot-back { opacity: 0; transform: translateX(-18%) scale(1.05); }
.product-image[data-face="front"] .product-shot-front { opacity: 1; transform: none; }
.product-image[data-face="front"] .product-sheen { opacity: .85; animation: tarotSheen 1.15s cubic-bezier(.2,.7,.2,1) both; }
.product-image::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 8px;
  border: 1px solid rgba(246, 240, 226, .58);
  pointer-events: none;
  transition: inset .55s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.product-image img {
  position: relative;
  z-index: 1;
  transform: scale(1.001);
  filter: saturate(.94) contrast(1.015);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .65s ease;
  will-change: transform;
}
.product-sheen {
  position: absolute;
  z-index: 3;
  inset: -12%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(116deg, transparent 32%, rgba(255,255,255,.28) 48%, transparent 63%);
  transform: translateX(-55%) rotate(4deg);
  transition: opacity .25s ease;
}
.product-view {
  position: absolute;
  z-index: 4;
  bottom: 17px;
  left: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(25,23,20,.83);
  color: var(--paper);
  font: 9px/1 var(--mono);
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .38s ease, transform .38s ease;
}
.product-view i { width: 6px; height: 6px; border-radius: 50%; background: #e09e67; box-shadow: 0 0 0 0 rgba(224,158,103,.6); }
.product-motion {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 3px;
  align-items: end;
  height: 15px;
  opacity: 0;
  transition: opacity .35s ease;
}
.product-face-controls { position: absolute; z-index: 5; right: 11px; bottom: 11px; display: flex; overflow: hidden; border: 1px solid rgba(246,240,226,.76); background: rgba(25,23,20,.78); }
.product-face-controls button { grid-column: auto; margin: 0; padding: 7px 8px; border: 0; border-right: 1px solid rgba(246,240,226,.3); background: transparent; color: var(--paper); font: 9px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.product-face-controls button:last-child { border-right: 0; }
.product-face-controls button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.product-face-controls button:hover { background: var(--red); color: var(--paper); }
.product-motion b { display: block; width: 2px; height: 5px; background: var(--paper); animation: tarotMeter 1s ease-in-out infinite alternate; }
.product-motion b:nth-child(2) { height: 12px; animation-delay: .16s; }
.product-motion b:nth-child(3) { height: 8px; animation-delay: .32s; }
@keyframes tarotMeter { to { transform: scaleY(.35); transform-origin: bottom; } }

@media (hover: hover) {
  .product:hover { transform: translateY(-4px); }
  .product:hover .product-image::before { inset: 15px; border-color: rgba(246, 240, 226, .9); }
  .product:hover .product-image img { transform: scale(1.075) translateY(-1.1%); filter: saturate(1.04) contrast(1.04); }
  .product:hover .product-sheen { opacity: 1; animation: tarotSheen 1.15s cubic-bezier(.2,.7,.2,1) both; }
  .product:hover .product-view, .product:hover .product-motion { opacity: 1; transform: translateY(0); }
  .product:hover .product-view i { animation: tarotPulse 1.5s ease-out infinite; }
}
@keyframes tarotSheen { from { transform: translateX(-68%) rotate(4deg); } to { transform: translateX(68%) rotate(4deg); } }
@keyframes tarotPulse { 70%, 100% { box-shadow: 0 0 0 6px rgba(224,158,103,0); } }

@media (max-width: 1000px) {
  .product { flex-basis: min(360px, 42vw); }
}
@media (max-width: 760px) {
  .collection-intro { display: block; }
  .collection-intro .section-heading { margin-bottom: 16px; }
  .collection-intro .section-heading h2 { white-space: normal; }
  .collection-front-portrait { width: 112px; margin: 0 0 18px auto; box-shadow: 4px 4px 0 var(--red); }
  .collection-front-portrait figcaption { display: none; }
  .collection-watermark { width: 220px; right: -22px; bottom: -66px; }
  .collection-deckbar { margin: -9px 0 20px; align-items: flex-end; }
  .collection-deckbar p { max-width: 225px; }
  .products { gap: 17px; margin-right: -20px; padding-right: 20px; padding-bottom: 20px; }
  .product { flex-basis: 82vw; opacity: .55; transform: scale(.97); }
  .product.is-active { opacity: 1; transform: scale(1); }
  .product.is-active .product-image img { transform: scale(1.035); }
  .product.is-active .product-view, .product.is-active .product-motion { opacity: 1; transform: translateY(0); }
  .product-image { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .product, .product-image img, .product-image::before, .product-sheen, .product-view, .product-motion, .deck-arrow { transition: none !important; animation: none !important; }
  .product:hover, .product:hover .product-image img { transform: none; }
}
