/* Custom CSS from the project */
:root {
  --radius: 0.75rem;
  --background: #f8fafc;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #f8fafc;
  --popover-foreground: #334155;
  --primary: #7c3aed;
  --primary-foreground: #ffffff;
  --brand: #7c3aed;
  --brand-foreground: #ffffff;
  --secondary: #e2e8f0;
  --secondary-foreground: #475569;
  --muted: #e2e8f0;
  --muted-foreground: #64748b;
  --accent: #c4b5fd;
  --accent-foreground: #1e293b;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #cbd5e1;
  --input: #f1f5f9;
  --ring: #7c3aed;
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 30px rgba(124, 58, 237, 0.12);
  --color-scheme: light;
}

html.dark {
  --background: oklch(0.14 0.01 260);
  --foreground: oklch(0.96 0.005 260);
  --card: oklch(0.18 0.01 260);
  --card-foreground: oklch(0.96 0.005 260);
  --popover: oklch(0.18 0.01 260);
  --popover-foreground: oklch(0.96 0.005 260);
  --secondary: oklch(0.24 0.01 260);
  --secondary-foreground: oklch(0.96 0.005 260);
  --muted: oklch(0.24 0.01 260);
  --muted-foreground: oklch(0.7 0.015 260);
  --accent: oklch(0.28 0.025 258);
  --accent-foreground: oklch(0.96 0.005 260);
  --border: oklch(0.28 0.01 260);
  --input: oklch(0.24 0.01 260);
  --shadow-soft: 0 1px 3px oklch(0 0 0 / 0.4), 0 4px 20px oklch(0 0 0 / 0.3);
  --shadow-hover: 0 8px 30px oklch(0.55 0.22 258 / 0.2);
  --color-scheme: dark;
}

html, body {
  color-scheme: var(--color-scheme);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  margin: 0;
}

html:not(.dark) .bg-\[\#0a0a0f\] {
  background-color: var(--background) !important;
}
html:not(.dark) .bg-\[\#0a0a0f\]\/90 {
  background-color: rgba(248, 250, 252, 0.9) !important;
}
html:not(.dark) .bg-gray-900\/50 {
  background-color: rgba(15, 23, 42, 0.06) !important;
}
html:not(.dark) .border-gray-700 {
  border-color: rgba(148, 163, 184, 0.35) !important;
}
html:not(.dark) .border-gray-800 {
  border-color: rgba(148, 163, 184, 0.45) !important;
}
html:not(.dark) .text-gray-400 {
  color: #64748b !important;
}
html:not(.dark) .text-gray-300 {
  color: #475569 !important;
}
html:not(.dark) .text-white {
  color: var(--foreground) !important;
}
html:not(.dark) .bg-purple-600 {
  background-color: #7c3aed !important;
}
html:not(.dark) .bg-purple-500 {
  background-color: #8b5cf6 !important;
}
html:not(.dark) .shadow-purple-600\/25 {
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.25) !important;
}
html:not(.dark) .bg-gray-900\/60 {
  background-color: rgba(248, 250, 252, 0.82) !important;
}
html:not(.dark) .bg-gray-900\/30 {
  background-color: rgba(248, 250, 252, 0.75) !important;
}
html:not(.dark) .bg-gray-900\/80 {
  background-color: rgba(248, 250, 252, 0.9) !important;
}
html:not(.dark) .bg-[#0a0a0f]\/90 {
  background-color: rgba(248, 250, 252, 0.92) !important;
}
html:not(.dark) .bg-[#0a0a0f]\/70 {
  background-color: rgba(248, 250, 252, 0.95) !important;
}
html:not(.dark) .bg-[#0a0a0f]\/50 {
  background-color: rgba(248, 250, 252, 0.85) !important;
}
html:not(.dark) .placeholder-gray-500 {
  color: rgba(100, 116, 139, 0.8) !important;
}
html:not(.dark) .text-gray-500 {
  color: #6b7280 !important;
}
html:not(.dark) .text-gray-600 {
  color: #4b5563 !important;
}
html:not(.dark) .text-gray-300 {
  color: #475569 !important;
}
html:not(.dark) .border-gray-900 {
  border-color: rgba(148, 163, 184, 0.35) !important;
}

h1, h2, h3, h4 {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; 
  letter-spacing: -0.02em; 
  font-weight: 700; 
}

.bg-hero-blur {
  background:
    radial-gradient(circle at 15% 20%, oklch(0.55 0.22 258 / 0.10), transparent 45%),
    radial-gradient(circle at 85% 30%, oklch(0.75 0.18 155 / 0.10), transparent 45%),
    radial-gradient(circle at 50% 80%, oklch(0.7 0.2 320 / 0.08), transparent 50%);
}

html.dark .bg-hero-blur {
  background:
    radial-gradient(circle at 15% 20%, oklch(0.55 0.22 258 / 0.15), transparent 45%),
    radial-gradient(circle at 85% 30%, oklch(0.75 0.18 155 / 0.12), transparent 45%),
    radial-gradient(circle at 50% 80%, oklch(0.7 0.2 320 / 0.1), transparent 50%);
}

.card-lift {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-brand {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.card-glass {
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.recaptcha-wrapper {
  margin-top: 1rem;
}

.recaptcha-wrapper .g-recaptcha {
  display: inline-block;
}

.order-callout {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.25);
}

/* Search Results Styles */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
}

.search-result-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--secondary);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.search-result-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-nav {
  flex: 1;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
}
