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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to right, rgb(22, 3, 32), rgb(32, 3, 30));
  min-height: 100dvh;
  font-family: sans-serif;
}

nav {
  background: #f3dad3;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
}
nav .nav-logo img {
  width: 100px;
}
nav .search {
  width: 30%;
}
nav .search form {
  width: 100%;
  height: 100%;
  position: relative;
}
nav .search input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  padding: 0px 15px;
  color: rgb(170, 68, 0);
  transition: 0.2s;
}
input:hover,
input:focus {
  border: none;
  outline: none;
  background: #f7f4f3;
}
nav .search button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 10px;
  border: none;
  border-radius: 0 10px 10px 0;
  color: #fff;
  background: rgb(248, 99, 0);
  transition: 0.2s;
}
nav .search button:hover {
  background: rgb(187, 86, 19);
}
nav .nav-link ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav .nav-link ul a {
  text-decoration: none;
}
nav .nav-link ul p {
  font-size: 20px;
  font-weight: 600;
  padding: 10px 20px;
  color: rgb(170, 68, 0);
  transition: 0.3s;
}
nav .nav-link ul p:hover {
  border-radius: 10px;
  color: #fff;
  background: rgb(170, 68, 0);
}

section {
  min-height: 100dvh;
}

#home {
  height: 100dvh;
  position: relative;
  background: url("https://source.unsplash.com/550x250/?shooping,mall");
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
#home #wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background: rgba(0, 0, 0, 0.74);
}
#home #wrapper .left-content h1 {
  font-size: 70px;
  color: rgb(170, 68, 0);
}
#home #wrapper .left-content h4 {
  font-size: 50px;
  margin-bottom: 10px;
}
#home #wrapper .left-content p {
  color: #d6bcbc;
  margin-bottom: 10px;
}
#home #wrapper .left-content button {
  font-size: 20px;
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  color: #fff;
  background: rgb(170, 68, 0);
  transition: 0.2s;
}
#home #wrapper .left-content button:hover {
  border: 2px solid #fff;
  background: rgb(97, 39, 0);
}
#home #wrapper .hero-img img {
  width: 500px;
}

#h1 {
  margin: 50px auto;
  padding: 0px 20px;
  color: rgb(255, 255, 255);
  max-width: 200px;
  position: relative;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 2px;
}
#h1:after {
  content: "";
  width: 100%;
  height: 10px;
  left: 0;
  bottom: -15px;
  z-index: -1;
  border-radius: 30px;
  position: absolute;
  background: linear-gradient(to right top, #ff6004, #fa0e70);
}
#categories #products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px;
  padding: 0 50px;
}
#categories #products .product-page {
  width: 220px;
  height: 300px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.product-page img {
  height: 100%;
}

#categories #products .product-page .product-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  transition: 0.2s;
  transform: translateY(100%);
}
#categories #products .product-page .product-wrapper .p {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#categories #products .product-page .product-wrapper .p .ph {
  margin-top: 5px;
}
#categories #products .product-page .product-wrapper .p .ph .star {
  font-size: 12px;
  gap: 3px;
  color: yellow;
  display: flex;
}
#categories #products .product-page .product-wrapper .p .ph .prs {
  margin-top: 8px;
  display: flex;
}
#categories #products .product-page .product-wrapper .p .ph .prs h3 {
  color: rgb(248, 99, 0);
  margin-right: 5px;
}
#categories #products .product-page .product-wrapper .p .ph .prs del {
  color: #927777;
}
#categories #products .product-page .product-wrapper .p button {
  border: 1px solid rgba(255, 255, 255, 0.5960784314);
  background: rgba(255, 123, 34, 0.685);
  border-radius: 50%;
  padding: 10px;
  color: #fff;
  aspect-ratio: 1;
  width: 40px;
  height: 40px;
}
#categories #products .product-page:hover .product-wrapper {
  transform: translateY(0);
}

/* =================== */
/* Product Page */
#productPage {
  display: flex;
  margin-top: 30px;
  height: 100dvh;
}
#productPage .product-img {
  width: 50%;
  padding: 100px 50px;
  overflow: hidden;
  position: relative;
}
#productPage .product-img .other-img {
  position: absolute;
  padding: 10px;
  bottom: 100px;
  left: 50px;
  width: 15%;
  display: flex;
  gap: 10px;
  background: #d6bcbc71;
  border-radius: 10px;
}
#productPage .product-img img {
  width: 100%;
  border-radius: 10px;
}
#productPage .product-details {
  padding: 130px 50px;
  width: 50%;
  color: #fff;
}
#productPage .product-details .p {
  margin-top: 20px;
}
#productPage .product-details .p .star {
  font-size: 20px;
  color: yellow;
}
#productPage .product-details .p .prs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
#productPage .product-details .p .prs h3 {
  font-size: 30px;
}
#productPage .product-details .p .prs del {
  font-size: 20px;
  color: #f3dad3;
}
#productPage .product-details .order-btn {
  display: flex;
  gap: 20px;
}
#productPage .product-details button {
  margin-top: 30px;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  width: 50%;
  color: #fff;
  background: rgb(170, 68, 0);
  transition: 0.2s;
}
#productPage .product-details button:hover {
  background: rgb(97, 39, 0);
}
#productPage .product-details #cart {
  border: 3px solid rgb(170, 68, 0);
  color: rgb(170, 68, 0);
  background: transparent;
}
#productPage .product-details #cart:hover {
  border: 3px solid rgb(85, 42, 14);
  color: #fff;
  background: #ff662a23;
}

/* ============= */

/* ================ About Section ==========  */
#about {
  padding: 150px 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100vh;
  color: #fff;
}
#about p {
  max-width: 600px;
  letter-spacing: 1.5px;
  line-height: 30px;
  margin-top: 20px;
}
#about p:last-child {
  padding-bottom: 20px;
  border-bottom: 1px solid #f7bbff73;
}

/* ========= Footer Section ======== */
footer {
  text-align: center;
  min-height: 100px;
  padding: 30px;
  display: grid;
  place-items: center;
  width: 100%;
  font-weight: 600;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
footer:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: linear-gradient(
    to right top,
    rgb(119, 0, 255),
    #f0f,
    rgb(255, 0, 119),
    rgb(255, 60, 0),
    rgb(255, 174, 0),
    rgb(255, 208, 0)
  );
  transition: 0.2s all;
  animation: footerAnimation 5s linear infinite;
}
@keyframes footerAnimation {
  0%,
  100% {
    left: 0;
    bottom: 0;
  }
  50% {
    transform: translate(-50%);
  }
}
nav .nav-link a i {
  display: none;
}

@media screen and (max-width: 900px) {
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  nav {
    padding: 5px;
    position: relative;
    width: 100vw;
  }
  nav .search {
    width: 50%;
  }
  nav .nav-link {
    position: absolute;
    bottom: -25px;
    left: 20px;
    font-size: 20px;
  }
  nav .nav-link a i {
    color: #fff;
    display: block;
  }
  nav .nav-link a p {
    display: none;
  }
  nav .nav-link i:hover {
    background: none;
    color: rgb(187, 86, 19);
  }

  #home #wrapper {
    flex-direction: column;
  }
  #home #wrapper .hero-img img {
    width: 50vw;
  }

  #categories {
    padding: 0;
  }
  #products {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    align-items: center;
  }
  .product-wrapper {
    transform: translate(0) !important;
  }

  #productPage {
    padding: 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 50px 0;
    align-items: center;
  }
  .product-img {
    width: 90vw !important;
    min-height: 30dvh !important;
    padding: 0px !important;
    overflow: auto !important;
  }
  .product-img > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .other-img {
    width: 20% !important;
    left: 10px !important;
    bottom: 10px !important;
  }
  .product-details {
    margin-top: 20px;
    padding: 0 !important;
    width: 85vw !important;
  }
  .product-details h1 {
    font-size: 20px !important;
  }
  .order-btn button {
    font-size: 15px !important;
  }
  .order-btn button i {
    font-size: 15px !important;
    margin-right: 5px;
  }
}
