@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;
  background-color: var(--white)
}

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;
  font-weight: 600;
}

/* checkout */

body {
  font-family: Arial, sans-serif;
  font-size: 17px;
  padding: 8px;
  background-color: var(--white);
}

h1 {
  text-align: center;
  color: var(--primary-color);
  font-family: var(--header-font);
}

* {
  box-sizing: border-box;
}

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -16px;
}

.col-25 {
  -ms-flex: 25%;
  flex: 25%;
}

.col-50 {
  -ms-flex: 50%;
  flex: 50%;
}

.col-75 {
  -ms-flex: 75%;
  flex: 75%;
}

.col-25,
.col-50,
.col-75 {
  padding: 0 16px;
}

.container {
  background-color: var(--extra-light);
  padding: 5px 20px 15px 20px;
  border: 1px solid lightgrey;
  border-radius: 3px;
}

input[type=text] {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

label {
  margin-bottom: 10px;
  display: block;
}

.icon-container {
  margin-bottom: 20px;
  padding: 7px 0;
  font-size: 24px;
}

.btn {
  background-color: #353432;
  color: var(--white);
  font-weight: 700;
  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: 500px;
  background-repeat: no-repeat;
  background-position: 0%;
  -webkit-transition: background 300ms ease-in-out;
  transition: background 300ms ease-in-out;
}

.btn:hover {
  background-position: -200%;
  transition: background 300ms ease-in-out;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
}

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

hr {
  border: 1px solid lightgrey;
}

span.price {
  float: right;
  color: var(--text-light);
}

/* Responsive layout for tablets and small screens */
@media (max-width: 1024px) {
  body {
    font-size: 16px; /* Adjust font size for better readability */
  }

  h1 {
    font-size: 35px; /* Reduce heading size for tablets */
  }
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-25,
  .col-50,
  .col-75 {
    flex: 100%; /* Stack columns on top of each other */
    margin-bottom: 20px;
  }

  .container {
    padding: 10px;
  }

  h1 {
    font-size: 30px; /* Further reduce heading size for smaller screens */
  }
}

/* Extra responsiveness for small devices like phones */
@media (max-width: 480px) {
  body {
    font-size: 15px; /* Smaller text for mobile devices */
  }

  h1 {
    font-size: 24px; /* Adjust heading size for mobile devices */
  }

  .btn {
    padding: 10px; /* Adjust button size for mobile */
    font-size: 16px;
  }

  .icon-container {
    font-size: 20px; /* Adjust icon size for mobile screens */
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 20px; /* Further reduce heading size for very small screens */
  }

  .btn {
    padding: 8px;
    font-size: 15px;
  }
}

/* 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;
  }
  
  /* media Querry */
  
  @media (width > 400px) {
    .nav__header {
      background-color: var(--white);
    }
  
    .nav__menu__btn {
      color: var(--text-dark);
    }
  
    .nav__links a {
      color: var(--text-dark);
    }
    .checkout-container{
      margin-top:90px;
    }
    .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(--text-dark);
    }
  
    .footer__container {
      grid-template-columns: repeat(2, 1fr);
    }
    .nav__links a {
      color: var(--white);
      
    }
    .nav__links{
      background-color: var(--primary-color);
     
    }
  }
  
  @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);
    }
     
  }
  