/* Reset and base styles */
@import url(general.css);

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

body {
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  background: var(--background-color);
  padding: 10px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: color, transform;
}

a:hover:not(.view-more,
  .category-card__view-btn,
  .view-instore,
  .checkout_link) {
  color: #0000007e;
  transform: translateY(-2px);
}

main {
  width: 100%;
  margin: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
}

.section--spacingNormal {
  padding-top: 50px;
  padding-bottom: 50px;
}

.section--bordered {
  border-top: 1px solid rgba(147, 147, 147, 0.2);
  border-bottom: 1px solid rgba(147, 147, 147, 0.2);
}

.store-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 60px;
  height: 80vh;
  border-radius: 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.5)),
    url("../images/store.png") center/cover no-repeat;
  gap: 40px;
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  will-change: opacity, transform, visibility;
}

.store-hero.animate {
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.store-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tagline {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: opacity, transform;
}

.tagline:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.headline {
  font-size: 48px;
  margin: 20px 0;
  font-weight: 700;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.headline:hover {
  transform: translateY(-2px);
}

.store-hero__sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.cart-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  height: 60%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform, box-shadow;
}

.cart-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart_item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.cart_item:hover {
  transform: translateX(5px);
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('../images/main sneaker.avif') center/cover no-repeat;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.thumb:hover {
  transform: scale(1.1);
}

.check_out_btn {
  height: 45px;
  width: 100%;
  min-width: 190px;
  border-radius: 50px;
  border: none;
  background-color: black;
  color: white;
  font-size: 12px;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  letter-spacing: 1px;
  word-spacing: 1px;
  will-change: transform, background-color;
}

.check_out_btn:hover {
  background-color: #282727;
  transform: scale(1.05);
  cursor: pointer;
}

.store-types-panel {
  flex: 1;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform, box-shadow;
}

.store-types-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.panel-header {
  display: flex;
  justify-content: space-between;
}

.item-list {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.item {
  width: fit-content;
  height: 50px;
  border-radius: 30px;
  background-color: #fff;
  display: flex;
  justify-content: left;
  gap: 10px;
  align-items: center;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  color: black;
  padding-right: 10px;
  will-change: transform, background-color;
}

.item:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
  cursor: pointer;
}

.category-card__types .item {
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.category-card__types .item:hover {
  background-color: #e0e0e0;
  transform: scale(1.02);
}

.item .img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-left: 5px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.item .img:hover {
  transform: scale(1.1);
}

.item__name {
  font-size: 14px;
}

.categories-section {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.category-card {
  flex: 1 1 0;
  cursor: pointer;
  border-radius: 20px;
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--background-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  will-change: opacity, transform, visibility;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card.animate {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.category-card:hover {
  flex: 1 1 55%;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-card__header {
  color: var(--background-color);
}

.category-card__footer {
  width: 100%;
  height: 43px;
  border-radius: 30px;
  background-color: #a39b9b63;
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.category-card__count {
  font-size: 12px;
}

.category-card__view-btn {
  text-transform: uppercase;
  background-color: #fff;
  border: none;
  width: 100px;
  height: 43px;
  border-radius: 30px;
  color: black;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  align-content: center;
  text-align: center;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform, background-color;
}

.category-card__view-btn:hover {
  background-color: #f1eded;
  transform: scale(1.05);
}

.category-card__types {
  display: none;
  flex: 1;
  align-items: center;
  gap: 5px;
}

.category-card:hover .category-card__types {
  display: flex;
}

.category-card__link {
  margin-right: 10px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.category-card__link:hover {
  transform: rotate(10deg);
}

.Grid {
  margin: 0 0 0 -24px;
  font-size: 0;
}

.Grid__Cell {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  vertical-align: top;
}

@media screen and (max-width: 640px) {
  .Grid__Cell {
    width: 50%;
  }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
  .Grid__Cell {
    width: 50%;
  }
}

@media screen and (min-width: 1008px) {
  .Grid__Cell {
    width: 25%;
  }
}

.product-list-wrapper {
  position: relative;
}

.product-list--grid {
  display: flex;
  flex-wrap: wrap;
}

.product-list--removeMargin {
  margin-left: 0;
}

.product-card {
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  will-change: opacity, transform, visibility;
}

.product-card.animate {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 10px 10px 20px rgba(192, 184, 176, 0.8);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  cursor: pointer;
  will-change: transform, box-shadow;
}

.product-card__wrapper {
  position: relative;
}

.product-card__image-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.product-card__image-wrapper:hover {
  transform: scale(1.02);
}

.AspectRatio {
  position: relative;
  display: block;
  width: 100%;
}

.AspectRatio--withFallback {
  padding-bottom: 125%;
}

.product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.product-card__image:hover {
  transform: scale(1.05);
}

.product-card__info {
  text-align: left;
  margin: 10px 0 0;
  text-transform: capitalize;
}

.product-card__title {
  font-weight: 400;
  font-style: normal;
  color: #5096e3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 5px;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: color;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__title a:not(.view-more) {
  color: #1f242d;
  font-size: 16px;
  font-weight: 300;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: color;
}

.product-card__title a:hover:not(.view-more) {
  color: #5096e3;
}

.product-card__type {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.product-card__price-list {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-card__price {
  font-weight: 100;
  color: #1f242d;
}

.price--highlight {
  color: green;
}

.price--compare {
  color: #939393;
  text-decoration: line-through;
  font-size: 13.5px;
}

.discount {
  color: green;
  font-size: 14px;
  margin-top: 5px;
}

.new-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #5096e3;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform;
}

.new-label:hover {
  transform: scale(1.1);
}

.view-more {
  color: #f7f7f7;
  background-color: var(--third-color);
  padding: 14px 15px;
  border: none;
  outline: none;
  cursor: pointer;
  margin: auto 45%;
  text-align: center;
  width: 10%;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  will-change: opacity, transform, visibility;
}

.view-more.animate {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.view-more:hover {
  background-color: black;
  transform: scale(1.05);
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.05s;
  will-change: transform, background-color;
}

.separator {
  width: 60%;
  height: 1px;
  background-color: var(--secondary-text-color);
  margin: 50px 20%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
  }

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

@keyframes heroFadeUp {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }

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

@media (max-width: 950px) {
  .check_out_btn {
    max-width: unset;
  }
}

@media (max-width: 720px) {
  .store-hero {
    padding: 25px;
    flex-direction: column;
    height: unset;
  }

  .categories-section {
    flex-wrap: wrap;
  }

  .category-card {
    flex: 1 1 40%;
  }

  .category-card:hover {
    flex: 1 1 40%;
    transform: scale(1);
  }

  .product-card__image-wrapper {
    height: 280px;
  }

  .view-more {
    width: 30%;
    margin: auto 35%;
  }
}