/* ===========================================================
   CHERI VIBES — Design tokens
   =========================================================== */
:root {
  --cream:        #FFF8F5;
  --cream-deep:   #F7E6E2;
  --rose:         #E8909E;
  --rose-deep:    #C96A7C;
  --rose-pale:    #FBEAEC;
  --mauve:        #9B7E92;
  --header-bg:    #2D2430;
  --header-text:  #F7E6E2;
  --ink:          #2A2A2A;
  --ink-soft:     #7A7178;
  --white:        #FFFFFF;
  --line:         #ECDAD6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', -apple-system, sans-serif;

  --radius:       18px;
  --shadow-card:  0 6px 24px rgba(45, 36, 48, 0.08);
  --shadow-hover: 0 14px 32px rgba(201, 106, 124, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(247, 230, 226, 0.12);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--header-text);
}

.logo .accent { color: var(--rose); }

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 230, 226, 0.65);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--header-text);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rose);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--header-text);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding: 64px 6vw 40px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 18px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--rose-deep);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero p.sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Compact hero used on homepage above the featured grid */
.hero-compact {
  padding: 56px 6vw 8px;
}

.hero-compact .hero-eyebrow {
  display: block;
  margin-bottom: 22px;
}

.hero-compact .hero-eyebrow::before,
.hero-compact .hero-eyebrow::after {
  display: none;
}

.hero-compact .hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.hero-compact .hero-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--mauve));
}

/* ===========================================================
   GRID LAYOUT (homepage featured products)
   =========================================================== */
.grid-section {
  padding: 36px 6vw 60px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px 22px;
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================================
   SECTION ROWS (scrollable cards)
   =========================================================== */
.row-section {
  padding: 38px 0 18px;
}

.row-heading {
  padding: 0 6vw;
  margin-bottom: 18px;
}

.row-heading h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.scroll-row-wrap {
  position: relative;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 6vw 16px;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.scroll-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}
.scroll-btn:hover { background: var(--rose-deep); color: var(--white); border-color: var(--rose-deep); }
.scroll-btn.prev { left: 1.4vw; }
.scroll-btn.next { right: 1.4vw; }

@media (max-width: 720px) {
  .scroll-btn { display: none; }
}

/* ===========================================================
   PRODUCT CARD
   =========================================================== */
.watch-card-wrap {
  flex: 0 0 220px;
  scroll-snap-align: start;
  position: relative;
}

.watch-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watch-card-wrap:hover .watch-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.watch-card .img-wrap {
  width: 100%;
  height: 220px;
  background: var(--cream-deep);
  overflow: hidden;
}

.watch-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.watch-card:hover .img-wrap img {
  transform: scale(1.06);
}

.watch-card .card-body {
  padding: 16px 18px 20px;
}

.watch-card .card-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 2.6em;
}

.card-cta {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease, gap 0.2s ease;
}

.watch-card:hover .card-cta {
  color: var(--rose-deep);
  gap: 10px;
}

.cta-text {
  border-bottom: 1px solid var(--rose-deep);
  padding-bottom: 2px;
}

.source-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--rose-deep);
}

/* ===========================================================
   WATCHES PAGE — style rows
   =========================================================== */
.watches-page main {
  display: block;
  padding-top: 36px;
}

/* ===========================================================
   BUTTONS (Michael Kors–style duo)
   =========================================================== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
}

.btn-filled {
  background: var(--ink);
  color: var(--white);
}
.btn-filled:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ===========================================================
   NEWSLETTER
   =========================================================== */
.newsletter {
  margin: 50px 6vw 0;
  padding: 44px 6vw;
  background: var(--rose-pale);
  border-radius: var(--radius);
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.newsletter p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 420px;
  margin: 0 auto 22px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1 1 180px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--ink);
}

.newsletter-form input::placeholder { color: var(--ink-soft); }

.newsletter-form input:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

.newsletter-form button {
  flex: 0 0 auto;
}

.newsletter-note {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.newsletter-success {
  font-size: 0.9rem;
  color: var(--rose-deep);
  font-weight: 500;
  display: none;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  margin-top: 60px;
  padding: 50px 6vw 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--rose-deep); }

.footer-bottom {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ===========================================================
   STATIC PAGES (about / disclosure)
   =========================================================== */
.static-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 70px 6vw 60px;
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 22px;
}

.static-page p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.static-page strong { color: var(--ink); }

/* ===========================================================
   ADD-TO-WHEEL BUTTON (on each card)
   =========================================================== */
.add-to-wheel-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(45, 36, 48, 0.18);
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.add-to-wheel-btn:hover {
  background: var(--rose);
  color: var(--white);
  transform: scale(1.08);
}

.add-to-wheel-btn.added {
  background: var(--rose-deep);
  color: var(--white);
}

.add-to-wheel-btn.shake {
  animation: wheel-shake 0.4s ease;
}

@keyframes wheel-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ===========================================================
   SPIN THE WHEEL — launcher
   =========================================================== */
.wheel-launcher {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 80;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 36, 48, 0.32);
  transition: transform 0.2s ease;
}

.wheel-launcher:hover { transform: scale(1.08) rotate(-8deg); }

.wheel-launcher-icon { font-size: 1.6rem; }

.wheel-launcher-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

/* ===========================================================
   SPIN THE WHEEL — modal
   =========================================================== */
.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
}

.wheel-modal.open { display: flex; }

body.wheel-modal-locked { overflow: hidden; }

.wheel-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 28, 0.55);
  backdrop-filter: blur(2px);
}

.wheel-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px;
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(45, 36, 48, 0.3);
}

.wheel-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wheel-modal-close:hover { background: var(--rose); color: var(--white); }

.wheel-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 30px;
}

.wheel-modal-sub {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.wheel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.wheel-svg {
  width: 100%;
  height: 100%;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid var(--header-bg);
  z-index: 4;
}

.wheel-empty-state {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: var(--rose-pale);
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
}

.wheel-empty-state p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 180px;
}

.wheel-picks-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wheel-picks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.wheel-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--cream);
}

.wheel-pick-item img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.wheel-pick-item span {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.3;
}

.wheel-pick-remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
  flex: 0 0 auto;
}
.wheel-pick-remove:hover { color: var(--rose-deep); }
.wheel-pick-remove:disabled { opacity: 0.35; cursor: not-allowed; }

.wheel-pick-empty {
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding: 10px 4px;
}

.wheel-spin-btn {
  width: 100%;
}
.wheel-spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wheel-spin-btn:disabled:hover {
  background: var(--ink);
  color: var(--white);
}

.wheel-result {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.wheel-result.visible { display: flex; }

.wheel-result-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wheel-result-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .wheel-layout { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .watch-card-wrap { flex: 0 0 168px; }
  .watch-card .img-wrap { height: 168px; }
  .hero { padding: 44px 6vw 28px; }
  .wheel-launcher { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wheel-modal-panel { padding: 28px 20px; }
}
