/* ==========================================================================
   LUXE BRIDAL FOUNDATIONS - DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

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

/* ---- Graphik (brand body font, self-hosted) ---- */
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-light.woff2') format('woff2');          font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-regular.woff2') format('woff2');        font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-italic.woff2') format('woff2');         font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-medium.woff2') format('woff2');         font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-medium-italic.woff2') format('woff2');  font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-semibold.woff2') format('woff2');       font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('fonts/graphik-bold.woff2') format('woff2');           font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand Color Tokens */
  --primary: #9c7c4d;
  --primary-container: #c9a96a; /* Champagne Gold */
  --secondary: #635e53;
  --secondary-container: #e9e2d3;
  --tertiary: #6a5d43;
  --tertiary-container: #c2b193;
  
  --background: #faf9f7;
  --surface: #faf9f7;
  --surface-dim: #dadad8;
  --surface-bright: #faf9f7;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f3f1;
  --surface-container: #efeeec;
  --surface-container-high: #e9e8e6;
  --surface-container-highest: #e3e2e0;
  
  --on-primary: #ffffff;
  --on-primary-container: #554300;
  --on-surface: #1a1c1b; /* Deep Charcoal */
  --on-surface-variant: #4d4635; /* Warm Espresso */
  --outline: #7f7663;
  --outline-variant: #d0c5af;

  /* Theme Accents */
  --rose-gold: #B76E79;
  --champagne: #F7E7CE;
  --soft-cream: #FFFDD0;
  --warm-espresso: #3C2F2F;
  --deep-charcoal: #2F2F2F;

  /* Typography Scales */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Graphik', 'Montserrat', sans-serif;

  /* Layout and Spacing */
  --roundness: 4px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Document Styles */
body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--on-surface);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: var(--font-headline);
  color: var(--on-surface);
  margin: 0;
}

/* Material Symbols Outlined Customisation */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Premium Visual Utilities */

/* 1. Soft Glassmorphism */
.glass-header {
  background: rgba(250, 249, 247, 0.80);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(127, 118, 99, 0.12);
  transition: var(--transition-smooth);
}

.glass-header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  border-bottom-color: rgba(127, 118, 99, 0.2);
  box-shadow: 0 10px 30px rgba(60, 47, 47, 0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(208, 197, 175, 0.3);
  box-shadow: 0 10px 40px rgba(60, 47, 47, 0.04);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(208, 197, 175, 0.6);
  box-shadow: 0 15px 50px rgba(60, 47, 47, 0.08);
  transform: translateY(-2px);
}

/* 2. Floating Form Inputs */
.input-floating {
  position: relative;
}

.input-floating input,
.input-floating textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  background-color: transparent;
  padding: 20px 0 8px 0;
  font-family: var(--font-body);
  color: var(--on-surface);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.input-floating input:focus,
.input-floating textarea:focus {
  border-bottom-color: var(--primary-container);
}

.input-floating label {
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-body);
  color: var(--on-surface-variant);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition-fast);
}

.input-floating input:focus ~ label,
.input-floating input:not(:placeholder-shown) ~ label,
.input-floating textarea:focus ~ label,
.input-floating textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-22px) scale(0.85);
  transform-origin: left;
  color: var(--primary-container);
  font-weight: 500;
}

/* 3. Image Micro-animations */
.image-zoom-container {
  overflow: hidden;
  position: relative;
}

.image-zoom-container img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.05);
}

/* 4. Elegant Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--roundness);
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(115, 92, 0, 0.15);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--warm-espresso);
  border-color: var(--warm-espresso);
  box-shadow: 0 8px 25px rgba(60, 47, 47, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--roundness);
  background-color: transparent;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--outline-variant);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--surface-container);
  border-color: var(--outline);
  color: var(--on-surface);
}

/* 5. Custom Slideout Drawer Transitions */
.slideout-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--surface-container-lowest);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.08);
  z-index: 100;
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slideout-panel.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 28, 27, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

/* 6. Modal Overlay Transition */
.modal-container {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container.active .modal-content {
  transform: scale(1);
}

/* Hide scrollbars but keep scrolling */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Grid Adjustments */
.layout-max-width {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   7. INTERACTIVE VISUAL STYLIST BOARD STYLES
   ========================================================================== */
.stylist-card {
  border: 1px solid rgba(208, 197, 175, 0.4);
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
}

.stylist-card:hover {
  border-color: var(--primary-container);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(60, 47, 47, 0.03);
}

.stylist-card.active {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.08); /* Soft Gold Tint */
  box-shadow: 0 10px 30px rgba(115, 92, 0, 0.06);
}

/* Body Hotspots and Pins */
.body-mannequin-container {
  position: relative;
  background: radial-gradient(circle, rgba(244, 243, 241, 0.8) 0%, rgba(239, 238, 236, 0.5) 100%);
  border: 1px solid rgba(127, 118, 99, 0.1);
  overflow: hidden;
}

.hotspot-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--outline-variant);
  border: 2px solid #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hotspot-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--outline-variant);
  opacity: 0;
  transition: var(--transition-fast);
}

.hotspot-pin:hover {
  background: var(--primary-container);
  transform: translate(-50%, -50%) scale(1.15);
}

.hotspot-pin.active {
  background: var(--primary);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(115, 92, 0, 0.4);
}

.hotspot-pin.active::after {
  opacity: 1;
  border-color: var(--primary);
  animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Stylist Tool Toggles */
.toggle-btn {
  border: 1px solid rgba(208, 197, 175, 0.5);
  background: transparent;
  color: var(--on-surface-variant);
  transition: var(--transition-fast);
}

.toggle-btn:hover {
  border-color: var(--primary-container);
  color: var(--primary);
}

.toggle-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   8. ADMIN DASHBOARD & LOCK SCREEN STYLES
   ========================================================================== */
/* ==========================================================================
   8. ADMIN DASHBOARD & LOCK SCREEN STYLES
   ========================================================================== */
.admin-sidebar {
  background: #1a1c1b;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-link {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.admin-sidebar-link:hover, .admin-sidebar-link.active {
  color: var(--primary-container);
  background: rgba(212, 175, 55, 0.08);
}

.admin-card {
  background: #ffffff;
  border: 1px solid rgba(127, 118, 99, 0.1);
  box-shadow: 0 4px 20px rgba(60, 47, 47, 0.01);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.pending {
  background: rgba(115, 92, 0, 0.1);
  color: #9c7c4d;
}

.status-badge.processing {
  background: rgba(183, 110, 121, 0.1); /* Rose Gold Tint */
  color: #B76E79;
}

.status-badge.shipped {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

/* Lock Screen Gate */
.lock-screen-container {
  background: radial-gradient(circle at center, #2a2222 0%, #120e0e 100%);
}


/* ==========================================================================
   9. LUXURY PAYMENT RAIL & DRAWER CHECKOUT SYSTEM
   ========================================================================== */
@keyframes gold-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes box-entrance {
  0% { transform: translateY(30px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(115, 92, 0, 0.1); }
  50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.3); }
}

/* Multi-pane view inside Cart Drawer */
.cart-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cart-pane-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(30px);
}

/* Card Visual Mock UI */
.checkout-card-preview {
  position: relative;
  background: linear-gradient(135deg, #2b2319 0%, #3e3223 50%, #1c1611 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  overflow: hidden;
  animation: gold-glow 4s infinite ease-in-out;
}

.checkout-card-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Luxurious Circular Spinner Loader */
.luxury-gold-loader {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(115, 92, 0, 0.1);
  border-top-color: var(--primary-container);
  border-radius: 50%;
  animation: gold-spin 1s linear infinite;
}

/* Animated Gift Box & Message Wrapper on success */
.success-gift-box-wrapper {
  animation: box-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkout-badge-step {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
}

.checkout-badge-step.active {
  background-color: var(--primary);
  color: #ffffff;
}

.checkout-badge-step.pending {
  background-color: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}

.checkout-badge-step.completed {
  background-color: var(--primary-container);
  color: var(--on-primary);
}

.payment-success-check {
  animation: box-entrance 0.5s ease-out forwards;
}

/* ==========================================================================
   10. LUXURY HOME HERO & SITEPOLISH MICRO-ANIMATIONS
   ========================================================================== */

/* Cinematic Slow Zoom Background (Ken Burns) */
@keyframes ken-burns {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1.02); }
}
.animate-ken-burns {
  animation: ken-burns 24s ease-in-out infinite;
}

/* Elegant Fade-In-Up with Staggered Delays */
@keyframes fade-in-up {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Premium Shimmer Sweep on Hover */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}
.btn-shimmer:hover::after {
  left: 150%;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant Scroll Bounce */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}
.animate-scroll-bounce {
  animation: scroll-bounce 2s infinite ease-in-out;
}

/* Subtle Card Glow Lift */
.hover-lift-gold {
  transition: var(--transition-smooth);
}
.hover-lift-gold:hover {
  transform: translateY(-6px);
  border-color: var(--primary-container) !important;
  box-shadow: 0 20px 40px rgba(115, 92, 0, 0.08) !important;
}

/* Fade-in scroll transitions */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Elegant diagonal strike for sold-out size buttons */
.size-sold-out {
  position: relative;
  opacity: 0.5 !important;
}
.size-sold-out::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), #d0c5af 50%, transparent calc(50% + 1px));
  pointer-events: none;
}

/* ==========================================================================
   STOREFRONT CONTENT POLISH
   Readability + label legibility + softer small bold. Scoped to <main> so the
   dark nav/footer keep their intended light-on-dark text.
   ========================================================================== */
main .text-\[\#7f7663\]      { color: #564f3e; }
main .text-\[\#7f7663\]\/60  { color: #6e6657; }
main .text-\[\#7f7663\]\/40  { color: #837b68; }
main .text-on-surface-variant { color: #3c3628; }
main .text-\[\#d4af37\]      { color: #8a6d0e; }

main .text-\[9px\].uppercase,
main .text-\[10px\].uppercase { letter-spacing: 0.05em; }

main .text-\[9px\].font-bold,
main .text-\[10px\].font-bold,
main .text-\[11px\].font-bold,
main .text-xs.font-bold { font-weight: 600; }
