@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 !important; /* anchor for absolute children */
    overflow: hidden !important;   /* cut off overflow */
    box-shadow: none !important;
    z-index: 1 !important;
  }

  .product-card-image-container {
    width: 100%;
    height: var(--image-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .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;
  }

  /* Strict scoped icon fix */
  .product-card .wishlist-button,
  .product-card .wishlist-icon,
  .product-card .wishlist-heart {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: white !important;
    border-radius: 50% !important;
    padding: 6px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
    overflow: hidden;
    pointer-events: auto !important;
  }

  .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;
  }
}
@media (min-width: 1024px) {
  /* Ensure the global viewable area covers full viewport width */
  html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  /* Override typical Shoopy container wrappers */
  .sh-container,
  .sh-wrapper,
  .main-content,
  .product-listing-container,
  .collection-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* If theme uses specific layout classes */
  [class*="container"],
  [class*="wrapper"],
  [class*="content"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Reset internal grid or padding wrappers */
  .content-inner,
  .page-inner,
  .grid-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
