/* Product page. Builds on catalogue.css (tokens, focus rings, product cards).
   Text sits directly on the page; only things you can press have a surface. */
.catalog.pd{--soft:#e9f7ff;--soft-2:#d9f0fd;--soft-r:16px;padding-top:26px;font-variant-numeric:lining-nums}
.pd .pcard{font-variant-numeric:normal}

/* G2 corners: a superellipse, whose curvature eases in from the straight edge.
   Browsers without corner-shape keep the plain radius. */
.pd-opt span,.pd-qty,.catalog .pd-add,.pd-ask,.pd-more,.pd-photo,.pd-thumbs button,.catalog .pd-form select,.pd-table button,.pd-dialog button{border-radius:var(--soft-r)}
@supports(corner-shape:squircle){
  .catalog.pd{--soft-r:26px}
  .pd-opt span,.pd-qty,.catalog .pd-add,.pd-ask,.pd-more,.pd-photo,.pd-thumbs button,.catalog .pd-form select,.pd-table button,.pd-dialog button{corner-shape:squircle}
}

.pd-crumbs ol{display:flex;flex-wrap:wrap;gap:4px 10px;margin:0 0 26px;padding:0;list-style:none;color:var(--muted);font-size:14px}
.pd-crumbs li{display:flex;align-items:center;gap:10px;min-height:32px}
.pd-crumbs li+li::before{content:"/";color:#9db6c4}
.pd-crumbs a{color:var(--ink-2);font-weight:560;text-decoration:none}
.pd-crumbs a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}

.pd-top{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);align-items:start;gap:clamp(36px,5.5vw,84px)}
.pd-gallery{position:sticky;top:112px}
.catalog .pd-photo{--soft-r:22px;position:relative;display:grid;place-items:center;width:100%;max-height:calc(100vh - 220px);min-height:340px;aspect-ratio:1/1;padding:0;overflow:hidden;border:0;background:linear-gradient(145deg,#eef9ff,#e5f5f1);cursor:zoom-in}
@supports(corner-shape:squircle){.catalog .pd-photo{--soft-r:44px}}
.pd-photo img{position:absolute;inset:5%;width:90%;height:90%;object-fit:contain;filter:drop-shadow(0 18px 16px rgba(23,80,109,.16));transition:transform .5s var(--ease)}
.pd-photo:hover img{transform:scale(1.025)}
.catalog .pd-photo--empty{gap:12px;align-content:center;color:var(--muted);font-size:15px;cursor:default}
.pd-photo--empty svg{width:72px;height:72px;color:#5b9fc6;stroke-width:1.2}
.pd-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:0;list-style:none}
.pd-thumbs button{width:76px;height:76px;padding:7px;border:0;background:var(--soft);cursor:pointer}
.pd-thumbs button[aria-current]{box-shadow:inset 0 0 0 2px var(--green)}
.pd-thumbs img{width:100%;height:100%;object-fit:contain}

.pd-info{padding-top:10px}
.catalog .pd-kicker{margin:0 0 12px;color:var(--green);font-size:14px;font-weight:620}
.catalog .pd-info h1{margin:0;font-size:clamp(38px,4.5vw,62px);font-weight:300;line-height:1.06;letter-spacing:-.03em;overflow-wrap:anywhere}
.catalog .pd-text{max-width:56ch;margin:20px 0 0;color:var(--ink-2);font-size:17px;font-weight:300;line-height:1.65}
.pd-offer{margin-top:30px}
.catalog .pd-price{margin:0;color:var(--ink);font-family:Raleway,Arial,sans-serif;font-size:clamp(42px,4.4vw,58px);font-weight:300;line-height:1.05;letter-spacing:-.025em;font-variant-numeric:lining-nums}
.pd-price span{margin-left:-.12em;font-size:.5em;font-weight:300;letter-spacing:0}
.pd-price del{margin-left:10px;color:var(--muted);font-size:.42em;letter-spacing:0}
.catalog .pd-stock{display:flex;align-items:center;gap:10px;margin:14px 0 0;color:var(--green);font-size:15px;font-weight:560}
.pd-stock::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:#18a970;box-shadow:0 0 0 5px rgba(24,169,112,.13)}
.catalog .pd-stock.is-out{color:#9b3a2a}
.pd-stock.is-out::before{background:#c4553f;box-shadow:0 0 0 5px rgba(196,85,63,.13)}

/* Options */
.pd-form{margin-top:34px}
.pd-group{min-width:0;margin:0 0 26px;padding:0;border:0}
.pd-group legend,.pd-fallback label,.pd-group>label{display:block;margin-bottom:12px;padding:0;color:var(--ink);font-size:15px;font-weight:620}
.pd-opts{display:flex;flex-wrap:wrap;gap:10px}
.pd-opt{position:relative;display:block;cursor:pointer}
.catalog .pd-opt input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer}
.pd-opt span{min-width:64px;min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 24px;background:var(--soft);color:var(--ink);font-size:16px;font-weight:500;line-height:1.25;text-align:center;transition:background .2s,color .2s,transform .25s var(--ease)}
.pd-opt:hover span{background:var(--soft-2)}
.pd-opt:active span{transform:scale(.975)}
.pd-opt input:checked+span{background:var(--green);color:#fff}
.pd-opt input:focus-visible+span{outline:3px solid #187ab6;outline-offset:3px}
.catalog .pd-opt input:focus-visible{outline:none!important}
.pd-opt.is-out span{color:#5d7a8b;text-decoration:line-through}
.pd-opt.is-out input:checked+span{background:#3d6075;color:#fff}
.pd-opt i{flex:none;width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(18,50,72,.22)}
.catalog .pd-form select{width:100%;min-height:56px;padding:12px 48px 12px 20px;border:0!important;border-radius:var(--soft-r)!important;appearance:none;background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123248' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center/18px!important;font-size:16px;font-weight:500;cursor:pointer}
.catalog .pd-ref{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 26px;color:var(--muted);font-size:15px}
.pd-ref b{color:var(--ink-2);font-weight:620}

.js .pd-fallback{display:none}

/* Quantity and add to cart */
.pd-buy{display:flex;flex-wrap:wrap;gap:12px}
.pd-unit{display:none}
.pd-qty{flex:none;display:flex;align-items:center;padding:6px;background:var(--soft)}
.pd-qty button{width:50px;height:50px;display:grid;place-items:center;padding:0;border:0;border-radius:16px;background:none;color:var(--ink);cursor:pointer;transition:background .2s}
.pd-qty button:hover:not(:disabled){background:#fff}
.pd-qty button:disabled{color:#8fa9b8;cursor:default}
.pd-qty svg{width:22px;height:22px;stroke-width:1.8}
.catalog .pd-qty input{width:46px;min-height:50px;padding:0;border:0!important;background:none!important;box-shadow:none!important;font-size:18px;font-weight:500;text-align:center;appearance:textfield;-moz-appearance:textfield;font-variant-numeric:lining-nums}
.pd-qty input::-webkit-inner-spin-button,.pd-qty input::-webkit-outer-spin-button{appearance:none;margin:0}
.catalog .pd-add[type=submit]{flex:1;min-height:62px!important;padding:14px 34px!important;border-radius:var(--soft-r)!important;font-size:17px;font-weight:600!important;letter-spacing:0;transition:background .2s,transform .25s var(--ease)}
.catalog .pd-add[type=submit]:active{transform:scale(.985)}
.catalog .pd-add[type=submit]:disabled{background:#dfeaf0!important;color:#4d6c7e!important;transform:none!important;cursor:default}
.pd-ask{min-height:62px;display:flex;align-items:center;justify-content:center;margin-top:12px;padding:14px 34px;background:var(--green-soft);color:#055f40;font-size:17px;font-weight:600;text-decoration:none}
.pd-ask:hover{background:#c3ecda}
.catalog .pd-message{flex:1 0 100%;margin:0;font-size:15px;font-weight:560;color:#055f40}
.pd-message:empty{display:none}
.catalog .pd-message.is-error{color:#9b2230}
.pd-message a{font-weight:700;text-underline-offset:4px}
.pd-notes{display:grid;gap:14px;margin:38px 0 0;padding:0;list-style:none;color:var(--ink-2);font-size:15px;font-weight:400}
.pd-notes li{display:flex;align-items:center;gap:14px}
.pd-notes svg{flex:none;width:24px;height:24px;color:var(--green);stroke-width:1.5}

/* References and related products */
.pd-section{margin-top:clamp(70px,8vw,112px)}
.catalog .pd-section h2{margin:0 0 22px;font-size:clamp(30px,3.4vw,44px);font-weight:300;line-height:1.1;letter-spacing:-.03em}
.pd-table table{width:100%;border-collapse:collapse;font-size:15px}
.pd-table thead th{padding:0 18px 12px 0;color:var(--muted);font-size:13px;font-weight:560;text-align:left}
.pd-table tbody tr{border-top:1px solid var(--line)}
.pd-table tbody th,.pd-table td{padding:13px 18px 13px 0;color:var(--ink-2);font-weight:450;text-align:left;vertical-align:middle}
.pd-table tbody th{color:var(--ink);font-weight:560}
.pd-table small{display:block;margin-top:1px;color:var(--muted);font-size:13px;font-weight:450}
.pd-table td:nth-last-child(-n+3){white-space:nowrap}
.pd-table td.is-out{color:#9b3a2a}
.pd-table td:last-child{width:1%;padding-right:0}
.pd-table button{--soft-r:14px;min-width:92px;min-height:44px;padding:8px 20px;border:0;background:var(--soft);color:var(--ink);font-size:14px;font-weight:560;cursor:pointer}
@supports(corner-shape:squircle){.pd-table button{--soft-r:22px}}
.pd-table button:hover{background:var(--soft-2)}
.pd-table .is-selected button{background:var(--green);color:#fff}
.pd-table.is-collapsed tbody tr:nth-child(n+9):not(.is-selected){display:none}
.pd-more{min-height:56px;margin-top:22px;padding:12px 30px;border:0;background:var(--soft);color:var(--ink);font-size:16px;font-weight:560;cursor:pointer}
.pd-more:hover{background:var(--soft-2)}
.catalog.pd .pgrid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}

.pd-dialog{width:min(1100px,calc(100% - 28px));max-width:none;height:min(900px,calc(100% - 28px));max-height:none;padding:0;border:0;border-radius:22px;background:#fff}
.pd-dialog::backdrop{background:rgba(18,50,72,.6)}
.pd-dialog img{width:100%;height:100%;object-fit:contain}
.pd-dialog button{position:absolute;z-index:1;top:16px;right:16px;width:54px;height:54px;display:grid;place-items:center;padding:0;border:0;background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 4px 12px rgba(18,50,72,.16)}
.pd-dialog svg{width:22px;height:22px;stroke-width:1.8}

@media(max-width:1050px){.catalog.pd .pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1050px){.pd .pgrid .pcard:nth-child(4){display:none}}
@media(max-width:860px){
  .pd-top{grid-template-columns:minmax(0,1fr);gap:26px}
  .pd-gallery{position:static}
  .catalog .pd-photo{min-height:0;max-height:none}
}
@media(max-width:760px){
  .catalog.pd{padding-top:14px}
  .pd-crumbs ol{margin-bottom:14px}
  .catalog.pd .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pd-form{margin-top:28px}
  .pd-opt span{padding-inline:20px}
  .pd-buy{position:sticky;z-index:20;bottom:0;margin-inline:-14px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:#fff}
  .pd-qty button{width:44px}
  .catalog .pd-qty input{width:36px}
  .catalog .pd-add[type=submit]{padding-inline:18px!important;font-size:16px}
  .pd-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .pd-table tbody tr{position:relative;display:block;padding:15px 108px 15px 0}
  .pd-table.is-collapsed tbody tr:nth-child(n+9):not(.is-selected){display:none}
  .pd-table tbody th,.pd-table td{display:inline;padding:0;white-space:normal}
  .pd-table tbody th{display:block;margin-bottom:3px}
  .pd-table td:not(:nth-last-child(-n+2))::after{content:" ·";color:var(--muted)}
  .pd-table td:empty{display:none}
  .pd-table td:last-child{position:absolute;top:50%;right:0;width:auto;transform:translateY(-50%)}
  .pd-unit{display:inline}
  .pd-crumbs li[aria-current]{display:none}
}
.pd-opt input:checked+span i{box-shadow:0 0 0 2px #fff}
