/*
Theme Name: Econic Agro Clean Light
Theme URI: https://econicagro.com/
Author: Econic Agro Design System
Description: Clean, light-mode WooCommerce theme built for agricultural and aquaculture equipment storefronts with a Mega Menu, AJAX Quick View, responsive product filtering, streamlined checkout, and social feeds.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: econic-agro
Tags: e-commerce, woocommerce, agriculture, clean, light, mega-menu
*/

:root {
  --ea-bg: #fafbf9;
  --ea-surface: #ffffff;
  --ea-surface-alt: #f3f5f1;
  --ea-border: #e5e7e2;
  --ea-ink: #141a16;
  --ea-muted: #5a655e;
  --ea-accent: #166534;
  --ea-accent-hover: #14532d;
  --ea-radius: 10px;
}

body {
  background-color: var(--ea-bg);
  color: var(--ea-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  margin: 0;
  line-height: 1.6;
}

.ea-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ea-border);
}

.ea-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ea-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .ea-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ea-product-grid { grid-template-columns: 1fr; }
}

.ea-product-card {
  background: var(--ea-surface);
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius);
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease;
}

.ea-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(20, 26, 22, 0.12);
}

.ea-mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ea-surface);
  border-bottom: 1px solid var(--ea-border);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
  padding: 32px 0;
}

.ea-mega-trigger[aria-expanded="true"] + .ea-mega-panel,
.ea-mega-wrapper:hover .ea-mega-panel {
  display: block;
}
