/* ============================================================
   SARWESHWAR INDUSTRIES — product-detail.css
   Product detail page styles
   ============================================================ */

.breadcrumb { background:#fff; border-bottom:1px solid #eee; padding:12px 0; }
.breadcrumb-inner { max-width:1200px; margin:auto; padding:0 24px; display:flex; align-items:center; gap:8px; font-size:13px; color:#888; flex-wrap:wrap; }
.breadcrumb a { color:#888; text-decoration:none; transition:color 0.2s; }
.breadcrumb a:hover { color:#b01a1a; }
.breadcrumb .sep { color:#ccc; }
.breadcrumb .current { color:#b01a1a; font-weight:600; }

.product-detail { max-width:1200px; margin:32px auto; padding:0 24px; display:grid; grid-template-columns:1fr 1fr; gap:48px; background:#fff; border-radius:12px; box-shadow:0 4px 24px rgba(0,0,0,0.07); overflow:hidden; }

/* Gallery */
.pd-gallery { padding:36px 32px; display:flex; flex-direction:column; gap:16px; background:#fafafa; border-right:1px solid #f0f0f0; }
.pd-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
#pdMainImg { width:100%; height:100%; object-fit:contain; padding:20px; transition:transform 0.3s ease; }
.pd-zoom-hint { position:absolute; top:12px; right:12px; background:rgba(0,0,0,0.4); color:#fff; font-size:11px; padding:4px 8px; border-radius:4px; display:flex; align-items:center; gap:4px; pointer-events:none; }
.pd-thumbs { display:flex; gap:10px; flex-wrap:wrap; }
.pd-thumb { width:72px; height:72px; border-radius:8px; border:2px solid #eee; cursor:pointer; overflow:hidden; transition:border-color 0.2s,transform 0.2s; padding:4px; background:#fff; }
.pd-thumb img { width:100%; height:100%; object-fit:contain; }
.pd-thumb:hover, .pd-thumb.active { border-color:#b01a1a; }
.pd-thumb.active { box-shadow:0 0 0 2px rgba(176,26,26,0.2); }

/* Info */
.pd-info { padding:36px 32px; display:flex; flex-direction:column; gap:18px; }
.pd-badges { display:flex; gap:8px; flex-wrap:wrap; }
.pd-badge { display:inline-block; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.pd-badge.brand { background:#b01a1a; color:#fff; }
.pd-badge.cat   { background:#f0f0f0; color:#555; }
.pd-badge.stock { background:#e8f5e9; color:#2e7d32; }

.pd-name { font-family:'Playfair Display',serif; font-size:28px; font-weight:700; color:#1a1a1a; line-height:1.3; }
.pd-stars { display:flex; align-items:center; gap:8px; }
.pd-stars .stars { color:#f5c518; font-size:18px; }
.pd-stars .rating-text { font-size:13px; color:#888; }

/* Price */
.pd-price-box { background:#fff8f8; border:1px solid #fdd; border-radius:10px; padding:18px 20px; }
.pd-price-row { display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.pd-price-new { font-size:32px; font-weight:800; color:#b01a1a; font-family:'Poppins',sans-serif; }
.pd-price-old { font-size:18px; color:#aaa; text-decoration:line-through; }
.pd-discount  { background:#27ae60; color:#fff; font-size:13px; font-weight:700; padding:4px 10px; border-radius:6px; }
.pd-saving    { font-size:13px; color:#27ae60; font-weight:600; }
.pd-total-row { font-size:14px; color:#555; padding-top:10px; border-top:1px solid #f0e0e0; margin-top:8px; display:flex; justify-content:space-between; align-items:center; }
.pd-total-amount { font-size:18px; font-weight:700; color:#b01a1a; }

/* Qty */
.pd-qty-section { display:flex; flex-direction:column; gap:8px; }
.pd-qty-label { font-size:14px; font-weight:600; color:#333; }
.pd-qty-ctrl { display:inline-flex; align-items:center; border:2px solid #ddd; border-radius:10px; overflow:hidden; width:fit-content; }
.pd-qty-ctrl button { width:44px; height:44px; border:none; background:#f8f8f8; font-size:22px; font-weight:700; cursor:pointer; color:#b01a1a; transition:background 0.2s; display:flex; align-items:center; justify-content:center; }
.pd-qty-ctrl button:hover { background:#ffeaea; }
.pd-qty-ctrl span { min-width:52px; text-align:center; font-size:18px; font-weight:700; color:#222; background:#fff; padding:0 8px; height:44px; display:flex; align-items:center; justify-content:center; border-left:1px solid #eee; border-right:1px solid #eee; }

/* Buttons */
.pd-actions { display:flex; flex-direction:column; gap:12px; }
.pd-btn-cart { background:#b01a1a; color:#fff; border:none; border-radius:10px; padding:16px 20px; font-size:15px; font-weight:700; letter-spacing:1px; text-transform:uppercase; cursor:pointer; font-family:'Poppins',sans-serif; transition:background 0.2s,transform 0.15s; display:flex; align-items:center; justify-content:center; gap:10px; }
.pd-btn-cart:hover { background:#8a1212; transform:translateY(-2px); }
.pd-btn-buy  { background:#ff6b00; color:#fff; border:none; border-radius:10px; padding:16px 20px; font-size:15px; font-weight:700; letter-spacing:1px; text-transform:uppercase; cursor:pointer; font-family:'Poppins',sans-serif; transition:background 0.2s,transform 0.15s; display:flex; align-items:center; justify-content:center; gap:10px; }
.pd-btn-buy:hover  { background:#cc5500; transform:translateY(-2px); }
.pd-btn-wish { background:#fff; color:#b01a1a; border:2px solid #b01a1a; border-radius:10px; padding:14px 20px; font-size:15px; font-weight:700; cursor:pointer; font-family:'Poppins',sans-serif; transition:all 0.2s; display:flex; align-items:center; justify-content:center; gap:10px; }
.pd-btn-wish:hover, .pd-btn-wish.wishlisted { background:#b01a1a; color:#fff; }

/* Trust */
.pd-trust { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pd-trust-item { background:#f8f8f8; border-radius:8px; padding:12px 8px; text-align:center; }
.pd-trust-item i { font-size:20px; color:#b01a1a; margin-bottom:6px; display:block; }
.pd-trust-item span { font-size:11px; color:#555; font-weight:600; line-height:1.3; display:block; }

/* Tabs */
.pd-tabs { border-top:1px solid #f0f0f0; padding-top:18px; }
.pd-tab-btns { display:flex; border-bottom:2px solid #f0f0f0; margin-bottom:16px; }
.pd-tab-btn { background:none; border:none; padding:10px 20px; font-size:14px; font-weight:600; color:#888; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; font-family:'Poppins',sans-serif; }
.pd-tab-btn.active { color:#b01a1a; border-bottom-color:#b01a1a; }
.pd-tab-content { display:none; font-size:14px; color:#555; line-height:1.8; }
.pd-tab-content.active { display:block; }
.pd-features-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.pd-features-list li { display:flex; align-items:center; gap:10px; font-size:14px; color:#444; }
.pd-features-list li::before { content:'✓'; color:#27ae60; font-weight:800; font-size:16px; flex-shrink:0; }

/* Related */
.related-section { max-width:1200px; margin:40px auto 60px; padding:0 24px; }
.related-title { font-size:22px; font-weight:700; color:#b01a1a; margin-bottom:24px; padding-bottom:10px; border-bottom:2px solid #b01a1a; display:inline-block; }
.related-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.related-card { background:#fff; border-radius:10px; border:1px solid #eee; overflow:hidden; cursor:pointer; transition:transform 0.25s,box-shadow 0.25s; }
.related-card:hover { transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,0.12); }
.related-card__img { width:100%; aspect-ratio:1/1; overflow:hidden; background:#f8f8f8; position:relative; }
.related-card__img img { width:100%; height:100%; object-fit:contain; padding:12px; transition:transform 0.3s; }
.related-card:hover .related-card__img img { transform:scale(1.06); }
.related-card__discount { position:absolute; top:10px; left:10px; background:#b01a1a; color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:4px; }
.related-card__body { padding:12px 14px; }
.related-card__name { font-size:13px; font-weight:600; color:#222; line-height:1.4; margin-bottom:6px; min-height:36px; }
.related-card__price { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.related-card__new { font-size:15px; font-weight:700; color:#b01a1a; }
.related-card__old { font-size:12px; color:#aaa; text-decoration:line-through; }
.related-card__btn { width:100%; background:#b01a1a; color:#fff; border:none; border-radius:20px; padding:8px; font-size:12px; font-weight:700; cursor:pointer; letter-spacing:0.5px; transition:background 0.2s; font-family:'Poppins',sans-serif; }
.related-card__btn:hover { background:#8a1212; }

@media(max-width:900px) { .product-detail { grid-template-columns:1fr; } .pd-gallery { border-right:none; border-bottom:1px solid #f0f0f0; } .related-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px) { .product-detail { margin:16px; } .pd-info,.pd-gallery { padding:24px 20px; } .pd-name { font-size:22px; } .pd-price-new { font-size:26px; } }