@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  box-sizing: border-box;
  list-style: none;
  text-align: none;
  text-decoration: none;
}

:root {
  --menu-color: rgb(204, 61, 104);
  --box-color: rgb(238, 145, 173);
  --hover: rgb(51, 210, 153);
  --grid-color: rgb(204, 255, 204);
  --text-color: black;
  --bg-color: white;
  --bg-colorBtn:#4DC0DD;
}

::-webkit-scrollbar {
  width: 0.5rem;
  background: var(--box-color);
}
::-webkit-scrollbar-thumb {
  width: 0.5rem;
  background: var(--menu-color);
  border-radius: 5rem;
}

img {
  width: 100%;
}

body {
  color: var(--text-color);
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 11px rgb(14 55 54 / 15%);
  padding: 20px 30px;
  transition: 0.5s;
}

.profile {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  cursor: pointer;
}
.profile img {
  width: 16px;
  height: 13px;
  object-fit: cover;
  object-position: center;
  border-radius: 30%;
}
.profile span {
  font-size: 16px;
  font-weight: 500;
}

.registration {
  color: var(--text-color);
  background-color: transparent;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  column-gap: 0.5rem;
}
.logo .bx {
  font-size: 24px;
  color: var(--logo-color);
}
.avatar {
  vertical-align: middle;
  width: 50px;
  height: 35px;
}

.active{
  background-color: var(--menu-color);
  padding: 20px;
  border-radius: 5rem;
}
.navbar .active{
  color: var(--bg-color);
}

.navbar {
  display: flex;
  column-gap: 0.5rem;
}
.navbar a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
}
.navbar a:hover {
  background: var(--menu-color);
  border-radius: 5rem;
  color: var(--bg-color);
  transition: 0.4s;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heading h1 {
  font-size: 1.6rem;
  font-weight: 600;
}
.heading span {
  color: var(--menu-color);
}

.btn {
  padding: 0.6rem 1rem;
  background: var(--menu-color);
  color: var(--bg-color);
  font-weight: 400;
  border-radius: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 00.5rem;
  max-width: 160px;
}
.btn img {
  width: 16px;
  height: 16px;
}
.btn:hover {
  background: #4DC0DD;
  color: var(--text-color);
  transition: 0.3s ease;
}

.products {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}
hr {
  margin-top: 75px;
  margin-bottom: 20px;
  margin-left: 200px;
  margin-right: 200px;
  box-shadow: 1px 2px 11px 4px var(--menu-color);
}
.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  animation: glow 1s ease infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073,
      0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }

  to {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073,
      0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, auto));
  gap: 1.5rem;
  margin-top: 2rem;
}
.container .box {
  padding: 20px;
  box-shadow: 1px 2px 11px 4px rgba(168, 166, 156, 0.945);
  border-radius: 0.5rem;
  position: relative;
  cursor: pointer;
}
.container .box img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
}
.container .box span {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.container .box .price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--box-color);
}
.container .box:hover {
  transition: 0.3s;
  box-shadow: 1px 2px 11px 4px var(--menu-color);
}
.container .box .image {
  position: absolute;
  width: 25px;
  height: 25px;
  right: 1rem;
  bottom: 1rem;
  pad: 20px;
  background: var(--box-color);
  border-radius: 0.7rem 0.7rem 0.7rem 0.7rem;
}
.container .box .image:hover {
  background: var(--menu-color);
  transition: 0.3s;
}
.container .box .discount {
  position: absolute;
  top: 1rem;
  left: 0;
  background: var(--menu-color);
  color: var(--bg-color);
  padding: 4px 18px;
  clip-path: polygon(0 0, 100% 0, 83% 51%, 100% 100%, 0 100%, 0% 50%);
}

.categories {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, auto));
  gap: 1rem;
  margin-top: 2rem;
}
.categories-container .box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 0.5rem;
}

.categories-container .box img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  object-position: center;
}

.categories-container .box h2 {
  font-size: 1rem;
  font-weight: 600;
}
.categories-container .box span {
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.categories-container .box:hover {
  transition: 0.3s;
  box-shadow: 1px 2px 11px 4px var(--menu-color);
}

.boxcolor {
  background: var(--box-color);
}
.boxcolor a {
  color: black;
}

.footer {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, auto));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 10px;
  background: var(--box-color);
  border-radius: 0.5rem;
  padding: 20px;
}
.footer-box {
  display: flex;
  flex-direction: column;
}
.footer-box a {
  font-size: 0.938rem;
  color: rgb(0, 0, 0);
}
.footer-box img {
  width: 16px;
  height: 13px;
}

.social {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}
.social img {
  width: 38px;
  height: 38px;
  padding: 10px;
  background: var(--menu-color);
  border-radius: 18px;
}
.social img:hover {
  background: var(--bg-colorBtn);
  color: var(--grid-color);
  transition: all 0.2s linear;
}

.copyright {
  text-align: center;
  padding: 20px;
}


@media screen and (max-width: 978px) {
  header{
    width: 100%;
    height: 100px;
  } 
  .navbar{
    column-gap: 0.2rem;
  }
  
  .navbar a{
    font-size: 15px;
    padding: 0.5rem 1rem;
  } 
  .logo {
    font-size: 1rem;
  }
  .logo img {
    height: 35px;
    color: var(--logo-color);
  }
  
  .categories{
    width: 95%;
    margin-left: 5px;
  }
  .products{
    width: 95%;
    margin-left: 5px;
  }
  .footer {
    width: 100%;
  }

  hr {
    margin-top: 75px;
    margin-bottom: 20px;
    margin-left: 200px;
    margin-right: 200px;
    box-shadow: 1px 2px 11px 4px var(--menu-color);
  }
  .heading{
    width: 100%;
  }
  .copyright {
    width: 100%;
  }
}

@media screen and (max-width: 790px) {
  header{
    width: 100%;
    height: 100px;
  } 
  .navbar{
    column-gap: 0.1rem;
  }
  
  .navbar a{
    font-size: 12px;
    padding: 0.5rem 1rem;
  } 
  .logo {
    font-size: 0.5rem;
  }
  .logo img {
    height: 35px;
    color: var(--logo-color);
  }
  .avatar {
    vertical-align: middle;
    width: 50px;
    height: 35px;
  }
  .categories{
    width: 95%;
    margin-left: 5px;
  }
  .products{
    width: 95%;
    margin-left: 5px;
  }
  .footer {
    width: 100%;
  }
  .footer-box img {
    width: 25px;
    height: 20px;
  }
  .social {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
  }
  .social img {
    width: 38px;
    height: 38px;
    padding: 10px;
    background: var(--menu-color);
    border-radius: 18px;
  }

  hr {
    margin-top: 75px;
    margin-bottom: 20px;
    margin-left: 200px;
    margin-right: 200px;
    box-shadow: 1px 2px 11px 4px var(--menu-color);
  }
  .heading{
    width: 100%;
  }
  .copyright {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .logo {
    font-size: 1rem;
  }
  .navbar {
    display: none;
    list-style: none;
    padding: 0;
    font-size: 20px;
    text-align: center;
    width: 30%;
    height: 300px;
    position: fixed;
    top: 50px;
    right: 0px;
    justify-content: center;
    align-items: center;
    transition: right .5s;
  }
  .navbar.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    background-color: #fff;
    height: 35%;
  }
  .btn-hidden{
    display: none;
  }
  .hamburger-menu {
    width: 30px;
    height: 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 40px;
    right: 40px;
  }
  
  .line {
    width: 100%;
    height: 3px;
    background-color: var(--menu-color);
    transition: all .3s;
  }
  
  .change .line-1 {
    transform: rotate(-45deg) translate(-8px, 5px);
  }
  
  .change .line-2 {
    opacity: 0;
  }
  
  .change .line-3 {
    transform: rotate(45deg) translate(-8px, -4px);
  }
  
  .nav-item{
    margin: 25px;
  }
}

