/* ===== Global ===== */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ===== Product Container ===== */
.product-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px 20px 20px 20px; /* Removed excess bottom padding */
  box-sizing: border-box;
}

/* ===== Product Gallery ===== */
.product-gallery {
  flex: 1 1 300px;
  min-width: 280px;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.thumbs img.active,
.thumbs img:hover {
  border: 2px solid #ff4d88;
}

/* ===== Product Info ===== */
.product-info {
  flex: 1 1 300px;
  min-width: 280px;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.category {
  color: #777;
  margin-bottom: 15px;
  font-size: 14px;
}

.price {
  font-size: 24px;
  color: #ff4d88;
  margin-bottom: 20px;
}

.price del {
  color: #999;
  font-size: 16px;
  margin-left: 10px;
}

.desc {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.btn-primary {
  background: #ff4d88;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #e63e78;
}

.btn-outline {
  border: 2px solid #ff4d88;
  background: #fff;
  color: #ff4d88;
}

.btn-outline:hover {
  background: #ff4d88;
  color: #fff;
}

/* ===== Add to Cart Button Animation ===== */
#add-to-cart {
  position: relative;
  transition: background 0.3s, color 0.3s;
}

#add-to-cart.animate::after {
  content: "Go to Cart";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #28a745;
  color: white;
  opacity: 0;
  transition: opacity 1s;
  border-radius: 8px;
}

#add-to-cart.animate.show::after {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    gap: 20px;
    padding: 15px 15px 10px; /* Removed large bottom padding */
  }

  .main-image {
    max-height: 280px;
    object-fit: contain;
  }

  .thumbs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .thumbs img {
    width: 60px;
    height: 60px;
  }

  .product-info h1 {
    font-size: 22px;
  }

  .price {
    font-size: 20px;
  }

  .btn {
    width: 100%;
    font-size: 14px;
    max-width: none;
  }
}

/* ===== Suggestion Section (Optional if not already styled) ===== */
.suggestions-section {
  padding: 0 15px 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
