/* ============================================================
   PRODUCT PAGE — product.css
   Page-specific styles for the skin detail / buy page.
   Design tokens live in style.css.
   ============================================================ */


/* ── BREADCRUMB ─────────────────────────────────────────── */
.prod-breadcrumb {
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 0;
}

.prod-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prod-breadcrumb__link {
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
  text-decoration: none;
  transition: color .2s;
}
.prod-breadcrumb__link:hover { color: var(--c-green-light); }

.prod-breadcrumb__sep {
  color: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
}

.prod-breadcrumb__current {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  font-weight: 500;
}


/* ── HERO LAYOUT ────────────────────────────────────────── */
.prod-hero {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.prod-hero__inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
}


/* ── VISUAL STAGE ───────────────────────────────────────── */
.prod-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prod-visual__stage {
  position: relative;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 40vw, 520px);
  overflow: hidden;
  cursor: crosshair;
}

/* Animated glow orbs — exceedingly rare (magenta/pink) */
.prod-visual__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

.prod-visual__glow--1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(211, 44, 230, .55) 0%, transparent 70%);
  top: -60px;
  left: -80px;
  animation-delay: 0s;
}

.prod-visual__glow--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(153, 44, 230, .4) 0%, transparent 70%);
  bottom: -60px;
  right: -40px;
  animation-delay: 3s;
}

@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(1);    }
  50%       { opacity: .85; transform: scale(1.12); }
}

/* Grid texture overlay */
.prod-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* Rarity pill */
.prod-rarity-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.prod-rarity-pill--exceedingly {
  background: rgba(211, 44, 230, .12);
  border-color: rgba(211, 44, 230, .3);
  color: #e060ef;
}

.prod-rarity-pill--inline {
  position: static;
  display: inline-flex;
}

/* Wishlist shortcut in visual */
.prod-visual__wish {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.prod-visual__wish:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.prod-visual__wish.active {
  background: rgba(192, 57, 43, .2);
  border-color: rgba(192, 57, 43, .4);
  color: #e74c3c;
}

.prod-visual__wish.active svg { fill: currentColor; }

/* Main skin image */
.prod-visual__img {
  position: relative;
  z-index: 5;
  max-width: 82%;
  max-height: clamp(220px, 32vw, 420px);
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 80px rgba(211, 44, 230, .25));
  animation: skinFloat 5s ease-in-out infinite;
  user-select: none;
}

@keyframes skinFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-12px) rotate(-3deg); }
}


/* ── FLOAT BAR ──────────────────────────────────────────── */
.prod-float {
  padding: 16px 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

.prod-float__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prod-float__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.prod-float__val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-green-light);
  letter-spacing: .04em;
}

.prod-float__track {
  position: relative;
  height: 8px;
  margin-bottom: 8px;
}

.prod-float__zones {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  gap: 2px;
}

.prod-float__zone {
  flex: 1;
  height: 100%;
}

.prod-float__zone--fn { background: linear-gradient(90deg, #00d46a, #6ecf3c); }
.prod-float__zone--mw { background: linear-gradient(90deg, #6ecf3c, #c8d43c); }
.prod-float__zone--ft { background: linear-gradient(90deg, #c8d43c, #e08c20); }
.prod-float__zone--ww { background: linear-gradient(90deg, #e08c20, #e05520); }
.prod-float__zone--bs { background: linear-gradient(90deg, #e05520, #d32727); }

.prod-float__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: left .4s cubic-bezier(.34, 1.56, .64, 1);
}

.prod-float__marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111;
  box-shadow: 0 0 8px rgba(255, 255, 255, .6), 0 2px 6px rgba(0, 0, 0, .5);
}

.prod-float__legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  font-weight: 500;
  letter-spacing: .04em;
}


/* ── PURCHASE PANEL ─────────────────────────────────────── */
.prod-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Name */
.prod-panel__head {
  margin-bottom: 20px;
}

.prod-panel__type {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 8px;
}

.prod-panel__name {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: .92;
  letter-spacing: .03em;
  color: var(--c-white);
}

.prod-panel__name em {
  color: var(--c-green);
  font-style: normal;
}

/* Condition tabs */
.prod-cond {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.prod-cond__btn {
  flex: 1;
  height: 38px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-right: none;
  color: rgba(255, 255, 255, .4);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.prod-cond__btn:last-child { border-right: 1px solid rgba(255, 255, 255, .1); }

.prod-cond__btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.prod-cond__btn--active {
  background: rgba(153, 238, 45, .12);
  border-color: rgba(153, 238, 45, .4);
  color: var(--c-green-light);
  border-right: 1px solid rgba(153, 238, 45, .4);
  position: relative;
  z-index: 1;
}

.prod-cond__btn--active + .prod-cond__btn {
  border-left: none;
}

/* Price block */
.prod-price {
  margin-bottom: 16px;
}

.prod-price__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.prod-price__old {
  font-size: 16px;
  color: rgba(255, 255, 255, .3);
  text-decoration: line-through;
  font-family: var(--font-body);
}

.prod-price__badge {
  padding: 3px 8px;
  background: rgba(192, 57, 43, .2);
  border: 1px solid rgba(192, 57, 43, .4);
  font-size: 12px;
  font-weight: 700;
  color: #ff7070;
  letter-spacing: .04em;
}

.prod-price__current {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--c-white);
}

/* FOMO strip */
.prod-fomo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 22px;
  font-size: 13px;
}

.prod-fomo__viewers {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f15d09;
}

.prod-fomo__viewers svg { flex-shrink: 0; }

.prod-fomo__sep {
  color: rgba(255, 255, 255, .2);
}

.prod-fomo__stock {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .6);
}

.prod-fomo__stock svg { flex-shrink: 0; color: #f15d09; }

.prod-fomo__stock strong {
  color: #fff;
  font-weight: 700;
}

/* PRIMARY CTA */
.prod-cta {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--c-green);
  color: #111;
  clip-path: var(--clip-lg);
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  filter: drop-shadow(0 0 20px rgba(153, 238, 45, .35));
  transition: filter .2s ease, transform .15s ease;
}

.prod-cta:hover {
  filter: drop-shadow(0 0 36px rgba(153, 238, 45, .65)) brightness(1.07);
}

.prod-cta:active { transform: scale(.97); }

/* CTA shimmer sweep */
.prod-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, .25) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
}

.prod-cta:hover::before {
  transform: translateX(100%);
  transition: transform .55s ease;
}

.prod-cta__label {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
}

.prod-cta__price {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  opacity: .75;
}

.prod-cta__price::before { content: '— '; }

.prod-cta__arrow { flex-shrink: 0; }

/* Wishlist text button */
.prod-wish {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .4);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background .2s, border-color .2s, color .2s;
}

.prod-wish:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .75);
}

.prod-wish.active {
  background: rgba(192, 57, 43, .1);
  border-color: rgba(192, 57, 43, .35);
  color: #e74c3c;
}

.prod-wish.active svg { fill: currentColor; }

/* Trust row */
.prod-trust {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .06);
}

.prod-trust__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.prod-trust__item:last-child { border-right: none; }

.prod-trust__item svg {
  color: var(--c-green);
  flex-shrink: 0;
}


/* ── STICKY BUY BAR ─────────────────────────────────────── */
.prod-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(17, 17, 17, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32, 0, .67, 0);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);
}

.prod-sticky.is-visible {
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.33, 1, .68, 1);
}

.prod-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.prod-sticky__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.prod-sticky__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(211, 44, 230, .3));
  flex-shrink: 0;
}

.prod-sticky__name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-sticky__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.prod-sticky__old {
  font-size: 13px;
  color: rgba(255, 255, 255, .3);
  text-decoration: line-through;
}

.prod-sticky__price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--c-green-light);
  line-height: 1;
}

.prod-sticky__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 40px 0 28px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-sm);
  filter: drop-shadow(0 0 12px rgba(153, 238, 45, .3));
  transition: filter .2s, transform .15s;
  white-space: nowrap;
}

.prod-sticky__cta:hover {
  filter: drop-shadow(0 0 24px rgba(153, 238, 45, .6)) brightness(1.07);
}

.prod-sticky__cta:active { transform: scale(.97); }


/* ── SKIN DETAILS ───────────────────────────────────────── */
.prod-details {
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.prod-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}

.prod-details__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: .04em;
  color: var(--c-white);
  margin-bottom: 18px;
}

.prod-details__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 12px;
}

.prod-details__text strong { color: rgba(255, 255, 255, .8); }

.prod-details__dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prod-details__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 14px;
}

.prod-details__row:last-child { border-bottom: none; }

.prod-details__row dt {
  color: rgba(255, 255, 255, .35);
  font-weight: 500;
  flex-shrink: 0;
}

.prod-details__row dd {
  color: rgba(255, 255, 255, .75);
  text-align: right;
}


/* ── RELATED SKINS ──────────────────────────────────────── */
.prod-related {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.prod-related__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: .04em;
  color: var(--c-white);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.prod-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}


/* ── PRODUCT CARD — hover panel (related skins) ─────────── */
.product-card__hover-panel {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 30%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  z-index: 6;
}

.product-card:hover .product-card__hover-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-card__micro {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.product-card__micro svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--c-green);
}

.product-card__micro--urgent,
.product-card__micro--urgent svg { color: #f59e0b; }

.product-card__buy-btn {
  width: 100%;
  height: 34px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-sm);
  transition: background .2s;
}

.product-card__buy-btn:hover { background: var(--c-green-light); }


/* ── PRICE FLASH ANIMATION ──────────────────────────────── */
@keyframes priceFlash {
  0%   { opacity: 1; transform: scale(1);    }
  40%  { opacity: .6; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1);    }
}
.price-flash { animation: priceFlash .35s ease; }

/* CTA add confirmation */
@keyframes ctaAdded {
  0%   { filter: drop-shadow(0 0 20px rgba(153,238,45,.35)) brightness(1);   }
  40%  { filter: drop-shadow(0 0 48px rgba(153,238,45,.9))  brightness(1.15); }
  100% { filter: drop-shadow(0 0 20px rgba(153,238,45,.35)) brightness(1);   }
}
.prod-cta--added { animation: ctaAdded .7s ease; }


/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prod-hero__inner {
    grid-template-columns: 1fr 380px;
    gap: 40px;
  }

  .prod-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .prod-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .prod-visual__stage {
    min-height: 280px;
  }

  .prod-details__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prod-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .prod-sticky__name { display: none; }

  .prod-panel__name { font-size: 52px; }
}

@media (max-width: 480px) {
  .prod-related__grid { grid-template-columns: 1fr 1fr; }

  .prod-cta { height: 52px; }
  .prod-cta__label, .prod-cta__price { font-size: 19px; }

  .prod-sticky__thumb { width: 40px; height: 40px; }
  .prod-sticky__price { font-size: 17px; }
}
