@import url("https://fonts.googleapis.com/css2?family=Playwrite+AU+QLD:wght@100..400&display=swap");

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

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

a {
  text-decoration-line: none;
}
.nav-menu {
  height: 4.5rem;
  padding: 1rem 7.5%;
  transition: box-shadow 0.3s ease;
  z-index: 100;
}
.navbar-shadow {
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
}
.nav-respo {
  display: flex;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.menus {
  padding: 0;
  margin: 0;
}
.menus a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 10px;
  &:hover {
    background-color: #054997;
    color: #fff;
  }
}

.user-profile {
  line-height: 1.5;
  color: #000;
  margin-top: 0.4rem;
  &:hover {
    background-color: #054997;
    color: #fff;
  }
}

.fa-user {
  font-size: 1.2rem;
}

.search-bar {
  border: 1px solid #ccc;
  outline-color: #f44336;
  &:hover {
    border-color: #054997;
  }
}

.search-icon {
  display: none;
  font-size: 1.5rem;
}

.searchImg {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

.showItem {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem;
  border-radius: 0 1rem;
  height: 40vh;
  position: absolute;
  background-color: #f5f5f5;
  top: 4.5rem;
  right: 7.5%;
  min-width: 316px;
  overflow-y: scroll;
  box-shadow: -1px 1px 2px #050505;
}

.cart-icon {
  font-size: 1.5rem;
  background-color: #fff;
}

.counter {
  top: -8px;
  right: -8px;
  font-size: 0.75rem;
  padding: 2px 6px;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
}
/* 
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.overlay.active {
  display: block;
} */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: zoom 6s ease-in-out infinite;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  color: white;
}

.shop-btn {
  background-color: red;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
}

.shop-btn:hover {
  background-color: #ff6f61;
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

.products-section,
.feature-section {
  width: 100%;
  padding-inline: 7.5%;
}

.item {
  /* background-color: rgba(189, 189, 189, 0.116); */
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  animation: doup 1.5s forwards;
  opacity: 0.8;

  &:hover {
    transition: all 0.5s ease-in-out;
    transform: scale(0.95);
    opacity: 1;
  }
}
@keyframes doup {
  0% {
    bottom: -100px;
  }
  100% {
    bottom: 0;
  }
}

.image-cartBtn {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 1rem;
  transition: transform 0.5s ease-in-out;
  &:hover {
    transform: scale(1.05);
  }
}

.cart-btn {
  border: none;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  color: white;
  background-color: red;
  overflow: hidden;
  transition: color 0.5s ease;
  &:hover {
    transition: all 0.5s ease-in-out;
  }
}
.cart-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: #054997;
  border-radius: 1rem;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: 0;
}

.cart-btn:hover::before {
  width: 100%;
  height: 100%;
}

.cart-btn span {
  position: relative;
  z-index: 1;
}

footer {
  width: 100%;
  padding-inline: 7.5%;
}

.avatars {
  margin-left: -0.5rem;
}

.avatar-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #fff;
  margin-left: -10px;
  transition: transform 0.3s ease;
}

.avatar-img:hover {
  transform: scale(1.1);
  z-index: 1;
}

.avatar-img:first-child {
  margin-left: 0;
}

@media (max-width: 1024px) {
  .cart-btn {
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-respo {
    display: none;
  }
  .nav-respo.open {
    display: flex;
    flex-direction: column-reverse;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
  }
  .menus {
    flex-direction: column;
    padding-block: 1rem;
  }
  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 580px) {
  #itemShow {
    grid-template-columns: auto;
  }
  .nav-menu {
    height: 4rem;
    padding-block: 0.5rem;
  }
  .nav-respo {
    top: 4rem;
  }

  .search-item {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    justify-content: center;
  }
  .search-bar {
    width: 70%;
    padding-left: 15px;
  }

  .search-item.open {
    display: flex;
  }

  .search-icon {
    display: block;
  }
  .showItem {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    top: 2.5rem;
    right: auto;
    box-shadow: 0 1px 2px #050505;
  }
}
