:root, [data-theme="light"] {
  /* Light Mode Colors - Monochromatic Minimalism */
  --bg-color: #f4f5f7;
  --bg-surface: #ffffff;
  --text-primary: #1c1c1c;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --border-color: #e0e0e0;
  --row-hover: #f9f9f9;
  --accent-color: #555555;
  --accent-light: rgba(85, 85, 85, 0.08);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  /* Dark Mode Colors - Monochromatic Minimalism */
  --bg-color: #121212;
  --bg-surface: #1c1c1c;
  --text-primary: #E0E0E0;
  --text-secondary: #B0B0B0;
  --text-tertiary: #888888;
  --border-color: #444444;
  --row-hover: #252525;
  --accent-color: #888888;
  --accent-light: rgba(136, 136, 136, 0.15);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* Header */
.header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Hero */
.hero {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Main Container */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 4rem 1rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Category Sections */
.category-section {
  margin-bottom: 3rem;
  background-color: var(--bg-surface);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-header {
  background-color: var(--bg-color);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* List Table Structure */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-list-header {
  display: grid;
  grid-template-columns: 2fr 2.5fr 1fr 2.5fr 80px 100px;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list-col {
  display: flex;
  align-items: center;
}

.list-col.right {
  justify-content: flex-end;
  text-align: right;
}

.product-row {
  display: grid;
  grid-template-columns: 2fr 2.5fr 1fr 2.5fr 80px 100px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  align-items: start;
}

.product-row:last-child {
  border-bottom: none;
}

.product-row:hover {
  background-color: var(--row-hover);
}

.col-name {
  font-weight: 600;
  color: var(--text-primary);
}

.col-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.col-price {
  font-weight: 600;
  color: var(--text-primary);
}

.col-price-long {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.col-qty {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Badge for KÜSI */
.badge {
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-unit {
  font-size: 0.75em;
  color: var(--text-tertiary);
  margin-left: 2px;
  font-weight: normal;
}

/* Buttons */
.btn-add-cart {
  padding: 0.4rem 0.75rem;
  background-color: rgba(147, 197, 253, 0.2);
  color: var(--text-primary);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-add-cart:hover {
  background-color: rgba(147, 197, 253, 0.3);
  transform: translateY(-1px);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--row-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .layout-wrapper {
    flex-direction: column !important;
  }
  .sidebar-area {
    flex-basis: auto !important;
    width: 100%;
    margin-bottom: 2rem;
  }
  .cart-pane {
    position: static !important;
  }
  
  .desktop-only {
    display: none !important;
  }

  .product-list-header {
    display: none;
  }
  
  .product-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
  }
  
  .col-desc {
    margin-bottom: 0.5rem;
  }
  
  .list-col.right {
    justify-content: flex-start;
    text-align: left;
  }
  
  .mobile-label {
    display: inline-block;
    width: 90px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 0.5rem;
  }
}

@media (min-width: 1025px) {
  .mobile-label {
    display: none;
  }
}
