/**
 * 4Hand Industries - Product Detail Page Styles
 * Developer: Majedul Islam
 */

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.product-detail-page { padding: 40px 20px 80px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Gallery ---------- */
.main-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 1;
}
.main-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .3s;
}
.main-img-wrap:hover .main-img { transform: scale(1.02); }
.main-img-placeholder {
  display: grid; place-items: center;
  height: 100%; font-size: 100px; opacity: .35;
}
.cat-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}

.thumbs {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 10px; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  background: var(--surface);
}
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--primary); }

/* ---------- Info column ---------- */
.product-info h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.product-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 20px;
}
.meta-cat {
  background: var(--surface);
  padding: 6px 12px; border-radius: 20px;
  color: var(--primary); font-weight: 600;
}
.meta-stock {
  background: #dcfce7; color: #166534;
  padding: 6px 12px; border-radius: 20px;
  font-weight: 600;
}
[data-theme="dark"] .meta-stock { background: #14532d; color: #86efac; }

.product-price-big {
  font-size: 32px; font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 6px;
}
.product-price-big small {
  font-size: 14px; font-weight: 500;
  color: var(--muted);
}

.product-description {
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 24px;
}
.product-description p { margin-bottom: 12px; }

/* ---------- Specs table ---------- */
.product-specs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.product-specs h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.product-specs table {
  width: 100%; border-collapse: collapse;
}
.product-specs th,
.product-specs td {
  padding: 10px 0;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.product-specs tr:last-child th,
.product-specs tr:last-child td { border-bottom: none; }
.product-specs th {
  font-weight: 600;
  color: var(--muted);
  width: 40%;
}

/* ---------- Actions ---------- */
.product-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-whatsapp {
  display: inline-block;
  padding: 14px 28px;
  background: #25D366;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.btn-whatsapp:hover { background: #1ebe5b; }

/* ---------- Share ---------- */
.product-share {
  display: flex; align-items: center; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-share > span {
  font-size: 13px; color: var(--muted);
  font-weight: 500;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  transition: transform .2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25D366; }
.share-btn.copy { background: var(--primary); }

/* ---------- Inquiry form ---------- */
.product-inquiry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
}
@media (max-width: 600px) { .product-inquiry { padding: 24px; } }

.product-inquiry h2 {
  font-size: 24px; font-weight: 800;
  margin-bottom: 8px;
}
.product-inquiry > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.inquiry-form {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 700px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.inquiry-form label {
  display: block;
  font-size: 14px; font-weight: 600;
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.inquiry-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.inquiry-form .alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.inquiry-form .alert.success { background: #dcfce7; color: #166534; }
.inquiry-form .alert.error { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .inquiry-form .alert.success { background: #14532d; color: #86efac; }
[data-theme="dark"] .inquiry-form .alert.error { background: #7f1d1d; color: #fecaca; }

/* ---------- Related ---------- */
.related-section { margin-top: 60px; }