/* Explore page: 3-column grid layout matching featured page */

/* Container query for product card widths */
.explore-page .featured-section .products-grid {
  container-type: inline-size;
}

/* Full-bleed sections (edge-to-edge with small gutters) */
.explore-page .featured-section .container {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 8px;
  padding-right: 8px;
}

@media (min-width: 900px) {
  .explore-page .featured-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Explore grid: 3-up grid, no sideways scroll */
.explore-page .products-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 2px;
  row-gap: 12px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
  margin-top: 12px;
  margin-bottom: 12px;
}

.explore-page .products-grid .product-card {
  width: 100%;
  min-width: 0;
}

/* Product card metadata styling */
.explore-page .products-grid .product-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

/* Mobile: 2 columns for better readability */
@media (max-width: 768px) {
  .explore-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 520px) {
  .explore-page .products-grid .product-card {
    flex-basis: 41%;
  }

  /* Switch to 2 columns on small widths */
  .explore-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

