.wc-random-products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wc-random-product {
  transition: all 0.3s ease;
}

.wc-random-product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.wc-random-product-image {
  position: relative;
  overflow: hidden;
}

.wc-random-product-details {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffffe0;
  transition: all 0.3s ease;
  padding: 20px;
  text-align: center;
  font-family: 'Antonio', sans-serif;
}

.wc-random-product-image:hover > .wc-random-product-details {
  display: flex;
}

.wc-random-product-details h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.wc-random-product-details .price {
  color: var(--e-global-color-e5fe979);
  font-weight: bold;
  margin: 10px 0;
}

.wc-random-product-details .button {
  display: inline-block;
  background: var(--e-global-color-e5fe979);
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 3px;
}

.wc-random-product-details .button:hover {
  background: black;
  color: white;
}

@media (max-width: 768px) {
  .wc-random-products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .wc-random-products-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}
