/* ── PRODUCT DETAIL PAGE STYLES ─────────────────────────────────── */

/* HERO SPLIT */
.pd-hero-split{background:var(--offwhite);border-bottom:1px solid var(--border)}
.pd-hero-split-inner{max-width:1140px;margin:0 auto;padding:52px 32px 60px;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.pd-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:22px;flex-wrap:wrap}
.pd-back{font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--mid);transition:color .2s;display:inline-flex;align-items:center;min-height:32px;padding:4px 0}
.pd-back:hover{color:var(--dark)}
.pd-breadcrumb-sep{font-size:13px;color:var(--mid)}
.pd-breadcrumb-cat{font-size:13px;font-weight:500;color:var(--gold)}
.pd-range-tag{display:block;font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--mid);margin-bottom:14px}
.pd-hero-title{font-family:var(--f-d);font-size:clamp(40px,5.5vw,68px);font-weight:600;color:var(--dark);line-height:1.06;letter-spacing:-.02em;margin-bottom:20px}
.pd-hero-desc{font-size:16px;line-height:1.82;color:var(--mid);margin-bottom:36px;max-width:460px}
.pd-hero-specs{display:flex;gap:36px;flex-wrap:wrap}
.pd-spec{display:flex;flex-direction:column;gap:5px}
.pd-spec-label{font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--mid)}
.pd-spec-value{font-size:16px;color:var(--dark);font-family:var(--f-d);font-weight:500}
.pd-hero-right{display:flex;flex-direction:column;gap:10px}
.pd-hero-img-frame{width:100%;background:var(--light);border-radius:3px;overflow:hidden;line-height:0;min-height:200px;display:flex;align-items:center;justify-content:center}
.pd-hero-photo{width:100%;height:auto;display:block;object-fit:contain;max-height:480px}
.pd-hero-thumbs{display:flex;gap:8px;flex-wrap:wrap}

/* CSS GALLERY (no-JS) */
.gal-r{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pd-hero-img-frame .pd-hero-photo{display:none}
#ga:checked~.pd-hero-img-frame .pd-hero-photo:nth-child(1){display:block}
#gb:checked~.pd-hero-img-frame .pd-hero-photo:nth-child(2){display:block}
#gc:checked~.pd-hero-img-frame .pd-hero-photo:nth-child(3){display:block}
#ga:checked~.pd-hero-thumbs label:nth-child(1){opacity:1;border-color:var(--gold)}
#gb:checked~.pd-hero-thumbs label:nth-child(2){opacity:1;border-color:var(--gold)}
#gc:checked~.pd-hero-thumbs label:nth-child(3){opacity:1;border-color:var(--gold)}
/* Focus rings: highlight the corresponding thumbnail when its radio is focused,
 * and the hero frame when ANY of the radios has focus. Use general-sibling
 * combinator (~) so it works regardless of how many inputs sit between the
 * focused radio and the target. */
#ga:focus-visible~.pd-hero-img-frame,
#gb:focus-visible~.pd-hero-img-frame,
#gc:focus-visible~.pd-hero-img-frame{outline:2px solid var(--gold);outline-offset:2px;border-radius:2px}
#ga:focus-visible~.pd-hero-thumbs label[for="ga"],
#gb:focus-visible~.pd-hero-thumbs label[for="gb"],
#gc:focus-visible~.pd-hero-thumbs label[for="gc"]{outline:2px solid var(--gold);outline-offset:2px}
label.pd-thumb{overflow:hidden;display:inline-flex}
label.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* GALLERY THUMBNAILS */
.pd-gallery{max-width:1140px;margin:0 auto;padding:16px 32px 0;display:flex;gap:8px;flex-wrap:wrap}
.pd-thumb{width:80px;height:56px;object-fit:cover;border-radius:2px;cursor:pointer;opacity:.55;transition:opacity .2s,border-color .2s;border:2px solid transparent;flex-shrink:0}
.pd-thumb:hover{opacity:.85}
.pd-thumb:focus-visible{outline:2px solid var(--gold);outline-offset:2px;opacity:1}

/* 2-COL CONTENT */
.pd-content{max-width:1140px;margin:0 auto;padding:56px 32px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.pd-desc-col{}
.pd-product-tag{font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:12px}
.pd-title{font-family:var(--f-d);font-size:clamp(30px,4vw,46px);font-weight:600;line-height:1.12;letter-spacing:-.01em;margin-bottom:18px}
.pd-desc{font-size:16px;line-height:1.82;color:var(--mid);margin-bottom:28px}
.pd-uses-label{font-size:12px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:var(--mid);margin-bottom:12px;display:block}
.pd-uses-list{list-style:none;display:flex;flex-direction:column;gap:8px}
.pd-uses-list li{font-size:15px;color:var(--dark);display:flex;align-items:center;gap:10px}
.pd-uses-list li::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--gold);flex-shrink:0}

/* DIMENSIONS TABLE */
.pd-dims-col{min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.pd-dims-label{font-size:12px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:var(--mid);margin-bottom:14px;display:block}
.pd-dims-heading{font-family:var(--f-d);font-size:22px;font-weight:600;color:var(--dark);margin-bottom:20px}
.dims-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:0 4px;border-radius:2px}
.dims-table{width:100%;border-collapse:collapse;font-size:14px;min-width:320px}
.dims-table thead th{text-align:left;padding:10px 12px;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--mid);background:var(--offwhite);border-bottom:2px solid var(--border);white-space:nowrap}
.dims-table tbody tr{border-bottom:1px solid var(--border)}
.dims-table tbody tr:hover{background:var(--offwhite)}
.dims-table td{padding:10px 12px;color:var(--dark);vertical-align:middle;white-space:nowrap}
.dims-note{font-size:13px;color:var(--mid);margin-top:12px;line-height:1.6}

/* QUOTE FORM */
.pd-form-section{background:var(--dark);padding:72px 0}
.pd-form-inner{max-width:720px;margin:0 auto;padding:0 32px}
.pd-form-tag{font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:12px}
.pd-form-title{font-family:var(--f-d);font-size:clamp(28px,4vw,44px);font-weight:600;line-height:1.12;color:#fff;margin-bottom:8px;letter-spacing:-.01em}
.pd-form-sub{font-size:15px;color:rgba(255,255,255,.65);margin-bottom:36px}

/* DYNAMIC DIM/QTY ROWS */
.form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.dim-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}
.dim-remove{background:none;border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.55);border-radius:2px;width:44px;height:44px;cursor:pointer;font-size:16px;transition:color .2s,border-color .2s,background .2s;margin-bottom:14px;display:inline-flex;align-items:center;justify-content:center}
.dim-remove:hover{color:#fff;border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.04)}
.btn-add-row{background:none;border:1px dashed rgba(255,255,255,.25);color:rgba(255,255,255,.65);font-family:var(--f-b);font-size:13px;letter-spacing:.08em;padding:12px 18px;min-height:44px;border-radius:2px;cursor:pointer;margin-bottom:16px;transition:color .2s,border-color .2s,background .2s;display:inline-flex;align-items:center;justify-content:center}
.btn-add-row:hover{color:#fff;border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.04)}
.form-success{display:none;padding:24px 28px;border:1px solid rgba(255,255,255,.18);border-radius:3px;color:rgba(255,255,255,.92);font-size:15px;line-height:1.7;margin-top:8px}
.form-success.visible{display:block}

/* FOOTER on product pages */
.pd-footer{background:#141210;padding:40px 0 24px}
.pd-footer-inner{max-width:1140px;margin:0 auto;padding:0 32px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.pd-footer-brand{font-family:var(--f-d);font-size:17px;font-weight:700;color:rgba(255,255,255,.85);letter-spacing:.07em}
.pd-footer-links{display:flex;gap:20px;list-style:none;flex-wrap:wrap}
.pd-footer-links a{font-size:13px;color:rgba(255,255,255,.65);padding:6px 0;min-height:32px;display:inline-flex;align-items:center;transition:color .2s}.pd-footer-links a:hover{color:#fff}
.pd-footer-copy{font-size:12px;color:rgba(255,255,255,.55);width:100%;text-align:center;padding-top:20px;border-top:1px solid rgba(255,255,255,.05);margin-top:16px}
.footer-credit{font-size:11px;color:rgba(255,255,255,.45);width:100%;text-align:center;padding-top:6px}
.credit-link{color:inherit;text-decoration:underline}

/* RESPONSIVE */
@media(max-width:768px){
  .pd-hero-split-inner{grid-template-columns:1fr;gap:24px;padding:24px 20px 40px}
  .pd-hero-right{order:-1}
  .pd-hero-img-frame{min-height:auto}
  .pd-hero-photo{max-height:260px}
  .pd-hero-specs{gap:20px}
  .pd-hero-title{font-size:clamp(34px,8vw,52px)}
  .pd-content{grid-template-columns:1fr;gap:36px;padding:32px 20px}
  .pd-form-section{padding:48px 0}
  .pd-form-inner{padding:0 20px}
  .pd-form-sub{margin-bottom:28px}
  .pd-footer{padding:32px 0 20px;padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .pd-footer-inner{flex-direction:column;align-items:flex-start;padding:0 20px}
  .form-row-3{grid-template-columns:1fr}
  .dim-row{grid-template-columns:1fr;gap:8px}
  .dim-remove{margin-bottom:0;width:100%;height:44px}
  .spec-diam-row{grid-template-columns:1fr}
  .spec-remove{position:static;width:100%;height:44px;margin-top:12px}
  .pd-gallery{padding:12px 20px 0}
  .pd-thumb{width:64px;height:48px}
}
@media(max-width:480px){
  .pd-hero-split-inner{padding:20px 16px 32px}
  .pd-content{padding:28px 16px}
  .pd-form-inner{padding:0 16px}
  .pd-hero-title{font-size:32px}
  .pd-hero-desc{font-size:15px}
  .pd-title{font-size:28px}
}

/* CART LINK IN NAV */
.cart-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:rgba(255,255,255,.85);text-decoration:none;padding:9px 14px;min-height:40px;border:1px solid rgba(255,255,255,.25);border-radius:3px;transition:color .2s,border-color .2s,background .2s;margin-right:4px}
.cart-link:hover{color:#fff;border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.04)}
.cart-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;background:var(--gold);color:#1a1a1a;font-size:11px;font-weight:700;border-radius:10px;padding:0 5px}

/* SPEC ROWS (cart form) */
.spec-row{position:relative;padding:0 0 20px 0;margin-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.spec-row:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}
.spec-diam-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input-unit{display:flex;align-items:center;gap:8px}
.input-unit input,.input-unit select{flex:1;min-width:0}
.unit-label{font-size:13px;color:rgba(255,255,255,.65);white-space:nowrap}
.label-hint{font-size:12px;color:rgba(255,255,255,.55);font-weight:400;letter-spacing:0;text-transform:none}
.spec-remove{position:absolute;top:0;right:0;background:none;border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.55);border-radius:2px;width:36px;height:36px;cursor:pointer;font-size:15px;transition:color .2s,border-color .2s,background .2s;display:flex;align-items:center;justify-content:center}
.spec-remove:hover{color:#fff;border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.04)}
.cart-error{font-size:14px;color:#f87878;margin-bottom:12px;padding:11px 14px;border:1px solid rgba(248,120,120,.3);border-radius:3px;background:rgba(248,120,120,.06)}
.cart-success-msg{display:none;padding:24px 28px;border:1px solid rgba(255,255,255,.18);border-radius:3px;color:rgba(255,255,255,.92);font-size:15px;line-height:1.7;margin-top:8px}
.cart-success-msg a{color:var(--gold);text-decoration:none}
.cart-success-msg a:hover{text-decoration:underline}
.nonstandard-hint{font-size:13px;color:#e8b84b;background:rgba(232,184,75,.08);border:1px solid rgba(232,184,75,.28);border-radius:3px;padding:10px 14px;margin-top:10px;line-height:1.55}
