/* ==========================================================================
   Al Watania Precast - Product Details
   ========================================================================== */

:root{
  --primary:#0f315f;
  --secondary:#fbbf24;
  --bg:#f8f9fb;
  --text:#2d3748;
  --muted:#6b7280;
  --border:#e5e7eb;
  --success:#16a34a;
  --danger:#dc2626;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}

body{background:#fff;color:var(--text);}

.service-details{
  padding:60px 0;
  background:var(--bg);
}

.product-details-card{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:35px;
}

.product-image-box{
  position:sticky;
  top:100px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  padding:20px;
  text-align:center;
}

.main-product-image{
  width:100%;
  height:auto;
  transition:.4s ease;
  cursor:zoom-in;
}

.product-image-box:hover .main-product-image{
  transform:scale(1.05);
}

.product-title-2{
  color:var(--primary);
  font-size:2rem;
  font-weight:700;
  margin-bottom:15px;
}

.product-short-desc{
  color:var(--muted);
  font-size:1rem;
  line-height:1.8;
  margin-bottom:20px;
}

.product-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:25px 0;
}

.stock-badge,
.delivery-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 18px;
  border-radius:30px;
  font-size:.9rem;
  font-weight:600;
}

.in-stock{
  background:#eaf8ef;
  color:var(--success);
  border:1px solid #ccefd7;
}

.out-stock{
  background:#fdecec;
  color:var(--danger);
}

.delivery-badge{
  background:#eef4ff;
  color:var(--primary);
}

.product-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
  margin-top:30px;
}

.product-buttons .btn{
  border-radius:10px;
  padding:12px 25px;
  font-weight:600;
  transition:.3s;
}

.product-buttons .btn-warning{
  background:var(--secondary);
  border-color:var(--secondary);
}

.product-buttons .btn:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.product-description{
  margin-top:50px;
  background:#fff;
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
}

.product-description h3{
  color:var(--primary);
  font-size:1.5rem;
  margin-bottom:20px;
  border-left:5px solid var(--secondary);
  padding-left:15px;
}

.product-description p{
  line-height:1.9;
  color:#555;
}

.product-description table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
}

.product-description table td,
.product-description table th{
  border:1px solid var(--border);
  padding:12px;
}

.product-description table th{
  background:var(--primary);
  color:#fff;
}

.product-description ul{
  padding-left:20px;
}

.product-description li{
  margin-bottom:10px;
}

.spec-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:20px;
  margin:30px 0;
}

.spec-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  text-align:center;
  padding:20px;
  transition:.3s;
}

.spec-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}

.spec-card i{
  color:var(--secondary);
  font-size:2rem;
  margin-bottom:10px;
}

.spec-card h5{
  color:var(--primary);
  margin-bottom:8px;
}

.related-products{
  margin-top:60px;
}

.related-products h3{
  color:var(--primary);
  margin-bottom:25px;
}

.related-products .card{
  border:none;
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.3s;
}

.related-products .card:hover{
  transform:translateY(-6px);
}

.related-products img{
  height:220px;
  object-fit:cover;
}

.breadcrumbs h2{
  font-weight:700;
}

@media (max-width:991px){
  .product-image-box{
    position:relative;
    top:0;
    margin-bottom:30px;
  }

  .product-title{
    font-size:1.7rem;
  }

  .product-buttons .btn{
    width:100%;
  }
}

@media (max-width:576px){
  .product-details-card{
    padding:20px;
  }

  .product-title{
    font-size:1.5rem;
  }

  .product-meta{
    flex-direction:column;
    align-items:flex-start;
  }

  .product-description{
    padding:20px;
  }
}
