/* Only keep unique product-specific styles here. All header, footer, navigation, loader, back button, search, and global variables have been removed to avoid repetition with style.css. */

/* Product Box and Page Layout */
.product-box {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding: 2.5rem 2rem 2rem 2rem;
  background-color: var(--container-bg);
  border-radius: 15px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 1.5rem 0 0 0;
  align-items: flex-start;
}

.product-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s;
  object-fit: contain;
  aspect-ratio: 1;
  cursor: pointer;
}

.product-image img:hover {
  transform: scale(1.03);
}

.product-details {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* Wishlist Button */
.wishlist-btn {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 2px 8px rgba(255,79,147,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  color: #fff;
  background: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.wishlist-btn i {
  font-size: 1.2rem;
}
.wishlist-btn:hover {
  background: #e73c83;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* WhatsApp Button (inline, not floating) */
.whatsapp-btn {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 2px 8px rgba(37,211,102,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  color: #fff;
  background: var(--secondary-color);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.whatsapp-btn i {
  font-size: 1.2rem;
}
.whatsapp-btn:hover {
  background: #1ebe5f;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* Related Products Section */
.related-products {
  max-width: 1200px;
  margin: 3.5rem auto 0 auto;
  padding: 2rem 1rem 1.5rem 1rem;
  background-color: var(--container-bg);
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
}
.related-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-color);
  position: relative;
  letter-spacing: -0.3px;
}
.related-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.7rem auto 0 auto;
  border-radius: 3px;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  padding: 1rem 0;
}
.related-cards .card {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* square container */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background-color: var(--light-gray);
  transition: transform 0.3s, box-shadow 0.3s;
}
.related-cards .card img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 80%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  transition: transform 0.3s;
}
.related-cards .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.related-cards .card:hover img {
  transform: translate(-50%, -50%) scale(1.07);
}

@media (max-width: 1024px) {
  .related-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-box {
    padding: 1.2rem 0.5rem;
  }
  .product-page {
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem 0 0 0;
  }
  .related-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .related-cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Lightbox overlay styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.3s;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-radius: 10px;
  background: #fff;
  transition: transform 0.3s;
  cursor: zoom-in;
}
.lightbox.zoomed img {
  cursor: zoom-out;
  /* transform is handled by JS for zoom and pan */
  z-index: 2100;
}
.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2200;
}
.close-lightbox::before {
  content: '\00d7';
  font-size: 2rem;
  line-height: 40px;
  display: block;
  text-align: center;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}
  