/* ─────────────────────────────────────────────────────────────────────────────
   Kangan Silver Collection — Dark Luxury Theme
───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:          #080808;
  --surface:     #111111;
  --text:        #F0F0F0;
  --muted:       #AAAAAA;
  --border:      rgba(200, 200, 200, 0.14);
  --silver-shine:#FFFFFF;
  --silver-hi:   #F0F0F0;
  --silver-mid:  #CCCCCC;
  --silver-low:  #999999;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* Ambient silver radial glows — fixed behind everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(192,192,192,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(192,192,192,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Particle Canvas ─────────────────────────────────────────────────────── */

#sc-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

#sc-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  height: 64px;
  background: rgba(8, 8, 8, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.sc-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s;
  flex-shrink: 0;
}
.sc-back svg { transition: transform 0.25s; }
.sc-back:hover { color: var(--silver-mid); }
.sc-back:hover svg { transform: translateX(-3px); }

.sc-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    var(--silver-low) 0%,
    var(--silver-mid) 30%,
    var(--silver-hi)  50%,
    var(--silver-mid) 70%,
    var(--silver-low) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-header-right {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-policy-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.sc-policy-link {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s;
}
.sc-policy-link:hover { color: var(--silver-mid); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.sc-hero {
  position: relative;
  z-index: 2;
  padding: 150px 2rem 70px;
  text-align: center;
}

.sc-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Large "RINGS" with animated silver sweep */
.sc-hero-title {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 0.9;
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--silver-low)  0%,
    var(--silver-mid)  20%,
    var(--silver-hi)   38%,
    var(--silver-shine) 50%,
    var(--silver-hi)   62%,
    var(--silver-mid)  80%,
    var(--silver-low)  100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silverSweep 6s ease-in-out infinite;
}

@keyframes silverSweep {
  0%   { background-position: 150% 0; }
  50%  { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

/* Thin animated silver line beneath title */
.sc-hero-title::after {
  content: '';
  display: block;
  height: 1px;
  margin: 2.2rem auto 0;
  width: 80%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--silver-low)  20%,
    var(--silver-hi)   50%,
    var(--silver-low)  80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: lineSweep 6s ease-in-out infinite;
}

@keyframes lineSweep {
  0%   { background-position: 150% 0; opacity: 0.3; }
  50%  { background-position: -50% 0; opacity: 1; }
  100% { background-position: 150% 0; opacity: 0.3; }
}

.sc-hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 2.2rem;
  padding-bottom: 4rem;
}

/* ─── Section ────────────────────────────────────────────────────────────── */

.sc-section {
  position: relative;
  z-index: 2;
  padding: 5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.sc-section + .sc-section { padding-top: 0; }

.sc-section-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

/* Animated silver rule */
.sc-rule {
  flex: 1;
  height: 1px;
  position: relative;
  background: rgba(192,192,192,0.12);
  overflow: hidden;
}

.sc-rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(220,220,220,0.7), transparent);
  background-size: 40% 100%;
  animation: ruleSweep 4s ease-in-out infinite;
}

@keyframes ruleSweep {
  0%   { background-position: -100% 0; }
  100% { background-position: 300% 0; }
}

.sc-section-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    var(--silver-low),
    var(--silver-hi),
    var(--silver-low)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Product Grid ───────────────────────────────────────────────────────── */

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

/* ─── Highlight Card (desktop: 2nd, mobile: 3rd) ────────────────────────── */

/* Desktop — center (2nd) card */
.sc-grid .product-card:nth-child(2) {
  transform: scale(1.055);
  transform-origin: center center;
  z-index: 5;
}

.sc-grid .product-card:nth-child(2) .card-image-wrap {
  border: 3px solid transparent;
  background:
    linear-gradient(145deg, #141414 0%, #1c1c1c 50%, #111111 100%) padding-box,
    linear-gradient(135deg, #787878 0%, #d8d8d8 25%, #ffffff 50%, #d8d8d8 75%, #787878 100%) border-box;
  background-size: auto, 300% 300%;
  animation: silverBorderFlow 4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(220,220,220,0.15),
    0 0 20px rgba(210,210,210,0.18),
    0 0 55px rgba(200,200,200,0.08);
}

/* "BEST VALUE" badge — desktop 2nd card */
.sc-grid .product-card:nth-child(2) .card-image-wrap::after {
  content: 'BEST VALUE';
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  color: #111111;
  background: linear-gradient(
    105deg,
    #909090 0%,
    #d8d8d8 35%,
    #ffffff 55%,
    #d8d8d8 75%,
    #909090 100%
  );
  background-size: 200% 100%;
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes silverBorderFlow {
  0%   { background-position: auto, 0% 50%; }
  50%  { background-position: auto, 100% 50%; }
  100% { background-position: auto, 0% 50%; }
}

@keyframes badgeShimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: -50% 0; }
  100% { background-position: 100% 0; }
}

/* ─── Product Card ───────────────────────────────────────────────────────── */

.product-card {
  display: block;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.product-card.revealed {
  opacity: 1;
  transform: none;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #141414 0%, #1c1c1c 50%, #111111 100%);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.product-card:hover .card-image-wrap {
  border-color: rgba(200, 200, 200, 0.35);
  box-shadow:
    0 0 25px rgba(192,192,192,0.07),
    0 0 80px rgba(192,192,192,0.03),
    inset 0 0 40px rgba(192,192,192,0.02);
}

/* Sweeping silver light on hover */
.card-image-wrap::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -80%;
  width: 55%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.07) 55%,
    rgba(255,255,255,0.04) 60%,
    transparent 80%
  );
  transform: skewX(-10deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0s;
}

.product-card:hover .card-image-wrap::before {
  left: 130%;
  transition: left 0.65s ease;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.card-img--secondary { opacity: 0; }

.product-card:hover .card-img--primary  { opacity: 0; transform: scale(1.04); }
.product-card:hover .card-img--secondary { opacity: 1; transform: scale(1.04); }

/* Ring placeholder — lighter on dark bg */
.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.card-placeholder svg {
  width: 46%;
  opacity: 0.15;
}

.card-meta {
  text-align: center;
  padding: 0 0.5rem;
}

.card-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--silver-hi);
  margin-bottom: 0.55rem;
  transition: color 0.3s;
}

.product-card:hover .card-name { color: var(--silver-shine); }

.card-price {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  color: var(--silver-mid);     /* #CCCCCC — readable on dark background */
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Sale price — full brightness */
.card-price-sale {
  color: #F0F0F0;
}

/* Original price — smaller, crossed out, clearly secondary */
.card-price-was {
  font-size: 0.75em;
  color: #BBBBBB;
  text-decoration: line-through;
}

/* Sale badge — top-right corner */
.card-sale-badge {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 10;
  font-family: var(--sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  color: #111111;
  background: linear-gradient(105deg, #909090 0%, #d8d8d8 35%, #ffffff 55%, #d8d8d8 75%, #909090 100%);
  background-size: 200% 100%;
  animation: badgeShimmer 3s ease-in-out infinite;
}

/* Custom badge — bottom-right corner */
.card-custom-badge {
  position: absolute;
  bottom: 11px;
  right: 11px;
  z-index: 10;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.48rem 0.85rem;
  background: rgba(4, 4, 4, 0.86);
  border: 1px solid;                /* right/top/bottom — color from inline style */
  border-left: 3px solid;           /* thicker left accent in chosen color */
  border-radius: 2px;
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;   /* glow in chosen color */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.sc-footer {
  position: relative;
  z-index: 2;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sc-footer a {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  transition: color 0.2s;
}
.sc-footer a:hover { color: var(--silver-mid); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .sc-section { padding: 4rem 2rem; }
  .sc-grid { gap: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  #sc-header { padding: 0 1.25rem; }
  .sc-header-right { display: none; }
}

@media (max-width: 700px) {

  .sc-hero { padding-top: 100px; padding-bottom: 40px; }
  .sc-hero-tagline { padding-bottom: 2.5rem; }

  /* "Premium Rings" is long — switch to block so it wraps naturally,
     and tighten letter-spacing so each word fits on a line. */
  .sc-hero-title {
    display: block;
    font-size: clamp(2.4rem, 10vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 1.12;
  }

  /* Scale down all badges to fit narrow mobile cards */
  .card-sale-badge {
    font-size: 0.41rem;
    letter-spacing: 0.2em;
    padding: 0.2rem 0.45rem;
    top: 8px;
    right: 8px;
  }
  .card-custom-badge {
    font-size: 0.44rem;
    padding: 0.35rem 0.6rem;
    letter-spacing: 0.13em;
    bottom: 8px;
    right: 8px;
  }
  /* Match BEST VALUE to the same height/position as the SALE badge */
  .sc-grid .product-card:nth-child(2) .card-image-wrap::after {
    font-size: 0.41rem;
    letter-spacing: 0.16em;
    padding: 0.2rem 0.45rem;
    top: 8px;
    left: 8px;
  }

  .sc-section { padding: 3.5rem 1.25rem; }
  .sc-section + .sc-section { padding-top: 0; }
  .sc-section-header { gap: 1.25rem; margin-bottom: 2rem; }
  .sc-section-title { font-size: 1.2rem; letter-spacing: 0.22em; }

  .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.85rem; }
  .card-name { font-size: 1rem; }

  /* Mobile reorder: push the highlight card (2nd in DOM) to the bottom row,
     centered alone — same product as the desktop center, just repositioned. */
  .sc-grid .product-card:nth-child(2) {
    order: 3;                          /* visually last → alone on bottom row */
    grid-column: 1 / -1;              /* span full row width */
    max-width: calc(50% - 0.43rem);   /* keep same card width as a 2-col cell */
    margin-left: auto;
    margin-right: auto;
    transform: scale(1.035);          /* slightly reduced vs desktop 1.055 */
  }

  /* 3rd product in DOM moves up to fill the 2nd slot */
  .sc-grid .product-card:nth-child(3) {
    order: 2;
  }

  .sc-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 380px) {
  .sc-grid { gap: 1.25rem 0.6rem; }
}
