/* ============================================================
   ADORA BOUTIQUE — Global Stylesheet
   Wear What You Adore. ♡
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --clr-blush: #F8DDE4;
  --clr-blush-dark: #F0C5D0;
  --clr-blush-light: #FDF0F3;
  --clr-sage: #DDE7D7;
  --clr-sage-dark: #C5D4BD;
  --clr-sage-light: #EEF4EB;
  --clr-ivory: #FDFAF7;
  --clr-ivory-dark: #F5F4F0;
  --clr-gold: #C9A96E;
  --clr-gold-light: #E8D5B0;
  --clr-gold-dark: #A07840;

  /* Text */
  --clr-text-dark: #1E1E1E;
  --clr-text-mid: #555555;
  --clr-text-light: #888888;
  --clr-text-white: #FDFAF7;

  /* UI */
  --clr-border: #E5E5E5;
  --clr-border-light: #F0F0F0;
  --clr-shadow: rgba(0, 0, 0, 0.04);
  --clr-shadow-md: rgba(0, 0, 0, 0.08);
  --clr-overlay: rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 2px 8px var(--clr-shadow);
  --shadow-md: 0 4px 20px var(--clr-shadow-md);
  --shadow-lg: 0 8px 40px rgba(44, 33, 24, 0.12);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.25);

  /* Layout */
  --max-width: 1100px;
  --nav-height: 110px;
  --announce-height: 40px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-ivory);
  color: var(--clr-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
}

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

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  font-size: 0.95rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
}

.text-gold { color: var(--clr-gold); }
.text-blush { color: #C9607A; }
.text-muted { color: var(--clr-text-light); }
.text-center { text-align: center; }
.text-italic { font-style: italic; }

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

.section {
  padding: var(--space-3xl) 0;
}

.section--tight {
  padding: var(--space-2xl) 0;
}

.section--flush {
  padding: 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-lg); }

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--clr-text-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--clr-text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-gold));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--clr-gold));
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::after { transform: translateX(0); }

.btn-primary {
  background: var(--clr-text-dark);
  color: var(--clr-ivory);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #3D2E22;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text-dark);
  border: 1.5px solid var(--clr-text-dark);
}

.btn-outline:hover {
  background: var(--clr-text-dark);
  color: var(--clr-ivory);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--clr-gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--clr-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text-mid);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-sm { padding: 10px 24px; font-size: 0.78rem; }
.btn-lg { padding: 16px 48px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ── Price Display ── */
.price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clr-text-dark);
  font-size: 1rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--clr-text-light);
  font-weight: 400;
  font-size: 0.875rem;
}

.price-sale {
  color: #C94B6A;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white !important;
  color: var(--clr-text-dark) !important;
  border: 1px solid rgba(44, 33, 24, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ── Dividers & Decorations ── */
.gold-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-gold);
  display: inline-block;
}

.ornament {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--clr-gold);
  font-size: 1.2rem;
}

/* ── Scroll Bar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-ivory); }
::-webkit-scrollbar-thumb { background: var(--clr-blush-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-gold); }

/* ── Selection ── */
::selection {
  background: var(--clr-blush);
  color: var(--clr-text-dark);
}

/* ── Loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--clr-text-dark);
  margin-bottom: var(--space-lg);
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--clr-border);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  animation: loaderSlide 1.2s ease infinite;
}

@keyframes loaderSlide {
  to { left: 100%; }
}

/* ── Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-overlay);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--clr-text-dark);
  color: var(--clr-ivory);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: toastIn 0.4s ease forwards;
  box-shadow: var(--shadow-lg);
}

.toast.removing { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ── Responsive Visibility ── */
.hide-mobile { display: block; }
.show-mobile { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .section { padding: var(--space-2xl) 0; }
  .section-title { margin-bottom: var(--space-sm); }
}

/* ── Font Awesome Free Weight Fallbacks ── */
.fa-regular:not(.fa-heart) {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
