@import url("https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Metal&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

body {
  background-color: #fcfcfc;
  font-family: "DynaPuff", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

nav {
  width: 100%;
  height: 75px;
  top: 0;
  background-color: #353535;
  position: fixed;
  z-index: 999;
}

.nav-item {
  display: flex;
  justify-content: space-between;
  padding: 0 285px;
  align-items: center;
  z-index: 999;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

/* This span is for logo text Eco Store  */
span {
  color: #eb4d4b;
}

#search-icon {
  font-size: 28px;
  position: relative;
  align-items: center;
  right: 30px;
  cursor: pointer;
  color: #fff;
}
/* Here End First Nav */

/* This Icon is on right navbar Heart */
#cart-heart {
  font-size: 28px;
  position: relative;
  align-items: center;
  color: #fff;
  right: 15px;
}

/* Cart Icon */
#cart-icon {
  font-size: 28px;
  cursor: pointer;
  vertical-align: top;
  color: #fff;
}

/* This is for second NavBar */
.nav-bar {
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: space-between;
  padding: 0 285px;
  position: relative;
  top: 75px;
  align-items: center;
  background-color: #353535;
  border-top: 0.1px solid #858a8f;
  z-index: 1;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  z-index: 999;
  background-color: #353535;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a.nav-active {
  color: #81b29a;
}

.dropbtn {
  padding: 17px 0;
  font-size: 16px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background-color: #353535;
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 300px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #253237;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* This is for hamburger menu responsive */
.hamburger {
  display: none;
  cursor: pointer;
}

/* Here they are three lines hamburger menu  */
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  color: #fff;
}

/* Cart for Products */
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  min-height: 100vh;
  padding: 20px;
  background-color: #353535;
  color: #fff;
  transition: 0.5s;
  z-index: 999;
}

.cart.active {
  right: 0;
}

.cart-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  margin-top: 2rem;
}

.cart-box {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.cart-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 10px;
}

.detail-box {
  display: grid;
  row-gap: 0.5rem;
}

.cart-product-title {
  font-size: 1rem;
  text-transform: uppercase;
}

.cart-price {
  font-weight: 500;
}

.cart-quantity {
  border: 2px solid #8baaad;
  outline-color: #8baaad;
  width: 2.4rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 3px;
}

.cart-remove {
  font-size: 24px;
  color: #fd4646;
  cursor: pointer;
}

.total {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid #8baaad;
}

.total-title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.total-price {
  margin: 1rem 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-buy {
  display: flex;
  margin: 1.5rem auto 0 auto;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  background: #8baaad;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-buy:hover {
  background: #171427;
}

#close-cart {
  position: absolute;
  top: 1rem;
  right: 0.8rem;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}
/* Here is end the cart for products */

/* Slideshow container */
.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
  top: 75px;
  margin: auto;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 20px;
  margin-top: -22px;
  font-weight: bold;
  font-size: 28px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: #e7ecef;
  color: #eb4d4b;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* The dots/bullets/indicators */
.dot {
  width: 25px;
  height: 15px;
  cursor: pointer;
  position: relative;
  top: 75px;
  background-color: #bbb;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.6s ease;
  margin-bottom: 5rem;
}

.red,
.dot:hover {
  background-color: #eb4d4b;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

/* This is for button on background first Shop Now */
.shop-btn {
  padding: 15px 22px;
  font-size: 15px;
  border: 0;
  outline: 0;
  border-radius: 8px;
  align-items: center;
  display: flex;
  cursor: pointer;
  background-color: #ebedee;
  color: #253237;
}
/* Here End BG-1 */

.icon-bg-2 {
  font-size: 35px;
  color: #eb4d4b;
}

/* Shop Container */
.shop-container {
  width: 70%;
  margin: auto;
  padding: 4rem 0 4rem 0;
}

.section-title {
  margin-bottom: 20px;
  font-weight: 500;
  text-decoration: underline;
}

/* Shop Content */
.shop-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  gap: 10px;
}

.product-box {
  position: relative;
  padding: 8px 8px;
  background-color: #f7f8f9;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  overflow: hidden;
  box-shadow: 5px 5px 5px -5px rgba(0, 0, 0, 0.2);
  border: solid #fff 10px;
}

.product-img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.product-title {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #000;
}

.price {
  font-weight: 400;
}

.add-cart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #051923;
  color: #fff;
  font-size: 17px;
  padding: 10px;
  cursor: pointer;
}

.add-cart:hover {
  background: #eb4d4b;
  transition: all 0.5s;
}

.grop-icons {
  display: flex;
  align-items: center;
}

.basket-cart{
  height: 35px;
}

.d-flex {
  display: flex;
  place-items: center;
  margin: 8px 0;
}

.lower-price {
  font-size: 14px;
  font-weight: 200;
  align-items: center;
  margin-left: 10px;
  color: #8f8f8f;
  text-decoration: line-through;
}

.fa-star,
.fa-star-half-stroke {
  font-size: 15px;
  color: #eb4d4b;
}

/* This for product view */
.product-price {
  font-size: 30px;
  font-weight: 400;
  color: #81b29a;
}

/* This class is for star icon */
.m-top {
  margin-top: 10px;
}

/* Here is for button Arrow go to top */
#myBtn {
  width: 55px;
  display: none;
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #eb4d4b;
  color: #eb4d4b;
  cursor: pointer;
  transition: all ease-in-out 5ms;
  padding: 10px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

.fa-angle-up {
  font-size: 32px;
}

/* Here is Bg-Body Image Home Page */
.img-body {
  width: 70%;
  height: 600px;
  margin: auto;
  background-image: url(image/bg-img.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: center;
}

/* This is background five  */
.bg-5 {
  width: 70%;
  height: auto;
  margin: auto;
  padding: 2rem 0 5rem 0;
}

.grid-img-5 {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
}

.products {
  width: 50%;
  line-height: 30px;
}

.box-img-5 {
  width: 100%;
  height: 100%;
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  background-color: #e0e1dd;
}

.img-categoris {
  width: 150px;
  height: auto;
  object-fit: cover;
  align-items: center;
}

/* Here start Footer */
.footer {
  height: 35vh;
  align-items: center;
  background-color: #f2f2f2;
  color: #000;
}

.content-footer {
  display: flex;
  align-items: top;
  padding: 0 290px;
  justify-content: space-between;
  margin-inline: auto;
  position: relative;
  top: 40px;
}

.footer-box {
  line-height: 30px;
}

.title-logo {
  margin-bottom: 20px;
  color: #000;
}

.logo-footer {
  text-decoration: none;
}

.text-bg-dark {
  margin-bottom: 10px;
  color: #8f8f8f;
}

/* Share Icons Social */
.share-icons {
  font-size: 22px;
  display: flex;
  gap: 25px;
}

.footer-bottom {
  background-color: #f2f2f2;
  border-top: 1px solid #1f2a37;
}

.footer-row {
  height: 100px;
  display: flex;
  align-items: center;
  padding: 0 290px;
  justify-content: space-between;
  margin: auto;
  top: 50px;
}

/* Responsive Design Max Width 1629px */
@media (max-width: 1629px) {
  .nav-item {
    padding: 0 40px;
  }

  .bg-5,
  .shop-container,
  .content-footer,
  .footer-row,
  .bg-sidebar {
    width: 100%;
    padding: 0 20px;
  }

  .shop-container {
    padding-block: 5rem;
  }

  .img-body {
    width: 100%;
  }

  .footer {
    margin-top: 50px;
  }
}

/* Responsive Design Max Width 1440px */
@media (max-width: 1440px) {
  .nav-item {
    padding: 0 20px;
  }

  .bg-5,
  .content-footer,
  .footer-row {
    width: 100%;
    padding: 0 20px;
  }

  .shop-container {
    padding-block: 5rem;
  }

  .footer {
    margin-top: 50px;
  }
}

@media screen and (max-width: 1340px) {
  .slideshow-container {
    width: 100%;
  }
}

/* Responsive Max Width 1200px */
@media (max-width: 1200px) {
  .nav-item {
    padding: 0 20px;
  }

  .slideshow-container {
    width: 100%;
  }

  .bg-5,
  .content-footer,
  .footer-row {
    width: 100%;
    padding: 0 20px;
  }

  .footer {
    margin-top: 50px;
  }
}

/* Responsive Max Width 1024px */
@media (max-width: 1024px) {
  /* Here Start First Bar */
  nav {
    z-index: 999;
  }
  .shop-container {
    padding-block: 5rem;
  }

  /* Bg-Image Body Full Width */
  .img-body {
    width: 100%;
  }

  .products {
    padding-left: 10px;
  }

  /* Footer */
  .footer {
    width: 100%;
    height: auto;
    padding: 2rem 12px 2rem 12px;
  }

  /* Content Footer */
  .content-footer {
    padding: 0;
    display: grid;
    padding-bottom: 2rem;
    grid-template-columns: auto auto auto;
  }
}

/* Responsive Max Width 768px */
@media screen and (max-width: 768px) {
  /* Hamburger Menu Responsive */
  .hamburger {
    display: block;
    cursor: pointer;
  }

  /* Bar Hamburger */
  .bar {
    background-color: #fff;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Nav Menu */
  .nav-menu {
    width: 60%;
    height: 100vh;
    position: fixed;
    left: -100%;
    top: 75px;
    padding-top: 40px;
    line-height: 80px;
    display: block;
    font-size: 20px;
    text-align: center;
    transition: 0.3s;
    z-index: 99;
    opacity: 1;
  }

  .nav-menu a {
    text-decoration: none;
    color: #fff;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown {
    display: block;
  }

  .nav-item {
    width: 100%;
    padding: 0 12px;
  }
  /* Here End First Nav */

  .dropdown-content {
    width: 200px;
  }

  .dropdown-content a {
    color: #253237;
  }

  /* This is cart which is on right on the top */
  .cart {
    width: 60%;
    z-index: 999;
  }

  .shop-container {
    padding-left: 12px;
    padding-right: 12px;
    padding-block: 5rem;
  }

  .bg-5 {
    width: 100%;
    padding: 0 12px;
  }

  .grid-img-5 {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
  }

  .products {
    padding-left: 10px;
  }

  /* Content Footer */
  .content-footer {
    display: grid;
    grid-template-columns: auto auto;
  }

  .footer-box {
    margin-block: 1rem;
  }

  .footer-row {
    padding: 0 12px 0 12px;
  }

  .share-icons {
    font-size: 18px;
    gap: 8px;
  }
}

/* Responsive Max Width 600px */
@media screen and (max-width: 600px) {
  /* Nav Menu */
  .nav-menu {
    width: 60%;
    height: 100vh;
    position: fixed;
    top: 75px;
    padding-top: 40px;
    line-height: 80px;
    display: block;
    font-size: 20px;
    text-align: center;
    transition: 0.3s;
    z-index: 99;
    opacity: 1;
  }

  /* Cart */
  .cart {
    width: 60%;
    height: 100vh;
    z-index: 999;
  }

  .shop {
    margin: 5rem 0;
  }

  .shop-container {
    width: 100%;
    padding-block: 5rem;
    margin: auto;
  }

  .shop-content {
    display: grid;
    grid-template-columns: auto auto;
  }

  .product-title {
    font-size: 15px;
  }

  .price {
    font-size: 15px;
  }

  .lower-price {
    font-size: 13px;
    position: relative;
    left: 0;
  }

  .fa-star,
  .fa-star-half-stroke {
    font-size: 15px;
    color: #eb4d4b;
  }

  .bg-5 {
    width: 100%;
    padding: 0 12px;
  }

  .grid-img-5 {
    display: grid;
    grid-template-columns: auto;
  }

  /* Content Footer */
  .content-footer {
    display: grid;
    grid-template-columns: auto;
  }

  .share-icons {
    font-size: 18px;
    gap: 8px;
  }
}

/* Responsive Max Width 425px */
@media (max-width: 425px) {
  /* Nav Item & Nav Menu */
  .nav-item {
    padding: 0 12px;
  }

  .nav-menu,
  .cart {
    width: 260px;
  }

  .shop-container {
    padding-block: 5rem;
  }

  .bg-5 {
    width: 100%;
    padding: 0 12px;
  }
}

/* Responsive Max Width 375px */
@media (max-width: 375px) {
  /* Nav Item & Nav Menu */
  .nav-item {
    padding: 0 12px;
  }

  .nav-menu,
  .cart {
    width: 260px;
  }

  .logo {
    font-size: 20px;
  }

  #search-icon,
  #cart-heart,
  #cart-icon {
    font-size: 20px;
  }

  .section-title {
    width: 100%;
  }

  .product-title {
    font-size: 14px;
  }

  .price {
    font-size: 14px;
  }

  .lower-price {
    font-size: 12px;
    position: relative;
    left: 0;
  }

  .fa-star,
  .fa-star-half-stroke {
    font-size: 15px;
    color: #eb4d4b;
  }
}

@media screen and (max-width: 320px) {
  /* Nav Item & Nav Menu */
  .nav-item {
    padding: 0 12px;
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev,
  .next,
  .text {
    font-size: 11px;
  }
}
