.productImageContainer {
    display: flex;
    justify-content: center;
    width: 130px;
    height: 130px;
}

.productImage {
    display: block;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

#results a {
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
}

body, .product-grid, .product-card {
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.product-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    cursor: pointer;
    height: 340px;
}

.product-image {
    width: 100%;          /* always span full width */
    height: 100%;         /* use full row height (shrinks when row shrinks) */
    object-fit: contain;  /* keep aspect ratio; scales down if row shrinks */
    align-self: start;    /* sit at the very top of its grid row */
}

.product-image.main-image {
    display: block;
}

.product-image.hover-image {
    display: none;
}

@media (any-hover: hover) {
    .product-card:hover .product-image.main-image {
        display: none;
    }
    
    .product-card:hover .product-image.hover-image {
        display: block;
    }
}

.product-meta {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;  /* pins text block to the bottom */
}

.product-name, .product-price {
  width: 100%;
  text-align: right;
}

.product-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.product-price {
    font-weight: 500;
    font-size: 1rem;
}

/* Override price styling for product cards to match single price size */
.product-card .price-before-discount,
.product-card .current-price {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .product-meta {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.5rem;
  }
  .product-name, .product-price {
    text-align: left;
    width: 100%;
  }
  .breadcrumb-search {
    padding-right: 0 !important;
  }
  .breadcrumb {
    padding-right: 16px !important;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
  }
  .breadcrumb-row {
    gap: 0.5rem !important;
  }
}

/* Move this block to the end for higher specificity */
@media (max-width: 600px) {
  .breadcrumb {
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
  }
  .breadcrumb .breadcrumb-search,
  .breadcrumb-row .breadcrumb-search {
    padding-right: 0 !important;
  }
  .breadcrumb {
    margin-right: 16px !important;
  }
}

@media (min-width: 601px) {
  .breadcrumb-search {
    max-width: 220px;
    width: 100%;
    flex: none;
  }
  .breadcrumb-row {
    gap: 0.5rem;
    justify-content: flex-start;
  }
}

.breadcrumb-search .search-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
