.view-product-btn {
  width: 100%;
  padding: 4px 0px;
  background-color: var(--black-color1);
  transition: background-color 0.2s;
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
}

.stock-badge {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 6px;
  right: 6px;
  background-color: var(--yellow-color1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: black;
  padding: 6px 7.5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
}

.stock-badge.out-of-stock-badge {
  width: auto;
  height: 28px;
  background-color: var(--secondary-red);
  background-image: var(--secondary-red-gradient);
  color: white;
  padding: 0 10px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
}
.product-table-item {
  border-radius: 12px;
  border: 1px solid var(--neutral-300);
  background-color: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 300px;
  display: flex;
  flex-direction: column;
}

.product-image-container a,
.product-card-content a,
.view-product-btn {
  cursor: pointer;
}

.product-table-item {
  cursor: default;
}
.favorite-icon .heart-outline {
  opacity: 1;
}
.favorite-icon .heart-fill {
  opacity: 0;
}

.favorite-icon.is-favorite .heart-outline {
  opacity: 0;
}
.favorite-icon.is-favorite .heart-fill {
  opacity: 1;
}
.favorite-icon.is-favorite .heart-fill path {
  fill: white !important;
}

.favorite-icon:hover .heart-outline {
  opacity: 0;
}
.favorite-icon:hover .heart-fill {
  opacity: 1;
}
.favorite-icon:hover .heart-fill path {
  fill: white !important;
}

.favorite-icon.is-favorite:hover .heart-outline {
  opacity: 0;
}
.favorite-icon.is-favorite:hover .heart-fill {
  opacity: 1;
}

.skeleton-container {
  position: relative;
  overflow: hidden;
}

.skeleton-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px 8px 0 0;
  z-index: 1;
  pointer-events: none;
}

.skeleton-container .product-image-loading {
  opacity: 0 !important;
  transition: opacity 0.4s ease-in;
}

.product-image-container:not(.skeleton-container) .product-image-loading {
  opacity: 1 !important;
}


@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-card-content {
  padding: 12px;
}
@media (max-width: 575.98px) {
  .product-table-item {
    border-radius: 10px;
  }

  .product-card-content {
    padding: 10px;
  }

  .favorite-icon {
    width: 36px;
    height: 36px;
    padding: 5px;
  }

  .product-table-item .guarantee-badge {
    font-size: 9px;
    min-width: 56px;
    padding: 3px 6px;
    right: 8px;
  }

  .view-product-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Medium devices */
@media (min-width: 576px) and (max-width: 991.98px) {
  .product-card-content {
    padding: 12px;
  }

  .favorite-icon {
    width: 34px;
    height: 34px;
  }

  .product-table-item .guarantee-badge {
    font-size: 10px;
    min-width: 60px;
  }

  .view-product-btn {
    padding: 9px 12px;
    font-size: 15px;
  }
}

/* Large devices */
@media (min-width: 992px) {
  .product-card-content {
    padding: 12px;
  }

  .favorite-icon {
    width: 32px;
    height: 32px;
  }
}
