@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Italiana&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-royal-decorative: 'Cinzel Decorative', 'Cinzel', serif;
  --font-royal: 'Cinzel', 'Cormorant Garamond', serif;
  --font-italiana: 'Italiana', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --color-primary: #141210;
  --color-secondary: #3D3935;
  --color-royal-gold: #D4AF37;
  --color-royal-gold-light: #F6E6B8;
  --color-royal-gold-dark: #99731E;
  --color-accent-rose: #C47C75;
  --color-bg: #FBFBFA;
  --color-surface: #FFFFFF;
  --color-border: #E8E5DF;
  --color-border-royal: #E3D3B5;
  --color-text-main: #141210;
  --color-text-muted: #6E6862;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

.font-royal-decorative {
  font-family: var(--font-royal-decorative);
}

.font-royal {
  font-family: var(--font-royal);
}

.font-italiana {
  font-family: var(--font-italiana);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Royal Gold Leaf Shimmer & Effects */
@keyframes royalShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.royal-gold-text {
  background: linear-gradient(135deg, #ECC678 0%, #D4AF37 35%, #FFF2CC 50%, #B8860B 75%, #ECC678 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: royalShimmer 9s linear infinite;
}

.royal-gold-border {
  border-color: #E3D3B5;
}

.royal-crest-glow {
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}

/* Continuous Luxury Announcement Marquee */
.top-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  background-color: #141210;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.top-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: luxuryMarqueeScroll 30s linear infinite;
  will-change: transform;
}

.top-marquee-container:hover .top-marquee-track {
  animation-play-state: paused;
}

@keyframes luxuryMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Header Luxury Styles */
.royal-header {
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(227, 211, 181, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-header.scrolled-compact {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(20, 18, 16, 0.08);
  border-bottom: 1px solid rgba(227, 211, 181, 0.8);
}

/* Header Commerce Action Buttons */
.royal-action-btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 50;
}

/* Glassmorphism & Liquid Glass */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 229, 223, 0.85);
}

.glass-dropdown {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -15px rgba(24, 22, 21, 0.08);
}

/* HERO SCROLL SCRUB STYLES */
#hero-scroll-container {
  position: relative;
  width: 100%;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #FBFBFA;
}

#hero-scrub-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  will-change: contents;
}

#hero-scrub-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* Sheer Crystalline Liquid Glassmorphism (High Transparency - Hero Video Frames Fully Visible) */
.hero-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.18) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1.5px solid rgba(255, 255, 255, 0.70);
  border-left: 1.5px solid rgba(255, 255, 255, 0.60);
  border-right: 1px solid rgba(255, 255, 255, 0.30);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 24px 48px -12px rgba(20, 16, 12, 0.12),
    0 8px 20px -6px rgba(20, 16, 12, 0.06),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.20);
  position: relative;
  overflow: hidden;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, 
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.04) 30%, 
    transparent 55%, 
    rgba(255, 255, 255, 0.06) 85%, 
    rgba(255, 255, 255, 0.14) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.hero-glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

.hero-glass-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.20) 100%);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: 1.5px solid rgba(255, 255, 255, 0.80);
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 16px -4px rgba(24, 22, 21, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glass-pill:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: 
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px -4px rgba(24, 22, 21, 0.12);
  transform: translateY(-1px);
}

.hero-glass-inset {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Manual Hide State for Unobstructed Video View */
.hero-overlay-manual-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(24px) scale(0.96) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Scroll Scrub Progress Bar & Indicators */
.scrub-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}

.scrub-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37, #FFF2CC);
  transition: width 0.05s linear;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F3EF;
}

::-webkit-scrollbar-thumb {
  background: #D8D3CB;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B48222;
}

/* Product Card Effects */
.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -10px rgba(24, 22, 21, 0.08);
}

.image-container {
  overflow: hidden;
  position: relative;
}

.primary-image, .secondary-image {
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .primary-image.has-hover {
  opacity: 0;
}

.product-card:hover .secondary-image {
  opacity: 1;
  transform: scale(1.04);
}

.product-card:hover .primary-image:not(.has-hover) {
  transform: scale(1.04);
}

/* Luxury Gold Glow & Badges */
.badge-gold {
  background: linear-gradient(135deg, #FFF9ED 0%, #F5ECDB 100%);
  color: #926914;
  border: 1px solid #E4D3B0;
}

.badge-royal {
  background: linear-gradient(135deg, #1C1917 0%, #2A2624 100%);
  color: #ECC678;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-rose {
  background: linear-gradient(135deg, #FFF5F4 0%, #FAECE9 100%);
  color: #A84940;
  border: 1px solid #F0C9C4;
}

/* Drawer Transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-content.active {
  transform: translateX(0);
}

/* Modal Animations */
.modal-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}

.modal-wrapper.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Custom Checkbox and Radio luxury pills */
.luxury-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-pill:hover {
  border-color: #B48222;
}

.luxury-pill.selected {
  background-color: #181615;
  color: #FFFFFF;
  border-color: #181615;
  box-shadow: 0 4px 12px rgba(24, 22, 21, 0.15);
}

/* Toast Notifications */
.toast-item {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion details */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details summary svg.chevron {
  transition: transform 0.25s ease;
}
details[open] summary svg.chevron {
  transform: rotate(180deg);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
