:root {
  --primary-color: tomato;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: white;
}

/* Navbar styles */
.navbar {
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li:first-child a {
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links .nav-item {
    display: none;
  }

  .nav-links .cart {
    display: block;
  }

  .navbar {
    padding: 10px 20px;
  }
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
  flex-wrap: wrap;
  background-color: white;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 0.5em;
}

.highlight-bold {
  font-weight: bold;
  color: black;
}

.highlight-text {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.hero-image {
  flex: 1;
  text-align: right;
}

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

/* Responsive Hero-Section */
@media (max-width: 550px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    text-align: center;
    height: 100vh;
    margin-bottom: -10px;
  }

  .hero-image {
    order: 1;
    width: 100%;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    align-items: right;
  }

  .hero-content {
    order: 2;
    width: 100%;
    padding: -2em 0;
  }

  .hero-content h1 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 0.5em;
    padding: 0 0.3em;
  }

  .hero-content p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 1em;
  }
}

/* Plant Section */
.plants {
  text-align: center;
  padding: 2em;
  background-color: white;

  h2 {
    font-size: 3rem;
  }
}

.plant-description {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5em 1em;
}

.plant-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5em 0.9em;
  margin-top: 2em;
}

.plant-card img {
  max-width: 100%;
}

.add-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5em 7.5em;
  cursor: pointer;
}

.add-cart:hover {
  background-color: darkorange;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* Responsive Plant Section */
@media (max-width: 550px) {
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plant-card {
    padding: 0.5em 1em;
  }

  .add-cart {
    padding: 0.7em 3em;
    font-size: 0.70rem;
  }
}

/* Plant Lover Section */
.plant-lover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  gap: 2em;
  flex-wrap: wrap;
  background-color: white;
}

.lover-image {
  position: relative;
  max-width: 500px;
  width: 100%;
  flex: 1;
  padding-left: 45px;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
}

.trusted-badge {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 190px;
  height: auto;
  z-index: 2;
}

.lover-content {
  flex: 1;
  min-width: 250px;
}

.lover-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.2;
}

.lover-content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  font-size: 1rem;
  color: #444;
}

.lover-content ul li {
  margin-bottom: 1em;
  line-height: 1.6;
}

/* Responsive Plant-Lovers Section */
@media (max-width: 550px) {
  .plant-lover {
    flex-direction: column;
    text-align: center;
    padding: 1.5em;
  }

  .lover-image {
    order: 1;
    padding-left: 0;
  }

  .lover-content {
    order: 2;
  }

  .trusted-badge {
    display: none;
  }

  .lover-content h2 {
    font-size: 1.5rem;
  }

  .lover-content h2 .highlight {
    font-size: 2rem;
  }

  .lover-content ul {
    font-size: 0.95rem;
  }
}

/* Latest-Deals Section */
.latest-deals {
  text-align: center;
  padding: 2em;
  background-color: #f9f9f9;
}

.latest-deals h2 {
  font-size: 3rem;
}

.deal-subtext {
  margin-top: 0.5em;
  color: #555;
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.deal-container {
  display: flex;
  justify-content: space-between;
  gap: 2%;
  margin-top: 2em;
  align-items: stretch;
  flex-wrap: wrap;
}

.left-column {
  width: 33%;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.right-column {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-img-box {
  position: relative;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-radius: 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-column .deal-img-box {
  height: 100%;
}

.deal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.deal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  width: 100%;
  height: 100%;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  text-align: center;
}

.offer {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.plant-name {
  font-size: 1.2rem;
  margin: 0.4em 0;
}

.shop-link {
  text-decoration: underline solid;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

/* Responsive Latest Deals */
@media (max-width: 550px) {
  .deal-container {
    flex-direction: column;
    gap: 1.5em;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .deal-img-box {
    height: 250px;
  }
}

/* Join Section */
.join {
  text-align: center;
  padding: 13em 8em;
  background: url('images/news-letter-bg.png') no-repeat center center / cover;
  color: white;
  width: 100%;
  min-height: 550px;
}

.join form {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.join input {
  flex: 1;
  padding: 1em;
  font-size: 1rem;
  border: none;
}

.join button {
  padding: 1em 2em;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
}

/* Footer Section */
.footer {
  background-color: white;
  padding: 60px 5px;
  color: #333;
  font-family: Arial, sans-serif;
  margin-top: -20px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

.footer-logo {
  max-width: 300px;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}

.logo-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.footer-column {
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

.footer-list {
  list-style: none;
  padding: 0 5px;
  margin: 0;
}

.footer-list li {
  margin: 20px 0;
}

.footer-list a {
  text-decoration: none;
  color: black;
  transition: 0.3s ease;
}

.footer-list a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.5rem;
  padding-left: 100px;
  margin-top: -150px;
}

.footer-social img {
  width: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
  gap: 50px;
}

.footer-social img:hover {
  transform: scale(1.1);
}

/* Responsive Footer */
@media (max-width: 550px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: -50rem;
    margin-left: 10px;
  }

  .footer-list li {
    margin: 25px 0;
  }
  .footer-column .footer-list .Contact {
    margin-bottom: -4.5px;
  }
  .footer-logo,
  .footer-column,
  .footer-social {
    width: 100%;
    margin-bottom: -1rem;
    padding-left: 0;
  }

  .footer-social {
    justify-content: flex-start;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: -2rem;
  }
}