/* Global Styles - Fashion Marketplace */

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

:root {
  /* Modern Color Palette - Deep Teal & Orange */
  --primary-color: #051821;        /* Deep Navy Blue */
  --secondary-color: #1a4645;      /* Dark Teal */
  --accent-color: #f58800;         /* Vibrant Orange */
  --accent-light: #f8bc24;         /* Golden Yellow */
  --tertiary-color: #266867;       /* Medium Teal */
  --border-color: #d4e4e3;         /* Light Teal Border */
  --bg-light: #e8f3f2;             /* Very Light Teal */
  --bg-cream: #f5fafa;             /* Off-white with teal hint */
  --bg-white: #ffffff;             /* Pure White */
  --text-primary: #051821;         /* Deep Navy for text */
  --text-secondary: #266867;       /* Medium Teal for secondary text */
  --success-color: #266867;        /* Teal for success */
  --discount-color: #f58800;       /* Orange for discounts */
  --shadow-soft: 0 12px 32px rgba(5, 24, 33, 0.08);

  /* Alternative Color Palette - Soft Sage & Beige */
  /* Uncomment to activate this palette:
  --primary-color: #819d99;        /* Soft Sage Green */
  /* --secondary-color: #c1d2d8;      /* Light Blue-Gray */
  /* --accent-color: #dcc6ae;         /* Warm Beige */
  /* --accent-light: #eeddce;         /* Light Cream Beige */
  /* --tertiary-color: #819d99;       /* Soft Sage (same as primary) */
  /* --border-color: #c1d2d8;         /* Light Blue-Gray Border */
  /* --bg-light: #f0edea;             /* Off-White Cream */
  /* --bg-cream: #f0edea;             /* Off-White Cream */
  /* --bg-white: #ffffff;             /* Pure White */
  /* --text-primary: #2a3a38;         /* Dark Sage for text */
  /* --text-secondary: #819d99;       /* Soft Sage for secondary text */
  /* --success-color: #819d99;        /* Sage for success */
  /* --discount-color: #dcc6ae;       /* Beige for discounts */
  /* --shadow-soft: 0 12px 32px rgba(129, 157, 153, 0.12);
  */

}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button Styles */
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e67d00 0%, #f9c940 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 136, 0, 0.4);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--secondary-color);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
  border: none;
}

.btn-accent:hover {
  background: #e67d00;
  transform: translateY(-1px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--accent-color);
  color: white;
}

/* Card */
.card {
  background: var(--bg-white);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 17, 15, 0.12);
  border-color: rgba(20, 17, 15, 0.12);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
  filter: grayscale(1);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

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

.fade-in-up {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Footer */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 24px;
}

.social-links a {
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
