@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Spicy+Rice&display=swap");
:root {
  --bodyFonts: "Josefin Sans", sans-serif;
  --primary-color: #16423c;
  --text-dark: #161923;
  --text-light: #737373;
  --extra-light: #f4f6f5;
  --white: #ffffff;
  --lightgreen: #6a9c89;
  --extralightgreen: #c4dad2;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

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

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--primary-color);
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-light);
}

.logo {
  font-size: 3rem;
  font-weight: 500;
  font-family: "Spicy Rice", sans-serif;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  z-index: 9;
  background-color: var(--white);
  border-bottom: 1px solid var(--primary-color);
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 17px;
}
.nav__links a:hover {
  text-decoration: underline;
  color: var(--primary-color);
  font-size: larger;
}
.nav__search {
  display: none;
  cursor: pointer;
  font-size: 25px;
}
.nav__search:hover {
  color: var(--text-dark);
  font-size: 30px;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

/* product */

.product-container {
  width: 900px;
  margin: auto;
  max-width: 90vw;
  text-align: center;
  padding-top: 10px;
  transition: transform 0.5s;
  
}
svg {
  width: 30px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.icon-cart {
  position: relative;
  color: var(--primary-color);
}
.icon-cart span {
  position: absolute;
  background-color: red;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--white);
  top: 50%;
  right: -20px;
}

.icon-cart span:hover {
  cursor: pointer;
}
header .title {
  font-size: 40px;
  color: var(--primary-color);
  font-family: var(--header-font);
  font-weight: 600;
   position: relative;
  left: 0;
 bottom: 0;
}
.listProduct .item img {
  width: 90%;
  filter: drop-shadow(0 50px 20px #0009);
}
.listProduct {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.listProduct .item:hover{
  transform: translateY(-10px);
}

.listProduct .item {
  background-color: var(--extralightgreen);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  transition-property: background, border-radius;
  transition-duration: 0.2s, 1s;
  transition-timing-function: linear, ease-in;
}

.listProduct .item h2 {
  font-weight: 500;
  font-size: large;
}
.listProduct .item .price {
  letter-spacing: 7px;
  font-size: small;
}
.listProduct .item button {
  background-color: #353432;
  color: #eee;
  border: none;
  padding: 5px 10px;
  margin-top: 10px;
  border-radius: 20px;
  background-color: orange;
  background-image: var(--extralightgreen);
  background-image: -moz-linear-gradient(top, #fff 0%, #6a9c89 100%);
  background-image: -webkit-linear-gradient(top, #fff 0%, #6a9c89 100%);
  background-image: linear-gradient(to bottom, #161923 0%, #6a9c89 100%);
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: 0%;
  -webkit-transition: background 300ms ease-in-out;
  transition: background 300ms ease-in-out;
}

.listProduct .item button:hover {
  background-position: -200%;
  transition: background 300ms ease-in-out;
}

/* cart */
.cartTab {
  width: 400px;
  background-color: var(--primary-color);
  color: var(--white);
  position: fixed;
  top: 0;
  right: -400px;
  bottom: 0;
  display: grid;
  grid-template-rows: 70px 1fr 70px;
  transition: 0.5s;
}
body.showCart .cartTab {
  right: 0;
}
body.showCart .container {
  transform: translateX(-250px);
}
.cartTab h1 {
  padding: 20px;
  margin: 0;
  font-weight: 300;
  
}
.cartTab .btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.cartTab button {
  background-color: var(--lightgreen);
  border: none;
  font-weight: 500;
  cursor: pointer;
  font-size: 30px;
  padding: 4px;
}
.cartTab button:hover {
  font-size: 25px;
}
.cartTab .close {
  background-color: orange;
  font-size: 30px;
  color: var(--t);
}
.listCart .item img {
  width: 100%;
  margin-left: 15px;
}
.listCart .item {
  display: grid;
  grid-template-columns: 70px 150px 50px 1fr;
  gap: 10px;
  text-align: center;
  align-items: center;
}
.listCart .quantity span {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--text-dark);
  cursor: pointer;
}
.listCart .quantity span:nth-child(2) {
  background-color: transparent;
  color: var(--white);
  cursor: auto;
}
.listCart .item:nth-child(even) {
  background-color: var(--lightgreen);
  font-weight: 300;
}
.listCart {
  overflow: auto;
}
.listCart::-webkit-scrollbar {
  width: 0;
}
@media only screen and (max-width: 992px) {
  .listProduct {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* footer */

.footer {
  background-color: var(--primary-color);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo {
  margin-bottom: 1rem;
}

.footer__logo .logo {
  color: var(--white);
}

.footer__col p {
  margin-bottom: 2rem;
  color: var(--extra-light);
  opacity: 0.8;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  font-size: 1.5rem;
  color: var(--white);
  font-size: 30px;
}

.footer__socials a:hover {
  color: #6a9c89;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--extra-light);
  opacity: 0.8;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--extra-light);
  opacity: 0.8;
  text-align: center;
}

/* mrdia Querry */

@media only screen and (max-width: 768px) {
  .listProduct {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width > 350px) {

  .title{
    font-size: small;
    margin-top: 80px;
  }
  .icon-cart span{
    margin-top: 10px;
  }
  .icon-cart {
    margin-top: 80px;
  }
  .nav__header {
    background-color: var(--white);
  }

  .nav__menu__btn {
    color: var(--primary-color);
  }

  .nav__links a {
    color: var(--white);
    
  }
  .nav__links{
    background-color: var(--primary-color);
   
  }
  .listCart .item{
    margin-top: 30px;
    font-size:15px;
    
  }
  .listCart .item img{
margin-top: 6px;
margin-left: 20px;
  }
}
@media (width > 400px) {
  .nav__header {
    background-color: var(--white);
  }

  .nav__menu__btn {
    color: var(--text-dark);
  }

  .nav__links a {
    color: var(--white);
  }
  .nav__links{
    background-color: var(--primary-color);
  }
}

@media (width > 540px) {
  .nav__header {
    background-color: #ffffff;
  }
  .nav__menu__btn {
    color: var(--text-dark);
  }
  .nav__links a {
    color: var(--white);
  }
  .nav__links{
    background-color: var(--primary-color);
  }
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__logo .logo {
    color: var(--primary-color);
  }

  .nav__links {
    position: static;
    padding: 0;
    width: fit-content;
    flex-direction: row;
    gap: 3rem;
    background-color: transparent;
    transform: none;
  }

  .nav__links a {
    color: var(--text-dark);
  }

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

  .nav__search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav__search input {
    padding-block: 5px;
    outline: none;
    border: none;
    width: 0;
    font-size: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--text-light);
    transition: 0.3s;
  }

  .nav__search.open input {
    width: 100%;
    max-width: 15rem;
  }
  .nav__search input .nav__search span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
  }
  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}
