:root {
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-primary-light: #4caf50;
  --color-accent: #ff6f00;
  --color-text: #212121;
  --color-text-light: #757575;
  --color-background: #ffffff;
  --color-surface: #f5f5f5;
  --color-border: #e0e0e0;
  --color-error: #d32f2f;
  --color-success: #388e3c;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --border-radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --header-height: 60px;
  --cart-width: 320px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
  border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-primary);
  color: white;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.main-nav {
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: var(--spacing-lg);
}

.nav-list a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
  border-bottom-color: white;
  outline: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

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

.lang-toggle {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-toggle:hover,
.lang-toggle:focus {
  background: rgba(255,255,255,0.3);
  outline: none;
}

.cart-toggle {
  position: relative;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.hero h1 {
  font-size: 1.75rem;
  margin: 0 0 var(--spacing-md);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 var(--spacing-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.catalog {
  padding: var(--spacing-xxl) 0;
}

.catalog h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 1.5rem;
}

.category-filters {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-btn.active,
.category-btn:hover,
.category-btn:focus {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  margin: 0 0 var(--spacing-xs);
  font-size: 0.95rem;
}

.product-unit {
  color: var(--color-text-light);
  font-size: 0.8rem;
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: auto;
  margin-bottom: var(--spacing-sm);
}

.add-to-cart {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart:hover,
.add-to-cart:focus {
  background: var(--color-primary-dark);
  outline: none;
}

.delivery {
  background: var(--color-surface);
  padding: var(--spacing-xxl) 0;
}

.delivery h2 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.delivery-intro {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.delivery-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-background);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-background);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-error);
  background-color: #fff5f5;
}

.form-group.has-error label {
  color: var(--color-error);
}

.about,
.contact {
  padding: var(--spacing-xxl) 0;
}

.about h2,
.contact h2 {
  margin-bottom: var(--spacing-md);
}

.contact address {
  font-style: normal;
  line-height: 2;
}

.contact a {
  color: var(--color-primary);
}

.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: var(--spacing-xl) 0;
  text-align: center;
  font-size: 0.9rem;
}

.compliance-links {
  margin-top: var(--spacing-sm);
}

.compliance-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.compliance-links a:hover,
.compliance-links a:focus {
  text-decoration: underline;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: var(--cart-width);
  height: 100vh;
  background: var(--color-background);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cart-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.cart-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: var(--spacing-xl);
}

.cart-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.cart-item-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover,
.qty-btn:focus {
  background: var(--color-surface);
  outline: none;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: var(--spacing-xs);
  padding: 0;
}

.cart-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.btn-checkout {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    gap: var(--spacing-xl);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-lg);
  }

  .product-image {
    height: 200px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
