/* ──────────────────────────────────────────
   PRODUCT CATALOG CAROUSEL
─────────────────────────────────────────── */
.catalog-section {
  position: relative;
  background: var(--dark);
  padding: 100px 0 140px;
  z-index: 50;
  overflow: hidden;
}
.catalog-inner {
  max-width: 1600px;
  margin: 0 auto 24px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.catalog-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: 0.005em;
  color: var(--light);
  line-height: 1;
  margin: 0;
}

/* ── Carousel nav arrows ──────────────────── */
.catalog-nav {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cat-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--light-faint);
  cursor: pointer;
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s var(--ease-out-quint),
    opacity 0.4s ease;
}
.cat-arrow:hover {
  border-color: var(--light);
  background: rgba(196, 186, 176, 0.06);
}
.cat-arrow:active { transform: scale(0.92); }
.cat-arrow.is-disabled { opacity: 0.25; pointer-events: none; }
.cat-arrow svg { width: 16px; height: 16px; }

/* ── Carousel track ───────────────────────── */
.carousel {
  position: relative;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
}
.carousel.is-dragging { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 18px;
  padding: 32px 48px 20px;
  will-change: transform;
}

/* ──────────────────────────────────────────
   PRODUCT CARD
─────────────────────────────────────────── */
.product-card {
  /* Show 4.5 cards across the viewport.
     Math: viewport - 48px (track left padding) - 4*18px (gaps between visible cards) = 120px to subtract.
     Clamp keeps cards reasonable on very small or very large screens. */
  flex: 0 0 clamp(260px, calc((100vw - 120px) / 4.5), 400px);
  width: clamp(260px, calc((100vw - 120px) / 4.5), 400px);
  text-decoration: none;
  color: inherit;
  perspective: 1000px;
  user-select: none;
}

.card-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out-quint);
}

.card-frame {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.7s var(--ease-out-quint);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-bottle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 40%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.7s var(--ease-out-quint);
  z-index: 2;
}

.product-card:hover .card-stage  { transform: translateY(-12px); }
.product-card:hover .card-frame  { box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.7); }
.product-card:hover .card-bottle { transform: translate(-50%, -10px) scale(1.04); }
.carousel.is-dragging .product-card:hover .card-stage  { transform: none; }
.carousel.is-dragging .product-card:hover .card-bottle { transform: translateX(-50%); }

.card-meta { margin-top: 18px; padding: 0 6px; }
.card-category {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-dim);
  margin-bottom: 8px;
}
.card-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 400;
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-year {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--light-dim);
  letter-spacing: 0.12em;
}
