@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  /* Primary Palette — Warm Coral Orange */
  --color-primary: #FF6B35;
  --color-primary-light: #FFF0EB;
  --color-primary-dark: #E85A24;
  --color-primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8F5D 100%);

  /* Secondary */
  --color-secondary: #FFD166;
  --color-secondary-light: #FFF8E1;

  /* Semantic */
  --color-success: #06D6A0;
  --color-success-light: #E6FAF3;
  --color-warning: #F59E0B;
  --color-warning-light: #FEF3C7;
  --color-danger: #EF4444;
  --color-danger-light: #FEE2E2;
  --color-info: #3B82F6;
  --color-info-light: #EFF6FF;

  /* Neutrals */
  --color-background: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-text: #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-muted: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-divider: #F3F4F6;

  /* Spacing Scale */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */

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

  /* Shadows — Soft & Layered */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 3px rgba(255, 107, 53, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --header-height: 72px;
  --nav-height: 56px;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

button {
  font-family: inherit;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Element Plus Theme Overrides */
.el-button--primary {
  --el-button-bg-color: var(--color-primary) !important;
  --el-button-border-color: var(--color-primary) !important;
  --el-button-hover-bg-color: var(--color-primary-dark) !important;
  --el-button-hover-border-color: var(--color-primary-dark) !important;
  --el-button-active-bg-color: #D14E1F !important;
  --el-button-active-border-color: #D14E1F !important;
}

.el-button--danger {
  --el-button-bg-color: var(--color-danger) !important;
  --el-button-border-color: var(--color-danger) !important;
  --el-button-hover-bg-color: #DC2626 !important;
  --el-button-hover-border-color: #DC2626 !important;
}

.el-button--success {
  --el-button-bg-color: var(--color-success) !important;
  --el-button-border-color: var(--color-success) !important;
}

.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--color-primary) inset, var(--shadow-glow) !important;
}

.el-pagination.is-background .el-pager li.is-active {
  background-color: var(--color-primary) !important;
}

.el-tabs__item.is-active {
  color: var(--color-primary) !important;
}

.el-tabs__active-bar {
  background-color: var(--color-primary) !important;
}

.el-radio-button__original-radio:checked + .el-radio-button__inner {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.el-switch.is-checked .el-switch__core {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.el-tag--danger {
  --el-tag-bg-color: var(--color-danger-light) !important;
  --el-tag-border-color: var(--color-danger-light) !important;
  --el-tag-text-color: var(--color-danger) !important;
}

.el-tag--success {
  --el-tag-bg-color: var(--color-success-light) !important;
  --el-tag-border-color: var(--color-success-light) !important;
  --el-tag-text-color: var(--color-success) !important;
}

.el-tag--warning {
  --el-tag-bg-color: var(--color-warning-light) !important;
  --el-tag-border-color: var(--color-warning-light) !important;
  --el-tag-text-color: var(--color-warning) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Price Utilities */
.price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-lg {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.price-original {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

/* Card Hover Effect */
.hover-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}
.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.hover-card:active {
  transform: translateY(-2px);
}

/* Section Utilities */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient Text */
.gradient-text {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  .page-title {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
}
