/* ==========================================================================
   DermLite DL5 Plus - Modern Design System & Tokens
   ========================================================================== */


:root {
  /* Brand Color Palette */
  --brand-gold: #cc9966;
  --brand-gold-hover: #b68453;
  --brand-gold-glow: rgba(204, 153, 102, 0.35);
  --brand-gold-subtle: rgba(204, 153, 102, 0.12);

  --bg-pure-white: #ffffff;
  --bg-off-white: #f8f9fa;
  --bg-silver: #e9ecef;
  --bg-clinical-gray: #dbd7d7;
  --bg-muted-card: #f2f3f5;

  --bg-dark-obsidian: #08090a;
  --bg-dark-cinema: #0f1012;
  --bg-dark-card: #18191c;
  --bg-dark-elevated: #222328;

  --text-dark: #1e2022;
  --text-dark-secondary: #4a4f55;
  --text-dark-muted: #6c757d;
  --text-light: #ffffff;
  --text-light-secondary: #cfd4dc;
  --text-light-muted: #8e95a2;

  --border-light: #e2e5e9;
  --border-dark: #2a2c31;
  --border-focus: var(--brand-gold);

  --status-instock: #28a745;
  --uv-fluorescence: #8b5cf6;
  --cyan-spectrum: #06b6d4;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 8px 24px rgba(204, 153, 102, 0.25);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout Widths */
  --container-max: 1240px;
  --container-wide: 1400px;
  --container-text: 820px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-text);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.heading-hero {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #222222;
}

.heading-section {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subtitle-hero {
  font-size: clamp(1.05rem, 1.5vw + 0.2rem, 1.4rem);
  font-weight: 400;
  color: #555555;
}

.text-muted {
  color: var(--text-dark-muted);
}

.text-gold {
  color: var(--brand-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-gold);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(204, 153, 102, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-gold-hover);
  box-shadow: 0 6px 20px rgba(204, 153, 102, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-dark {
  background-color: #111111;
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #2a2a2a;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: transparent;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.badge-instock {
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e34;
}

.badge-instock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a745;
}

.badge-gold {
  background: var(--brand-gold-subtle);
  color: var(--brand-gold);
  border: 1px solid rgba(204, 153, 102, 0.3);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(204, 153, 102, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(204, 153, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 153, 102, 0); }
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.no-scroll {
  overflow: hidden !important;
}
