/* ============================================================
   PRISCO FASHION WORLD — GLOBAL CSS
   Design Tokens, Animations, Utilities
   ============================================================ */

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

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --primary: #C8956C;
  --primary-dark: #A67355;
  --primary-light: #E0B898;
  --secondary: #E8B4B8;
  --accent: #D4AF37;
  --accent-light: #F0D060;
  --bg-dark: #140A0C;
  --bg-darker: #0D0608;
  --bg-card: rgba(45, 27, 32, 0.85);
  --bg-glass: rgba(200, 149, 108, 0.07);
  --bg-glass-hover: rgba(200, 149, 108, 0.12);
  --text: #FFF5F7;
  --text-muted: #C9A0A8;
  --text-dim: #8A6872;
  --border: rgba(200, 149, 108, 0.18);
  --border-hover: rgba(200, 149, 108, 0.40);
  --shadow: 0 8px 32px rgba(200, 149, 108, 0.15);
  --shadow-lg: 0 20px 60px rgba(200, 149, 108, 0.25);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 48px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --transition-fast: all 0.15s ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --nav-height: 70px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: rgba(200,149,108,0.3); color: var(--text); }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}
p { line-height: 1.7; }

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(2deg); }
  66%       { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-30px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.8; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blobMove1 {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(60px,-40px) scale(1.1); }
  50%  { transform: translate(-30px,60px) scale(0.95); }
  75%  { transform: translate(40px,20px) scale(1.05); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes blobMove2 {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(-50px,30px) scale(1.08); }
  50%  { transform: translate(40px,-50px) scale(0.92); }
  75%  { transform: translate(-20px,-20px) scale(1.03); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes blobMove3 {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  50%  { transform: translate(30px,50px) scale(1.1) rotate(180deg); }
  100% { transform: translate(0,0) scale(1) rotate(360deg); }
}
@keyframes rotateGlow {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50%       { opacity: 1; transform: scale(1) rotate(180deg); }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes countdownPulse {
  0%, 100% { transform: scale(1); color: var(--primary); }
  50%       { transform: scale(1.12); color: var(--accent); }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes cartBounce {
  0%,100% { transform: scale(1); }
  30%      { transform: scale(1.3); }
  60%      { transform: scale(0.9); }
}
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Particle Canvas ─────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ── Animated Blob Background ────────────────────────────── */
.hero-blob-1 {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,108,0.25) 0%, transparent 70%);
  top: -100px; left: -200px;
  animation: blobMove1 22s ease-in-out infinite;
  pointer-events: none;
  filter: blur(40px);
}
.hero-blob-2 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
  bottom: -100px; right: -150px;
  animation: blobMove2 28s ease-in-out infinite;
  pointer-events: none;
  filter: blur(60px);
}
.hero-blob-3 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,184,0.15) 0%, transparent 70%);
  top: 40%; left: 50%;
  animation: blobMove3 35s linear infinite;
  pointer-events: none;
  filter: blur(80px);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-children.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.stagger-children.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.stagger-children.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.stagger-children.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.stagger-children.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.stagger-children.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.3s; }
.stagger-children.visible > *:nth-child(7) { opacity:1; transform:translateY(0); transition-delay:0.35s; }
.stagger-children.visible > *:nth-child(8) { opacity:1; transform:translateY(0); transition-delay:0.4s; }
.stagger-children.visible > *:nth-child(n+9) { opacity:1; transform:translateY(0); transition-delay:0.45s; }

/* ── Utility Classes ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent) 50%, var(--secondary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── Announcement Bar ────────────────────────────────────── */
#announcement-bar {
  background: linear-gradient(90deg, #C8956C, #D4AF37, #E8B4B8, #D4AF37, #C8956C);
  background-size: 300% 100%;
  animation: gradientShift 6s linear infinite;
  color: #140A0C;
  font-weight: 600;
  text-align: center;
  padding: 10px 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 200;
}
#announcement-bar a { color: #140A0C; text-decoration: underline; }

/* ── Toast Notifications ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: rgba(45, 27, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: all;
}
.toast.leaving { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-message { flex: 1; line-height: 1.4; }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 0; margin-left: 0.5rem; }
.toast.success { border-left: 3px solid #22c55e; }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid var(--primary); }
.toast.cart    { border-left: 3px solid var(--accent); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-content {
  background: rgba(45, 27, 32, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-glass-hover); color: var(--text); }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

/* ── Promo Badge ─────────────────────────────────────────── */
.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: #140A0C;
  font-weight: 700;
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-badge.sale { background: var(--primary); color: white; }
.promo-badge.new  { background: #22c55e; color: white; }
.promo-badge.hot  { background: #ef4444; color: white; }

/* ── Countdown Timer ─────────────────────────────────────── */
.countdown-section {
  background: linear-gradient(135deg, rgba(200,149,108,0.1), rgba(212,175,55,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
}
.countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.countdown-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.countdown-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  transition: var(--transition);
}
.countdown-number.pulse { animation: countdownPulse 1s ease infinite; }
.countdown-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.countdown-sep {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Loading Page ────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
#page-loader .loader-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Range Input ─────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200,149,108,0.4);
  transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Responsive Utilities ────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}
