/* Saved page (saved.html): a title band, a product grid of saved pieces and a
   side-by-side comparison. Cards are rendered by commerce.js (.saved-item). */

.saved-page{background:#fff}

/* Title band */
.saved-head{border-bottom:1px solid #000;padding:clamp(140px,13vw,200px) var(--pad) clamp(34px,4vw,56px)}
.saved-head h1{margin:0;font-family:var(--sync);font-size:clamp(44px,12.2vw,190px);font-weight:400;letter-spacing:-.07em;line-height:.84}
.saved-head-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:clamp(24px,5vw,80px);margin-top:clamp(34px,4vw,60px)}
.saved-head-count{display:flex;align-items:baseline;gap:10px;margin:0;font-family:var(--sync)}
.saved-head-count b{font-size:clamp(36px,3.6vw,56px);font-weight:400;letter-spacing:-.05em;line-height:1}
.saved-head-count span{font-size:10px;letter-spacing:.14em}
.saved-head-copy{max-width:460px;margin:0;color:rgba(0,0,0,.65);font-size:clamp(13px,1.05vw,16px);line-height:1.55}
.saved-head .underlink{justify-self:end;white-space:nowrap}

/* Saved pieces */
.saved-page .saved-section{padding:0}
/* Cells carry their own rules so a part-filled last row stays white. */
.saved-page .saved-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff}
.saved-page .saved-grid:empty{min-height:60vh;background:#fff}
.saved-item{display:flex;min-width:0;flex-direction:column;border-right:1px solid #000;border-bottom:1px solid #000;background:#fff}
.saved-item-media{position:relative;aspect-ratio:3/4;overflow:hidden;background:#f5f5f5}
.saved-item-media>a{display:block;width:100%;height:100%}
.saved-item-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.saved-item:hover .saved-item-media img{transform:scale(1.03)}
.saved-item-remove{position:absolute;top:14px;right:14px;display:grid;width:40px;height:40px;place-items:center;border:1px solid #000;background:#fff;color:#000;padding:0;font-size:20px;line-height:1;cursor:pointer;transition:background .2s,color .2s}
.saved-item-remove:hover,.saved-item-remove:focus-visible{background:#000;color:#fff}
.saved-item-body{display:flex;flex:1;flex-direction:column;gap:10px;padding:18px 18px 20px}
.saved-item-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.saved-item-head h3{min-width:0;margin:0;font-size:15px;font-weight:800;letter-spacing:.01em}
.saved-item-head strong{font-size:15px;white-space:nowrap}
.saved-item-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;color:rgba(0,0,0,.55);font-size:11px;font-weight:700;letter-spacing:.08em}
.saved-item-meta .is-in:before{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#047857;vertical-align:1px;content:""}
.saved-item-meta .is-out{color:#b91c1c}
.saved-item-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:12px}
.saved-item-actions a,.saved-item-actions button{display:flex;min-height:46px;align-items:center;justify-content:center;border:1px solid #000;background:#fff;color:#000;padding:0 10px;font-size:10px;font-weight:800;letter-spacing:.1em;text-align:center;cursor:pointer;transition:background .2s,color .2s}
.saved-item-actions a{background:#000;color:#fff}
.saved-item-actions a:hover{background:#fff;color:#000}
.saved-item-actions button:hover,.saved-item-actions button.active{background:#000;color:#fff}

/* Nothing saved */
.saved-page .saved-empty{display:flex;min-height:0;grid-column:1/-1;flex-direction:column;align-items:flex-start;background:#fff;padding:clamp(70px,9vw,140px) var(--pad)}
.saved-page .saved-empty h2{margin:0 0 26px;font-family:var(--sync);font-size:clamp(44px,8vw,130px);font-weight:400;letter-spacing:-.07em;line-height:.84}
.saved-page .saved-empty p{max-width:460px;margin:0 0 32px;color:rgba(0,0,0,.62);font-size:clamp(14px,1.1vw,17px);line-height:1.55}
.saved-page .saved-empty .button{margin-top:0;min-height:58px;padding:0 34px;font-size:12px;font-weight:800}
html[data-saved-empty] .saved-compare{display:none}

/* Comparison */
.saved-page .compare-section{border-top:0;padding:clamp(80px,9vw,140px) var(--pad)}
.saved-page .compare-section>header{align-items:flex-end;margin-bottom:34px}
.saved-page .compare-section h2{margin:0;font-size:clamp(40px,6vw,100px)}
.saved-compare-meta{display:flex;align-items:baseline;gap:8px;margin:0;font-family:var(--sync)}
.saved-compare-meta b{font-size:clamp(30px,3vw,46px);font-weight:400;letter-spacing:-.04em}
.saved-compare-meta span{font-size:11px;letter-spacing:.1em}
.saved-page .compare-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:0;background:none}
.saved-page .compare-column{border:1px solid #000;padding:22px}
.saved-page .compare-column+.compare-column{margin-left:-1px}
.saved-page .compare-column img{aspect-ratio:3/4}
.saved-page .compare-column>button{top:36px;right:36px;width:40px;height:40px;font-size:20px;transition:background .2s,color .2s}
.saved-page .compare-column>button:hover{background:#000;color:#fff}
.saved-page .compare-column h3{min-height:0;margin:18px 0 14px;font-size:16px}
.saved-page .compare-column dl div{grid-template-columns:110px 1fr;padding:14px 0;font-size:12px}
.saved-page .compare-column dt{font-size:10px;letter-spacing:.1em}
.saved-page .compare-empty{min-height:0;border:1px solid #000;padding:clamp(34px,4vw,56px)}
.saved-page .compare-empty p{max-width:760px;font-size:clamp(15px,1.6vw,24px);line-height:1.35}

@media(max-width:1100px){
  .saved-page .saved-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .saved-head{padding:120px 18px 34px}
  .saved-head-row{grid-template-columns:1fr;gap:16px}
  .saved-head .underlink{justify-self:start}
  .saved-page .saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .saved-page .compare-section{padding:70px 18px}
  .saved-page .compare-section>header{flex-direction:row;align-items:flex-end}
}
@media(max-width:640px){
  .saved-item-remove{top:8px;right:8px;width:34px;height:34px;font-size:17px}
  .saved-item-body{gap:8px;padding:12px 12px 14px}
  .saved-item-head{flex-direction:column;gap:4px}
  .saved-item-head h3,.saved-item-head strong{font-size:13px}
  .saved-item-meta{flex-direction:column;gap:3px;font-size:10px}
  .saved-item-actions{grid-template-columns:1fr;gap:6px}
  .saved-item-actions a,.saved-item-actions button{min-height:42px;font-size:9px}
  .saved-page .saved-empty{padding:60px 18px}
  .saved-page .compare-column>button{top:30px;right:30px}
}
@media(prefers-reduced-motion:reduce){
  .saved-item-media img{transition:none}
}
