/* ===== SHARED STYLES — THE VELVET VAULT ===== */
:root {
  --black: #0f0f0f;
  --black-soft: #141414;
  --gold: #d4af37;
  --gold-light: #e8cb6a;
  --gold-dim: rgba(212,175,55,0.15);
  --lavender: #caa6ff;
  --lavender-dim: rgba(202,166,255,0.12);
  --cream: #f5f0e6;
  --cream-dim: rgba(245,240,230,0.7);
  --deep-purple: #1a0a2e;
}

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Raleway', sans-serif;
  min-height: 100vh;
  cursor: none;
}

.cursor { position: fixed; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: screen; transition: transform 0.1s; }
.cursor-ring { position: fixed; width: 32px; height: 32px; border: 1px solid rgba(212,175,55,0.4); border-radius: 50%; pointer-events: none; z-index: 9998; transition: all 0.15s ease; }

/* Ambient bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(26,10,46,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(13,5,32,0.5) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15,15,15,0.8);
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.6);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(212,175,55,0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: rgba(245,240,230,0.6);
  font-size: 1rem;
  cursor: none;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}
.nav-icon-btn:hover { color: var(--gold); transform: scale(1.1); }

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.55rem;
  font-weight: 600;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger mobile */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--gold); transition: all 0.3s; }

/* ===== PAGE WRAPPER ===== */
.page-content {
  padding-top: 90px;
  position: relative;
  z-index: 1;
}

/* ===== IMAGE & PRODUCT STYLES ===== */
/* This ensures the product images fit the cards perfectly */
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.1);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; margin-top: 1.2rem;
}
.sdiv-line { width: 50px; height: 1px; background: linear-gradient(to right, transparent, rgba(212,175,55,0.5)); }
.sdiv-line.rev { background: linear-gradient(to left, transparent, rgba(212,175,55,0.5)); }
.sdiv-dot { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(212,175,55,0.5);
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(212,175,55,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold:hover { box-shadow: 0 0 30px rgba(212,175,55,0.2); letter-spacing: 0.4em; }

.btn-solid {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s;
}
.btn-solid:hover { box-shadow: 0 0 30px rgba(212,175,55,0.4); transform: translateY(-2px); }

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 2px;
}

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ===== CART PANEL ===== */
.cart-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 420px;
  height: 100vh;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(30px);
  border-left: 1px solid rgba(212,175,55,0.15);
  z-index: 600;
  transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}
.cart-panel.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 599;
  display: none;
}
.cart-overlay.show { display: block; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.cart-title { font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: 0.2em; color: var(--gold); }
.cart-close { background: none; border: none; color: var(--cream); font-size: 1.2rem; cursor: none; }

.cart-items { flex: 1; }
.cart-item {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
  width: 70px; height: 70px;
  border: 1px solid rgba(212,175,55,0.1);
  background: rgba(212,175,55,0.05);
  overflow: hidden;
}

.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; margin-bottom: 0.3rem; }
.cart-item-price { font-size: 0.75rem; color: var(--gold); }
.cart-item-qty {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 22px; height: 22px;
  border: 1px solid rgba(212,175,55,0.3);
  background: none; color: var(--gold);
  font-size: 0.8rem; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: rgba(212,175,55,0.1); }
.qty-display { font-size: 0.8rem; min-width: 20px; text-align: center; }
.remove-btn { background: none; border: none; color: rgba(255,100,100,0.6); cursor: none; font-size: 0.7rem; transition: color 0.2s; }
.remove-btn:hover { color: #ff6464; }

.cart-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(212,175,55,0.1); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-total-label { font-family: 'Raleway', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cart-total-amount { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.1rem; }

/* ===== FOOTER ===== */
.footer {
  background: rgba(10,10,10,0.8);
  border-top: 1px solid rgba(212,175,55,0.1);
  padding: 3rem;
  text-align: center;
  margin-top: 5rem;
  position: relative; z-index: 1;
}
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--gold); letter-spacing: 0.25em; margin-bottom: 1rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(245,240,230,0.4); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.6rem; color: rgba(245,240,230,0.2); letter-spacing: 0.2em; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes glow { 0%,100% { box-shadow: 0 0 20px rgba(212,175,55,0.2); } 50% { box-shadow: 0 0 40px rgba(212,175,55,0.4); } }

.fade-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: rgba(15,15,15,0.95);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 1rem 1.5rem;
  z-index: 1000;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  color: var(--gold);
  backdrop-filter: blur(20px);
  animation: toastSlide 0.4s ease;
  display: none;
}
.toast.show { display: block; }
@keyframes toastSlide { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cart-panel { width: 100%; right: -100%; }
  .cart-panel.open { right: 0; }
}

/* Wishlist heart */
.wishlist-btn {
  background: none; border: none;
  color: rgba(245,240,230,0.4);
  font-size: 0.9rem; cursor: none;
  transition: all 0.3s;
}
.wishlist-btn.active, .wishlist-btn:hover { color: #ff6b8a; }

/* Search bar */
.search-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(30px);
  padding: 1.5rem 3rem;
  z-index: 700;
  display: none;
  align-items: center; gap: 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.search-bar.open { display: flex; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  padding: 0.5rem 0;
  outline: none;
}
.search-input::placeholder { color: rgba(245,240,230,0.2); }
.search-close { background: none; border: none; color: var(--cream); font-size: 1.2rem; cursor: none; }