/* ============================================================
   PRODUCT DETAIL — approved prototype layout
   ------------------------------------------------------------
   Scope chain: .catalog-product-view

   The theme had no product-page styling at all: the stock 2-column layout
   rendered as an unstyled title followed by a full-bleed gallery, with the
   price and add-to-cart pushed off screen. This section rebuilds the page
   against the prototype.

   Values are copied from the prototype's own stylesheet rather than retyped,
   so the two stay visually identical. Kept out on purpose:

     .pl-tag          the "member price applied / save ¥X" caption — removed
                      from every surface by request
     .pd-srow.is-lock the "contract price — verify your company" row, same
                      reason: the price a visitor sees already matches their
                      group, so a caption restating it is noise

   The listing card rules are repeated under .pd-rel because the listing's own
   rules are scoped to .catalog-category-view, which the body does not carry
   on product pages.
   ============================================================ */

/* --- shell -------------------------------------------------------------
   The page is one 1560px column. Magento still wraps it in .columns, so the
   column machinery is neutralised and .pd-wrap owns the gutters. */
.catalog-product-view .columns{display:block}
.catalog-product-view .columns > .column.main{width:auto;min-width:0;padding:0;float:none}
.catalog-product-view .pd-wrap{
  max-width:var(--max);margin:0 auto;
  padding:24px var(--pad) clamp(48px,5vw,80px);
}

/* Add-to-cart lands on this page as a POST, so the confirmation should be
   visible without scrolling — same docking as the category pages. */
.catalog-product-view .page.messages:has(.message){
  position:sticky;top:104px;z-index:85;
  padding:12px var(--pad);
  background:var(--paper);
}
@media (max-width:1180px){
  .catalog-product-view .page.messages:has(.message){top:64px}
}

/* --- breadcrumb -------------------------------------------------------- */
.catalog-product-view .crumb{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:12px;letter-spacing:.04em;color:var(--muted-2);
}
.catalog-product-view .crumb a{color:var(--muted);text-decoration:none;transition:color .2s}
.catalog-product-view .crumb a:hover{color:var(--ink)}
.catalog-product-view .crumb i{font-style:normal;color:#CFCFC8}
.catalog-product-view .crumb .crumb-now{color:var(--ink-2)}

/* --- top: gallery + info ----------------------------------------------- */
.catalog-product-view .pd-top{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.78fr);
  gap:clamp(30px,3.6vw,64px);align-items:stretch;
  margin-top:clamp(20px,2.4vw,32px);
}

/* --- gallery ----------------------------------------------------------- */
.catalog-product-view .pd-gal{min-width:0;position:relative}

.catalog-product-view .pd-stage{
  position:relative;aspect-ratio:1/1;overflow:hidden;
  /* Same white as the card behind it: the shots are cut-outs on white, so any
     tint on this box draws a visible rectangle around the product — the
     "margin" that made the gallery look boxed-in. */
  background:var(--paper);border:1px solid var(--line);cursor:zoom-in;
  outline-offset:2px;
}
.catalog-product-view .pd-stage:focus-visible{outline:2px solid var(--ink)}

.catalog-product-view .pd-shot{
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  /* No inner padding. The 1:1 frame already letterboxes whatever aspect the
     file has, and against a white frame that letterbox is invisible — adding
     padding on top of it only shrinks the product. */
  opacity:0;transform:scale(1);transform-origin:50% 50%;
  transition:opacity .5s var(--ease),transform .55s var(--ease-out);
  will-change:transform;user-select:none;-webkit-user-drag:none;
}
.catalog-product-view .pd-shot.is-on{opacity:1}
.catalog-product-view .pd-stage.is-zoom .pd-shot.is-on{
  transform:scale(2.05);
  transition:transform .45s var(--ease-out),opacity .5s var(--ease);
}

.catalog-product-view .pd-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:38px;height:38px;display:grid;place-items:center;
  background:rgba(255,255,255,.94);border:1px solid var(--line);color:var(--ink);
  cursor:pointer;opacity:0;
  transition:opacity .3s var(--ease),background .22s,color .22s,border-color .22s;
}
.catalog-product-view .pd-nav svg{width:13px;height:13px}
.catalog-product-view .pd-prev{left:12px}
.catalog-product-view .pd-next{right:12px}
.catalog-product-view .pd-stage:hover .pd-nav,
.catalog-product-view .pd-nav:focus-visible{opacity:1}
.catalog-product-view .pd-nav:hover{background:var(--ink);border-color:var(--ink);color:#fff}

.catalog-product-view .pd-counter{
  position:absolute;left:12px;bottom:12px;z-index:3;
  display:inline-flex;align-items:baseline;gap:2px;
  background:rgba(14,15,16,.74);backdrop-filter:blur(6px);
  color:#fff;font-size:12px;letter-spacing:.06em;
  padding:5px 9px;font-variant-numeric:tabular-nums;
}
.catalog-product-view .pd-counter b{font-weight:500}
.catalog-product-view .pd-counter i{font-style:normal;opacity:.5;margin:0 1px}

.catalog-product-view .pd-hint{
  position:absolute;right:12px;bottom:12px;z-index:3;
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.94);border:1px solid var(--line);
  font-size:12px;letter-spacing:.04em;color:var(--muted);
  padding:5px 8px;transition:opacity .3s var(--ease);
}
.catalog-product-view .pd-stage.is-zoom .pd-hint{opacity:0}

.catalog-product-view .pd-thumbs{
  display:flex;gap:8px;margin-top:10px;
  overflow-x:auto;scrollbar-width:none;padding-bottom:2px;
  scroll-behavior:smooth;
}
.catalog-product-view .pd-thumbs::-webkit-scrollbar{display:none}

/* Selected state is carried by the frame and a 2px accent rule, not by dimming
   the picture. The previous rules dropped the whole button to 70% opacity over
   a light backdrop, so an 88px thumbnail read as out of focus rather than
   "not selected" — at this size any wash-out is indistinguishable from blur. */
.catalog-product-view .pd-thumb{
  position:relative;flex:1 1 0;min-width:0;aspect-ratio:1/1;padding:0;
  border:1px solid var(--line);background:#fff;cursor:pointer;overflow:hidden;
  transition:border-color .22s var(--ease),box-shadow .22s var(--ease);
}
.catalog-product-view .pd-thumb img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .35s var(--ease);
}
.catalog-product-view .pd-thumb:hover{border-color:var(--muted-2)}
.catalog-product-view .pd-thumb:hover img{transform:scale(1.04)}
.catalog-product-view .pd-thumb.is-on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.catalog-product-view .pd-thumb.is-on::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--accent);z-index:1;
}
.catalog-product-view .pd-thumb:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* --- info column ------------------------------------------------------- */
.catalog-product-view .pd-info{min-width:0;max-width:520px;display:flex;flex-direction:column}

.catalog-product-view .pd-brandline{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:12px;letter-spacing:.07em;color:var(--muted-2);
}
.catalog-product-view .pd-brandline b{font-weight:500;color:var(--ink-2);letter-spacing:.05em}
.catalog-product-view .pd-brandline i{width:1px;height:10px;background:var(--line);flex:0 0 auto}

.catalog-product-view .pd-title{
  margin:13px 0 0;font-size:calc(var(--h-scale, 1) * clamp(1.6rem,2.25vw,2.1rem));
  font-weight:500;line-height:1.2;letter-spacing:-.014em;
}
.catalog-product-view .pd-lead{
  margin:14px 0 0;font-size:calc(var(--fs-body, 16px) + 2px);line-height:1.65;
  color:var(--muted);max-width:44ch;
}

/* --- price ------------------------------------------------------------- */
.catalog-product-view .pd-price{
  margin-top:20px;padding-top:18px;border-top:1px solid var(--line);
}
.catalog-product-view .pd-price .pl-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.catalog-product-view .pd-price .pl-now{
  font-size:calc(var(--h-scale, 1) * 32px);font-weight:500;letter-spacing:-.022em;line-height:1.05;
  color:var(--accent);font-variant-numeric:tabular-nums;
}
.catalog-product-view .pd-price .pl-was{
  font-size:14px;color:var(--muted-2);text-decoration:line-through;
  font-variant-numeric:tabular-nums;letter-spacing:.01em;
}

.catalog-product-view .pd-split{margin-top:14px;border:1px solid var(--line);background:#fff}
.catalog-product-view .pd-split summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 13px;cursor:pointer;list-style:none;
  font-size:12px;letter-spacing:.04em;color:var(--muted);
  transition:color .2s;
}
.catalog-product-view .pd-split summary::-webkit-details-marker{display:none}
.catalog-product-view .pd-split summary:hover{color:var(--ink)}
.catalog-product-view .pd-split summary::after{
  content:'';width:7px;height:7px;flex:0 0 auto;margin-top:-3px;
  border-right:1.2px solid currentColor;border-bottom:1.2px solid currentColor;
  transform:rotate(45deg);transition:transform .3s var(--ease);
}
.catalog-product-view .pd-split[open] summary::after{transform:rotate(-135deg);margin-top:2px}
.catalog-product-view .pd-split-body{padding:2px 13px 13px}

.catalog-product-view .pd-srow{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:9px 0;border-bottom:1px dashed var(--line);font-size:13px;
}
.catalog-product-view .pd-srow:last-of-type{border-bottom:0}
.catalog-product-view .pd-srow span{color:var(--muted)}
.catalog-product-view .pd-srow b{
  font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;
}
.catalog-product-view .pd-srow.is-on span{color:var(--ink)}

.catalog-product-view .pd-tiers{margin-top:12px;padding:11px 12px;background:var(--mist)}
.catalog-product-view .pd-tier-h{
  margin:0 0 8px;font-size:12px;letter-spacing:.06em;color:var(--muted-2);
}
.catalog-product-view .pd-tier{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:4px 0;font-size:13px;color:var(--muted);
}
.catalog-product-view .pd-tier b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}

/* --- trade facts ------------------------------------------------------- */
.catalog-product-view .pd-facts{
  list-style:none;margin:22px 0 0;padding:0;display:grid;gap:12px;
}
.catalog-product-view .pd-facts li{display:flex;gap:12px;font-size:14px;line-height:1.6;color:var(--muted)}
.catalog-product-view .pd-facts b{flex:0 0 62px;font-weight:500;color:var(--ink)}
/* The label column as a real column. 62px is a floor, not a width: it keeps the
   zh list byte-identical (2-char labels), while en labels - "Item condition"
   wants 100.8px - borrow only what they need instead of folding onto a second
   line and shoving their own value out of the shared column. Under 561px the
   stack is too narrow to trade that way, so the flex row stays. */
@media (min-width:561px){
  .catalog-product-view .pd-facts{grid-template-columns:minmax(62px,max-content) minmax(0,1fr);align-items:baseline}
  .catalog-product-view .pd-facts li{display:contents}
}
.catalog-product-view .pd-facts li.is-low b,
.catalog-product-view .pd-facts li.is-low span{color:var(--accent)}

/* --- buy row ----------------------------------------------------------- */
.catalog-product-view .pd-buy{display:flex;align-items:stretch;gap:10px;margin-top:20px}

/* The buyable row is a form holding four items: stepper / add to cart / quote /
   wishlist. Grid keeps them on one line at any width: the add button takes the
   slack while the other three size to their content, so nothing wraps and the
   add button never collapses to a sliver. */
.catalog-product-view form.pd-buy{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;
}

.catalog-product-view .pd-qty{
  display:inline-flex;align-items:center;border:1px solid var(--line);height:52px;flex:0 0 auto;
}
.catalog-product-view .pd-qty button{
  width:38px;height:100%;border:0;background:transparent;cursor:pointer;
  color:var(--muted);font-size:14px;display:grid;place-items:center;
  transition:background .2s,color .2s;
}
.catalog-product-view .pd-qty button:hover{background:var(--mist);color:var(--ink)}
.catalog-product-view .pd-qty input{
  width:42px;height:100%;border:0;text-align:center;background:transparent;
  font-family:inherit;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums;
}
.catalog-product-view .pd-qty input:focus{outline:none}

.catalog-product-view .pd-add{
  flex:1;min-width:0;padding:0 12px;height:52px;border:1px solid var(--ink);background:var(--ink);color:#fff;
  font-family:inherit;font-size:14px;letter-spacing:.05em;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
  transition:background .28s var(--ease),border-color .28s var(--ease);
}
.catalog-product-view .pd-add:hover{background:#26282A;border-color:#26282A}
.catalog-product-view .pd-add:disabled{background:var(--mist-2);border-color:var(--line);color:var(--muted-2);cursor:not-allowed}

/* Busy state while the POST is in flight. The `:disabled` skin above is for a
   permanent state ("Out of stock"); reusing it for the half second before the
   browser navigates turned the button into a blank grey box that read as
   broken. Keep the ink fill, spin a small ring, and hold the data-busy caption
   ("Adding…") so the row still says what is happening. */
.catalog-product-view .pd-add.is-busy,
.catalog-product-view .pd-add.is-busy:disabled{
  background:var(--ink);border-color:var(--ink);color:#fff;cursor:progress;opacity:.94;
}
.catalog-product-view .pd-add.is-busy:disabled::before{
  content:"";width:12px;height:12px;margin-right:8px;border-radius:50%;flex:0 0 auto;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:aerospin .7s linear infinite;
}
@keyframes aerospin{to{transform:rotate(360deg)}}
.catalog-product-view .pd-add.is-link{background:#fff;color:var(--ink);border-color:var(--ink)}
.catalog-product-view .pd-add.is-link:hover{background:var(--mist)}

.catalog-product-view .pd-quote{
  flex:0 0 auto;height:52px;padding:0 14px;border:1px solid var(--line);background:#fff;
  color:var(--ink);font-family:inherit;font-size:14px;letter-spacing:.04em;cursor:pointer;
  display:inline-flex;align-items:center;text-decoration:none;
  transition:border-color .25s var(--ease),background .25s var(--ease);
}
.catalog-product-view .pd-quote:hover{border-color:var(--ink);background:var(--mist)}

/* Wishlist is a secondary action, not a third button: it closes the row as a
   plain heart + label text link so the line reads buy -> quote -> "or save it".
   `.action.towishlist` is Magento's own hook for mage/dataPost and also carries
   blank-theme chrome (grey background, 3px radius, 700 weight) that has to be
   neutralised, otherwise the link arrives dressed as a button. */
.catalog-product-view .pd-wish{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:52px;padding:0 2px;border:0;border-radius:0;background:transparent;
  color:var(--muted);font-size:13px;font-weight:400;letter-spacing:.02em;
  text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:color .2s var(--ease);
}
.catalog-product-view .pd-wish svg{width:12px;height:12px;flex:0 0 auto;opacity:.85}
.catalog-product-view .pd-wish:hover{
  color:var(--ink);text-decoration:underline;text-underline-offset:4px;
  border:0;background:transparent;
}

/* --- service strip + note ---------------------------------------------- */
.catalog-product-view .pd-serv{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;
  margin:20px 0 0;padding:18px 0 0;border-top:1px solid var(--line);
  list-style:none;
}
.catalog-product-view .pd-serv li{
  display:flex;align-items:flex-start;gap:8px;font-size:14px;color:var(--muted);line-height:1.55;
}
.catalog-product-view .pd-serv svg{width:14px;height:14px;flex:0 0 auto;margin-top:3px;color:var(--ink-2)}

.catalog-product-view .pd-note{
  margin:auto 0 0;padding-top:16px;border-top:1px solid var(--line);
  font-size:12px;line-height:1.7;color:var(--muted-2);letter-spacing:.01em;
}
.catalog-product-view .pd-note:not(:first-child){margin-top:18px}

/* --- tabs -------------------------------------------------------------- */
.catalog-product-view .pd-tabs{margin-top:clamp(40px,4.6vw,64px);border-top:1px solid var(--line)}
.catalog-product-view .pd-tabbar{
  display:flex;gap:clamp(20px,2.6vw,38px);
  border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;
}
.catalog-product-view .pd-tabbar::-webkit-scrollbar{display:none}
.catalog-product-view .pd-tab{
  position:relative;padding:16px 1px;border:0;background:transparent;cursor:pointer;
  font-family:inherit;font-size:14px;letter-spacing:.03em;color:var(--muted);
  white-space:nowrap;transition:color .22s var(--ease);
}
.catalog-product-view .pd-tab:hover{color:var(--ink)}
.catalog-product-view .pd-tab.is-on{color:var(--ink);font-weight:500}
.catalog-product-view .pd-tab.is-on::after{
  content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);
}

.catalog-product-view .pd-pane{display:none;padding:clamp(24px,3vw,38px) 0 0}
.catalog-product-view .pd-pane.is-on{display:block}

/* --- tab body: prose + spec digest ---------------------------------------
   Two columns. The digest on the right repeats the five headline numbers that
   the "Specifications" tab already lists, and that is the point: the buyer
   reading a paragraph should not have to leave it to check the payload. The
   button under it switches tabs, so the digest is a shortcut, not a copy. */
.catalog-product-view .pd-tabs-body{
  display:grid;grid-template-columns:minmax(0,1fr) 288px;
  column-gap:clamp(32px,4vw,56px);align-items:start;
}
.catalog-product-view .pd-panes{min-width:0}

.catalog-product-view .pd-aside{
  position:sticky;top:104px;
  /* Same offset as the pane's top padding, so the card starts level with the
     first line of prose instead of floating above it. */
  margin-top:clamp(24px,3vw,38px);
  padding:20px 20px 16px;border:1px solid var(--line);background:var(--mist);
}
.catalog-product-view .pd-aside-h{
  margin:0 0 4px;font-size:12px;font-weight:500;line-height:1.4;
  letter-spacing:.08em;color:var(--muted-2);
}
.catalog-product-view .pd-aside dl{margin:0}
.catalog-product-view .pd-aside-row{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;
  align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line);
}
.catalog-product-view .pd-aside-row:last-of-type{border-bottom:0}
.catalog-product-view .pd-aside-row dt{
  font-size:12px;line-height:1.5;letter-spacing:.02em;color:var(--muted-2);
}
.catalog-product-view .pd-aside-row dd{
  margin:0;font-size:14px;line-height:1.5;color:var(--ink);text-align:right;
}
.catalog-product-view .pd-aside-more{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;margin-top:10px;padding:11px 0 0;border:0;border-top:1px solid var(--line);
  background:none;cursor:pointer;font-family:inherit;text-align:left;
  font-size:14px;letter-spacing:.02em;color:var(--ink);
  transition:color .2s var(--ease);
}
.catalog-product-view .pd-aside-more svg{width:13px;height:13px;flex:0 0 auto;transition:transform .25s var(--ease)}
.catalog-product-view .pd-aside-more:hover{color:var(--accent)}
.catalog-product-view .pd-aside-more:hover svg{transform:translateX(3px)}
.catalog-product-view .pd-aside-more:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* The specifications tab already lists every row, so the digest steps aside
   instead of repeating the same numbers beside itself. */
.catalog-product-view .pd-tabs[data-pane="spec"] .pd-tabs-body{grid-template-columns:minmax(0,1fr)}
.catalog-product-view .pd-tabs[data-pane="spec"] .pd-aside{display:none}

.catalog-product-view .pd-prose{max-width:74ch}
.catalog-product-view .pd-prose p{
  margin:0 0 18px;font-size:var(--fs-body, 16px);line-height:1.8;color:var(--muted);
}
.catalog-product-view .pd-prose p:last-child{margin-bottom:0}
.catalog-product-view .pd-prose b{font-weight:500;color:var(--ink)}
.catalog-product-view .pd-prose ul{margin:0 0 16px;padding-left:18px}
.catalog-product-view .pd-prose li{font-size:var(--fs-body, 16px);line-height:1.8;color:var(--muted)}

.catalog-product-view .pd-points{
  /* Four across, matching the prototype. Three left the fourth point alone on
     its own row, framed by the rule above it, which read as a missing tile. */
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(16px,1.8vw,24px);margin-top:34px;padding-top:28px;
  border-top:1px solid var(--line);
}
.catalog-product-view .pd-point h3{margin:0;font-size:16px;font-weight:500;letter-spacing:-.004em}
.catalog-product-view .pd-point h3::before{
  content:'';display:block;width:18px;height:1px;background:var(--accent);margin-bottom:12px;
}
.catalog-product-view .pd-point p{margin:8px 0 0;font-size:14px;line-height:1.65;color:var(--muted)}

.catalog-product-view .pd-spec{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(40px,5vw,88px);margin:0;max-width:100%;
}
.catalog-product-view .pd-spec-item{
  display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;
  align-items:baseline;padding:15px 0;border-bottom:1px solid var(--line);
}
.catalog-product-view .pd-spec-item dt{font-size:12px;letter-spacing:.03em;color:var(--muted-2);line-height:1.7}
.catalog-product-view .pd-spec-item dd{margin:0;font-size:var(--fs-body, 16px);line-height:1.55;color:var(--ink-2)}

.catalog-product-view .pd-boxlist{
  list-style:none;margin:0;padding:0;max-width:620px;columns:2;column-gap:44px;
}
.catalog-product-view .pd-boxlist li{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding:12px 0;border-bottom:1px solid var(--line);
  font-size:var(--fs-body, 16px);color:var(--muted);break-inside:avoid;
}
.catalog-product-view .pd-boxlist b{
  font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;
}

/* --- related ----------------------------------------------------------- */
.catalog-product-view .pd-rel{
  margin-top:clamp(48px,5.4vw,78px);padding-top:clamp(28px,3.2vw,42px);
  border-top:1px solid var(--line);
}
.catalog-product-view .pd-rel-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  margin-bottom:clamp(18px,2.2vw,26px);
}
.catalog-product-view .pd-rel-head h2{
  margin:0;font-size:calc(var(--h-scale, 1) * 24px);font-weight:500;letter-spacing:-.01em;line-height:1.3;
}
.catalog-product-view .pd-rel-head a{
  display:inline-flex;align-items:center;gap:8px;font-size:14px;
  color:var(--muted);text-decoration:none;transition:color .2s;
}
.catalog-product-view .pd-rel-head a:hover{color:var(--ink)}
.catalog-product-view .pd-rel-head svg{width:12px;height:12px;transition:transform .3s var(--ease)}
.catalog-product-view .pd-rel-head a:hover svg{transform:translateX(3px)}

/* the listing's card rules are scoped to .catalog-category-view, so they need
   restating here for the related block */
.catalog-product-view .pd-rel .pl-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));
  gap:clamp(12px,1.4vw,20px);
}
.catalog-product-view .pd-rel .pl-card{
  display:flex;flex-direction:column;background:var(--paper);
  border:1px solid var(--line);text-decoration:none;color:inherit;
  transition:border-color .45s var(--ease);
}
.catalog-product-view .pd-rel .pl-card:hover,
.catalog-product-view .pd-rel .pl-card:focus-within{border-color:var(--ink)}
.catalog-product-view .pd-rel .pl-media{
  position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--paper);
  border-bottom:1px solid var(--line);
}
.catalog-product-view .pd-rel .pl-media img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform 1.15s var(--ease-out);
}
.catalog-product-view .pd-rel .pl-card:hover .pl-media img,
.catalog-product-view .pd-rel .pl-card:focus-within .pl-media img{transform:scale(1.075)}
/* Same chip as the listing cards: white capsule centred on the photo, rising
   8px on hover. It used to be a small dark badge pinned to the corner, but the
   global `.pl-card .pl-media-cta` rule in aerosupply.css also applies here and
   only half of it lost to this selector — the leftover `left/top` + `translate`
   dragged the badge towards the middle of the photo. Restating the listing's
   geometry in full keeps the two surfaces identical instead of relying on
   whichever stylesheet loads last. */
.catalog-product-view .pd-rel .pl-media-cta{
  position:absolute;z-index:2;
  left:50%;top:50%;right:auto;bottom:auto;
  translate:-50% -50%;
  display:inline-flex;align-items:center;gap:7px;
  height:auto;min-height:44px;padding:0 22px;
  background:#fff;color:var(--ink);
  box-shadow:0 16px 34px -14px rgba(10,11,12,.55);
  font-size:13px;font-weight:600;letter-spacing:.04em;
  opacity:0;transform:translateY(8px);
  transition:opacity .36s var(--ease),transform .42s var(--ease),
             background .3s var(--ease),color .3s var(--ease);
}
.catalog-product-view .pd-rel .pl-media-cta:hover{background:var(--accent);color:#fff}
.catalog-product-view .pd-rel .pl-media-cta svg{width:12px;height:12px;flex:0 0 auto;transition:transform .35s var(--ease)}
.catalog-product-view .pd-rel .pl-card:hover .pl-media-cta,
.catalog-product-view .pd-rel .pl-card:focus-within .pl-media-cta{opacity:1;transform:none}
.catalog-product-view .pd-rel .pl-card:hover .pl-media-cta svg{transform:translateX(3px)}

.catalog-product-view .pd-rel .pl-body{padding:15px 16px 14px;display:flex;flex-direction:column;flex:1}
.catalog-product-view .pd-rel .pl-title{
  font-size:16px;font-weight:500;letter-spacing:-.006em;
  line-height:1.34;margin:0 0 6px;
  /* "ProArm A6 Six-Axis Robotic / Arm" - one word alone on line two reads as a
     mistake at this size; balance splits the two lines evenly instead. */
  text-wrap:balance;
}
.catalog-product-view .pd-rel .pl-sub{
  font-size:14px;line-height:1.55;color:var(--muted);margin:0;
  /* Three lines, not two: the zh captions run 49-53 characters and were
     being cut mid-clause at two. The lead is capped at 120 in the template
     so an outlier still ends on a sentence rather than a stray ellipsis. */
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;min-height:0;
}
.catalog-product-view .pd-rel .pl-buy{margin-top:auto;padding-top:16px}
.catalog-product-view .pd-rel .pl-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.catalog-product-view .pd-rel .pl-now{
  font-size:calc(var(--h-scale, 1) * 21px);font-weight:500;letter-spacing:-.022em;line-height:1.15;
  color:var(--accent);font-variant-numeric:tabular-nums;
}
.catalog-product-view .pd-rel .pl-was{
  font-size:12px;color:var(--muted-2);text-decoration:line-through;
  font-variant-numeric:tabular-nums;letter-spacing:.01em;
}
.catalog-product-view .pd-rel .pl-lock{
  display:inline-flex;align-items:center;gap:5px;
  font-size:14px;color:var(--muted-2);text-decoration:none;
}

/* --- lightbox ---------------------------------------------------------- */
.catalog-product-view .pd-light{
  position:fixed;inset:0;z-index:140;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:20px;padding:66px 6vw 24px;
  background:rgba(9,10,11,.975);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  opacity:0;pointer-events:none;transition:opacity .32s var(--ease);
}
.catalog-product-view .pd-light.is-on{opacity:1;pointer-events:auto}
.catalog-product-view .pd-light img{
  max-width:100%;max-height:calc(100vh - 214px);object-fit:contain;user-select:none;
}
.catalog-product-view .pd-light-bar{
  display:flex;align-items:center;justify-content:center;gap:18px;
  max-width:100%;flex-wrap:wrap;
}
.catalog-product-view .pd-light-strip{
  display:flex;align-items:center;gap:6px;max-width:min(100%,720px);
  overflow-x:auto;scrollbar-width:none;
}
.catalog-product-view .pd-light-strip::-webkit-scrollbar{display:none}
.catalog-product-view .pd-light-strip button{
  position:relative;flex:0 0 auto;width:54px;height:54px;padding:0;cursor:pointer;
  border:1px solid rgba(255,255,255,.14);background:#141516;overflow:hidden;
  transition:border-color .22s;
}
.catalog-product-view .pd-light-strip button img{
  width:100%;height:100%;object-fit:cover;opacity:.42;transition:opacity .25s;
}
.catalog-product-view .pd-light-strip button:hover img{opacity:.78}
.catalog-product-view .pd-light-strip button.is-on{border-color:#fff}
.catalog-product-view .pd-light-strip button.is-on img{opacity:1}

.catalog-product-view .pd-light-x,
.catalog-product-view .pd-light-nav{
  position:absolute;z-index:2;display:grid;place-items:center;cursor:pointer;
  width:42px;height:42px;color:#fff;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);
  transition:background .22s,color .22s,border-color .22s;
}
.catalog-product-view .pd-light-x:hover,
.catalog-product-view .pd-light-nav:hover{background:#fff;color:var(--ink);border-color:#fff}
.catalog-product-view .pd-light-x{top:18px;right:20px}
.catalog-product-view .pd-light-x svg{width:14px;height:14px}
.catalog-product-view .pd-light-nav{top:calc(50% - 46px);transform:translateY(-50%)}
.catalog-product-view .pd-light-nav svg{width:14px;height:14px}
.catalog-product-view .pd-light-prev{left:22px}
.catalog-product-view .pd-light-next{right:22px}

.catalog-product-view .pd-light-count{
  position:static;transform:none;flex:0 0 auto;
  font-size:12px;letter-spacing:.14em;color:rgba(255,255,255,.62);
  font-variant-numeric:tabular-nums;
}
.catalog-product-view .pd-light-count b{font-weight:500;color:#fff}
.catalog-product-view .pd-light-count i{font-style:normal;opacity:.5;margin:0 2px}

/* body scroll lock while the lightbox is open */
body.is-locked{overflow:hidden}

/* --- responsive -------------------------------------------------------- */
@media (max-width:1180px){
  .catalog-product-view .pd-aside{top:64px}
}
@media (max-width:1080px){
  .catalog-product-view .pd-tabs-body{grid-template-columns:minmax(0,1fr)}
  .catalog-product-view .pd-aside{position:static;margin-top:32px}
}
@media (max-width:980px){
  .catalog-product-view .pd-top{grid-template-columns:1fr;gap:26px}
  .catalog-product-view .pd-info{max-width:none}
  .catalog-product-view .pd-gal{max-width:620px}
  .catalog-product-view .pd-prose{max-width:none}
  .catalog-product-view .pd-spec{column-gap:44px}
  .catalog-product-view .pd-points{grid-template-columns:1fr;gap:20px}
  .catalog-product-view .pd-boxlist{columns:1}
  .catalog-product-view .pd-rel .pl-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .catalog-product-view .pd-rel .pl-body{padding:13px 13px 12px}
  .catalog-product-view .pd-rel .pl-title{font-size:15px}
  .catalog-product-view .pd-rel .pl-sub{display:none}
}

@media (max-width:560px){
  .catalog-product-view .pd-price .pl-now{font-size:calc(var(--h-scale, 1) * 27px)}
  .catalog-product-view .pd-buy{gap:8px}
  .catalog-product-view .pd-add{height:46px;padding:0 8px;font-size:13px}
  .catalog-product-view .pd-quote{height:46px;padding:0 10px;font-size:12px;letter-spacing:0;justify-content:center;white-space:nowrap}
  .catalog-product-view .pd-wish{position:relative;height:46px;padding:0 4px}
  /* Icon only down here: four items on one line have no room for the label.
     The text stays in the accessibility tree (clipped, not display:none) so the
     link still announces itself as "Add to Wishlist". */
  .catalog-product-view .pd-wish span{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
  }
  .catalog-product-view .pd-wish svg{width:16px;height:16px;opacity:.9}
  .catalog-product-view .pd-qty{height:46px}
  .catalog-product-view .pd-serv{grid-template-columns:1fr;gap:9px}
  .catalog-product-view .pd-thumbs{gap:6px}
  .catalog-product-view .pd-spec{grid-template-columns:1fr;column-gap:0}
  .catalog-product-view .pd-spec-item{grid-template-columns:88px minmax(0,1fr)}
  .catalog-product-view .pd-facts b{flex-basis:54px}
  .catalog-product-view .crumb{font-size:12px;gap:8px}
  .catalog-product-view .pd-light{padding:54px 14px 18px;gap:14px}
  .catalog-product-view .pd-light img{max-height:calc(100vh - 178px)}
  .catalog-product-view .pd-light-strip button{width:46px;height:46px}
  .catalog-product-view .pd-light-bar{gap:12px}
  .catalog-product-view .pd-light-nav{display:none}
  .catalog-product-view .pd-light-x{top:12px;right:12px;width:38px;height:38px}
}

/* Touch devices never hover: the "hover to zoom" half of the hint is noise. */
@media (hover:none){
  .catalog-product-view .pd-hint{display:none}
}

/* ============================================================================
   二手设备（Pre-owned）— 商品详情页
   .pd-tags  标题下方的标签（二手设备 / 成色）
   .pd-cond  成色与检测区块，位置在交易信息之后、购买表单之前
   ============================================================================ */
.catalog-product-view .pd-tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.catalog-product-view .pd-tag{
  display:inline-flex;align-items:center;
  height:26px;padding:0 11px;
  background:var(--ink);color:#fff;
  font-size:12px;font-weight:500;letter-spacing:.06em;line-height:1;white-space:nowrap;
}
.catalog-product-view .pd-tag--grade{
  background:var(--accent-soft);color:var(--accent);
  letter-spacing:.04em;
  box-shadow:inset 0 0 0 1px rgba(196,48,28,.26);
}

.catalog-product-view .pd-cond{
  margin:18px 0 0;padding:16px 18px;
  border:1px solid var(--line);background:var(--mist);
}
.catalog-product-view .pd-cond-h{
  margin:0 0 10px;
  font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--ink);
}
.catalog-product-view .pd-cond-list{margin:0;display:grid;gap:9px}
.catalog-product-view .pd-cond-row{
  display:grid;grid-template-columns:116px minmax(0,1fr);gap:12px;
  font-size:14px;line-height:1.6;
}
.catalog-product-view .pd-cond-row dt{margin:0;color:var(--muted)}
.catalog-product-view .pd-cond-row dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.catalog-product-view .pd-cond-note{
  margin:12px 0 0;font-size:12px;line-height:1.6;color:var(--muted);
}
@media (max-width:560px){
  .catalog-product-view .pd-cond{padding:14px}
  .catalog-product-view .pd-cond-row{grid-template-columns:minmax(0,1fr);gap:2px}
  .catalog-product-view .pd-cond-row dt{font-size:12px;letter-spacing:.02em}
}
