/* Grid container */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product card styling */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-align: center;
    border-bottom: 1px solid #ddd;
    height: 100%;
}

.product-desc a,
.product-image a {
    font-weight: 300;
    color: #555;
    text-decoration: none;
}

.product-desc a:hover,
.product-image a:hover {
    text-decoration: none;
    transform: scale(1.1);
    transition: transform 0.2s ease, color 0.3s ease;    
}

/* Product title */
.product-title {
    min-height: 3.7rem;
    font-weight: 100;
    margin-top: 0rem;
    text-align: left;
    font-size: 1.4rem;
    letter-spacing: -0.02rem;
    overflow: hidden;
    padding-right: 0.3rem;
    color: transform: scale(1.05);
}

.product-title a {
    display: inline-block; /* needed for transform to work properly */
    transform-origin: left center; /* so it grows from the left, not centre */
    transition: transform 1s ease, color 1s ease;
    font-weight: 300;
    color: #999;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-title a:hover {
        transform: scale(1.02);
        color: #1EAEDB;
    }
}


.colour-strip {
  height: 1rem;
  width: 100%;
  margin: 0rem 0; /* spacing above and below the strip */
}

.colour-strip-2 {
    background-color: #F2D3AD;
  height: 1rem;
  width: 100%;
  margin: 0rem 0; /* spacing above and below the strip */
}

/* Image area */
.product-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease;
}
.product-image img:hover {
  transform: scale(1.05);
}

/* Description */
.product-desc {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Buy area */
.product-buy {
  display: flex;
  flex-direction: column;
  align-items: center;
    padding-bottom: 1rem;
}
.product-buy button {
  background-color: #0070ba;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
}
.product-buy button:hover {
  background-color: #005c99;
}
.paypal-logo {
  margin-top: 0.9rem;
    margin-bottom: 0.5rem;
  max-height: 20px;
}

/* Responsive tweak for smaller devices */
@media (max-width: 480px) {
  .product-title {
    font-size: 1.1rem;
  }
}

.paypal-btn {
    width: 240px; /* smaller than the actual file to improve sharpness */
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .paypal-btn:hover {
        transform: scale(1.1);
    }
}
