/*
Theme Name: Divine Waves - Luxury E-Commerce
Theme URI: https://divinewaves.com
Author: Divine Waves Artisans
Author URI: https://divinewaves.com
Description: Luxury e-commerce theme for handcrafted stone ornaments, jewelry, and artifacts. Powered by React 19, Three.js, and WooCommerce.
Version: 1.1.8
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: divine-waves
Tags: e-commerce, luxury, dark-mode, custom-colors, full-site-editing
*/

/* Reset & root container placeholder styles */
html, body {
  margin: 0;
  padding: 0;
  background-color: #0A0A0B;
  color: #F4F0EA;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pre-hydration loader: constant luxury brand spinner */
.dw-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #141418 0%, #08080a 60%, #08080a 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

html[data-theme="light"] .dw-preloader {
  background: radial-gradient(circle at 50% 45%, rgba(251, 249, 245, 0.96) 0%, rgba(243, 239, 232, 0.98) 60%, rgba(234, 229, 220, 0.99) 100%);
}

.dw-preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dw-preloader-stack {
  width: 220px;
  height: 220px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.dw-preloader-core {
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #1e1e24, #101014);
  border: 1px solid rgba(201, 169, 110, 0.4);
  box-shadow: inset 0 1px 0 rgba(220, 194, 148, 0.35), 0 0 24px rgba(201, 169, 110, 0.2);
}

html[data-theme="light"] .dw-preloader-core {
  background: radial-gradient(circle at 35% 35%, #ffffff, #f8f6f0);
  border: 1px solid rgba(201, 169, 110, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 24px rgba(201, 169, 110, 0.2);
}

.dw-preloader-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #F3E5C8 0%, #C9A96E 50%, #9E7B3B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
}

.dw-preloader-spin-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dw-preloader-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  pointer-events: none;
}

.dw-preloader-rotator {
  transform-origin: 120px 120px;
  animation: dw-spin 18s linear infinite;
  will-change: transform;
}

.dw-preloader-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: #dcc294;
}

html[data-theme="light"] .dw-preloader-text {
  fill: #9c7637;
}

@keyframes dw-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dw-preloader-rotator {
    animation: none !important;
  }
}

