/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Lemon&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 38px;

  /*========== Colors ==========*/
  --first-color: hsl(90, 100%, 46%);
  --first-color-alt: hsl(90, 98%, 44%);
  --first-color-light: hsl(112, 100%, 94%);
  --first-color-light1: hsl(112, 100%, 85%);
  --second-color: hsl(287, 63%, 47%);
  --second-color-alt: hsl(287, 63%, 38%);
  --second-color-light: hsl(286, 100%, 94%);
  --second-color-light1: hsl(286, 100%, 85%);
  --footer-color: hsla(90, 100%, 49%, 0.407);
  --footer-heading:  hsl(287, 100%, 90%);
  --footer-subcontent:  hsl(287, 100%, 84%);
  --title-color: hsl(233, 20%, 15%);
  --text-color: hsl(233, 4%, 35%);
  --section-background: hsl(108, 100%, 97%);
  --body-color: #fff;
  --border-black: 2px solid #000;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --second-font: 'Alex Brush', cursive;
  --third-font: 'Courgette', sans-serif;
  --biggest-font-size: 2.25rem;
  --normal-font-size: .938rem;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3.5rem;
    --normal-font-size: 1rem;
  }
}

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

::selection {
  background-color: var(--first-color);
  color: #fff;
}

::-webkit-scrollbar {
   width: .8rem;
   height: .5rem;
}

::-webkit-scrollbar-track {
  background-color: var(--second-color-light);
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

section {
  background-color: var(--section-background);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.title-container {
  display: block;
  margin: 0 auto;
  position: relative;
  width: fit-content;

}
.title {
  font-family: var(--second-font);
  font-size: 3rem;
  word-spacing: .8rem;
  margin-bottom: 1rem;
  z-index: 5;
  background: transparent;
  word-spacing: 3px;
}

.btn {
  padding: 8px 20px;
  border: none;
  text-transform: capitalize;
  font-size: 1.2rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color .2s linear, background-color .2s linear;
}

.empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 300px;
  gap: 1rem;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 10px var(--first-color-light1);
  background-color: #fff;
  color: var(--first-color);
  margin: 5rem auto;
  font-size: 1.5rem;

  a {
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: var(--second-color);
    letter-spacing: 2px;
    font-size: 1.3rem;
    border-radius: 0;

    &:hover {
      background-color: var(--second-color-alt);
    }
  }
}

.after-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;

  &::after {
    position: absolute;
    content: '';
    left: 0;
    right: 0;
    margin-inline: auto;
    border-radius: 10px; 
  }
}

/*=============== HEADER & NAV ===============*/
.header {
  position: sticky;
  width: 100%;
  top: 0; left: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background-color: #fff;
  box-shadow: 0 0 15px hsl(287, 63%, 47%, .3);

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

    .nav-logo {
      img {
        height: 70px;
        transform: translateY(5px);
      }
    }

    .nav-toggle {
      display: inline-flex;
      color: var(--title-color);
      caret-color: transparent;
    }

    .nav-toggle__cart {
      display: flex;
      flex-direction: row-reverse;
      gap: 3rem;

      & > * {
        cursor: pointer;
      }

      i {
        font-size: 2rem;
      }

      .cart-btn {
        position: relative;
        background: transparent;
      }
      
      a {
        color: inherit;
      }

      sub {
        position: absolute;
        padding: 3px 9px;
        bottom: -30%;
        right: -87%;
        border-radius: 50%;
        z-index: -1;
        background-color: var(--first-color);
        color: #fff;
      }
    }
  }
}

@media screen and (max-width: 767px) {
  .header {
    .nav {
      .nav-logo {
        img  {
          height: 50px;
        }
      }
    }
  }
  .nav-menu {
    position: fixed;
    background: linear-gradient(hsl(90, 100%, 76%), #fff);
    left: 0; 
    top: -100%;
    box-shadow: 0 8px 24px hsla(104, 100%, 50%, 0.2);
    width: 100%;
    padding: 3.5rem 0 3rem;
    border-radius: 0 0 3rem 3rem;
    transition: top .7s;
    z-index: 2;
  }
}

.nav-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 3rem;
}
.nav-link, .nav-close {
  color: var(--title-color);
}
.nav-link {
  font-weight: 600;
  transition: color .4s;
  caret-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  padding: .3rem 1rem;
  border-radius: 4rem;
  letter-spacing: 2px;

  &:not(.selected):hover {
    color: var(--first-color);
  }

  &.selected {
    color: #fff;
    background-color: var(--first-color);
  }
}
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  caret-color: transparent;
}
.nav-img {
  width: 7rem;
  position: absolute;
  top: -.75rem; left: 1.5rem;
}
.show-menu {
  top: 0;
}

/*=============== HOME ===============*/
.home-container {
  max-width: 1400px;
  margin: 1rem auto;
  padding: 50px 138px;
  box-shadow: 0 0 5px #39393989;
  background: url(../slider_images/leave_bg.webp);
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center; 
}
.home {
  display: flex;
  justify-content: space-between;
  gap: 2rem;

  .home-slider {
    max-width: 50%;
    position: relative;
    margin: auto;
    
    img {
      width: 100%;
      display: none;

      &.displaySlide {
        display: block;
        animation: fade 1.5s;
      }
    }
  }
  
  .home-description {
    margin: auto 0;

    h1 {
      font-size: 2.1rem;
      margin-bottom: 1rem;
      text-align: center;
      
      span { 
        display: block;
        text-transform: capitalize;
        font-family: var(--second-font);
        font-size: 3rem;
        text-align: center;
      }
    }

    h4 {
      font-size: 1.1rem;
      text-align: center;
      max-width: 80%;
      margin: 0 auto 1.7rem auto;
    }

    button {
      margin-right: .8rem;
    }

    .explore {
      background-color: var(--first-color);
      box-shadow: 0 0 15px hsl(90, 100%, 49%);
      color: #fff;

      &:hover {
        background-color: var(--first-color-alt);
        box-shadow: 0 0 25px var(--first-color-alt);
      }
    }
    .buy-now {
      color: var(--second-color);
      border: 2px solid var(--second-color);
      box-shadow: 0 0 5px hsl(287, 63%, 47%);

      &:hover {
        background-color: var(--second-color-alt);
        box-shadow: 0 0 10px var(--second-color-alt);
        color: #fff;
      }
    }

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

    .home__social {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-top: 1.5rem;

      a {
        i {
          color: #fff;
        }
        .fa-instagram {
          background: linear-gradient(to right, #f58529, #dd2a7b, #8134af, #515bd4);
          padding: .2rem .4rem .2rem;
          border-radius: .7rem;
          font-size: 2.1rem;
        }
        
        .fa-facebook {
          font-size: 2rem;
          background-color: #1877F2;
          padding: .5rem .8rem 0;
          border-radius: 50%;
        }

        .fa-whatsapp {
          font-size: 2rem;
          background: linear-gradient(to right, #25D366, #128C7E);
          padding: .4rem .6rem;
          border-radius: 50%;
        }
      }
    }
  }
}

.fa-instagram, .fa-facebook, .fa-whatsapp {
  transition: transform .6s;
  
  &:hover {
    transform: translateY(-10px);
  }
}

.features {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  
  img:not(:first-child) {
    width: 10%;
  }

  img:first-child {
    width: 13%;
  }
}

@keyframes fade {
  from {opacity: .5;}
  to {opacity: 1;}
}

/*=============== Products ===============*/
#products {
  scroll-margin-top: 100px;
}
.products {
  margin-top: 4rem; 
  padding-inline: 2rem;
  padding-bottom: 2rem;

  .update-cart {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

    .update-cart-btn {
      position: relative;
      min-width: 13rem;
      margin: 1rem 0;
      padding: .7rem .2rem;
      background-color: var(--footer-heading);
      color: var(--second-color-alt);
      font-size: 1.5rem;
      display: flex; 
      align-items: center; 
      justify-content: center; 
      gap: .5rem;
      
      i {
        display: flex; 
        align-items: center; 
        transition: transform 1s;
      }

      &:hover {
        color: #fff;
        background-color: var(--second-color);
        
        i {
          transform: rotate(180deg);
        }
      }
    }
  }

  .soap-container {
    background-color: hsla(108, 100%, 85%, 0.515);
    margin-bottom: 1rem;

    .product-heading {
      color: var(--second-color);
      letter-spacing: 2px;

      &::after {
        background-color: var(--first-color);
      }
    }

    .box {
      transition: box-shadow .3s linear;

      &:hover {
        box-shadow: 0 0 10px hsla(90, 100%, 49%, 0.641);
      }
    }
  }
  
  .soak-container {
    background-color: hsl(287, 100%, 90%);
    
    .product-heading {
      color: var(--second-color-alt);

      &::after {
        background-color: var(--first-color);
      }
    }
    
    .box {
      transition: box-shadow .3s linear;
      
      &:hover {
        box-shadow: 0 0 10px hsl(287, 100%, 60%);
      }
    }
  }

  .product-heading {
    margin: 1rem 0 0 50%;
    font-size: 2.2rem;
    font-family: var(--second-font);
    letter-spacing: .5px;
    transform: translateX(-50%);

    &::after {
      width: 65%;
      height: 2px;
      left: 0;
      right: 0;
      bottom: 4px;
    }
  }

  .box-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    
    gap: 1.5rem;
    padding: 20px;
    
    .box {
      padding: 1rem;
      width: 17rem;
      overflow: hidden;
      position: relative;
      background-color: #fff;
      box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.374);
      
      img {
        height: 12rem;
        width: 100%; 
        object-fit: contain;
      }
      
      .name {
        color: var(--second-color);
        font-size: 1rem;
        word-spacing: 1px;
        text-transform: capitalize;
      }
      
      .flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        
        .qty {
          font-size: 1rem;
          padding: .3rem;
          border: none;
          background-color: rgb(241, 241, 241);
          width: 3rem;
        }
      }

      .inc-dec {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(20%);
        margin-top: .8rem;
        user-select: none;

        span {
          color: #fff;
          width: 2rem;
          height: 2rem;
          font-size: 1.8rem;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          border-radius: 50%;
        }

        .inc {
          background-color: var(--first-color);

          &:hover {
            background-color: var(--first-color-alt);
          }
        }
        .dec {
          background-color: var(--second-color);

          &:hover {
            background-color: var(--second-color-alt);
          }
        }
      }

      .status {
        text-transform: capitalize;
        margin: .5rem 0;
      }

      .sub-total {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        color: var(--second-color-alt);

        span {
          color: var(--first-color-alt);
        }
      }

      .des-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        width: 90%;
        height: 82%;
        margin-inline: auto;

        background-color: #fff;
        box-shadow: 0 0 12px #0000003e;
        padding: 8px;

        position: absolute;
        top: -9rem;
        left: 0; right: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 1s 1s, transform 1s 1s ease-out;

        .des {
          text-align: center;
          max-height: 80%;
          overflow-x: hidden;
          overflow-y: auto;
        }

        .eye-cart {
          display: flex;
          justify-content: space-between;
          gap: 7px;
          transition: opacity 1s;
        }

        .icons {
          width: 100%; 
          height: 2.5rem;
          font-size: 1.5rem;
          border: none;
          text-align: center;
          transition: .3s ease-out;
          cursor: pointer;

          &:first-child {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            background-color: hsl(287, 96%, 68%);
            box-shadow: 0 0 5px var(--second-color);
            
            &:hover {
              background-color: var(--second-color);
            }

            i {
              font-size: 1.4rem;
            }
          }

          &:last-child {
            background-color: var(--first-color);
            color: #fff;
            box-shadow: 0 0 5px var(--first-color);

            &:hover {
              background-color: var(--first-color-alt);
            }
          }
        }
      }

      &:hover {
        animation: remove-overflow 2s forwards;
        
        .des-container {
          pointer-events: auto;
          animation: show-data 1.5s forwards;
          opacity: 1;
          transition: opacity .3s;
        }
      }
      
      &:not(:hover) {
        animation: show-overflow 2s forwards;
  
        .des-container {
            animation: remove-data 1.2s forwards;
        }
      }
    } 
  }
}

@keyframes show-data {
  0% {
    transform: translateY(-9rem);
  }
  50% {
    transform: translateY(10rem);
  }
  100% {
    transform: translateY(7.5rem);
  }
}
@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(8rem);
  }
  50% {
    transform: translateY(10rem);
  }
  100% {
    transform: translateY(-9rem);
  }
}
@keyframes show-overflow {
  0% {
    overflow: initial;
  }
  50% {
    overflow: hidden;
  }
}

.product {
  .info__description,
  .ingredients p,
  .cautions p {
    &::first-letter {
      text-transform: uppercase;
    }
  }
  
  .product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 3rem 0 1rem;
    place-items: center;

    .slider {
      position: relative;
      overflow: hidden;      
      
      .slides {
        img {
          display: none;

          &.displaySlide {
            display: block;
            animation: fade 1.5s;
          }
        }
      }
    }

    .info {
      & > *:not(.info__name) {
        margin-bottom: .5rem;
      }

      .info__description {
        background-color: hsl(0, 0%, 91%);
        /* box-shadow: 0 0 10px rgb(208, 208, 208); */
        padding: 10px;
        border-top-left-radius: 10px;

        ul {
          text-align: left;
      
          li {
            position: relative;
            padding-left: 2.4rem;
            margin-bottom: .2rem;
            font-size: 1.1rem;
      
            &::before {
              content: "🌿";
              position: absolute;
              left: 0;
              top: 0;
              display: inline-block;
              width: 30px;
            }
          }
        }
      }

      .info__name {
        font-size: 2.5rem;
        text-transform: capitalize;
        font-weight: 700;
        font-family: var(--second-font);
        word-spacing: 2px;
        letter-spacing: 1px;
      }

      .info__price {
        font-size: 1.3rem;

        span {
          font-weight: 900;
        }
      }

      .info__weight {
        span {
          font-family: var(--third-font);
          font-size: 1.3rem;
        }
      }

      .info__buttons {
        display: inline-flex;
        gap: 1rem;

        button {
          border: none;
          padding: 6px 20px;
          font-size: 1.2rem;
          text-transform: capitalize;
          cursor: pointer;
          display: flex;
          align-items: center;
          gap: .3rem;
          
          i {
            font-size: 1.3rem;
          }

          &:not(.share-button) {
            color: #fff;
            background-color: var(--first-color);
            transition: background-color .5s;

            &:hover {
              background-color: var(--first-color-alt);
            }
          }

          &.share-button {
            background-color: rgb(229, 229, 229);
            letter-spacing: 1px;

            i {
              transition: transform .5s;
            }

            &:hover i {
              transform: translateX(25%) rotate(30deg);
            }
          }
        }

        .qty {
          font-size: 1rem;
          padding: .5rem;
          border: none;
          background-color: var(--second-color);
          color: #fff;
          width: 3rem;
          height: 34px;
        }
      }
    }
  }

  .product-additional {
    display: flex;
    justify-content: center;
    gap: .5rem;
    font-family: var(--third-font);
    word-spacing: 2px;

    .ingredients {
      background-color: var(--first-color);
      color: #fff;
      
      span {
        color: #fff;
      }
    }
    .cautions {
      background-color: var(--second-color-light);
      color: var(--second-color-alt);      

      span {
        color: var(--second-color);
      }
    }
    
    .ingredients,
    .cautions {
      text-align: center;
      width: 50%;
      padding: 10px;

      span {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        line-height: 2;
        font-size: 1.2rem;
        letter-spacing: 1px;
      }
    }
    span {
      font-weight: 600;
    }
  }
}

.leafs {
  overflow-x: hidden;

  img{
   position: absolute;
   top: -25px;
   z-index: -1;
   width: 1.6rem;
   opacity: 1;
   animation: fall 7s infinite linear, sway 4s infinite ease-in-out;
 } 
}

@keyframes fall {
  0% {
      transform: translateY(10vh) translateX(200px);
      opacity: 1;
  }
  100% {
      top: 110%;
      opacity: .3;
  }
}

@keyframes sway {
  0%,100% {
    transform: rotate(0deg) translateX(0px);
  }
  25% {
    transform: rotate(-15deg) translateX(50px);
  }
  50% {
    transform: rotate(15deg) translateX(-50px);
  }
  75% {
    transform: rotate(-15deg) translateX(50px);
  }
}

.leafs img:nth-child(1) {
  left: 25%;
  animation-delay: 5s;
}

.leafs img:nth-child(2) {
  left: 20%;
  animation-delay: 9s;
}

.leafs img:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
}

.leafs img:nth-child(4) {
  left: 40%;
  animation-delay: 10s;
}

.leafs img:nth-child(5) {
  left: 50%;
  animation-delay: 1s;
}

.leafs img:nth-child(6) {
  left: 60%;
  animation-delay: 6s;
}

.leafs img:nth-child(7) {
  left: 70%;
  animation-delay: 8s;
}

.leafs img:nth-child(8) {
  left: 80%;
  animation-delay: 2s;
}

.leafs img:nth-child(9) {
  left: 55%;
  animation-delay: 7s;
}

.leafs img:nth-child(10) {
  left: 75%;
  animation-delay: 3s;
}

/*=============== Giveaway ===============*/
.giveaway-container {
  .title-container {
    position: relative;

    span {
      position: absolute;
      content: '';
      font-size: 2.3rem;
      top: 0;
      left: 102%;
      z-index: 100;
    }
    
    .title {
      background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  .giveaway-content {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
  
    .giveaway-card {
      box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
      text-align: center;
      width: 12rem;
      padding-block: 1rem;
  
      .profile {
        display: flex;
        align-items: center;
        justify-content: center;
  
        .dp {
          width: 90px;
          height: 90px;

          img {
            /* filter: blur(8px); */
          }
        }
      }
    }
  }
}

.checkout {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: #f7f7f7;
  padding: 12px;
  box-shadow: 0 0 10px #00000079;

  & > div:not(.checkout__items),
  .checkout__item {
    display: flex;
    justify-content: space-between;
  } 

  .checkout__heading {
    margin: 1rem auto;
    text-align: center;
    font-size: 2.2rem;
    letter-spacing: 1px;
    word-spacing: 5px;
    color: #000;
    font-family: var(--second-font);

    &::after {
      width: 70%;
      height: 3px;
      background-color: #000;
      bottom: 4px;
    }
  }

  .checkout__items {
    margin-bottom: 1.5rem;
  }
  .checkout__item {
    width: 100%;
    font-size: 1.2rem;

    .checkout__name {
      text-transform: capitalize;
      color: #000;
    }

    .checkout__qty {
      color: dimgrey;
    }

    .checkout__subtotal {
      color: #000;
    }
  }

  .checkout__total {
    border-top: 2px solid #000;
    padding-top: .5rem;
    font-size: 1.3rem;
    
    span {
      color: gray;
    }
    
    .checkout__totalamount {
      color: gray;
    }
  }

  .checkout__buttons {
    margin-top: 1rem;
    gap: .5rem;
    
    a {
      text-align: center;
      padding: 10px 5px;
      color: #fff;
      background-color: orange;
      width: 100%;
      font-size: 1.2rem;
      letter-spacing: 1px;
      transition: background-color .3s linear;
      display: flex; 
      align-items: center; 
      justify-content: center; 
      gap: .5rem;

      i {
        display: flex; 
        align-items: center; 
        font-size: 1.4rem;
      }
      
      &:first-child {
        background-color: var(--second-color);
        color: #fff;
        box-shadow: 0 0 5px var(--second-color);

        &:hover {
          background-color: var(--second-color-alt);
        }
      }
      &:last-child {
        background-color: var(--first-color);
        color: #fff;
        box-shadow: 0 0 5px var(--first-color);

        &:hover {
          background-color: var(--first-color-alt);
          box-shadow: 0 0 5px var(--first-color-alt);
        }
      }
    }
  }

  .checkout__totalnote {
    font-size: 1rem;
    color: #545454;
    margin: 1rem auto 0 auto;
    font-style: italic;
    text-align: center;

    .icon {
      padding-top: 1rem;
    }
  }
}

/*=============== Explore ===============*/
.explore-container {
  margin: 1rem 0;
  padding-bottom: 1.5rem;
  
  & > h1 {
    font-family: var(--third-font);
    text-transform: capitalize;
    text-align: center;
    margin: 1rem 0;
  }

  .btn {
    display: flex;
    margin: 2rem auto 0 auto;
    background-color: var(--second-color);
    color: #fff;
    box-shadow: 0 0 15px hsl(287, 63%, 47%);
    letter-spacing: 2px;

    &:hover {
      background-color: var(--second-color-alt);
    }
  }

  .product-intro {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    
    .product-intro__heading {
      display: inline-block;
      font-family: var(--second-font);
      font-size: 2.5rem;
      letter-spacing: 2px;
      word-spacing: 2px;
      position: relative;
      text-align: center;

      &::before {
        position: absolute;
        content: '';
        width: 51%;
        height: 2px;
        bottom: 4px;
        left: 0;
        background-color: var(--first-color);
      }
      
      &::after {
        position: absolute;
        content: '';
        width: 51%;
        height: 2px;
        bottom: 4px;
        right: 0;
        background-color: var(--second-color);
      }
    }

    .product-intro__product-container {
      display: flex;
      justify-content: space-around;

      .product-intro__product {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        width: 40%;
        padding: 5px 20px 20px 20px;
        cursor: pointer;
        
        h1 {
          margin: 0 auto;

          &::after {
            width: 70%;
            height: 2px;
            bottom: 1px;
          }
        }

        &:first-child {
          background-color: var(--first-color-light);
          box-shadow: 0 0 15px var(--first-color-light1);
          border: .5rem groove var(--first-color);

          h1 {
            color: var(--first-color-alt);

            &::after {
              background-color: var(--second-color-alt);
            }
          }
        }
        
        &:last-child {
          background-color: var(--second-color-light);
          box-shadow: 0 0 15px var(--second-color-light1);
          border: .5rem groove var(--second-color);
          
          h1 {
            color: var(--second-color-alt);

            &::after {
              background-color: var(--first-color);
            }
          }
        }

        h1 {
          font-family: var(--third-font);
          text-align: center;
        }
      }
    }
  }
}
.made-with__background, .ingredient, .made-from__sub, .our-range__sub {
  animation: appear 5s linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
  
  &:not(.made-from__sub) {
    margin-inline: 2rem;
  }
}
@keyframes appear {
  from {
      opacity: 0;
      scale: .5;
  }to {
      opacity: 1;
      scale: 1;
  }
}

.soap-section,
.soak-section {
  transition: opacity 1s ease-in-out, transform 1s ease;
  transform: translateX(0);
  padding-bottom: 20px;
  background-color: #fff;
}
.product-intro__product {
  transition: opacity .5s ease-in-out;
}


.soap-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;

  .soap__main {
    background-color: var(--first-color-light);
    width: 100%;
    background-image: url(../img/soak-bg.webp);
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
    
    .soap-main__content {
      max-width: 1300px;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      gap: 5rem;

      .soap-main__description {
        max-width: 40%;
        margin: auto 0;

        h1 {
          font-size: 1.5rem;
          font-family: var(--third-font);
          letter-spacing: 1px;
          word-spacing: 2px;
          text-align: center;
        }
      }

      .soap-main__img {
        width: 30%;
      }
    }
  }

  .made-with {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1024px;
    
    .made-with__heading {
      font-family: var(--second-font);
      color: var(--first-color);
      font-size: 3rem;
      
      &::after {
        width: 70%;
        height: 2px;
        bottom: 7px;
        background-color: var(--second-color);
      }
    }
    
    .made-with__background {
      background-color: var(--first-color-light);
      padding: 20px;
      display: grid;
      grid-template-columns: 7fr 13fr;
      gap: 3rem;
      place-items: center;

      .made-with__description {
        text-align: center;
        margin: auto 0;

        h1 {
          font-family: var(--second-font);
          display: inline;
          font-size: 2rem;
          text-transform: capitalize;
          letter-spacing: 1px;
          word-spacing: 2px;
          color: #000;
        }

        p {
          font-family: var(--third-font);
          word-spacing: 3px;
        }
      }
      
      &:not(.reverse) {
        grid-template-columns: 7fr 13fr;
       
      }
      &.reverse {
        grid-template-columns: 13fr 7fr;
      }
    }
  }

  .ingredients {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1024px;

    .ingredients__heading {
      font-family: var(--second-font);
      font-size: 2.5rem;
      letter-spacing: 1px;
      word-spacing: 2px;
      color: var(--first-color);

      &::after {
        width: 80%;
        background-color: var(--second-color);
        bottom: 3px;
        height: 2px;
      }
    }

    .ingredient {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 3rem;
      padding: 20px;
      background-color: var(--first-color-light);

      .ingredient__img {
        min-width: 40%;
      }

      &:nth-child(even) {
        flex-direction: row-reverse;
      }

      .ingredient__description {
        display: flex;
        flex-direction: column;
        margin: auto 0;
        gap: 1rem;

        & > * {
          text-align: center;
        }

        h1 {
          display: inline-block; 
          align-self: center;
          font-family: var(--second-font);
          color: #000;
          font-size: 2rem;
          letter-spacing: 1px;
          word-spacing: 2px;
        }

        p {
          font-family: var(--third-font);
          word-spacing: 3px;
        }
      }
    }
  }
}

.soak-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;

  .soak__main {
    background-color: hsl(315, 94%, 93%);
    width: 100%;
    padding: 150px 0;
    background-image: url(../img/soak-bg.webp);
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
    
    .soak-main__content {
      max-width: 1300px;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      gap: 5rem;

      .soak-main__description {
        max-width: 40%;
        margin: auto 0;

        h1 {
          font-size: 1.5rem;
          font-family: var(--third-font);
          letter-spacing: 1px;
          word-spacing: 2px;
          text-align: center;
        }
      }
    }
  }

  .soak-heading {
    font-family: var(--second-font);
    letter-spacing: .5px;
    font-size: 3rem;
    color: var(--second-color-alt);

    &::after {
      width: 70%;
      height: 2px;
      background-color: var(--first-color);
      bottom: 7px;
    }
  }

  .made-from__container,
  .our-range__container > *{
    background-color: var(--second-color-light);
    padding: 20px 20px;
  }

  .made-from {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    gap: .5rem;

    .made-from__container {
      display: flex;
      justify-content: space-between;
      gap: 3rem;
      padding-bottom: 1rem;

      & > * {
        width: 100%;
      }
      
      .made-from__sub {
        background-color: hsl(0, 0%, 95%);
        padding-bottom: 1rem;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 0 10px #00000035;

        & > * {
          text-align: center;
          margin-bottom: .5rem;
        }
        
        h1, p {
          padding: 0 1rem;
        }
        h1 {
          font-family: var(--second-font);
          letter-spacing: 1px;
          word-spacing: 2px;
          color: #000;
        }

        p {
          font-family: var(--third-font);
        }
      }
    }
  }

  .our-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    gap: .5rem;

    h1 {
      font-family: var(--second-font);
      color: var(--second-color-alt);
      letter-spacing: 1px;
      word-spacing: 2px;
      text-align: center;
    }

    p {
      font-family: var(--third-font);
      text-align: center;
    }

    .our-range__container {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      
      .our-range__sub {
        display: flex;
        align-items: center;
        gap: 1rem;

        .our-range__img {
          width: 90%;
        }

        .our-range__description {
          margin: auto;

          h1 {
            color: #000;
          }
        }
      }
    }
  }
}

.product-active {
  display: flex;
  opacity: 1;
}

.about-us {
  width: calc(100% - 30px);
  margin: 3rem auto;
  background-color: var(--first-color-light);
  padding: 10px 2rem;
  color: #000;
  text-align: center;  
  box-shadow: 0 0 15px #00000044;

  .about-us__container {
    & > * {
      margin-bottom: 2rem;
    }
  }

  p:first-child span:not(:last-child) {
    display: block;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 3rem;
    font-family: var(--second-font);
    word-spacing: 2px;
    letter-spacing: 2px;
    color: var(--second-color);

    &::after {
      background-color: var(--first-color-alt);
      width: 70%;
      height: 3px;
      bottom: 8px;
      z-index: 2;
    }
  }

  p:first-child {
    font-size: 1.3rem;
    font-family: var(--third-font);
    letter-spacing: 1px;
    word-spacing: 1px;
    line-height: 1.4;
  }

  p:last-child {
    font-weight: bold;
    font-size: 1.5rem;
  }

  ul {
    text-align: left;

    li {
      position: relative;
      padding-left: 30px;
      margin-bottom: 10px;
      font-size: 1.1rem;

      span {
        font-weight: bolder;
        font-size: 1.2rem;
      }

      &::before {
        content: "🍁";
        position: absolute;
        left: 0;
        top: 0;
        display: inline-block;
        width: 30px;
      }
    }
  }
}


#toast_box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  z-index: 10001;
  
  .toast {
    width: 400px;
    height: 80px;
    background-color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px #6f6f6f;
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    cursor: pointer;
    animation: moveLeft .5s linear forwards;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;

    &::before {
      position: absolute;
      content: 'X';
      top: .5rem;
      right: 1rem;
      color: gray;
      background-color: #fff;
      font-size: 1.1rem;
      transform: scaleX(1.4);
    }

    &::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 5px;
        background: green;
        animation: anim 5s linear forwards;
    }

    i {
        margin: 0 20px;
        font-size: 35px;
    }
    
    .fa-check-circle {
        color: green;
    }

    .fa-xmark-circle {
        color: red;
    }

    .fa-exclamation-circle {
        color: orange;
    }
  }

  .success::after {
      background-color: green;
  }

  .invalid::after {
      background-color: orange;
  }

  .error::after {
      background-color: red;
  }
}
@keyframes anim {
  100% {
      width: 0;
  }
}
@keyframes moveLeft {
 100% {
      transform: translateX(0);
 } 
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: opacity 1s, visibility 1s;
  z-index: 5000;

  &::after {
    content: '';
    width: 70px; height: 70px;
    border: 2px solid var(--first-color);
    border-top-color: var(--second-color);
    border-radius: 50%;
    animation: loading  0.75s ease infinite;
  }

  img {
    position: fixed;
    width: 70px;
    border-radius: 50%;
  }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes loading {
  from {
      transform: rotate(0turn);
  }
  to {
      transform: rotate(1turn);
  }
}

.scrollup {
  position: fixed;
  bottom: -30%;
  right: 3rem;
  padding: .2rem .3rem;
  background-color: var(--second-color);
  border-radius: .5rem;
  color: #fff;
  transition: .4s;
  z-index: 10000;
  box-shadow: 0 0 5px var(--second-color-alt);

  &:hover {
      transform: translateY(-4px);     
  } 

  i {
      color: #fff;
      font-size: 2.2rem;
  }
}

.show-scroll {
  bottom: 5rem;
}

footer {
  position: relative;
  margin-top: 10rem;
  width: 100%;
  background-color: #a32cc3;
  background: linear-gradient(#a32cc3, #a22cc38b);
  
  .wave {
    position: absolute;
    top: -88px; 
    left: 0;
    width: 100%;
    height: 90px;
    background: url(../img/wave2.webp);
    background-size: 1000px 90px;

    &#wave1 {
      z-index: 1000;
      opacity: 1;
      bottom: 0;
      animation: animateWave1 4s linear infinite;
    }
    &#wave2 {
      z-index: 999;
      opacity: .5;
      bottom: 10px;
      animation: animateWave2 4s linear infinite;
    }
    &#wave3 {
      z-index: 1000;
      opacity: .2;
      bottom: 15px;
      animation: animateWave1 3s linear infinite;
    }
    &#wave4 {
      z-index: 999;
      opacity: .7;
      bottom: 20px;
      animation: animateWave2 3s linear infinite;
    }
  }

  .footer-title {
    color: var(--footer-heading);
    font-family: var(--second-font);
    text-transform: capitalize;
    font-size: 1.6rem;
    margin-bottom: 5px;
    letter-spacing: 3px;
  }

  .footer-container {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;

    & > *:not(:last-child) {
      display: flex;
      flex-direction: column;
    }

    & > * p,
    & > * a {
      font-family: var(--third-font);
    }

    .description {
      align-items: flex-start;
      color: #fff;
      flex: 2;
      min-width: 175px;

      .name {
        color: var(--footer-heading);
        font-family: var(--second-font);
      }
    }

    .useful-links {
      flex: 1;
      min-width: 75px;

      .links {
        font-size: 1.1rem;
        color: #fff;
        margin-bottom: .4rem;
      }
    }

    .contact {
      flex: 2;
      min-width: 175px;

      a {
        font-size: 1.1rem;
        color: #fff;
        margin-bottom: .4rem;
        letter-spacing: .5px;
        white-space: nowrap;
      }

      i {
        padding: .2rem .3rem;
        transition: transform .5s;
      }

      .fa-whatsapp {
        font-size: 1.5rem;
        background: linear-gradient(to right, #25D366, #128C7E);
        border-radius: 50%;
      }
      
      .fa-envelope {
        font-size: 1.1rem;
        background: blue;
        border-radius: .3rem;
      }
    }
    
    .useful-links, 
    .contact {
      a {
        position: relative;
        display: inline;
        width: max-content;
        background-image: linear-gradient(currentColor, currentColor);
        background-position: 0 100%; /* Position underline at the bottom */
        background-size: 0% 2px; /* Start with no underline */
        background-repeat: no-repeat;
        transition: background-size 0.3s ease-in-out; /* Smooth transition */

        &:hover {
          background-size: 100% 2px; /* Full underline on hover */

          & i {
            transform: translateY(-20%);
          }
        }
      }
    }

    .social {
      flex: 2;
      min-width: 100px;
      font-size: 1.8rem;
      
      & > a:not(:first-child) {
        margin-right: .5rem;
      }

      a {
        i {
          color: #fff;
        }
        
        .fa-instagram {
          background: linear-gradient(to right, #f58529, #dd2a7b, #8134af, #515bd4);
          padding: .3rem .4rem .2rem;
          border-radius: .7rem;
          font-size: 2.1rem;
        }
        
        .fa-facebook {
          font-size: 2rem;
          background-color: #1877F2;
          padding: .5rem .8rem .2rem;
          border-radius: 50%;
        }
      }
    }
  }

  .copyright {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    border-top: 2px solid #fff;
    padding: .4rem 0;
  }
}
@keyframes animateWave1 {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-position-x: 0px;
  }
}
@keyframes animateWave2 {
  0% {
    background-position-x: 0px;
  }
  100% {
    background-position-x: 1000px;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1024px) {
  html {
    font-size: 80%;
  }
  
  .home-container {
    padding: 25px 50px;
  }

  .leafs img {
    animation-duration: 10s;
  }
}

@media screen and (max-width: 850px) {
  html {
    font-size: 70%;
  }
  
  .home {
    .home-container {
      padding: 10px 25px;
    }

    .home-description {
      h1 { margin-bottom: .2rem;}
      h4 { margin-bottom: 1rem;}
    }
  }
}

@media screen and (max-width: 767px) {
  .home {

    .home-container {
      padding: 5px 10px;
    }

    .home-slider {
      max-width: 40%;
    }
  }

  .header {
    .nav {
      i {
        font-size: 3rem;
      }
    }
  }

  .soak-section {
    .soak__main {
      padding: 50px 0;
    }
  }
}

@media screen and (max-width: 650px) {
  
  html {
    font-size: 60%;
  }

  .header {
    .nav {
      .nav-toggle__cart {
        gap: 4rem;

        i {
          font-size: 2.5rem;
        }

        .cart-btn {
  
          sub {
            font-size: 1.3rem;
            padding: 1px 7px;
          }
        }
      }
    }
  }

  #toast_box {
    .toast {
       width: 300px;
       height: 60px;
       font-size: 12px;

       i {
          margin: 0 15px;
       }
    }
 }

  .checkout {
    width: calc(100% - 4rem);
    padding: 5px;
  }

  .soap-section,.soak-section {
    .soak__main {
      padding: 30px 10px;
    }
    .soap__main,.soak__main {
      .soap-main__content,.soak-main__content {
        gap: 0;

        .soap-main__description, .soak-main__description {
          max-width: 60%;
        }
      }
    }
  }

  .leafs img {
    animation-duration: 15s;
  }

}

@media screen and (max-width: 575px) {
  .btn {
    padding: 4px 10px;
  }
  
  .home-container {
    padding: 10px 10px;
  }

  .empty {
    max-width: 200px;
  }

  .soak-section {
    .our-range {
      .our-range__container {
        .our-range__sub {
          display: grid;

          &:nth-child(odd) {
            grid-template-columns: 2fr 3fr;
          }

          &:nth-child(even) {
            grid-template-columns: 3fr 2fr;
          }
          
          .our-range__img {
            width: 100%
          }
        }
      }
    }
  }

  .product {
    margin-bottom: 80px;

    .product-info {
      grid-template-columns: 1fr;
      
      .info {
        .info__buttons {
          display: flex;
          flex-wrap: wrap;
        }

        .info__description {
          font-size: 12px;          
        }

        .info__availability {
          font-size: 13px;
        } 
        
        .info__price {
          font-size: 1.6rem;
        }

        .info__name {
          font-size: 3rem;
        }

        .info__weight {
          font-size: 1.5rem;
          
          span {
              font-size: 1.7rem;
          }
        }
      }
    }
  }

}

@media screen and (max-width: 500px) {
  .explore-container {
    margin: 0;

    .btn {
      margin-top: 0;
    }

    .product-intro {
      .product-intro__product-container {
        justify-content: space-evenly;
      }
    }
  }

  .explore-container {
    .product-intro {
      .product-intro__product-container {
        .product-intro__product {
          padding: 10px;
        }
      }
    }
  }

  .home {
    gap: .5rem;

    .home-description {
      h1 {
        font-size: 2rem;

        span {
          font-size: 3rem;
        }
      }
    }
  }
}

@media screen and (max-width: 460px) {
  .container.products {
    margin: 2rem 0;
    padding-inline: 1rem;

    .box-container {
      padding: 10px;
    }
  }

  .soak-section {
    .made-from {
      gap: 0;
      .made-from__container {
        gap: 1rem;

        .made-from__sub {
          & > *:not(:first-child) {
            padding: 0 .5rem;
            margin-bottom: 0;
          }
        }
      }
    }
  }

  .leafs img {
    animation-duration: 18s;
  }
}

@media screen and (max-width: 415px) {
  .btn {
    padding: 3px 5px;
  }

  .explore-container {
    .product-intro {
      .product-intro__heading {
        word-spacing: 1px;
        letter-spacing: 1px;
      }
    }
  }

  .soap-section {
    .soap__main {
      .soap-main__content {
        .soap-main__description {
          max-width: 60%;

          h1 {
            font-size: 1.2rem;
          }
        }
      }
    }

    .made-with, .ingredients {
      .made-with__background, .ingredient {
        gap: 1rem;
      }
    }
  }

  #toast_box {
    bottom: 10px;

    .toast {
      width: 200px;
      height: 40px;
      font-size: 10px;

       i {
          margin: 0 8px;
          font-size: 20px;
       }
    }
  }
}

@media screen and (max-width: 385px) {

  .explore-container {
    .product-intro {
      .product-intro__heading {
        font-size: 2rem;
      }

      .product-intro__product-container {
        .product-intro__product {
          h1 {
            font-size: 1.5rem;
          }
        }
      }
    }

  }

  .soap-section {
    .ingredients {
      .ingredients__heading {
        font-size: 2rem;
      }
    }
  }
}

@media screen and (max-width: 350px) {
  .home {
    .home-description {
      h1 {
        font-size: 1.7rem;

        span {
          font-size: 2.25rem;
        }
      }
    }
  }
}
/* For small devices */
@media screen and (max-width: 330px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}


@media screen and (min-width: 767px) {
  .header {
    .nav {
      height: calc(var(--header-height) + 24px);
      
      .nav-toggle,
      .nav-close,
      .nav-img {
        display: none;
      }

      .nav-list {
        margin-top: 0;
        flex-direction: row;
        column-gap: 3rem;
      }
    }
  }
  
}

/* For medium devices */
@media screen and (min-width: 1048px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}