@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #be185d;
  --primary-dark: #9d174d;
  --primary-light: #fce7f3;
  --accent: #f59e0b;
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --secondary: #fdf2f8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  background: #fff;
  overflow-x: hidden;
}

.serif { font-family: 'Playfair Display', serif; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}
.marquee-track { display: flex; animation: marquee 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Transitions */
.transition { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); }

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #111827;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  max-width: 320px;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-desc { font-size: 12px; color: #d1d5db; }

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.overlay.show { opacity: 1; pointer-events: all; }

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 100vw;
  background: #fff;
  z-index: 950;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.18);
}
.modal.open .modal-box { transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 980;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

/* Pill active */
.pill-active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* Tab active */
.tab-active { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.08); color: var(--primary); }

/* Progress bar */
.progress-bar { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #ec4899); border-radius: 999px; transition: width 0.5s ease; }

/* Star */
.star { color: var(--accent); }

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 20px 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 12px 0;
}

/* Wishlist active */
.btn-wishlist.active svg { fill: var(--primary); color: var(--primary); }

/* Swatch selected */
.swatch.selected { transform: scale(1.15); box-shadow: 0 0 0 3px var(--primary); }

/* Smooth scroll offset */
section[id] { scroll-margin-top: 80px; }

/* Mobile menu */
#mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  background: #fff;
  z-index: 950;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
#mobile-drawer.open { transform: translateX(0); }

/* Ping animation */
@keyframes ping { 75%,100%{transform:scale(1.5);opacity:0} }
.animate-ping { animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }

/* Input styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  background: #fdf2f8;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(190,24,93,0.1); }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* Button */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 20px rgba(190,24,93,0.3); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .drawer { width: 100vw; }
  .hide-mobile { display: none !important; }
}

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Quiz option */
.quiz-option {
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
