@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-earth: #2d5016;
  --color-earth-light: #4a7c2e;
  --color-soil: #5c4033;
  --color-harvest: #d4a017;
  --color-field: #e8f5e0;
  --color-sky: #87ceeb;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

.font-display {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Hero slider */
.hero-slider {
  position: relative;
  min-height: 85vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide .hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide .hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product card hover */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Quick view modal */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Lazy image fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: var(--color-earth-light);
  border-radius: 4px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-harvest);
  outline-offset: 2px;
}

/* Cart badge animation */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.cart-bounce {
  animation: cart-bounce 0.3s ease;
}

/* Step connector line */
.step-connector::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(50% + 2rem);
  width: calc(100% - 4rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-earth-light), var(--color-harvest));
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
}

/* Testimonial card */
.testimonial-card {
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(212, 160, 23, 0.05) 100%);
}

.dark .testimonial-card {
  background: linear-gradient(135deg, rgba(74, 124, 46, 0.1) 0%, rgba(212, 160, 23, 0.08) 100%);
}

/* Print styles */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }
}