@media (min-width: 768px) {
  :root {
    --card-width: 300px;
    --card-height: 430px;
    --image-height: 300px;
    --border-color: #ccc;
    --card-gap: 20px;
  }

  .product-card-grid,
  .product-listing-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
    padding: 10px;
    justify-items: center;
  }

  .product-card {
    background: transparent !important;
    width: var(--card-width) !important;
    height: var(--card-height) !important;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-shadow: none !important;
  }

  .product-card-image-container {
    width: 100%;
    height: var(--image-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .product-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    display: block;
  }

  .product-card-info {
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
    flex-grow: 1;
  }

  /* Wishlist icon styling */
  .product-card .wishlist-button,
  .product-card .wishlist-icon,
  .product-card .wishlist-heart {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: white;
    border-radius: 50%;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
  }

  .product-card .wishlist-button:hover {
    transform: scale(1.1);
  }

  .product-card-info h2,
  .product-card-info .product-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Remove background fill from image containers across all views */
.main-image-wrapper,
.image-gallery,
.image-gallery-slide,
.swiper,
.swiper-slide,
.product-image-area,
.image-gallery-content,
.image-gallery-slide img {
  background: transparent !important;
  background-color: transparent !important;
}
