:root {
  --primary: #2d6a4f;
  --primary-dark: #1f513c;
  --secondary: #f1f5f2;
  --dark: #1b4332;
  --white: #ffffff;
  --text: #222;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0,0,0,0.15);
  --transition: 0.35s ease;
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--secondary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* GLOBAL IMAGE STYLE */
img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

img:hover {
  transform: scale(1.05);
}

/* HEADER */
.header {
  background: var(--primary);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.header:hover {
  background: var(--primary-dark);
}

.logo {
  width: 90px;
  cursor: pointer;
  transition: transform var(--transition);
}

.logo:hover {
  transform: rotate(-5deg) scale(1.1);
}

.nav a {
  color: var(--white);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--white);
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--secondary);
  font-weight: 700;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('images/hero.jpg') center/cover no-repeat;
  text-align: center;
  padding: 160px 20px;
  color: white;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 25px;
  opacity: 0.95;
  animation: fadeInUp 1.3s ease forwards;
  opacity: 0;
}

.cta {
  background: var(--primary);
  padding: 18px 40px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
}

.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* SECTIONS */
.products, .vendors {
  padding: 70px 40px;
  text-align: center;
}

.products h2, .vendors h2 {
  font-size: 2.6rem;
  margin-bottom: 30px;
  color: var(--dark);
  position: relative;
}

.products h2::after, .vendors h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0 auto;
  border-radius: var(--radius);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 35px;
}

/* PRODUCT & VENDOR CARDS */
.item, .vendor {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.item:hover, .vendor:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

.item img {
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: var(--radius);
}

.price {
  font-weight: bold;
  color: var(--primary);
  margin: 12px 0;
  font-size: 1.15rem;
}

/* BUTTONS */
button {
  background: var(--primary);
  border: none;
  padding: 14px 24px;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* BUTTON RIPPLE EFFECT */
button::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s, opacity 0.5s;
}

button:active::after {
  transform: scale(3);
  opacity: 1;
  transition: 0s;
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: white;
  padding: 35px 20px;
  text-align: center;
  margin-top: 70px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ANIMATIONS */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}


