.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.buy-button,
.buy-now {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.buy-now {
  background: var(--neon-blue);
  color: var(--color-text);
  order: -1;
}

.buy-button {
  background: var(--electric-purple);
  color: var(--color-white);
}

.featured-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--space-black);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  will-change: transform;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 260px;
  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  padding-top: 100%;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--neon-blue);
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
  z-index: 1;
}

.product-image.loaded .image-placeholder {
  opacity: 0;
  pointer-events: none;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  /* opacity: 0; */
  opacity: 1;
  z-index: 2;
}

.product-image img.loaded {
  opacity: 1;
}

.product-image img.fallback-image {
  object-fit: contain;
  padding: 1rem;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.product-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: transparent;
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-purple));
  background-clip: text;
}

.product-details p {
  flex: 1;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.price-per-weight {
  font-size: 0.85rem;
  color: #eeecff;
  cursor: pointer;
  text-decoration: none;
}
.price-per-weight:hover{
  color: var(--neon-blue);
}

.price {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

.buy-button:hover,
.buy-now:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buy-button:active,
.buy-now:active {
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .featured-grid,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .featured-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .featured-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    max-width: 100%;
  }
}