@import url("./colors.css");

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
  gap: 1.2rem;
  justify-content: center;
}

.card {
  background: transparent;
  border: none;
}

.card p {
  color: var(--color-secondary);
  text-align: justify;
}

/* Card choose */

.card-choose {
  position: relative;
  max-width: 222px;
  border-radius: 15px;
  overflow: hidden;
}

.card-choose:hover .card-choose-body .overlay {
  backdrop-filter: blur(0px);
  background: rgba(255, 102, 0, 0);
  transition: all 300ms linear 0s;
}

.card-choose .card-choose-body {
  display: flex;
  position: relative;
}

.card-choose .card-choose-body .overlay {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(97, 63, 46, 0.5);
  backdrop-filter: blur(2px);
  transition: all 300ms linear 0s;
}

.card-choose .card-choose-info {
  z-index: 10;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.4s;
}

.container-top {
  display: flex;
  align-items: flex-end;
  height: 60%;
  transition: all 0.4s;
}

.container-bottom {
  height: 40%;
  transition: all 0.4s;
}

.card-choose .card-choose-info:hover p {
  font-size: 20px;
  transition: all 0.4s;
}

.card-choose .card-choose-info:hover .container-bottom {
  height: 60%;
  transition: all 0.4s;
}

.card-choose .card-choose-info img {
  transition: all 0.4s;
}

.card-choose .card-choose-info:hover img {
  top: 0;
  margin-top: -100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.card-choose .card-choose-info img {
  max-width: 100px;
  max-height: 100px;
  margin-bottom: 20px;
}

/* Card highlight */

.card-highlights {
  position: relative;
  max-width: 280px;
  min-width: 280px;
  min-height: 370px;
  max-height: 370px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.card-highlights .card-highlights-img {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex: 1 1 auto;
}

.card-highlights .card-highlights-img img {
  max-height: 250px;
  min-height: 250px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.card-highlights .card-highlights-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-highlights .card-highlights-body .card-highlights-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.card-highlights
  .card-highlights-body
  .card-highlights-info
  .card-hightlights-title {
  min-height: 50px;
  text-align: center;
}

.card-highlights .product-action {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  top: 40%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.card-highlights .product-action .action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary);
  background-color: var(--color-white);
  border-radius: 5px !important;
  transition: all 0.4s;
}

.card-highlights .product-action .action-btn:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
  transition: all 0.4s;
}

.card-highlights:hover .product-action {
  opacity: 1;
  visibility: visible;
  transition: all 0.4s ease-in-out;
}

/* Card Brands */

.card-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 100px;
  padding: 10px;
}

.card-brands img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Releases */

.card-releases {
  position: relative;
  width: 100%;
  min-height: 450px;
  max-height: 450px;
  max-width: 320px;
  border-radius: 15px;
  overflow: hidden;
}

.card-releases .card-releases-body .card-releases-info {
  z-index: 1;
  position: absolute;
  bottom: 40px;
  left: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 50px;
}

.card-releases .card-releases-body .card-releases-info p {
  color: var(--color-white);
  font-size: clamp(16px, 3vw, 24px);
  font-family: "benguiat";
  padding: 5px;
  text-align: center !important;
}

.card-releases .card-releases-body img {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
}

.card-releases:hover .card-releases-body .card-releases-img img {
  transform: scale(1.1);
  transition: transform 0.4s ease-in-out;
}

@media (max-width: 551px) {
  .card-releases {
    min-height: 320px;
  }

  .card-choose {
    max-width: 100%;
  }

  .card-highlights .card-highlights-body .card-highlights-info p {
    text-align: center !important;
  }
}

@media (max-width: 320px) {
  .card-releases {
    min-height: 380px;
  }
}
