/* =========================================================
   EcoCart Essentials
   Main Website Styles
========================================================= */


/* =========================================================
   GLOBAL SETTINGS
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f7faf8;
  color: #1f2937;
}


/* =========================================================
   LINKS
========================================================= */

a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #86efac;
  outline-offset: 3px;
}


/* =========================================================
   IMAGES
========================================================= */

img {
  max-width: 100%;
  display: block;
}


/* =========================================================
   HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: relative;
  z-index: 50;
}


/* =========================================================
   HERO SECTIONS
========================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

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


/* =========================================================
   PRODUCT CARDS
========================================================= */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}


/* =========================================================
   GENERAL CARDS
========================================================= */

.eco-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.eco-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   GREEN BUTTON
========================================================= */

.eco-button {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.eco-button:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.25);
}


/* =========================================================
   OUTLINE BUTTON
========================================================= */

.eco-button-outline {
  display: inline-block;
  background: transparent;
  color: #15803d;
  border: 2px solid #15803d;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.eco-button-outline:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-2px);
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-hero {
  position: relative;
  overflow: hidden;
}

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


/* Contact form */

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 16px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}


/* =========================================================
   ECO ICON CIRCLES
========================================================= */

.eco-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 22px;
}


/* =========================================================
   SECTION BACKGROUNDS
========================================================= */

.eco-light {
  background: #f0fdf4;
}

.eco-green {
  background: #15803d;
  color: #ffffff;
}

.eco-dark {
  background: #052e16;
  color: #ffffff;
}


/* =========================================================
   AFFILIATE DISCLOSURE
========================================================= */

.affiliate-disclosure {
  background: #f3f4f6;
  color: #4b5563;
  padding: 25px 20px;
  text-align: center;
  font-size: 14px;
}

.affiliate-disclosure strong {
  color: #1f2937;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  background: #111827;
}

footer a {
  transition: color 0.2s ease;
}


/* =========================================================
   BLOG / CONTENT
========================================================= */

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}


/* =========================================================
   SUSTAINABILITY BADGES
========================================================= */

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dcfce7;
  color: #166534;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   SMOOTH ANIMATIONS
========================================================= */

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 767px) {

  header {
    position: relative;
  }

  header a {
    font-size: 16px;
  }

}


/* =========================================================
   MOBILE PRODUCT CARDS
========================================================= */

@media (max-width: 767px) {

  .product-card img {
    height: 220px;
  }

  .eco-card {
    padding: 22px;
  }

}


/* =========================================================
   MOBILE CONTACT PAGE
========================================================= */

@media (max-width: 767px) {

  .contact-form {
    padding: 24px 20px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

  .product-card img {
    height: 230px;
  }

}


/* =========================================================
   LARGE SCREENS
========================================================= */

@media (min-width: 1280px) {

  .product-card img {
    height: 250px;
  }

}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}