/* product-detail.css - clean product detail layout based on provided design */
.root{ }
:root{ --card-bg:#fff; --accent:#ff2b2b; --muted:#6b7280; --page-bg:#fff; }
body{ background:var(--page-bg); }
/* Ensure page content sits below the fixed header/subheader */
.product-detail{ padding-top: 140px; }
.product-detail .detail-wrap{ max-width:920px; margin:18px auto; display:grid; grid-template-columns: 1fr; gap:18px; }
.gallery{ position:relative; }
.main-image-wrap{ border-radius:18px; overflow:hidden; border: none; box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.main-image-wrap img{ width:100%; height:420px;display:block; }
.nav{ position:absolute; top:40%; transform:translateY(-50%); background:#000; color:#fff; border:none; width:48px; height:48px; border-radius:6px; opacity:0.9; cursor:pointer; }
.nav.prev{ left:12px; }
.nav.next{ right:12px; }
.thumbs{ display:flex; gap:10px; margin-top:10px; overflow-x:auto; }
.thumb{ width:72px; height:72px; border-radius:8px; overflow:hidden; cursor:pointer; border:3px solid rgba(255,255,255,0.3); }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb.active{ border-color:var(--accent); box-shadow:0 6px 18px rgba(0,0,0,0.12); }

.info{ display:block; }
.title-card{ background:#fff; border-radius:14px; padding:18px; text-align:center; border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.product-title{ margin:6px 0 8px 0; font-size:28px; color:#b33a3a; letter-spacing:2px; }
.price-line .price-now{ color:var(--accent); font-weight:800; font-size:22px; }

.details-card{ background:#fff; border-radius:14px; padding:14px; margin-top:12px; box-shadow:0 6px 24px rgba(0,0,0,0.05); }
.features{ list-style:none; padding:0; margin:0; }
.features li{ padding:10px 6px; border-bottom:1px solid #f0f0f0; color:#111; font-size:16px; }
.features li strong{ display:inline-block; width:130px; color:#111; }
.features li.desc{ border-bottom:none; padding-top:12px; color:#333; }

/* responsive */
@media (min-width:960px){
  .product-detail .detail-wrap{ align-items:start; }
  .main-image-wrap img{ height:520px; }
}
@media (max-width:480px){
  .main-image-wrap img{ height:320px; }
  .product-title{ font-size:20px; }
  .thumb{ width:56px; height:56px; }
  .features li{ font-size:14px; }
}

/* reduce top offset on small screens where header/subheader are smaller */
@media (max-width:768px){
  .product-detail{ padding-top: 110px; }
}

/* Align section title inside product detail to match listing pages */
.product-detail .section-title{
  font-size:2.25rem;
  font-weight:700;
  color:#1e1f36;
  margin:10px;
  text-align:left;
}

/* WhatsApp contact button */
.btn-whatsapp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:var(--accent);
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-whatsapp img{ width:18px; height:18px; display:inline-block; }
.btn-whatsapp:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,0.10); }

/* Share button */
.btn-share{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:#25D366;
  color:#fff;
  border:none;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  font-size:14px;
}
.btn-share svg{ width:18px; height:18px; display:inline-block; }
.btn-share:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,0.10); background:#20b858; }
.btn-share:active{ transform:translateY(0); }
