/* =============================================
   PRODUCT DETAIL — Full CSS
   ============================================= */

.product-detail {
  padding: 40px 70px;
  margin-top: 140px;
}

/* ===== GRID ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* ===== IMAGE SECTION ===== */
.image-section {
  position: relative; /* zoom panel anchor */
}

.main-img {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  /* NO overflow:hidden — zoom panel must not get clipped */
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

/* ===== ZOOM PANEL ===== */
.zoom-panel {
  display: none; /* shown via JS on mouseenter */
  position: absolute;
  top: 0;
  left: calc(100% + 20px); /* sits to the right of image-section */
  width: 310px;
  height: 310px;
  border-radius: 16px;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.zoom-panel img {

  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: top left;
  pointer-events: none;
  transition: transform 0.03s ease;
}

/* ===== THUMBNAILS ===== */
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.thumbs img:hover,
.thumbs img.active {
  border-color: #3b82f6;
  border-width: 2px;
}

/* ===== INFO SECTION ===== */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #111;
}

/* ===== RATING + STOCK ===== */
.rating-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rating i {
  color: #facc15;
  font-size: 14px;
}

.rating span {
  font-size: 13px;
  color: #555;
  margin-left: 4px;
}

.stock {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.stock.in {
  background-color: #dcfce7;
  color: #15803d;
}

.stock.out {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* ===== PRICE ===== */
.price {
  font-size: 26px;
  font-weight: 700;
  color: #2563eb;
  margin: 14px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.price .old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.price .off {
  font-size: 13px;
  background: #22c55e;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== SHORT DESC ===== */
.short-desc {
  color: #555;
  line-height: 1.65;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ===== QTY ===== */
.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.qty-box button {
  width: 36px;
  height: 36px;
  border: 1px solid #3b82f6;
  background: transparent;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-box button:hover {
  background: #eff6ff;
}

.qty-box input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  font-size: 15px;
  color: #111;
}

/* ===== ACTION BUTTONS ===== */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.actions button:hover {
  opacity: 0.88;
}

.buy {
  background: linear-gradient(to left, #06b6d4, #3b82f6);
}

.carts {
  background: #06b6d4;
}

.buy.disabled {
  background: #e5e7eb;
  color: #aaa;
  cursor: not-allowed;
}

/* ===== DELIVERY INFO ===== */
.delivery-info {
  margin-top: 18px;
  padding: 10px 14px;
  background: #f5f7fa;
  border-left: 4px solid #28a745;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-info i {
  color: #28a745;
  font-size: 16px;
}

.delivery-info strong {
  font-weight: 600;
  color: #111;
}

/* ===== FIRST ORDER OFFER ===== */
.first-offer {
  background: linear-gradient(135deg, #2697F6 0%, #09E3C7 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.first-offer span {
  background: #fff;
  color: #ff0080;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
}

/* ===== TRUST BADGES ===== */
.trust {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.trust div {
  background: #F0FDFA;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 100px;
  border: 1px solid #e4dada;
  color: #0f766e;
}

.trust div i {
  color: #0f766e;
  font-size: 15px;
}

/* ===== FULL DESCRIPTION ===== */
.description {
  margin-top: 60px;
}

.description h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.description h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #111;
}

.description p {
  color: #444;
  line-height: 1.75;
  font-size: 14px;
}

.description ul {
  margin-top: 8px;
  padding-left: 20px;
  color: #444;
  line-height: 1.9;
  font-size: 14px;
}

.description ul li::marker {
  color: #3b82f6;
}

/* ===== RELATED PRODUCTS ===== */
.related-title {
  margin: 50px 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.related-card h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 4px;
  color: #111;
}

.related-card span {
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
}

.related-card button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #06b6d4;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.related-card button:hover {
  opacity: 0.85;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1280px) {
  /* zoom panel won't have enough space — hide it */
  .zoom-panel {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .product-detail {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .zoom-panel {
    display: none !important;
  }

  .main-img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 20px 16px;
    margin-top: 100px;
  }

  .title {
    font-size: 20px;
  }

  .price {
    font-size: 22px;
  }

  .trust {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
    text-align: center;
  }

  .main-img {
    height: 260px;
  }
}

@media (max-width: 360px) {
  .thumbs img {
    width: 56px;
    height: 56px;
  }
}





