/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  --primary-color: #2e7d32;
  --primary-color-alt: #1b5e20;
  --primary-light: #a5d6a7;
  --title-color: #1e1e1e;
  --text-color: #555555;
  --text-color-light: #888888;
  --body-color: #f9fdfa;
  /* Off-white/very light green tint */
  --container-color: #ffffff;
  --footer-color: #1b4b28;
  /* Dark Green */
  --footer-text: #d8e6dc;

  /* ========== Font and Typography ========== */
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* ========== Font Weight ========== */
  --font-medium: 500;
  --font-semi-bold: 600;

  /* ========== Margins ========== */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== Z Index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* =============== BASE =============== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .3s;
  /* For dark mode if needed later */
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  border: none;
  outline: none;
  font-family: var(--body-font);
}

button {
  cursor: pointer;
}

/* =============== REUSABLE CSS CLASSES =============== */
.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-2);
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* =============== HEADER =============== */
.header {
  width: 100%;
  background-color: var(--body-color);
  /* Initial transparent-ish */
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .3s;
}

#header.scroll-header {
  background-color: var(--container-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
  letter-spacing: 1px;
}

.nav-btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav-toggle,
.cart-icon {
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Navigation for Mobile */
@media screen and (max-width: 767px) {
  .nav-menu {
    position: fixed;
    bottom: -100%;
    /* Hidden by default */
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: .3s;
    z-index: var(--z-fixed);
  }
}

.show-menu {
  bottom: 0;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav-link:hover {
  color: var(--primary-color);
}

.active-link {
  color: var(--primary-color);
}

.nav-close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* =============== HERO =============== */
.home__container {
  gap: 1rem;
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.home__description {
  margin-bottom: var(--mb-2);
}

.button {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.button:hover {
  background-color: var(--primary-color-alt);
}

.button__icon {
  font-size: 1.25rem;
  margin-left: .5rem;
  transition: .3s;
}

.button:hover .button__icon {
  transform: translateY(.25rem);
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.home__img-container {
  display: flex;
  justify-content: center;
}

.home__img {
  width: 250px;
  animation: float 4s ease-in-out infinite;
  opacity: 0;
  animation: float 4s ease-in-out infinite, fadeIn 2s forwards;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =============== PLANT BUTTON =============== */
.plant-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  min-width: 200px;
}

.plant-btn__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .75rem;
  transition: .5s;
}

.plant-btn__text {
  transition: .5s;
  z-index: 1;
}

.plant-btn__flower-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
  transition: .5s ease-in-out;
  transform: translateY(20px);
  opacity: 0;
}

.plant-btn__flower {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: #ffd700;
  /* Gold/Flower center */
  border-radius: 50%;
}

.plant-btn__flower::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid #ffd700;
  border-radius: 50%;
}

.plant-btn__leaf {
  position: absolute;
  width: 5px;
  height: 9px;
  background-color: var(--primary-light);
  border-radius: 50% 0;
}

.plant-btn__leaf-01 {
  transform: rotate(-45deg);
  top: -5px;
  left: -5px;
}

.plant-btn__leaf-02 {
  transform: rotate(45deg);
  top: -5px;
  right: -5px;
}

.plant-btn__leaf-03 {
  transform: rotate(-135deg);
  bottom: -5px;
  left: -5px;
}

.plant-btn__leaf-04 {
  transform: rotate(135deg);
  bottom: -5px;
  right: -5px;
}

/* Button hover states */
.plant-btn:hover .plant-btn__wrapper {
  transform: scale(1.05);
}

.plant-btn:hover .plant-btn__flower-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.plant-btn:hover .plant-btn__text {
  letter-spacing: 1px;
}

/* =============== FEATURES =============== */
.features__container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.features__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: .3s;
}

.features__card:hover {
  transform: translateY(-.5rem);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.features__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}

.features__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

/* =============== ABOUT =============== */
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__title {
  text-align: center;
  margin-bottom: var(--mb-1);
}

.about__description {
  margin-bottom: var(--mb-2);
}

.about__img {
  display: flex;
  justify-content: center;
}

.about__img-one {
  width: 280px;
  border-radius: 1.5rem;
  justify-self: center;
}

/* =============== PRODUCTS =============== */
.products__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.products__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: .3s;
  overflow: hidden;
}

.products__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.products__img {
  width: 120px;
  margin-bottom: var(--mb-1);
  transition: .3s;
}

.products__card:hover .products__img {
  transform: scale(1.1);
}

.products__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.products__price {
  display: block;
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
  margin-bottom: var(--mb-1);
}

.products__button {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .75rem;
  border-radius: 1rem 0 1rem 0;
}

.products__button:hover {
  background-color: var(--primary-color-alt);
}

/* =============== OFFER =============== */
.offer__container {
  position: relative;
  background-color: #dbece0;
  /* Fallback */
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.offer__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://placehold.co/1000x600/2e7d32/white?text=Succulents+Background') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
  /* Simple Parallax would need JS or fixed attachment but fixed is bad on mobile */
}

.offer__data {
  position: relative;
  z-index: 10;
  text-align: center;
}

.offer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
}

.offer__description {
  margin-bottom: var(--mb-2);
}

.button--white {
  background-color: #fff;
  color: var(--primary-color);
}

.button--white:hover {
  background-color: #f0f0f0;
}

/* =============== CATEGORIES =============== */
.categories__container {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.category__group {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  transition: .3s;
}

.category__header {
  text-align: center;
  margin-bottom: 2rem;
}

.category__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: .3s;
}

.category__img {
  width: 80px;
  margin-bottom: var(--mb-0-75);
}

.category__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-25);
}

.category__discount {
  font-size: var(--smaller-font-size);
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: .25rem .75rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.category__products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.category__product-card {
  background-color: var(--body-color);
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  text-align: center;
  transition: .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
}

.category__product-card:hover {
  transform: translateY(-.5rem);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  border-color: var(--primary-light);
}

.category__product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: .3s;
}

.category__product-card:hover .category__product-img {
  transform: scale(1.1);
}

.category__product-name {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

/* =============== BLOG =============== */
.blog__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: .3s;
}

.blog__card:hover {
  transform: translateY(-.5rem);
}

.blog__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog__data {
  padding: 1.5rem;
}

.blog__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.blog__description {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.blog__link {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
}

.blog__link:hover {
  text-decoration: underline;
}


/* =============== NEWSLETTER =============== */
.newsletter__container {
  text-align: center;
}

.newsletter__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
}

.newsletter__description {
  margin-bottom: var(--mb-2);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter__input {
  padding: 1rem;
  border-radius: .5rem;
  background-color: var(--container-color);
  border: 1px solid #e0e0e0;
}

.newsletter__message {
  font-size: var(--small-font-size);
  margin-top: var(--mb-0-5);
  height: 20px;
  /* reserve space */
}

/* =============== FOOTER =============== */
.footer {
  background-color: var(--footer-color);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__logo {
  color: #fff;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  display: inline-block;
}

.footer__description {
  margin-bottom: var(--mb-2);
  font-size: var(--small-font-size);
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  color: #fff;
  font-size: 1.25rem;
}

.footer__title {
  color: #fff;
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.footer__link,
.footer__info {
  color: var(--footer-text);
  font-size: var(--small-font-size);
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-top: 4.5rem;
  color: var(--footer-text);
  opacity: 0.8;
}

/* =============== SCROLL UP =============== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--primary-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--primary-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

.show-scroll {
  bottom: 5rem;
}

/* =============== MEDIA QUERIES =============== */
@media screen and (min-width: 576px) {

  .products__container,
  .newsletter__form,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter__form {
    flex-direction: row;
    align-items: center;
  }

  .newsletter__input {
    width: 70%;
  }

  .newsletter__button {
    width: 30%;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }

  .nav-menu {
    position: relative;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    bottom: 0;
  }

  .nav-list {
    display: flex;
    column-gap: 2rem;
  }

  .nav-close,
  .nav-toggle {
    display: none;
  }

  .home__container,
  .products__container,
  .blog__container,
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .home__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .home__img {
    width: 400px;
  }

  .home__data {
    text-align: left;
  }

  .newsletter__container {
    grid-template-columns: 1fr;
  }

  .features__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 500px;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    text-align: initial;
  }

  .about__title {
    text-align: initial;
  }

  .about__img-one {
    width: 350px;
  }
}