/* 
 * NepalGear — Vercel-inspired Design System
 * Based on Geist design language by Vercel
 */

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

:root {
  /* Primary */
  --color-bg: #ffffff;
  --color-text: #171717;
  --color-text-secondary: #4d4d4d;
  --color-text-tertiary: #666666;
  --color-text-muted: #808080;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-light: #ebebeb;
  --color-surface: #fafafa;
  
  /* Accent — Nepal themed warm red */
  --color-accent: #dc3c3c;
  --color-accent-hover: #b82e2e;
  --color-accent-light: #fff5f5;
  
  /* Status */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Typography */
  --font-primary: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Shadows */
  --shadow-border: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
  --shadow-card: 0px 0px 0px 1px rgba(0,0,0,0.08), 0px 2px 2px rgba(0,0,0,0.04), #fafafa 0px 0px 0px 1px;
  --shadow-elevated: 0px 0px 0px 1px rgba(0,0,0,0.08), 0px 2px 4px rgba(0,0,0,0.06), 0px 8px 16px -8px rgba(0,0,0,0.08);
  --shadow-button: 0px 1px 2px rgba(0,0,0,0.06), 0px 0px 0px 1px rgba(0,0,0,0.08);
  
  /* Spacing */
  --space-unit: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 120px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-accent);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.05em; }
h2 { font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; }
h3 { font-size: 32px; line-height: 1.25; letter-spacing: -0.03em; }
h4 { font-size: 24px; line-height: 1.33; letter-spacing: -0.02em; }
h5 { font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
h6 { font-size: 16px; line-height: 1.5; letter-spacing: 0; }

p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 14px;
}

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

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: none;
  box-shadow: var(--shadow-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.site-logo:hover {
  color: var(--color-text);
}
.site-logo img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 0;
  position: relative;
  transition: color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-text);
  color: white;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: #000;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0px 2px 4px rgba(0,0,0,0.1), 0px 0px 0px 1px rgba(0,0,0,0.15);
}

.btn-outline {
  background: white;
  color: var(--color-text);
  box-shadow: var(--shadow-border);
}
.btn-outline:hover {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.12);
}

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

.btn-sm {
  padding: 4px 12px;
  font-size: 13px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
}

.card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: none;
  box-shadow: var(--shadow-border);
}

.card-body {
  padding: var(--space-md);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.card-price-old {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.card-rating {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-grid .card {
  animation: fadeIn 0.3s ease;
}

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

/* Hero Section */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fafafa 50%, #fff 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 18px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-border);
  font-size: 24px;
}

.feature-card h4 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 24px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-border);
  font-family: var(--font-primary);
}

.badge-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
  box-shadow: none;
}

.badge-success {
  background: #f0fdf4;
  color: #166534;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand p {
  color: #a1a1aa;
  font-size: 14px;
}

.footer-col h5 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  color: #a1a1aa;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #a1a1aa;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-border);
}

.breadcrumb a {
  color: var(--color-text-secondary);
}
.breadcrumb a:hover {
  color: var(--color-text);
}
.breadcrumb .active {
  color: var(--color-text);
  font-weight: 500;
}

/* Cart / Checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  padding: 12px 16px;
  box-shadow: var(--shadow-border);
  text-align: left;
}

.cart-table td {
  padding: 16px;
  box-shadow: var(--shadow-border);
  vertical-align: middle;
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.quantity-input button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-surface);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.quantity-input button:hover {
  background: #e8e8e8;
}

.quantity-input input {
  width: 48px;
  height: 32px;
  border: none;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  border-left: none;
  border-right: none;
  outline: none;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: 14px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  background: white;
  outline: none;
  transition: box-shadow 0.15s;
}
.form-input:focus {
  box-shadow: 0px 0px 0px 2px hsla(212, 100%, 48%, 1), var(--shadow-border);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

/* Trust bar */
.trust-bar {
  padding: var(--space-xl) 0;
  text-align: center;
  box-shadow: var(--shadow-border);
}

.trust-bar p {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.5;
}

.trust-logos img {
  height: 28px;
}

/* Newsletter */
.newsletter-section {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--color-surface);
  box-shadow: var(--shadow-border);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: var(--space-md) auto 0;
}

.newsletter-form input {
  flex: 1;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Login page */
.login-page {
  max-width: 400px;
  margin: var(--space-2xl) auto;
  padding: var(--space-lg);
  text-align: center;
}

.login-page h2 {
  margin-bottom: var(--space-lg);
}

/* Admin panel quick link */
.back-to-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}
.back-to-admin:hover {
  color: var(--color-text);
}

/* Reviews */
.review-card {
  padding: var(--space-md);
  box-shadow: var(--shadow-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.stars {
  color: #f59e0b;
  font-size: 14px;
}

/* Price display */
.price-current {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-original {
  font-size: 16px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  
  .hero { padding: var(--space-xl) 0; }
  .section { padding: var(--space-xl) 0; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .main-nav { display: none; }
  
  .menu-toggle {
    display: flex !important;
  }
}
