.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
}

.product-image-section {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

/* Image ko smooth zoom ke liye ready karo */
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, transform-origin 0.25s ease;
}

/* Zoom mode on hone par */
.main-image.zoomed {
  cursor: zoom-out;
}

.main-image.zoomed img {
  transform: scale(1.8);  /* jitna zoom chahiye utna rakho (1.5 / 2) */
}


.product-thumbnails {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  object-fit: cover;
  transition: all 0.3s;
}

.thumbnail:hover {
  border-color: #d4a373;
}

.thumbnail.active {
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.product-info-section {
  padding: 20px;
}

.product-info-section h1 {
  font-size: 32px;
  color: #2d1b69;
  margin-bottom: 10px;
}

.product-rating {
  margin-bottom: 15px;
  font-size: 16px;
  color: #d4a373;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: #d4a373;
  margin-bottom: 10px;
}

.product-category {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.product-details {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: #2d1b69;
}

.detail-row .value {
  color: #666;
}

.product-description {
  margin-bottom: 20px;
}

.product-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d1b69;
}

.product-description p {
  line-height: 1.6;
  color: #555;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 600;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border: 1px solid #d4a373;
  background: white;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: all 0.3s;
}

.quantity-selector button:hover {
  background: #d4a373;
  color: white;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid #d4a373;
  border-radius: 8px;
  font-size: 16px;
}

/* ========= ACTION BUTTONS (CLEAN + UPGRADED) ========= */

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.product-actions .btn {
  height: 54px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Shine animation layer */
.product-actions .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0)
  );
  transform: skewX(-25deg);
}

/* Hover Shine Animation */
.product-actions .btn:hover::before {
  animation: shine 0.8s ease;
}

@keyframes shine {
  100% {
    left: 120%;
  }
}

/* ADD TO CART BUTTON */
.btn-primary {
  background: linear-gradient(135deg, #d4a373, #b8946e);
  color: #fff;
  box-shadow: 0 6px 18px rgba(212,163,115,0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(212,163,115,0.55);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* BUY NOW BUTTON */
.btn-secondary {
  background: linear-gradient(135deg, #2d1b69, #1a0f3d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(45,27,105,0.45);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(45,27,105,0.55);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* WHY CHOOSE SECTION */

.why-choose {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.benefit {
  background: #f5f5f5;
  padding: 15px;
  text-align: center;
  border-radius: 12px;
}

.benefit .icon {
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.benefit span {
  font-size: 13px;
  color: #666;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 768px) {
  .product-detail-wrapper {
    grid-template-columns: 1fr;
  }

  .product-image-section {
    position: static;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions .btn {
    height: 52px;
    font-size: 15px;
  }

  .why-choose {
    grid-template-columns: 1fr;
  }
}
/* MOBILE COLOR BUTTON POSITION */

@media (max-width:768px){

#color-button-group{
margin-top:12px;
display:flex;
flex-wrap:wrap;
gap:10px;
justify-content:flex-start;
}

}
