/* =========================
   KoyaMarket – Global Styles
   ========================= */

/* Theme Colors */
:root {
  --primary: #2a4b2c;
  --secondary: #4a7c59;
  --accent: #c99c33;
  --light: #f8f6f0;
  --dark: #1a2a1a;
}

/* Typography */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fcfcf7;
  color: #374151; /* Tailwind gray-700 */
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #b58a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Dropdowns */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(42, 75, 44, 0.85), rgba(42, 75, 44, 0.85)), 
              url('https://images.unsplash.com/photo-1532336414038-cf19250c5757?q=80&w=1374&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  color: white;
}

/* Product Image */
.product-image {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

/* Price & Badges */
.price {
  color: var(--primary);
  font-weight: bold;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Benefit Icons */
.benefit-icon {
  background-color: rgba(202, 156, 51, 0.15);
  color: var(--accent);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Navigation */
.nav-category {
  position: relative;
}

.nav-category:hover .mega-menu {
  display: grid;
}

.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Ayurvedic Background Pattern */
.ayurvedic-pattern {
  background-color: var(--primary);
  opacity: 0.05;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--primary) 10px),
                    repeating-linear-gradient(#2a4b2c55, #2a4b2c);
}
