@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-5deg);
  }
  75% {
    transform: translateX(3px) rotate(5deg);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cart__icon-delete, .cart__title, .banner__subtitle, .banner__title, .banner, .header__icon-menu, .header__icon-cart {
  width: 100%;
}

body {
  width: 100%;
  color: rgb(29, 29, 29);
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  font-family: "Lexend", Arial, Helvetica, sans-serif;
}

img {
  width: 100px;
}

.header {
  width: 100%;
  padding: 20px 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
}
.header__icon {
  width: 35px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: transform 200ms ease-in-out;
}
@media (hover: hover) {
  .header__icon:hover {
    transform: scale(1.15);
  }
}
.header__icon:active {
  transform: scale(0.95);
}
.header__icon-menu, .header__icon-cart {
  transition: transform 200ms ease-in-out;
}
@media (hover: hover) {
  .header__icon-menu:hover {
    animation: shake 0.4s ease-in-out;
  }
}
@media (hover: hover) {
  .header__icon-cart:hover {
    animation: bounce 0.4s ease-in-out;
  }
}
.header .badge {
  width: 18px;
  height: 18px;
  position: absolute;
  right: -5px;
  bottom: 10px;
  border-radius: 50%;
  background-color: #ff0000;
  text-align: center;
  font-weight: 600;
  font-style: normal;
  color: #fff;
  display: none;
  animation: pulse 1.5s infinite;
  transition: transform 200ms ease-in-out, background-color 200ms ease-in-out;
}
@media (hover: hover) {
  .header .badge:hover {
    background-color: #cc0000;
    transform: scale(1.2);
  }
}
.header .nav {
  width: 300px;
  height: 100%;
  position: absolute;
  top: 0;
  left: -500px;
  text-align: center;
  background-color: #fff;
  transition: left 300ms ease-in-out;
  z-index: 20;
}
.header .nav__show {
  left: 0;
}
.header .nav__icon-close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}
@media (hover: hover) {
  .header .nav__icon-close:hover {
    transform: rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
}
.header .nav__icon-close:active {
  transform: rotate(90deg) scale(0.9);
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  text-align: center;
  background-image: url("../img/Adidas-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.banner__container {
  max-width: 80%;
  background-color: rgba(29, 29, 29, 0.75);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px 5px rgba(225, 225, 225, 0.3);
}
.banner__title {
  font-weight: 600;
  font-size: 30px;
  margin: 10px;
  color: #fff;
  font-family: "Montagu Slab", serif;
}
.banner__subtitle {
  margin: 0 auto;
  font-size: 25px;
  opacity: 0.7;
  color: #fff;
}

.products {
  width: 80%;
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.products article {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.products__container {
  width: 200px;
  height: 350px;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background-color: rgb(51, 51, 51);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 300ms ease-in-out, background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
  animation: fadeInUp 0.5s ease-out;
}
@media (hover: hover) {
  .products__container:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: rgba(51, 51, 51, 0.75);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }
}
.products__image {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
}
.products__name {
  width: 90%;
  font-weight: 500;
  font-size: 17px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.products__price {
  font-weight: 300;
  font-size: 15px;
}
.products__icon-add {
  width: 30px;
}
.products__button {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 200ms ease-in-out, background-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
  position: relative;
  overflow: hidden;
}
.products__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(51, 51, 51, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 300ms ease-in-out, height 300ms ease-in-out;
}
@media (hover: hover) {
  .products__button:hover {
    transform: scale(1.15) rotate(90deg);
    background-color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  .products__button:hover::before {
    width: 100%;
    height: 100%;
  }
}
.products__button:active {
  transform: scale(0.95);
  background-color: #e0e0e0;
}

.cart {
  width: 500px;
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
  padding: 25px;
  box-sizing: border-box;
  position: fixed;
  right: -500px;
  top: 0;
  box-shadow: -19px -1px 22px -15px rgba(0, 0, 0, 0.3);
  transition: right 300ms ease-in-out;
}
.cart__show {
  right: 0;
}
.cart__icon-close {
  width: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
}
.cart__title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  padding: 25px 0;
  box-sizing: border-box;
}
.cart__product {
  border-bottom: 1px solid rgb(51, 51, 51);
  padding: 15px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 3fr 1fr auto;
  align-items: center;
  gap: 1rem;
}
.cart__product-image {
  width: 60px;
}
.cart__product-price {
  font-weight: 500;
}
.cart__icon {
  width: 25px;
  cursor: pointer;
  transition: transform 200ms ease-in-out;
}
.cart__icon-delete {
  transition: transform 200ms ease-in-out, filter 200ms ease-in-out;
}
@media (hover: hover) {
  .cart__icon-delete:hover {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(5);
  }
}
.cart__icon-delete:active {
  transform: scale(0.9);
}
.cart__icon-close {
  transition: transform 200ms ease-in-out;
}
@media (hover: hover) {
  .cart__icon-close:hover {
    transform: rotate(90deg) scale(1.1);
  }
}

.scroll-top-btn {
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  font-weight: bold;
  position: fixed;
  left: 3rem;
  bottom: 3rem;
  z-index: 10;
  color: #fff;
  background-color: rgb(51, 51, 51);
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
@media (hover: hover) {
  .scroll-top-btn:hover {
    color: rgb(51, 51, 51);
    background-color: #fff;
    border-color: rgb(51, 51, 51);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: bounce 0.6s ease-in-out;
  }
}
.scroll-top-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 300ms ease-in-out;
}

.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header {
    padding: 15px;
  }
  .header__icon {
    width: 30px;
  }
  .header__logo {
    width: 60px;
  }
  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .products__image {
    width: 150px;
  }
  .cart {
    width: 400px;
  }
}
@media (max-width: 480px) {
  .banner {
    padding: 30px 0;
  }
  .banner__title {
    font-size: 18px;
  }
  .banner__subtitle {
    font-size: 16px;
  }
  .products {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .products__image {
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
  }
  .products__name, .products__price {
    padding: 0 10px;
  }
  .cart {
    width: 100%;
    box-shadow: none;
  }
  .cart p {
    margin: 0;
  }
  .cart__title {
    padding: 15px 0;
  }
  .cart__product {
    flex-direction: column;
    align-items: center;
  }
  .cart__product-image {
    width: 100px;
  }
}

/*# sourceMappingURL=style.css.map */
