.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 34px 22px 17px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-card__logo {
  display: flex;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  max-height: 47px;
  min-height: 47px;
}

.product-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card .product-info {
  padding-top: 10px;
}

.product-card__title {
  font-size: 20px;
  font-weight: bold;
  color: #004E90;
  margin: 0;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-bottom: 14px;
  word-break: break-word;
  border-bottom: 1px solid #e5e7eb;
  min-height: 85px;
  cursor: default;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}



.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 160px;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.product-card__detail {
  display: flex;
  gap: 4px;
  font-size: 18px;
  color: #545659;
  flex-wrap: wrap;
  cursor: default;
}

.product-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.product-card__type-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.product-card__pricing {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 72px;
}

.product-card__price {
  display: flex;
  gap: 4px;
  font-size: 18px;
  color: #004E90;
  flex-wrap: wrap;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.product-card__price .product-card__label {
  font-weight: bold;
}

.product-card__amount {
  flex: 1;
  cursor: default;
}

.product-card__assay {
  display: flex;
  gap: 8px;
  font-size: 16px;
  color: #8CAD06;
  text-transform: uppercase;
  min-height: 48px;
}

.product-card__assay-icon {
  flex-shrink: 0;
}

.product-card__assay-icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-card__assay-text {
  font-weight: 500;
  line-height: 1;
}

.product-card__btn {
  width: 100%;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.product-card__btn:hover {
  background: #1d4ed8;
}

.product-card__btn:active {
  transform: scale(0.98);
}

.product-card-grid {
  display: grid;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 30px;
}



.pager__items {
  clear: both;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 22px;
  display: block;
  text-align: right;
}

.pager__item {
  display: inline-flex;
  padding: 0.1em 0.4em 0.5em;
  background-color: #DADEE0;
  margin-right: 4px;
  color: #545659;
  text-align: center;
  font-size: 18px;

}

.pager__item.is-active {
  font-weight: bold;
  background-color: #8CAD06;
  color: #fff;
}

.pager__item:hover {
  background-color: #8CAD06;
  color: #fff;

}

.pager__item a {
  height: 20px;
  padding: 0 3px;
}

.pager__item--last a {
  width: auto;

}

.pager__item--ellipsis {
  height: 30px;
}

@media (min-width: 1085px) {
  .product-card-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1084px) {
  .product-card__title {
    font-size: 18px;
    min-height: 60px;
  }
}

@media (max-width: 1279px) {
  .product-card-grid {
    padding: 0 20px;
  }

  .pager__items {
    padding-right: 20px;
  }
}

@media (min-width: 790px) and (max-width: 1084px) {
  .view-pro-qcp-modules .product-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    justify-content: center;
  }

  .view-product-search .product-card-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
    padding: 16px 20px;
  }

  .view-product-search .ads-section {
    grid-column: 1/-1;
  }


  .view-product-search .product-card-grid .product-card {
    width: 100%;
    padding: 24px 18px 14px;
  }

  .view-pro-qcp-modules .product-card {
    width: 32%;
    padding: 24px 18px 14px;
  }

  .product-card__title {
    font-size: 18px;
    min-height: 60px;
  }

  .product-card__info {
    min-height: 120px;
  }

  .product-card__detail,
  .product-card__price {
    font-size: 16px;
  }

  .product-card__assay {
    font-size: 14px;
  }

  .pager__items {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;

  }
}

@media (max-width: 767px) {
  .pager__items {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;

  }

}

@media (min-width: 790px) and (max-width: 840px) {
  .view-pro-qcp-modules .product-card {
    width: 31.9% !important;
  }

  .view-product-search .product-card {
    width: 100% !important;
  }
}


@media (min-width: 540px) and (max-width: 789px) {
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    padding: 16px 20px;
  }
}

@media (max-width: 539px) {
  .product-card-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 12px;
    padding: 12px 20px;
  }

  .product-card {
    max-width: 100%;
    padding: 16px 12px 12px;
  }

  .product-card__title {
    font-size: 18px;
    min-height: auto;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .product-card__info {
    min-height: auto;
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 3px;
  }

  .product-card__detail,
  .product-card__price {
    font-size: 18px;
  }

  .product-card__pricing {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .product-card__assay {
    font-size: 16px;
    padding: 8px;
    margin-bottom: 12px;
    min-height: unset;
  }

  .product-card__btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .pager__item {
    font-size: 16px;
    padding: 0.2em 0.4em 0.5em;
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .product-card-grid {
    grid-template-columns: 1fr !important;
  }

  .product-card {
    padding: 20px 16px 14px;
  }

  .product-card__title {
    font-size: 18px;
  }

  .product-card__detail,
  .product-card__price {
    font-size: 18px;
  }

  .pager__item {
    font-size: 16px;
    padding: 0.2em 0.4em 0.5em;
    margin-top: 8px;
  }
}