:root {
  /* Color Palette - Dark Green Theme based on screenshot */
  --wf-bg: #1a231d;
  --wf-bg-secondary: #243029;
  --wf-bg-accent: #2e3d34;
  
  --wf-primary: #d4e157; /* Lime/Yellow accent */
  --wf-primary-hover: #c0ca33;
  --wf-primary-text: #1a231d; /* Text on primary button */
  
  --wf-text: #ffffff;
  --wf-text-muted: #a0aead;
  --wf-border: #36463d;
  
  --wf-success: #66bb6a;
  --wf-danger: #ef5350;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --container-width: 1200px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--wf-bg);
  color: var(--wf-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { 
  color: var(--wf-primary); 
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--wf-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--wf-primary);
  color: var(--wf-primary-text);
}
.btn-primary:hover {
  background-color: var(--wf-primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--wf-border);
  color: var(--wf-text);
}
.btn-outline:hover {
  border-color: var(--wf-primary);
  color: var(--wf-primary);
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Navigation */
.navbar {
  background: rgba(26, 35, 29, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--wf-border);
  padding: 16px 0;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wf-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--wf-primary); }
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--wf-text-muted);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--wf-primary);
}
.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-badge {
  position: relative;
  font-size: 1.2rem;
}
.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--wf-danger);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Cards */
.card {
  background: var(--wf-bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--wf-border);
  transition: transform 0.2s;
  overflow: hidden;
}
.card:hover {
  border-color: var(--wf-primary);
  transform: translateY(-4px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--wf-text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.category-card {
  background: var(--wf-bg-accent);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.category-card:hover {
  background: var(--wf-bg-secondary);
}
.category-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.category-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--wf-bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--wf-border);
  display: flex;
  flex-direction: column;
}
.product-image {
  height: 200px;
  background: var(--wf-bg-accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-text-muted);
}
.product-details {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.product-price {
  color: var(--wf-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.product-meta {
  font-size: 0.9rem;
  color: var(--wf-text-muted);
  margin-bottom: 16px;
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2e3d34 0%, #36463d 100%);
}
.placeholder-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wf-bg-accent);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px;
  background: var(--wf-bg-accent);
  border: 1px solid var(--wf-border);
  border-radius: var(--radius-sm);
  color: var(--wf-text);
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--wf-primary);
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--wf-border);
}
.table th {
  color: var(--wf-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Search Bar */
.search-bar {
  display: flex;
  background: var(--wf-bg-accent);
  border-radius: var(--radius-lg);
  padding: 4px;
  border: 1px solid var(--wf-border);
  width: 100%;
  max-width: 500px;
}
.search-input {
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: white;
  flex: 1;
  outline: none;
}
.search-btn {
  background: var(--wf-primary);
  color: var(--wf-primary-text);
  border: none;
  border-radius: 20px;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
}

/* Cart Specifics */
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--wf-border);
}
.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--wf-bg-accent);
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wf-bg-accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* Footer */
.footer {
  background: var(--wf-bg-secondary);
  padding: 60px 0 20px;
  margin-top: 80px;
  border-top: 1px solid var(--wf-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--wf-text-muted); }
.footer-links a:hover { color: var(--wf-primary); }

/* Utilities Extended */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.text-success { color: var(--wf-success); }
.text-danger { color: var(--wf-danger); }
.text-warning { color: #fbbf24; }
.cursor-pointer { cursor: pointer; }
.p-0 { padding: 0 !important; }

/* Admin Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--wf-bg-secondary);
  border-right: 1px solid var(--wf-border);
  padding: 24px;
}
.admin-content {
  padding: 24px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { margin: 0 auto 24px; }
  .nav-links { display: none; } /* Simplified for wireframe */
  .search-bar { display: none; } /* Hide on mobile in basic view */
  
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
