/* ===== Product carousel ===== */
.prod-carousel {
  position: relative;
  max-width: calc(var(--maxw) + 120px);
  margin: 32px auto 0;
  padding: 0 60px;
}
.prod-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 20px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.prod-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1);
  padding: 8px 24px;
}
.prod-track.no-anim { transition: none; }

.prod-card {
  flex: 0 0 calc((100% - 24px * 3) / 4); /* 4 up on desktop */
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transform: scale(.88);
  opacity: .55;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1), opacity 600ms cubic-bezier(.22,.61,.36,1), box-shadow 400ms var(--ease), border-color 400ms var(--ease);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.prod-card.active {
  transform: scale(1);
  opacity: 1;
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.prod-card.near { opacity: .85; transform: scale(.94); }
.prod-card:hover { transform: scale(1.02); border-color: var(--accent); }
.prod-card.active:hover { transform: scale(1.03); }

.prod-img {
  aspect-ratio: 16/11;
  background-size: cover; background-position: center;
  position: relative;
}
.prod-brand {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  color: white;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.prod-body {
  padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.prod-body h3 { font-size: 20px; letter-spacing: -.01em; }
.prod-body p { color: var(--fg-dim); font-size: 14px; margin: 0; }
.prod-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.prod-arrow {
  position: absolute; top: 50%;
  width: 48px; height: 48px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-size: 28px; line-height: 1; font-family: var(--f-head);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  z-index: 3;
}
.prod-arrow-l { left: 6px; }
.prod-arrow-r { right: 6px; }
.prod-arrow:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.prod-arrow:active { transform: translateY(-50%) scale(.95); }

.prod-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 22px;
}
.prod-dot {
  width: 30px; height: 4px; border-radius: 2px;
  background: var(--line-strong); border: 0;
  cursor: pointer; padding: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.prod-dot.on { background: var(--accent); width: 44px; }
.prod-dot:hover { background: var(--accent-2); }

/* Tablet — 2 up */
@media (max-width: 1024px) {
  .prod-carousel { padding: 0 48px; }
  .prod-card { flex: 0 0 calc((100% - 24px) / 2); }
  .prod-arrow { width: 44px; height: 44px; }
}
/* Mobile — 1 up, touch/swipe */
@media (max-width: 640px) {
  .prod-carousel { padding: 0 16px; }
  .prod-viewport { -webkit-mask-image: none; mask-image: none; }
  .prod-track { gap: 16px; padding: 8px 8px; }
  .prod-card { flex: 0 0 calc(100% - 16px); transform: scale(.96); opacity: .7; }
  .prod-card.active { transform: scale(1); }
  .prod-arrow { display: none; }
}
