/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGE — Dark Theme
   ═══════════════════════════════════════════ */

/* Dark body override */
.page-product {
  background: #0a0a0a;
  color: #e0e0e0;
}

.page-product .navbar.scrolled {
  background: rgba(10, 10, 10, .95);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-product .navbar.scrolled .nav-link { color: rgba(255,255,255,.6); }
.page-product .navbar.scrolled .nav-link:hover,
.page-product .navbar.scrolled .nav-link.active { color: #fff; }
.page-product .navbar.scrolled .logo-text { color: #fff; }
.page-product .navbar.scrolled .hamburger span { background: #fff; }

.page-product .footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Breadcrumb */
.breadcrumb {
  padding: 100px 0 20px;
  background: #0a0a0a;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.4);
}

.breadcrumb-list a {
  color: var(--primary);
  transition: color var(--transition);
}
.breadcrumb-list a:hover { color: var(--primary-dark); }
.breadcrumb-list .separator { color: rgba(255,255,255,.2); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 12px; }

/* ─── Product Detail Layout ──────────────── */
.product-detail {
  padding: 32px 0 80px;
  background: #0a0a0a;
}

.product-detail-grid {
  display: grid;
  /* minmax(0, ...) is critical — without it, large images push the column wider than its share */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Left column: photo gallery */
.product-gallery {
  order: 0;
  position: sticky;
  top: 100px;
  min-width: 0;
  width: 100%;
}

/* Right column: text and form */
.product-detail-info {
  order: 1;
  min-width: 0;
  padding: 8px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-main-image {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
}

.product-main-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #0a0a0a;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.product-thumbs img {
  width: 78px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .55;
  transition: all var(--transition);
  flex-shrink: 0;
}

.product-thumbs img:hover,
.product-thumbs img.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ─── Product Info ────────────────────────── */
.product-detail-category {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.product-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.product-detail-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ─── Specs Table ────────────────────────── */
.product-specs {
  margin-bottom: 32px;
}

.product-specs h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs h3 i { color: var(--primary); }

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
  padding: 11px 0;
  font-size: .9rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: rgba(255,255,255,.75);
  width: 45%;
}
.specs-table td:last-child {
  color: rgba(255,255,255,.45);
}

/* ─── System Includes ────────────────────── */
.system-includes {
  margin-bottom: 32px;
}

.system-includes h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.includes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.includes-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

.includes-tag i {
  color: var(--primary);
  font-size: .8rem;
}

/* ─── Request Info Form ──────────────────── */
.product-request-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  padding: 36px;
  margin-top: 8px;
}

.product-request-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.product-request-card .form-subtitle {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}

.product-request-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-request-card .form-group {
  margin-bottom: 18px;
}

.product-request-card label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}

.product-request-card label .req {
  color: #3b82f6;
}

.product-request-card input,
.product-request-card textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  outline: none;
  transition: all var(--transition);
}

.product-request-card input::placeholder,
.product-request-card textarea::placeholder {
  color: rgba(255,255,255,.3);
}

.product-request-card input:focus,
.product-request-card textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: rgba(255,255,255,.1);
}

.product-request-card textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-send-request {
  width: 100%;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-send-request:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,.3);
}

.btn-send-request:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.product-form-success {
  margin-top: 14px;
  padding: 14px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 8px;
  color: #4ade80;
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
  animation: fadeSlideIn .3s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Customer Reviews ───────────────────── */
.product-reviews {
  padding: 60px 0;
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,.06);
}

.product-reviews .container {
  max-width: 900px;
}

.product-reviews h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-reviews h3 i { color: #f59e0b; }

.review-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.review-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.review-content strong {
  display: block;
  font-size: .92rem;
  color: #fff;
  margin-bottom: 4px;
}

.review-stars {
  color: #f59e0b;
  font-size: .78rem;
  margin-bottom: 8px;
}

.review-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .product-gallery { position: static; }
}

@media (max-width: 768px) {
  .breadcrumb { padding: 80px 0 16px; }
  .product-detail { padding: 20px 0 48px; }
  .product-request-card { padding: 24px 20px; }
  .product-request-card .form-row { grid-template-columns: 1fr; }
  .product-thumbs img { width: 64px; height: 48px; }
}
