/* Product View - pixel-precise layout */

/* Scaffold */
body.page-project-view { background: #fff; }
.pv-wrap { width: 1200px; margin: 0 auto; padding: 24px 0 60px; font-family: 'Inter', Arial, Helvetica, sans-serif; color: #101223; }

/* Breadcrumbs */
.pv-breadcrumbs { font-size: 12px; color: #7a7d86; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pv-breadcrumbs a { color: #7a7d86; text-decoration: none; }
.pv-breadcrumbs a:hover { color: #101223; }
.pv-breadcrumbs .sep { color: #cacbd1; }

/* Two-column main */
.pv-main { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }

/* Gallery */
.pv-gallery { position: relative; display: grid; grid-template-columns: 1fr 140px; gap: 16px; align-items: start; }
.pv-hero { position: relative; width: 100%; height: 500px; border-radius: 8px; overflow: hidden; background: #f3f4f8; }
.pv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-hero .overlay-actions { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
.pv-btn { background: rgba(16,18,35,0.85); color: #fff; font-size: 12px; line-height: 20px; padding: 8px 12px; border-radius: 999px; backdrop-filter: saturate(160%) blur(6px); }
.pv-thumbs { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pv-thumb { width: 120px; height: 120px; border-radius: 6px; overflow: hidden; border: 1px solid #e9ebf0; background: #f3f4f8; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Details */
.pv-title { font-size: 28px; font-weight: 800; line-height: 1.1; margin: 8px 0 16px; }
.pv-back { display: inline-block; margin-bottom: 12px; color: #7a7d86; text-decoration: none; font-size: 12px; }
.pv-back:hover { color: #101223; }

/* Project details row */
.pj-details { display: grid; grid-template-columns: 260px 1fr; gap: 60px; margin-top: 36px; }
.pj-meta ul { list-style: none; padding: 0; margin: 0; }
.pj-meta li { font-size: 13px; color: #555a66; line-height: 22px; margin-bottom: 6px; }
.pj-meta strong { color: #7a7d86; font-weight: 600; margin-right: 6px; }
.pj-project { font-size: 12px; color: #7a7d86; margin-bottom: 10px; }
.pj-title { font-size: 44px; font-weight: 800; color: #101223; margin: 0; }
.pj-hr { height: 1px; background: #e9ebf0; margin: 18px 0 22px; }
.pj-body p { font-size: 14px; line-height: 24px; color: #333846; margin: 0 0 16px; }
.pv-features { list-style: none; padding: 0; margin: 0 0 18px; }
.pv-features li { position: relative; padding-left: 14px; font-size: 13px; line-height: 22px; color: #555a66; }
.pv-features li::before { content: '•'; position: absolute; left: 0; top: 0; color: #9aa0ab; }
.pv-controls { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.pv-select label { display: block; font-size: 12px; color: #7a7d86; margin-bottom: 6px; }
.pv-select select { width: 180px; height: 32px; border: 1px solid #d9dbe2; border-radius: 4px; padding: 0 8px; font-size: 13px; color: #101223; }
.pv-actions { display: flex; align-items: center; gap: 12px; margin: 8px 0 22px; }
.pv-download { font-size: 12px; color: #5b5d6b; text-decoration: none; margin-top: 60px;}
.pv-download:hover { color: #101223; }
.pv-contact { background: #bf2026; color: #fff; border: none; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pv-contact:hover { background: #a6191f; }
.pv-date { font-size: 11px; color: #a0a3ab; margin-top: 2px; }
.pv-share { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pv-share .icon { width: 18px; height: 18px; opacity: 0.8; }

/* Specs */
.pv-specs { margin-top: 40px; }
.pv-specs h2 { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.pv-accordion { width: 100%; }
.pv-acc-item { border: 1px solid #e9ebf0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.pv-acc-header { background: #f7f7fa; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; cursor: pointer; }
.pv-acc-title { font-size: 14px; font-weight: 700; color: #101223; }
.pv-acc-arrow { width: 18px; height: 18px; border: 1px solid #cfd3dc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #7a7d86; font-size: 11px; }
.pv-acc-content { display: none; background: #fff; }
.pv-acc-item.open .pv-acc-content { display: block; }
.pv-spec-table { width: 100%; border-collapse: collapse; }
.pv-spec-table th, .pv-spec-table td { border-bottom: 1px solid #eef1f5; padding: 10px 16px; font-size: 13px; color: #333846; }
.pv-spec-table th { width: 220px; color: #7a7d86; font-weight: 600; }

/* Responsive */
@media (max-width: 1280px) { .pv-wrap { width: 1000px; } .pv-hero { height: 460px; } }
@media (max-width: 1024px) { .pv-wrap { width: 92%; } .pv-gallery { grid-template-columns: 1fr; } .pv-hero { height: 420px; } .pv-thumbs { flex-direction: row; } .pj-details { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .pv-hero { height: 320px; } .pj-title { font-size: 28px; } }

/* Page-only hero min-height adjustments (product_view.php) */
@media (min-width: 1024px) and (orientation: landscape) {
  body.page-project-view .hero-section-container,
  body.page-project-view .hero-content {
    min-height: 200px !important;
  }
}

@media (min-width: 820px) and (max-width: 1023px) {
  body.page-project-view .hero-section-container,
  body.page-project-view .hero-content {
    min-height: 10vh !important;
  }
}

/* Portrait tablets/desktops: page-only adjustment */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  body.page-project-view .hero-section-container,
  body.page-project-view .hero-content {
    min-height: 10vh !important;
  }
}

