@import url("/styles/_utlils.css");
@import url("/styles/_fonts.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "yekan";
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}

.hero-section {
  width: 100vw;
  height: 80vh;
  background-image: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.8)
    ),
    url("../assets/images/header.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 2rem 10rem 2rem;
}

#header {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
}
.header__login-button {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.8rem;
  background-color: #ce87ce;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}
.header__login-button:hover {
  background-color: #f8f8f8;
  border: 1px solid #000;
}
.header__login-button img {
  width: 1rem;
  height: 1rem;
}

#cart {
  position: relative;
}
#cart img {
  width: 2rem;
  height: 2rem;
}
#cart_badge {
  text-align: center;
  font-size: 0.8rem;
  background-color: #000;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #fff;
  position: absolute;
  right: -1rem;
  top: -0.5rem;
}

#logout-button {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.8rem;
  background-color: #ff8585;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
#logout-button:hover {
  background-color: #ff4848;
  color: #fff;
}
#logout-button img {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-section-content {
  color: #fff;
}

.see-products-arrow {
  width: 3rem;
  height: 3rem;
  animation: sliding 1s ease-in-out infinite alternate;
}

@keyframes sliding {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
}

.product-grid-item {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 2px solid #d8d8d8;
  transition: all 0.25s ease-in-out;
}
.product-grid-item img {
  border-radius: 0.5rem;
}
.product-grid-item:hover {
  border: 2px solid #bb5eb6;
}

.product-to-cart-section button {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.75rem;
  background-color: #bb5eb6;
  color: #fff;
  transition: all 0.25s ease-in-out;
}

.product-to-cart-section button:hover {
  background-color: #e4e4e4;
  color: #000;
}


.footer {
  background: linear-gradient(
    45deg,
    rgba(91, 91, 91, 0.767),
    #c740b5c8
  );
  width: 100vw;
  color: #fff;
}


.up-arrow-button {
  display: flex;
  background-color: #fff;
  border-radius: 0.75rem;
  width: 2.5rem;
  transition: all 0.25s ease-in-out;
}
.up-arrow-button:hover {
  background-color: #f4f4f4;
}
.up-arrow-button img {
  width: 100%;
  height: 100%;
}

/* login */
.login-form-container {
  background: linear-gradient(
    45deg,
    rgba(91, 91, 91, 0.767),
    #c740b5c8
  );
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#login-form {
  width: 30%;
}
#login-form label {
  color: #fff;
  margin: 0.5rem 0;
}
#login-form input {
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 2px solid transparent;
  outline: none;
}
#login-form input:focus {
  border: 2px solid #000;
}
#hide-password {
  width: 2rem;
  cursor: pointer;
}
#login-form-button {
  background-color: #000;
  color: #fff;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
}
/* login */

/* cart */
.cart-container {
  background: linear-gradient(
    45deg,
    rgba(226, 226, 226, 0.767),
    #c740b5c8
 
  );
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
#cart_items-container {
  height: 15rem;
  overflow-y: scroll;
  border: 2px solid #00000087;
  width: 70%;
  background-color: #f3f3f3;
  border-radius: 0.5rem;
}
.cart-item img {
  width: 7rem;
  height: 7rem;
  border-radius: 0.5rem;
  border: 2px solid #dedede;
}
.cart-item button {
  background-color: #fff;
  border: 2px solid red;
  color: red;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.cart-item button:hover {
  background-color: red;
  color: #fff;
}
/* cart */
