/* Card */

.card-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* max-width: 320px; */
  /*max-width: 290px;*/
  margin: 0 auto;
  padding: 0 20px;
  border: 1px solid var(--gray600);
  transition: all .4s;
  background: #fff;
}

.card-product:hover {
  border: 1px solid var(--primary-color);
  transition-delay: 300ms;
}

.card-product__wrapper-image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 246px;
  height: 194px;
  background-color: #fff;
}

.card-product__wrapper-image img {
  max-height: 194px;
}

.card-product__tag-promotion {
  position: absolute;
  width: 24%;
  top: 0;
  left: 0;
}

.card-product__wrapper-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-product h3 {
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #000;
}
.card-product h5 {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #000;
    margin-top: 5px;
}
.product-ref {
  margin-top: 6px;
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #000;
}

.buy_together__total_price,
.card-product h4 {
  display: flex;
  margin-top: 12px;
  padding: 0;
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #000;
}
.buy_together__total_price span,
.card-product h4 span {
  margin-top: 14px;
  font-size: clamp(1.2rem, 5vw, 1.4rem);
}
.buy_together__total_price + p,
.card-product h4 + p {
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #000;
}

.card-product__wrapper-button {
  margin: auto auto 16px auto;
}

.--card-button {
  max-height: 44px;
  margin: 16px 0 0 0;
  padding: 10px 24px;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  /* color: var(--primary-color); */
  color: #fff;
  opacity: 1;
  transition: all 0.4s;
}

/* .card-product:hover .--card-button,
.card-product:focus .--card-button {
  margin: 16px auto;
  color: #fff;
  opacity: 1;
  transition: all 0.4s;
} */

.product-description__wrapper-price__discount {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 5vw, 1.2rem);
  color: var(--gray800);
  text-decoration: line-through;
}

.product-description__wrapper-price__mark {
  max-width: max-content;
  padding: 4px 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 5vw, 1.2rem);
  color: #fff;
  background-color: var(--red);
}
nav[role=navigation] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

nav[role=navigation] a, nav[role=navigation] span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5568;
    background: #ffffff;
    border: 1px solid #CBD5E0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

nav[role=navigation] a:hover {
    background: #edf2f7;
    color: #2D3748;
}

nav[role=navigation] a {
    background: var(--support-color);
    color: white;
    border-color: var(--support-color);
}

nav[role=navigation] span {
    color: #A0AEC0;
    background: #E2E8F0;
    cursor: not-allowed;
}

@media (max-width: 768px) {
  /* Card */
  .card-product {
    max-width: 200px;
    margin: unset;
    padding: 12px 12px;
  }

  .card-product:hover {
    border: 1px solid var(--primary-color);
    transition-delay: 0ms;
  }

  .card-product__wrapper-image {
    max-width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .card-product h3 {
    font-size: clamp(1.4rem, 5vw, 1.4rem);
  }

  .product-ref {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
  }

.buy_together__total_price,
  .card-product h4 {
    align-items: center;
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
    .buy_together__total_price span,
  .card-product h4 span {
    margin-top: 0px;
  }

  .--card-button {
    /* display: none; */
    padding: 10px clamp(2px, 3vw, 24px);
    font-size: clamp(1.2rem, 5vw, 1.3rem);
    /* max-height: 0px; */
    transition: all 0.2s !important;
  }

  .card-product:hover .--card-button,
  .card-product:focus .--card-button {
    max-height: 50px;
    transition: all 0.2s !important;
  }
}
