/* COLORS */
:root {
  --green: #5fd788;
  --grey: #f3f4f6;
  --grey500: #6b7280;
  --grey400: #9ca3af;
  --grey50: #f9fafb;
  --darker-grey: #4b5563;
  --grey800: #1f2937;
  --grey700: #374151;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
  /* width: 100%; */
  margin: 0;
  padding: 0;
  /* outline: 1px solid red; */
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--grey400);
  transition: all 0.3s ease;
}

body.dark-mode {
  background: var(--grey800);
  transition: all 0.3s ease;
}

body.dark-mode p {
  color: var(--grey500);
}

body.dark-mode .logo p,
body.dark-mode .dark-mode-toggle {
  color: var(--grey400);
}

.bodydark-mode .mobile-nav-menu-icon svg path {
  fill: var(--grey400);
}

/* body.dark-mode .dark-mode-toggle{
  color: var(--grey400);
} */

body.dark-mode footer {
  background: var(--grey700);
}

section {
  margin-top: 6rem;
}

h1 {
  font-size: 2rem;
  color: var(--green);
}

.header {
  height: 100vh;
  width: 100%;
}

.btn {
  color: #fff;
  height: 40px;
  width: 274px;
  background-color: var(--green);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  border: none;
  font-weight: 700;
}

.btn:hover {
  color: var(--grey800);
  background-color: #fff;
}

/* MOBILE NAV SECTION */
.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  padding: 20px 0;
  width: 100%;
  top: 0;
  transition: all 400ms ease;
  z-index: 1;
}

nav.scrolled {
  background-color: var(--green);
  box-shadow: 0 8px 14px 8px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 15px 15px;
  top: 0;
  /* color: #fff; */
}

nav.scrolled .logo p {
  color: #fff;
}

.desktop-nav.scrolled {
  padding-bottom: 2rem;
}

.mobile-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding-left: 2rem;
}

.logo svg {
  width: 24px;
}

.logo p {
  font-size: 1.2rem;
  color: var(--grey800);
}

.mobile-nav-menu-icon {
  width: 26px;
  margin-right: 2rem;
  display: flex;
}

body.dark-mode .mobile-nav-menu-icon svg path {
  fill: #fff;
}

.mobile-nav p {
  padding: 0;
}

.mobile-nav-menu-container {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 100%;
  /* left: 0; */
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 400ms ease;
}

.mobile-nav-menu-container.active {
  left: 0;
}

.mobile-nav-menu-container.active .close-icon {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-menu-container.active .sub-menu {
  pointer-events: auto;
  opacity: 1;
}

.sub-menu {
  position: fixed;
  top: 29px;
  right: 70px;
  pointer-events: none;
  /* display: none; */
  opacity: 0;
  transition: all 400ms ease;
  display: flex;
}

.sub-menu svg {
  width: 36px;
  height: 36px;
  margin: 1rem;
  cursor: pointer;
}

.sub-menu svg path {
  fill: #fff;
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 0.5rem;
  color: var(--grey800);
  padding-right: 2rem;
  font-size: 1.2rem;
  user-select: none;
}

.dark-mode-toggle input {
  display: none;
}

.dark-mode-toggle .dark-mode-slider {
  width: 34px;
  height: 16px;
  background-color: var(--grey800);
  border-radius: 50px;
  position: relative;
  transition: background-color 0.3s ease;
}

.dark-mode-toggle .dark-mode-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.dark-mode-toggle input:checked + .dark-mode-slider {
  background-color: var(--green);
}

.dark-mode-toggle input:checked + .dark-mode-slider::before {
  transform: translateX(18px);
}

.close-icon {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: all 400ms ease;
  top: 32px;
  right: 25px;
}

.close-icon svg {
  width: 48px;
  height: 48px;
}

.close-icon svg path {
  fill: #fff;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
}

.mobile-nav-item {
  text-align: center;
  margin: 100px 0;
  transition: all 400ms ease;
}

.mobile-nav-item:hover {
  transform: scale(1.1);
}

.mobile-nav-link {
  text-decoration: none;
  color: #fff;
  font-size: 36px;
}

/* DESKTOP NAV SECTION */
.desktop-nav {
  display: none;
  justify-content: space-between;
  z-index: 1;
  position: fixed;
  width: 100%;
  padding: 3rem 4rem 0;
  transition: all 400ms ease;
}

.desktop-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.desktop-nav-menu {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.desktop-nav-link {
  text-decoration: none;
  color: var(--grey800);
  font-size: 1.2rem;
}

.right-menu {
  display: flex;
  gap: 1rem;
}

/* HERO SECTION */
.hero-section {
  padding-top: 100px;
  display: flex;
  margin: 0;
  /* justify-content: center; */
  align-items: center;
  padding-inline: 8vw;
  width: 100%;
  /* height: 100vh; */
  flex-direction: column-reverse;
}

.hero-right {
  position: relative;
  /* width: 100%; */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-bottles {
  position: absolute;

  width: 140px;
  height: auto;
  z-index: 0;
}

.hero-blob {
  z-index: -1;
  width: 226.53px;
  height: auto;
}

.hero-left {
  /* width : 100%;  */
  margin-top: 2.4rem;
}

.hero-left h1 {
  font-size: 4rem;
  color: var(--green);
  text-align: center;
  padding-bottom: 20px;
}

.hero-left p {
  font-size: 1.2rem;
}

/* ABOUT SECTION */
.about-section {
  width: 100%;
}

.about-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  text-align: center;
}

.about-card {
  /* padding: 70px; */
  background-color: var(--grey50);
  height: 122px;
  width: 122px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
  border-radius: 0 20px;
  transition: all 0.3s ease;
  color: var(--green);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.dark-mode .about-card {
  background-color: var(--grey700);
  color: var(--green);
}

body.dark-mode .about-card svg path:nth-child(n + 2) {
  fill: var(--grey);
}

body.dark-mode .about-card:hover svg path:nth-child(n + 2) {
  fill: #424B25;
}

.about-card h4 {
  font-size: 1.4rem;
  padding-top: 0.8rem;
}

.about-card:hover {
  background-color: var(--green);
  color: #fff;
}

body.dark-mode .about-card:hover {
  background-color: var(--green);
  color: var(--grey);
}

.about-card svg path:first-child {
  transition: all 0.3s ease;
}

.about-card:hover svg path:first-child {
  fill: #fff;
}

.about-card svg {
  width: 45px;
  height: 45px;
}

/* EXPLORE SECTION */
.explore-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.explore-left {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  /* margin-top: 100px; */
}

.explore-left .explore-incense {
  width: 155.27px;
  height: 137.38px;
  position: absolute;
}

.explore-left .explore-blob-tablet {
  display: none;
}

.explore-right {
  text-align: center;
  padding: 0 2rem;
}

.explore-right h1 {
  font-size: 2rem;
  padding: 4rem 0 1.2rem;
}

.explore-right p {
  font-size: 1.2rem;
  padding-bottom: 2rem;
}

/* BESTSELLERS SECTION */
.bestsellers-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bestsellers-flower {
  width: 229px;
  height: auto;
  padding-bottom: 3rem;
}

.bestsellers-left {
  position: absolute;
  top: 100px;
  text-align: center;
}

.bestsellers-left h1 {
  font-size: 3.6rem;
  padding-bottom: 2.9rem;
}

.product-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-card {
  text-align: center;
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-card-info {
  text-align: left;
}

.bestsellers-right img {
  width: 310px;
  height: 315px;
  
}

.product-card-info {
  background: rgba(255, 255, 255, 0.6);
  /* backdrop-filter: blur(7.5px); */
  border-radius: 0 20px;
  padding: 1rem 3rem;
  position: relative;
  top: -77px;
  width: 100%;
  height: 66px;
}

.product-card-title {
  display: flex;
  align-items: center;
}

body.dark-mode .product-card-title p{
  color: #fff;
}

.product-card h4 {
  font-size: 1.5rem;
  color: var(--grey800);
  width: fit-content;
  padding-right: 1rem;
}

.product-card-title p {
  color: #fff;
  background-color: var(--green);
  padding: 0.3rem 0.8rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  width: fit-content;
}

.product-card-description {
  font-size: 1.1rem;
  color: var(--grey500);
}

/* SOAPS SECTION */
.soaps-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  text-align: center;
  height: 60vh;
  width: 100%;
  margin: 0;
}

.soaps-left {
  position: absolute;
}

.soaps-left h1 {
  font-size: 3.2rem;
  color: white;
  font-weight: 500;
  z-index: 1;
  padding: 3.8rem;
  max-width: 454px;
  /* width: 80%; */
}

.soaps-left .btn {
  background-color: #fff;
  color: var(--grey800);
}

body.dark-mode .soaps-left .btn{
  background-color: var(--grey800);
  color: #fff;
}

.soaps {
  max-width: 376px;
  width: 100%;
  height: auto;
  /* position: relative; */
  z-index: -1;
}

.soaps-left img {
  display: none;
}

/* TRENDS SECTION */
.trends-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.trends-flower {
  width: 260px;
  height: auto;
  padding-top: 6rem;
  position: absolute;
  /* left: 20%; */
  z-index: -1;
  top: 0;
}

.trends-left {
  padding-top: 15rem;
  padding: 15rem 0 15.7rem;
}

.trends-left h1 {
  font-size: 3.6rem;
  padding-bottom: 3.2rem;
}

.trends-right img {
  width: 100%;
}

.trends-right .product-card-info{
  width: 290px;
}

/* BLOG SECTION */
.blog-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* text-align: center; */
  position: relative;
  padding-bottom: 4.6rem;
}

.blog-section h1 {
  font-size: 3.6rem;
  padding-bottom: 7.7rem;
  text-align: center;
}

.blog-post-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4rem;
}

.blog-post {
  width: 205px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .blog-post{
  background-color: var(--grey700);
}

body.dark-mode .blog-post-description{
  color: var(--grey);
}

.blog-post img {
  width: 100%;
  padding-bottom: 2rem;
}

.blog-post-title {
  font-size: 1.6rem;
  color: var(--green);
  padding: 0 1.2rem;
}

.divider {
  width: 180px;
  height: 1px;
  background-color: var(--grey);
  margin: 0.5rem auto;
}

.blog-post-description {
  font-size: 1.2rem;
  color: var(--darker-grey);
  padding: 0 1.2rem 2.1rem;
}

/* FOOTER SECTION */
footer {
  background-color: var(--grey);
  font-size: 12px;
  width: 100%;
}

footer .logo {
  padding: 2.6rem 0 5.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

footer h3 {
  color: var(--green);
}

.footer-links-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--grey400);
  cursor: pointer;
}

.copyright {
  padding: 5.5rem 0 3.8rem;
  color: var(--grey500);
  text-align: center;
}

/* MEDIA QUERIES */
@media screen and (min-width: 768px) {
  .mobile-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .hero-section {
    flex-direction: row;
    padding: 25rem 0 0 8vw;
    height: 60vh;

    /* transform: translateY(19rem); */
  }

  .hero-left h1 {
    font-size: 9.6rem;
  }

  .hero-left p {
    font-size: 1.4rem;
  }

  .hero-right {
    /* position: relative; */
    overflow: hidden;
    /* width: 100vw; */
    height: 100vh;
  }

  .hero-bottles {
    /* position: absolute; */
    width: 290px;
    height: auto;
  }

  .hero-blob {
    width: 500px;
    transform: translate(13rem, -8rem);

    height: auto;
  }

  .about-section {
    padding-top: 11.3rem;
  }

  .about-card {
    width: 274px;
    height: 274px;
    margin-bottom: 4.6rem;
  }

  .about-card svg {
    width: 11rem;
    height: 11.6rem;
  }

  .explore-section {
    flex-direction: row;
  }

  .explore-right {
    /* margin-right: 0; */
    text-align: right;
    padding-left: 0;
  }

  .explore-right h1 {
    font-size: 4rem;
  }

  .explore-right p {
    font-size: 1.4rem;
    width: 374px;
    transform: translateX(330px);
  }

  .explore-left .explore-blob-tablet {
    display: unset;
    width: 314px !important;
    height: 493px !important;
    position: absolute;
    left: -120px;
    z-index: -1;
  }

  .explore-left .explore-blob-mobile {
    display: none;
  }

  .explore-incense {
    width: 402px !important;
    height: 356px !important;
    transform: translate(200px, -20px);
  }

  .explore-left {
    /* transform: translateX(-10rem); */
    position: relative;
    /* overflow: hidden; */
  }

  .bestsellers-section {
    padding-top: 10rem;
    /* position: relative; */
  }

  .bestsellers-flower {
    width: 431px;
    height: 614px;
    position: absolute;
    left: -100px;
    top: 100px;
    z-index: -1;
  }

  .bestsellers-right {
    padding-top: 40rem;
  }

  .bestsellers-left {
    padding-top: 17rem;
  }

  .product-card {
    width: 390px;
  }

  .product-card img {
    width: 100%;
    height: auto;
  }

  .product-card-info {
    height: 91px;
    top: -90px;
  }

  .product-card-title h4 {
    font-size: 2rem;
  }

  .product-card-description p {
    font-size: 1.4rem;
  }

  .soaps-section {
    flex-direction: row;
  }

  .soaps-left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: unset;
  }

  .soaps-left img {
    width: 540px;
    height: 523px;
    max-height: 100%;
    display: unset;
  }

  .soaps-left h1 {
    position: absolute;
    text-align: left;
    top: 20%;
    z-index: 0;
    padding: 0;
    font-size: 3.8rem;
  }

  .soaps-left .btn {
    position: absolute;
    /* text-align: left; */
    top: 65%;
    transform: translateX(-75%);
    width: 186px;
    /* align-self: flex-start; */
  }

  .soaps-right {
    height: 514px;
  }

  .soaps {
    height: 100%;
    object-fit: cover;
  }

  .blog-post {
    width: 372px;
    height: 667px;
  }

  .blog-post-title {
    font-size: 2.4rem;
    padding: 3.7rem 2.3rem 1.9rem;
  }

  .blog-post-description {
    font-size: 1.6rem;
    padding-top: 3.2rem;
  }

  .blog-post img {
    width: 371px;
    height: 344px;
    object-fit: cover;
    border-radius: 8px;
    padding: 0;
  }

  .divider {
    width: 325px;
  }

  footer .logo {
    position: absolute;
    padding-left: 8.7rem;
  }

  footer .wrapper {
    /* display: flex;
    justify-content: center;
    align-items: center; */
  }

  .footer-links-container {
    padding-top: 3.4rem;
  }

  .copyright {
    /* position: absolute; */
  }
}

@media screen and (min-width: 805px) {
  .explore-right h1 {
    max-width: 700px;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  .explore-right {
    align-items: right;
  }
}

@media screen and (min-width: 1024px) {
  .desktop-nav {
    background: #fff;
  }
  .hero-bottles {
    width: 540px;
    height: auto;
  }

  .hero-blob {
    width: 850px;
    height: auto;
    transform: translate(20rem, -8rem);
  }

  .hero-left h1 {
    text-align: left;
  }
}

@media screen and (min-width: 1440px) {
  .hero-bottles {
    width: 750px;
    height: auto;
  }

  .hero-blob {
    width: 1700px;
    height: auto;
    transform: translate(30rem, -20rem);
  }

  .about-card-container {
    flex-direction: row;
    /* flex-wrap: wrap; */
    /* justify-content: center; */
  }

  .bestsellers-left {
    position: static;
  }

  .bestsellers-left h1 {
    font-size: 5rem;
  }

  .bestsellers-right {
    padding: 0;
  }

  .bestsellers-section {
    display: flex;
    flex-direction: row;
    gap: 20rem;
    justify-content: center; /* Optional: adjust as needed */
    align-items: flex-start;
  }

  .product-card-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 60px;
  }

  .dot {
    width: 8px;
    height: 8px;
    background-color: var(--grey400);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .dot:first-child {
    background-color: var(--green);
  }

  .trends-section {
    flex-direction: row;
    gap: 15rem;
  }

  .trends-flower {
    left: 0;
  }

  .trends-left {
    text-align: left;
  }

  .trends-right .slider {
    position: absolute;
    right: 400px;
  }

  .blog-post-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
  }

  .blog-post {
    width: 371px;
    height: 395px;
  }

  .blog-post img {
    object-fit: fill;
    width: 371px;
    height: 203px;
  }

  .blog-post-description {
    padding-top: 0;
  }

  .footer-links-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links-container h3 {
    grid-row: 1;
  }
}
