/* =====================================================================
   PRODUCT & CATEGORY PAGES
   Real pages at the URLs Squarespace used to serve, so the search traffic
   that already lands on them keeps working. They reuse the packing-list
   styles for the header, footer and buttons.
   ===================================================================== */

.pd-crumbs{
  font-family:var(--ts-mono);font-size:11.5px;color:var(--ts-mute);
  padding:26px 0 0;display:flex;gap:7px;flex-wrap:wrap;align-items:center;
}
.pd-crumbs a{color:var(--ts-mute);text-decoration:none;}
.pd-crumbs a:hover{color:var(--ts-ink);}
.pd-crumbs span{color:var(--ts-line);}
.pd-crumbs > span:last-child{color:var(--ts-ink);}

/* ---------- product ---------- */
.pd-grid{display:grid;gap:34px;margin:26px 0 0;}
@media(min-width:760px){.pd-grid{grid-template-columns:1.05fr 1fr;gap:44px;align-items:start;}}
.pd-media{
  border-radius:16px;overflow:hidden;background:var(--ts-white);
  border:1px solid var(--ts-line);aspect-ratio:4/3;
  display:flex;align-items:center;justify-content:center;
}
.pd-media img{width:100%;height:100%;object-fit:contain;display:block;}
.pd-eyebrow{
  font-family:var(--ts-mono);font-size:11px;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--ts-red);margin-bottom:12px;
}
.pd-info h1{
  font-family:var(--ts-display);font-size:clamp(24px,4vw,34px);
  line-height:1.15;font-weight:600;margin:0 0 14px;letter-spacing:-0.01em;
}
.pd-rate{
  font-family:var(--ts-display);font-size:26px;font-weight:600;margin-bottom:22px;
}
.pd-cta{display:inline-block;text-decoration:none;}
.pd-note{
  font-size:13px;line-height:1.6;color:var(--ts-mute);
  margin:20px 0 0;padding-top:18px;border-top:1px solid var(--ts-line);
}
.pd-links{list-style:none;margin:18px 0 0;padding:0;display:flex;gap:18px;flex-wrap:wrap;}
.pd-links a{font-size:13.5px;font-weight:600;color:var(--ts-ink);text-decoration:none;
            border-bottom:1px solid var(--ts-red);}
.pd-links a:hover{color:var(--ts-red);}

/* ---------- category ---------- */
.pd-cathead{padding:24px 0 6px;}
.pd-cathead h1{
  font-family:var(--ts-display);font-size:clamp(27px,5vw,40px);
  line-height:1.1;font-weight:600;margin:0 0 10px;letter-spacing:-0.01em;
}
.pd-cathead p{font-size:15px;line-height:1.6;color:var(--ts-mute);max-width:56ch;margin:0 0 20px;}
.pd-cathead .pk-btn{display:inline-block;text-decoration:none;}

.pd-catlist{list-style:none;margin:30px 0 0;padding:0;border-top:1px solid var(--ts-line);}
.pd-catlist li{border-bottom:1px solid var(--ts-line);}
.pd-catlist a{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:14px 4px;text-decoration:none;color:var(--ts-ink);font-size:14.5px;
}
.pd-catlist a:hover{color:var(--ts-red);}
.pd-catlist span{
  font-family:var(--ts-mono);font-size:11.5px;color:var(--ts-mute);white-space:nowrap;
}

/* ---------- gallery thumbnails (only rendered when >1 photo) ---------- */
.pd-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;}
.pd-thumb{
  width:76px;height:60px;padding:0;flex:none;cursor:pointer;
  border:1.5px solid var(--ts-line);border-radius:10px;overflow:hidden;
  background:var(--ts-white);transition:border-color .15s;
}
.pd-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.pd-thumb:hover{border-color:var(--ts-ink);}
.pd-thumb.active{border-color:var(--ts-red);}

/* ---------- included list ---------- */
.pd-included{margin:20px 0 0;}
.pd-inc-label{
  font-family:var(--ts-mono);font-size:11px;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--ts-mute);margin-bottom:8px;
}
.pd-included ul{margin:0;padding-left:18px;}
.pd-included li{font-size:14px;line-height:1.6;margin-bottom:4px;}

/* ---------- taxonomy chips ---------- */
.pd-chips{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 22px;}
.pd-chip{
  font-family:var(--ts-mono);font-size:10.5px;color:var(--ts-mute);
  background:var(--ts-cloud);border:1px solid var(--ts-line);
  padding:4px 9px;border-radius:6px;
}

/* ---------- add to quote ---------- */
.pd-cta{cursor:pointer;border:none;}
.pd-cta.added{background:var(--ts-red);border-color:var(--ts-red);}
.pd-viewquote{
  display:inline-block;margin-left:14px;font-size:13.5px;font-weight:600;
  color:var(--ts-ink);text-decoration:none;border-bottom:1px solid var(--ts-red);
}
.pd-viewquote:hover{color:var(--ts-red);}
.pd-rate.pd-ask{font-size:19px;color:var(--ts-mute);}

/* =====================================================================
   SITE CHROME ON PRODUCT PAGES
   These pages now carry the real nav and footer from styles.css instead of
   the cut-down packing-list ones, so they read as part of the site rather
   than a loose page. styles.css is loaded FIRST and this file LAST, so the
   few overrides below win — see the source-order note in PROJECT-STATE.md.
   ===================================================================== */

/* The lockup is a real link here (the SPA uses a div + JS routing), so it
   needs the link styling taken back off it. */
.ts-logo-lockup{text-decoration:none;color:inherit;}
.ts-logo-lockup:hover{color:inherit;}

/* packing.css sets a page background for the QR-code pages; the product
   pages follow the main site instead. */
body.ts-page{background:var(--ts-paper);}

.pd-main{padding-bottom:64px;}

/* ---------- wider layout ----------
   The old layout inherited .pk-wrap (760px), which is right for a printed
   packing list but left the product photo about 340px wide on a desktop —
   roughly a quarter of the screen. .ts-wrap (1180px) matches the rest of
   the site and roughly doubles the photo. */
@media(min-width:760px){
  .pd-grid{grid-template-columns:1.25fr 1fr;gap:48px;}
}

/* ---------- click-to-expand ---------- */
.pd-media{position:relative;cursor:zoom-in;}
.pd-media img{transition:transform .35s ease;}
.pd-media:hover img{transform:scale(1.02);}

/* Affordance — without it there's nothing to say the photo is clickable. */
.pd-zoom-hint{
  position:absolute;right:12px;bottom:12px;width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:rgba(17,17,17,0.72);color:var(--ts-white);
  opacity:0;transition:opacity .2s;pointer-events:none;
}
.pd-media:hover .pd-zoom-hint{opacity:1;}
.pd-zoom-hint svg{width:17px;height:17px;}

/* Touch screens have no hover, so show it permanently instead. */
@media(hover:none){
  .pd-zoom-hint{opacity:1;}
  .pd-media:hover img{transform:none;}
}

/* ---------- lightbox ---------- */
body.pd-lb-open{overflow:hidden;}

.pd-lightbox{
  position:fixed;inset:0;z-index:400;
  background:rgba(12,12,12,0.94);
  display:none;align-items:center;justify-content:center;
  padding:56px 64px;
  opacity:0;transition:opacity .18s ease;
}
.pd-lightbox.open{display:flex;opacity:1;}
.pd-lightbox img{
  max-width:100%;max-height:100%;
  object-fit:contain;display:block;
  border-radius:10px;background:var(--ts-white);
}

.pd-lb-close{
  position:absolute;top:18px;right:20px;
  width:42px;height:42px;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,0.1);border:none;border-radius:50%;
  color:#fff;transition:background .15s;
}
.pd-lb-close:hover{background:rgba(255,255,255,0.22);}
.pd-lb-close svg{width:19px;height:19px;}

.pd-lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:46px;height:46px;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,0.1);border:none;border-radius:50%;
  color:#fff;transition:background .15s;
}
.pd-lb-nav:hover{background:rgba(255,255,255,0.22);}
.pd-lb-nav svg{width:22px;height:22px;}
.pd-lb-nav.prev{left:16px;}
.pd-lb-nav.next{right:16px;}

.pd-lb-count{
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
  font-family:var(--ts-mono);font-size:11.5px;letter-spacing:0.08em;
  color:rgba(255,255,255,0.72);
}

/* Single-photo items have nothing to step through. */
.pd-lightbox.solo .pd-lb-nav,
.pd-lightbox.solo .pd-lb-count{display:none;}

@media(max-width:700px){
  .pd-lightbox{padding:60px 14px;}
  .pd-lb-nav{width:40px;height:40px;}
  .pd-lb-nav.prev{left:6px;}
  .pd-lb-nav.next{right:6px;}
}

/* ---------- print ----------
   packing.css hides .pk-header/.pk-footer when printing; these pages carry
   the site nav and footer now, so those need the same treatment. */
@media print{
  .ts-nav,.ts-footer,.pd-links,.pd-viewquote,.pd-cta,.pd-zoom-hint,.pd-lightbox{display:none !important;}
  .pd-media{cursor:auto;}
}
