:root {
  --primary: #6a9739;
  --dark:#111;
  --light:#f8f6f3;
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Open Sans', sans-serif;
}

@font-face {
  font-display: swap;
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2');
}

body {
  background:var(--light);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  transition: all 0.3s ease 0s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', sans-serif;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1240px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

header {
  background: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
}

.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.navbar ul > li > a {
  color: #484848;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px!important;
}

.nav-right li:last-child {
  margin-left: 15px!important;
}

.nav-right li:first-child > a {
  font-weight: bold;
  color: var(--primary)!important;
}

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

.cart {
  position: relative;
  cursor: pointer;
}

.cart a {
  color: var(--primary);
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 50%;
}

.account {
  position: relative;
  cursor: pointer;
}

.dropdown {
  position: absolute;
  right: 0;
  top: 30px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown p {
  padding: 8px 15px;
  cursor: pointer;
}

.dropdown p:hover {
  background: #f1f5f9;
}

.hero {
  background: url("../images/bg-color.png") no-repeat center center;
  background-size: cover;
  padding: 120px 0;
}

.hero-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.hero-wrapper img,
.hero-wrapper div {
  width: 600px;
}

.hero h1 {
  font-family: 'Merriweather', sans-serif;
  color: var(--dark);
  line-height: 1.2em;
  font-size: 50px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 25px;
  line-height: 1.4;
}

.hero p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #484848;
}

.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .12px;
  border: none;
  padding: 12px 36px;
  background-color: var(--primary);
  color: #fff;
}

.btn:hover {
  background-color: #7cb342;
  color: #fff;
}

.hero .btn {
  margin-top: 15px;
}

.about-us {
  padding-top: 70px;
  padding-bottom: 50px;
}

.about-us .lead {
  margin-bottom: 30px;
}

.about-us .contact-channels>a {
  background: #e2e2e2;
  display: inline-block;
  padding: 20px 20px;
  width: 100px;
  border-radius: 5px;
  margin-right: 3px;
  color: #bbb;
}

.about-us .contact-channels>a:hover {
  color: indigo;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}

.card {
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
  text-align:center;
  transition:0.3s;
}

.card:hover {
  transform:translateY(-5px);
}

.trending-products {
  padding: 70px 8%;
  background: var(--light);
  text-align: center;
}

.trending-products .card,
.customer-reviews .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.trending-products h2 {
  margin-bottom: 40px;
}

.about {
  padding: 70px 8%;
  background: var(--dark);
}

.about-wrapper {
  display: flex;
  gap: 50px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #fff;
}

.about-text p {
  margin-bottom: 15px;
  color: #c3c3c3;
  line-height: 1.7;
}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.best-selling-products {
  padding-top: 130px;
  padding-bottom: 50px;
}

.best-selling-products h2 {
  margin-bottom: 70px;
}

.best-selling-products .card {
  background: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 50px;
}

.best-selling-products .card h3 {
  margin-top: 15px;
}

.best-selling-products .btn {
  padding: 12px 30px;
  margin-top: 15px;
}

.best-selling-products img {
  width: 100%;
  border-radius: 4px;
}

.best-selling-products .card p {
  margin-top: 15px;
  color: #5d5d5d;
  font-size: 14px;
}

.best-selling-products .card span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 14px;
}

.offers {
  background: #fff;
  text-align: center;
  padding: 70px 0;
  text-align: left;
}

.offers p {
  margin: 20px 0 30px;
  color: #5d5d5d;
  font-size: 20px;
}

.promotion {
  background: var(--dark);
  color: #dedede;
  padding: 20px;
  font-size: 24px;
  padding: 40px 0;
}

.promotion strong {
  font-family: 'Merriweather', sans-serif;
}

.brands {
  padding: 70px 8%;
  background: #f9f8f6;
}

.brands h2 {
  margin-bottom: 40px;
  font-size: 26px;
}

.logo-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-container {
  overflow: hidden;
  width: 80%;
}

/* TRACK */
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 80px;
  opacity: 0.6;
  transition: 0.3s;
}

.slide img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.arrow {
  border: none;
  background: 0;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: 0.3s;
}

.arrow:hover {
  background: #f9f1e2;
}

.customer-reviews {
  padding: 60px 8%;
  background: var(--light);
}

.customer-reviews .card {
  padding: 20px 40px;
}

.customer-reviews h2 {
  text-align: center;
  margin-bottom: 70px;
  color: var(--dark);
}

.review-card .stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #facc15;
}

.customer-reviews p {
  color: #5d5d5d;
  margin-bottom: 17px;
  line-height: 1.6;
}

.reviewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reviewer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* MIDDLE CARD WITH PHOTO BACKGROUND */
.middle {
  background:var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 25px 0;
}

.middle .overlay {
  background: var(--dark);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-align: center;
}

.middle .overlay h3 {
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.middle .overlay p {
  color: #c5c5c5;
}

footer {
  background: var(--dark);
  padding-top: 70px;
  padding-bottom: 20px;
  color: #dedede;
}

.sitemap {
  padding: 40px 0;
}

.sitemap h2 {
  text-align: center;
  margin-bottom: 40px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 30px;
  margin-top: 30px;
}

.sitemap-col h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

.logo-wrapper {
  background: #f9f8f6;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.logo-wrapper p {
  color: #5d5d5d;
  font-style: italic;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.sitemap-col ul {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.sitemap-col li {
  margin-bottom: 5px;
}

/* LINKS */
.sitemap-col a {
  text-decoration: none;
  color: #aaaaaa;
  transition: 0.3s;
}

.sitemap-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  border-top: #373737 solid 1px;
  padding-top: 20px;
}

.copy-grid {
  display: flex;
  justify-content: space-between;
}

.copy a {
  margin-right: 10px;
  color: #a1a1a1;
  text-decoration: none;
  transition: 0.3s;
}

.copy a:last-child {
  margin-right: 0;
}

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

/* RESPONSIVE */
@media(max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media(min-width: 991px) {
  .best-selling-products .lead {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* MOBILE */
@media(max-width:768px){
  .hero {
    padding: 30px 0;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 70px 0;
    gap: 30px;
  }

  .hero-wrapper img,
  .hero-wrapper div {
    width: 100%;
    max-width: 280px;
  }

  .hero-wrapper h1 {
    font-size: 32px;
  }

  .about-text h2 {font-size:1.6rem;}

  .best-selling-products {
    padding: 70px 8%;
  }

  .trending-products,
  .customer-reviews,
  .offers {
    padding: 50px 4%;
  }

  .customer-reviews .card {
    padding: 20px;
  }

  footer {
    padding: 0;
  }

  .sitemap-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .sitemap-grid .sitemap-col:last-child {
    min-width: 250px;
    text-align: center;
  }

  .copy {
    padding-bottom: 15px;
  }

  .copy p {
    font-size: 14px;
  }
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none!important;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .navbar ul {
    gap: 5px;
  }

  .nav-links li {
    margin: 0;
    line-height: 2.8;
    border-bottom: 1px solid #f1f1f1;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links.active {
    display: flex!important;
  }

  /* hide right side on small screens */
  .nav-right {
    display: none!important;
  }
}