* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  text-transform: capitalize;
}
body {
  font-size: 1rem;
  font-family: "Kanit", sans-serif;
}
/* Extra Small Devices (Mobile Phones) */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Small Devices (Tablets and Small Screens) */
@media (min-width: 577px) and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  h5 {
    font-size: 1.2rem;
  }

  h6 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1.125rem;
  }
}

/* Medium Devices (Larger Tablets and Small Laptops) */
@media screen and (min-width: 769px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.9rem;
  }

  h4 {
    font-size: 1.6rem;
  }

  h5 {
    font-size: 1.4rem;
  }

  h6 {
    font-size: 1.3rem;
  }

  p {
    font-size: 1.25rem;
  }
}

/* Large Devices (Laptops and Desktops) */
@media screen and (min-width: 1200px) {
  body {
    font-size: 20px;
  }
}
/* global */
.section-center {
  width: 90vw;
  max-width: 1050px;
  margin: 0 auto;
}
/* navbar */
.nav {
  background-color: black;
  height: 5rem;
  display: grid;
  place-items: center;
}
.nav-links {
  display: none;
}
.nav-btn {
  justify-self: flex-start;
  font-size: 1.5rem;
  padding: 0.4rem 0.3rem;
  color: white;
  background: transparent;
  border: none;
}
.nav-btn:hover {
  border: 2px solid white;
}
@media screen and (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
  }
  .nav-links a {
    font-size: 1.5rem;
    color: white;
  }
  .nav-btn {
    display: none;
  }
  .hero-center {
    grid-template-columns: 1fr 1fr;
  }
  .hero-center {
    padding: 1.5rem;
  }
  .hero-info {
    justify-self: start;
  }
  .hero-imgs {
    height: 400px;
    width: 550px;
  }
  .blogs {
    padding: 4rem;
  }
}
.sidebar {
  display: grid;
  place-items: center;
  min-height: 80vh;
  width: 80vw;
  background-color: rgba(3, 3, 3, 0.8);
  position: absolute;
  top: 100px;
  left: 10%;
  border-radius: 2rem;
  visibility: hidden;
  transform: scale(0);
  transition: transform 1s ease-in-out;
}
.side-links {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  align-items: center;
}
.side-links a {
  color: white;
  font-size: 1.3rem;
}
.side-links a:hover {
  color: black;
}
.cross-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: transparent;
  color: white;
  border: none;
}
.show-bar {
  visibility: visible;
  transform: scale(1);
}
/* hero */
.hero {
  background-color: rgb(38, 38, 212);
  padding: 1rem;
}
.hero-imgs {
  height: 300px;
  width: 250px;
}
.hero-photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero-center {
  display: grid;
  gap: 1rem;
}
.hero-img {
  margin: 0 auto;
}
.hero-info {
  text-align: center;
}
.hero-info h1 {
  margin-top: 3rem;
}
.hero-info span {
  color: whitesmoke;
  font-size: 2rem;
}
/* products */
.products {
  padding: 2rem;
}
.product-center {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  row-gap: 2rem;
  justify-items: center;
  margin-top: 4rem;
}
.title {
  text-align: center;
}
.underline {
  height: 5px;
  width: 7rem;
  background: orangered;
  border-radius: 2rem;
  margin: 0.5rem auto;
}
.item {
  position: relative;
  padding: 0.3rem;
  border-radius: 1.5rem;
}
.item:hover {
  box-shadow: 2px 2px 2px 4px rgba(85, 81, 81, 0.5);
}
.item-img {
  height: 200px;
  width: 200px;
  margin: auto;
}
.item-photo {
  height: 100%;
  width: 100%;
  border-radius: 1rem;
}
.item-price {
  color: blue;
}
.text {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  padding: 0.3rem 0.6rem;
}
/* blog */
.blogs {
  padding: 2rem;
}
.blog {
  width: 300px;
}
.blog-center {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  gap: 1rem;
  margin-top: 4rem;
}
.blog-photo {
  width: 100%;
  object-fit: cover;
}
.blog-info {
  padding: 0.6rem;
}
/* subsciber */
.subscribe {
  background: rgb(41, 41, 216);
  padding: 2rem 1rem;
  color: white;
  display: grid;
  place-items: center;
}
.info {
  background-color: blue;
  box-shadow: 2px 2px 3px 4px rgba(162, 161, 161, 0.6);
  margin: 0 auto;
  max-width: 50%;
}
.form {
  margin: 2rem 0;
  width: 60%;
  margin: 2rem auto;
}
.form-info {
  padding: 0.5rem;
  background-color: white;
  color: gray;
  border-radius: 0.5rem;
  position: relative;
}
.email {
  position: absolute;
  top: 15px;
  right: 10px;
}
#email {
  padding: 0.5rem;
  border: none;
  background-color: white;
}
.social-icons i {
  color: black;
  background-color: white;
  padding: 0.8rem;
  font-size: 1.5rem;
  border-radius: 50%;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
/* top */
.top {
  padding: 1.5rem;
}
.top-img {
  background: url("./tep3-imgs/bg-img.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  height: 20vh;
  background-position: center;
}
.side-info {
  background: black;
  color: white;
  padding: 0 0.2rem;
}
.shop-info {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}
.top-center {
  display: grid;
  grid-template-areas:
    "top-side top-img top-img top-img"
    "top-side top-img top-img top-img"
    "filter product product product "
    "filter product product product";
  column-gap: 0.2rem;
  row-gap: 1.5rem;
}
.top-side {
  grid-area: top-side;
}
.top-img {
  grid-area: top-img;
}
.filter-side {
  grid-area: filter;
}
.products-center {
  grid-area: product;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .top-center {
    column-gap: 2.5rem;
  }
  .top{
    padding: 3rem;
  }
}
.contact {
  background: linear-gradient(
      to top right,
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0.6)
    ),
    url("./tep3-imgs/contact-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.contact-center {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.contact-center input {
  background: transparent;
  padding: 1rem 0.5rem;
  border: none;
}
@media screen and (max-width: 750px) {
  .contact-center {
    flex-direction: column;
  }
}
