/* ============================================================
   SUNDARI JEWELS — Design System (CSS layer)
   Custom styles sit on top of the Tailwind Play CDN.
   Tokens are locked — see table in products.js / README.
   ============================================================ */

:root {
  --color-ink: #222222;
  --color-coal: #111111;
  --color-accent: #E8638B;
  --color-accent-deep: #C94C74;
  --color-mist: #FAFAFA;
  --color-blush: #FDF2F5;
  --color-muted: #6B6B6B;
  --color-line: #EDEDED;
  --color-wa: #25D366;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: #FFFFFF;
  color: #222222;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #FDF2F5;
  color: #C94C74;
}

:focus-visible {
  outline: 2px solid #E8638B;
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Layout helpers ---------- */

.container-x {
  margin-inline: auto;
  width: 100%;
  max-width: 1320px;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-x { padding-inline: 2.5rem; }
}

.section-x {
  padding-block: 5rem;
}
@media (min-width: 1024px) {
  .section-x { padding-block: 10rem; }
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8638B;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: #E8638B;
  flex: none;
}
.eyebrow--light {
  color: #FFFFFF;
}
.eyebrow--light::before {
  background: #FFFFFF;
}

.quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta {
  background: #111111;
  color: #FFFFFF;
  padding: 1rem 1.9rem;
}
.btn-cta:hover {
  background: #E8638B;
}
.btn-pink {
  background: #E8638B;
  color: #FFFFFF;
  padding: 1rem 1.9rem;
}
.btn-pink:hover {
  background: #C94C74;
}
.btn-ghost {
  border: 1px solid #222222;
  color: #222222;
  padding: 1rem 1.9rem;
  background: transparent;
}
.btn-ghost:hover {
  border-color: #E8638B;
  color: #E8638B;
}
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  padding: 1rem 1.9rem;
  background: transparent;
}
.btn-ghost-light:hover {
  background: #FFFFFF;
  color: #C94C74;
  border-color: #FFFFFF;
}

/* Text link (underline + arrow) */
.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
}
.txt-link .txt-link-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.txt-link:hover {
  color: #E8638B;
}
.txt-link:hover .txt-link-arrow {
  transform: translateX(4px);
}
.txt-link--light {
  color: #FFFFFF;
}
.txt-link--light:hover {
  color: #FDF2F5;
}

/* ---------- Motion primitives ---------- */

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 32s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.animate-wa-pulse {
  animation: waPulse 1.1s ease 1.5s 1;
}

@keyframes floatTooltip {
  0%   { opacity: 0; transform: translateY(6px); }
  12%  { opacity: 1; transform: translateY(0); }
  82%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(4px); visibility: hidden; }
}
.animate-wa-tooltip {
  animation: floatTooltip 5s ease 2.2s 1 forwards;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.animate-slow-spin {
  animation: slowSpin 26s linear infinite;
}

/* ---------- Scrollbar (subtle, desktop) ---------- */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #FFFFFF;
  }
  ::-webkit-scrollbar-thumb {
    background: #E0E0E0;
    border: 3px solid #FFFFFF;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #C94C74;
  }
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------- Misc ---------- */

.hairline {
  border: 0;
  height: 1px;
  background: #EDEDED;
}

.letter-spread {
  letter-spacing: 0.18em;
}

/* Product image crossfade swap (hover = desktop only by default) */
@media (hover: hover) and (pointer: fine) {
  .card-image .card-img-b {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .card-image:hover .card-img-b {
    opacity: 1;
  }
  .card-image:hover .card-img-a {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
}
@media (hover: none) {
  .card-img-b {
    display: none;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #111111;
  color: #FFFFFF;
  padding: 0.9rem 1.5rem;
  z-index: 100;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 0;
}

/* FAQ / accordion content animation */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
