/* =========================================================
   XCANDLES PRODUCT CARD SYSTEM
   ========================================================= */

:root {
  --product-card-width-desktop: 360px;
  --product-card-width-tablet: 340px;
  --product-card-width-mobile: 82vw;
  --product-card-radius: 34px;
}

/* VIEWPORT */
.product-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0 28px;
}

/* TRACK */
.product-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: max-content !important;
  overflow: visible !important;
  padding: 0 !important;

  cursor: grab;
  touch-action: none !important;
  user-select: none;

  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.product-grid.is-dragging {
  cursor: grabbing;
}

/* CARD */
.product-card {
  position: relative;

  flex: 0 0 var(--product-card-width-desktop) !important;
  width: var(--product-card-width-desktop) !important;
  aspect-ratio: 9 / 14;

  overflow: hidden;
  border-radius: var(--product-card-radius);
  border: 1px solid rgba(17,17,17,.14);
  background: #f7f2ea;

  user-select: none;
  pointer-events: auto;

  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);

  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s cubic-bezier(.22,.61,.36,1),
    border-color .35s cubic-bezier(.22,.61,.36,1);
}

.product-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 24px 60px rgba(17,17,17,.10);
}

.product-card.is-active {
  border-color: rgba(17,17,17,.42);

  box-shadow:
    inset 0 0 0 1px rgba(17,17,17,.18),
    0 24px 60px rgba(17,17,17,.10);

  transform:
    translateY(-10px)
    scale(1.02)
    translateZ(0);
}

/* IMAGE FULL */
.product-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  z-index: 1;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* FILM SUAVE */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.04),
    rgba(0,0,0,.05)
  );

  z-index: 2;
  pointer-events: none;
}

/* DEGRADADO BEIGE BAJO */
.product-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 38%;

  background: linear-gradient(
    to top,
    rgba(247,242,234,.96) 0%,
    rgba(247,242,234,.82) 32%,
    rgba(247,242,234,.36) 66%,
    rgba(247,242,234,0) 100%
  );

  z-index: 3;
  pointer-events: none;
}

/* SELECTOR FÍSICO */
.product-selector {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 16px;
  height: 16px;

  border-radius: 50%;
  background: #111;

  box-shadow:
    0 0 0 5px rgba(255,255,255,.72),
    0 0 0 7px rgba(17,17,17,.08);

  z-index: 8;

  opacity: 0;
  transform: scale(.6);

  transition:
    opacity .35s ease,
    transform .35s ease;
}

.product-card.is-active .product-selector {
  opacity: 1;
  transform: scale(1);
}

/* CONTENT */
.product-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 4;

  padding: 0 24px 44px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 500;
  color: #111;
}

.product-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17,17,17,.66);
}

/* BUTTONS */
.step-actions {
  position: relative;
  z-index: 10;
  transform: none !important;
}

.btn {
  transform: none;
}

/* TABLET */
@media (max-width: 1180px) {
  .product-card {
    flex-basis: var(--product-card-width-tablet) !important;
    width: var(--product-card-width-tablet) !important;
  }
}

/* MOBILE */
@media (max-width: 820px) {
  .product-card {
    flex-basis: var(--product-card-width-mobile) !important;
    width: var(--product-card-width-mobile) !important;
  }
}

/* SMALL MOBILE */
@media (max-width: 520px) {
  :root {
    --product-card-width-mobile: 86vw;
  }

  .product-card h3 {
    font-size: 32px;
  }
}