body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.cards-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.product {
  flex: 1 1 400px;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 20px;
  box-sizing: border-box;
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  background: #eee;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  width: 100%;
  justify-content: center;
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb:hover {
  opacity: 1;
}

.thumb.active {
  opacity: 1;
  border-color: goldenrod;
}

.product-info {
  margin-top: 20px;
  text-align: center;
}

.product-info h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.product-info .subtitle {
  font-weight: normal;
  font-size: 1rem;
  color: #666;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 18px;
}

.price .shipping {
  display: block;
  font-size: 0.85rem;
  font-weight: normal;
  color: #2a8a4a;
  margin-top: 4px;
}

.buy-button {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.buy-button:hover {
  background: goldenrod;
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.88);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: lightgray;
  font-size: 32px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cards-page {
    gap: 30px;
    padding: 30px 16px;
  }
  .product {
    max-width: 100%;
  }
}
