/* =====================================================================
   Ruby's wish-list gallery (only used by /ruby/wishlist/)
   Same design as the gallery that was embedded on the Google Site.
   Everything is inside .wishlist so it can't affect other pages.
   ===================================================================== */

.wishlist {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #24414f;
}

.wishlist .wrap { max-width: 980px; margin: 0 auto; padding: 16px 12px 20px; }

.wishlist h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #2c6e7f;
  letter-spacing: 0.3px;
}

/* 3 cards per row (2 on phones) */
.wishlist .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 640px) {
  .wishlist .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wishlist h2 { font-size: 22px; }
}

/* one product card */
.wishlist .card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #f3fbf8 0%, #eaf4fb 100%);
  border: 1px solid #cfe6e4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(44, 110, 127, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wishlist .card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(44, 110, 127, 0.18); }

/* square white box for the product picture */
.wishlist .img {
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 8px 8px 0;
  border-radius: 12px;
}
.wishlist .img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.wishlist .info { padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }

.wishlist .name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #24414f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wishlist .detail { font-size: 12px; color: #5c8190; }
.wishlist .price { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 700; color: #2f7d62; }

/* little "Amazon" / "Walmart" label in the corner */
.wishlist .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #bcdcd6;
  color: #2c6e7f;
}
.wishlist .tag.walmart { border-color: #bcd3ec; color: #2f5f96; }
