/* OneNest Luxury E-Commerce Custom Stylesheet - High Performance Edition */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
  --primary-gold: #c5a059;
  --primary-gold-dark: #9f7c32;
  --primary-gold-light: #f3e8c9;
  --ruby-accent: #9f1239;
  --bg-cream: #faf8f5;
  --text-dark: #1f242e;
  --text-muted: #6b7280;
  --border-color: #e8e3d9;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif-luxury {
  font-family: 'Cinzel', 'Playfair Display', serif;
}

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

/* Custom Fast Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1ede6;
}
::-webkit-scrollbar-thumb {
  background: #c5a059;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f7c32;
}

/* Off-screen Rendering Performance Booster */
.product-grid-item {
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

/* Luxury Card Shimmer & Shadow with GPU acceleration */
.luxury-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.luxury-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -6px rgba(197, 160, 89, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Gold Gradient Button */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e6ca65 0%, #c5a059 100%);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.btn-gold:active {
  transform: translateY(0);
}

/* Dark Gold Button */
.btn-dark {
  background: #1a1a1a;
  color: #f3e8c9;
  border: 1px solid #c5a059;
  transition: all 0.2s ease;
}
.btn-dark:hover {
  background: #2d2417;
  color: #ffffff;
  border-color: #e6ca65;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  background: #1ebc59;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* Category Circular Card Glow */
.cat-glow {
  transition: transform 0.2s ease;
}
.cat-glow:hover .cat-img-wrapper {
  border-color: #c5a059;
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.4);
  transform: scale(1.04);
}

.badge-gold {
  background: #c5a059;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Product Card Image Zoom */
.product-image-container {
  overflow: hidden;
  position: relative;
  background: #f7f5f0;
}
.product-image-container img {
  transition: transform 0.4s ease;
}
.luxury-card:hover .product-image-container img {
  transform: scale(1.05);
}

/* Hardware accelerated Drawers */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.mobile-nav-panel {
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.drawer-backdrop.active .mobile-nav-panel {
  transform: translateX(0);
}

/* Modal Popup */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content-box {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.modal-overlay.active .modal-content-box {
  transform: scale(1);
  opacity: 1;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  background: #1c2228;
  color: #fff;
  border-left: 4px solid #c5a059;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s ease forwards;
}
@keyframes slideInToast {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 85px;
  left: 20px;
  z-index: 900;
}
