/* ==========================================================
   PRODUCT DETAIL PAGE — extends style.css design tokens
   ========================================================== */

.pd-wrap{padding:36px 32px 100px;}

.pd-breadcrumb{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  justify-content:flex-start;
  font-size:12.5px; color:var(--gray); margin-bottom:32px; letter-spacing:.02em;
  padding:0; max-width:none;
}
.pd-breadcrumb a{color:var(--blue); transition:color .15s;}
.pd-breadcrumb a:hover{color:var(--navy-deep);}
.pd-breadcrumb span{color:#b7c0cd;}
#pdBreadcrumbName{color:var(--navy-deep); font-weight:600;}

.pd-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;
}

.pd-media{position:sticky; top:110px;}
.pd-image-frame{
  background:var(--card-blue); border-radius:var(--radius);
  border:1px solid var(--line);
  padding:40px; display:flex; align-items:center; justify-content:center;
  min-height:360px;
  overflow:hidden;
  cursor:zoom-in;
}
.pd-image{
  width:100%; max-height:420px; object-fit:contain;
  transform-origin:center center;
  transition:transform .45s ease;
  will-change:transform;
}
@media (hover:hover){
  .pd-image-frame:hover .pd-image{transform:scale(1.14);}
}
@media (prefers-reduced-motion:reduce){
  .pd-image{transition:none; will-change:auto;}
  .pd-image-frame:hover .pd-image{transform:none;}
}

.pd-thumbs{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}
.pd-thumb{
  width:76px; height:76px; padding:8px;
  background:var(--card-blue); border:1px solid var(--line);
  border-radius:12px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; transition:border-color .15s, box-shadow .15s;
}
.pd-thumb img{width:100%; height:100%; object-fit:contain;}
.pd-thumb:hover{border-color:var(--blue);}
.pd-thumb.is-active{
  border-color:var(--blue);
  box-shadow:0 0 0 2px rgba(30,136,229,.22);
}

.pd-info{padding-top:4px;}
.pd-icon{
  width:52px; height:52px; border-radius:14px; background:var(--card-blue);
  display:flex; align-items:center; justify-content:center; color:var(--navy-panel);
  margin-bottom:20px;
}
.pd-icon svg{width:26px; height:26px;}
.pd-cat{margin-bottom:14px;}
.pd-info h1{
  font-size:clamp(28px,3.4vw,40px); color:var(--navy-deep); font-weight:700;
  line-height:1.1; margin-bottom:18px;
}
.pd-tagline{font-size:17px; color:var(--gray); line-height:1.65; margin-bottom:32px; max-width:520px;}
.pd-description{font-size:15px; color:var(--gray); line-height:1.75; margin:-16px 0 28px; max-width:520px;}

.pd-features{padding-top:64px; margin-top:8px;}
.pd-features h3{
  font-family:'JetBrains Mono',monospace; font-size:13px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--navy-deep); margin-bottom:22px; font-weight:600;
}
.pd-features-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:18px;
}
.pd-feature-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:20px 22px;
}
.pd-feature-card h4{
  font-size:15px; color:var(--navy-deep); font-weight:700; margin-bottom:8px;
}
.pd-feature-card p{font-size:13.5px; color:var(--gray); line-height:1.6;}

.pd-specs{margin-bottom:36px;}
.pd-specs h3{
  font-family:'JetBrains Mono',monospace; font-size:13px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--navy-deep); margin-bottom:16px; font-weight:600;
}
.pd-spec-list{
  border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden;
}
.pd-spec-row{
  display:flex; justify-content:space-between; gap:16px; padding:14px 18px;
  font-size:14px; border-bottom:1px solid var(--line); background:#fff;
}
.pd-spec-row:nth-child(even){background:var(--paper);}
.pd-spec-row:last-child{border-bottom:none;}
.pd-spec-row .k{
  font-family:'JetBrains Mono',monospace; color:var(--gray); letter-spacing:.02em; font-weight:500;
}
.pd-spec-row .v{
  font-family:'JetBrains Mono',monospace; color:var(--navy-deep); font-weight:700; text-align:right;
}

.pd-actions{display:flex; gap:14px; flex-wrap:wrap;}

.pd-notfound{
  grid-column:1 / -1; text-align:center; padding:80px 20px;
}
.pd-notfound h1{font-size:28px; color:var(--navy-deep); margin-bottom:12px;}
.pd-notfound p{color:var(--gray); margin-bottom:28px;}

.pd-related{padding-top:88px; margin-top:24px; border-top:1px solid var(--line);}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width:980px){
  .pd-grid{grid-template-columns:1fr; gap:32px;}
  .pd-media{position:static;}
  .pd-image-frame{min-height:280px; padding:28px;}
  .pd-features{padding-top:48px;}
  .pd-related{padding-top:64px;}
}

@media (max-width:560px){
  .pd-wrap{padding:24px 18px 72px;}
  .pd-breadcrumb{font-size:11.5px; margin-bottom:22px;}
  .pd-image-frame{min-height:220px; padding:20px;}
  .pd-thumb{width:64px; height:64px; padding:6px; border-radius:10px;}
  .pd-tagline{font-size:15.5px;}
  .pd-description{font-size:14px; margin-top:-10px;}
  .pd-features-grid{grid-template-columns:1fr;}
  .pd-actions{flex-direction:column; align-items:stretch;}
  .pd-actions .btn{justify-content:center; text-align:center;}
  .pd-spec-row{padding:12px 14px; font-size:13px;}
}
