/*
 * SUCIAPOSSE / line catalogue
 * Editorial archive layer for the three Black Line catalogues.
 */

.shop-line-page{
  --catalog-ink:var(--fg);
  --catalog-muted:var(--fg-muted);
  --catalog-paper:var(--bg-elevated);
  --catalog-stage:var(--bg-surface);
  --catalog-hairline:var(--border);
  --catalog-hairline-strong:var(--border-strong);
  --catalog-radius:8px;
  background:var(--bg);
}

.shop-line-page .btn{
  min-height:40px;
  padding:10px 16px;
  border-radius:999px;
  box-shadow:none;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:border-color .12s ease, background-color .12s ease, color .12s ease;
}

.shop-line-page .btn:hover,
.shop-line-page .btn:focus-visible{
  transform:none;
}

.shop-line-page .btn-primary:hover,
.shop-line-page .btn-primary:focus-visible{
  border-color:var(--catalog-ink);
  background:var(--catalog-ink);
  color:var(--catalog-paper);
  opacity:.72;
}

.shop-line-page .shop-hero{
  padding:clamp(28px, 5vw, 64px) 0 clamp(52px, 7vw, 88px);
}

.shop-line-page .shop-hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(360px, .98fr);
  gap:0;
  align-items:stretch;
  overflow:hidden;
  border:1px solid var(--catalog-hairline);
  border-radius:var(--catalog-radius);
  background:var(--catalog-paper);
}

.shop-line-page .shop-panel{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.shop-line-page .shop-hero-copy{
  min-height:clamp(410px, 49vw, 610px);
  padding:clamp(24px, 4.2vw, 58px);
  display:flex;
  flex-direction:column;
  gap:0;
}

.shop-hero-index,
.shop-hero-caption,
.catalog-count,
.shop-product-media-label,
.shop-product-zoom,
.shop-hero-facts dt,
.shop-hero-facts dd{
  font-family:var(--mono, ui-monospace, monospace);
  text-transform:uppercase;
}

.shop-hero-index{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:auto;
  color:var(--catalog-muted);
  font-size:.66rem;
  letter-spacing:.12em;
  line-height:1.2;
}

.shop-line-page .shop-hero-copy .kicker{
  margin:clamp(50px, 8vw, 104px) 0 14px;
  color:var(--catalog-muted);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.7rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.shop-line-page .brand-title{
  max-width:9ch;
  margin:0;
  font-size:clamp(3.35rem, 7.1vw, 6.75rem);
  font-weight:400;
  letter-spacing:-.075em;
  line-height:.88;
}

.shop-line-page .shop-line-lead{
  max-width:38ch;
  margin:22px 0 0;
  color:var(--catalog-ink);
  font-size:clamp(1rem, 1.4vw, 1.2rem);
  line-height:1.42;
  opacity:1;
}

.shop-line-page .shop-line-deck{
  max-width:50ch;
  margin:10px 0 0;
  color:var(--catalog-muted);
  font-size:.88rem;
}

.shop-line-page .hero-row{
  justify-content:flex-start;
  margin:28px 0 0;
}

.shop-hero-facts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
  margin:clamp(32px, 5vw, 68px) 0 0;
  border-top:1px solid var(--catalog-hairline);
}

.shop-hero-facts div{
  min-width:0;
  padding:11px 10px 0 0;
}

.shop-hero-facts div + div{
  padding-left:10px;
  border-left:1px solid var(--catalog-hairline);
}

.shop-hero-facts dt{
  color:var(--catalog-muted);
  font-size:.58rem;
  letter-spacing:.11em;
}

.shop-hero-facts dd{
  margin:4px 0 0;
  color:var(--catalog-ink);
  font-size:.68rem;
  letter-spacing:.06em;
}

.shop-line-page .shop-hero-media{
  position:relative;
  min-height:clamp(410px, 49vw, 610px);
  height:auto;
  border-left:1px solid var(--catalog-hairline);
  background:var(--catalog-stage);
}

.shop-line-page .shop-hero-media img{
  width:100%;
  height:100%;
  min-height:inherit;
  object-fit:cover;
}

.shop-hero-caption{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.3);
  background:rgba(0,0,0,.78);
  color:#fff;
  font-size:.62rem;
  letter-spacing:.1em;
  line-height:1.2;
}

.shop-line-page .shop-catalog{
  padding:0 0 clamp(56px, 8vw, 96px);
}

.shop-line-page .catalog-line{
  scroll-margin-top:130px;
}

.shop-line-page .catalog-line-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:end;
  gap:24px;
  margin:0 0 16px;
  padding:0 0 18px;
  border-bottom:1px solid var(--catalog-hairline-strong);
}

.catalog-heading-row{
  display:flex;
  align-items:baseline;
  gap:18px;
}

.shop-line-page .catalog-line-head .kicker{
  margin:0 0 12px;
  color:var(--catalog-muted);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.66rem;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.shop-line-page .catalog-line-title{
  margin:0;
  color:var(--catalog-muted);
  font-size:clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight:500;
  letter-spacing:.16em;
  line-height:1.1;
  text-transform:uppercase;
}

.catalog-count{
  color:var(--catalog-muted);
  font-size:.62rem;
  letter-spacing:.12em;
  white-space:nowrap;
}

.shop-line-page .catalog-line-note{
  max-width:56ch;
  margin:10px 0 0;
  color:var(--catalog-muted);
  font-size:.84rem;
  line-height:1.45;
  opacity:1;
}

.shop-line-page .catalog-line-actions{
  align-items:center;
  gap:8px;
}

.shop-line-page .shop-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
}

.shop-line-page .shop-product{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--catalog-hairline);
  border-radius:var(--catalog-radius);
  background:var(--catalog-paper);
  box-shadow:none;
  color:var(--catalog-ink);
  transition:border-color .12s ease;
}

.shop-line-page .shop-product:hover,
.shop-line-page .shop-product:focus-within{
  border-color:var(--catalog-hairline-strong);
}

.shop-line-page .shop-product-media{
  position:relative;
  width:100%;
  height:auto;
  padding:0;
  overflow:hidden;
  border:0;
  border-bottom:1px solid var(--catalog-hairline);
  border-radius:0;
  background:var(--catalog-stage);
  color:var(--catalog-ink);
  cursor:zoom-in;
}

.shop-product-stage{
  display:block;
  aspect-ratio:4 / 5;
  overflow:hidden;
  background:var(--catalog-stage);
}

.shop-line-page .shop-product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .3s ease;
}

.shop-line-page .shop-product:hover .shop-product-media img{
  transform:scale(1.018);
}

.shop-product-media-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border-top:1px solid var(--catalog-hairline);
  background:var(--catalog-paper);
  color:var(--catalog-muted);
  font-size:.59rem;
  letter-spacing:.1em;
  line-height:1.2;
}

.shop-product-media-label span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.shop-product-zoom{
  position:absolute;
  top:9px;
  right:9px;
  display:grid;
  width:27px;
  height:27px;
  place-items:center;
  border:1px solid rgba(0,0,0,.28);
  border-radius:50%;
  background:rgba(255,255,255,.86);
  color:#101010;
  font-size:.7rem;
  letter-spacing:0;
}

.shop-line-page .shop-product-body{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:9px;
  padding:13px 11px 11px;
}

.shop-product-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.shop-line-page .shop-product-line{
  margin:0;
  color:var(--catalog-muted);
  font-size:.62rem;
  letter-spacing:.08em;
  line-height:1.25;
  opacity:1;
  text-transform:uppercase;
}

.shop-line-page .shop-product-price{
  margin:0;
  color:var(--catalog-muted);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.6rem;
  line-height:1.25;
  text-align:right;
}

.shop-line-page .shop-product h3{
  min-height:2.5em;
  margin:1px 0 0;
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.84rem;
  font-weight:500;
  letter-spacing:.01em;
  line-height:1.25;
  text-transform:uppercase;
}

.shop-line-page .shop-product-desc{
  margin:0;
  color:var(--catalog-muted);
  font-size:.75rem;
  line-height:1.4;
  opacity:1;
}

.shop-line-page .shop-product-meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
  margin-top:auto;
  border-top:1px solid var(--catalog-hairline);
}

.shop-line-page .shop-product-meta span{
  min-width:0;
  padding:8px 5px 0 0;
  overflow:hidden;
  border:0;
  border-radius:0;
  color:var(--catalog-muted);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.52rem;
  letter-spacing:.05em;
  line-height:1.2;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

.shop-line-page .shop-product-meta span + span{
  padding-left:5px;
  border-left:1px solid var(--catalog-hairline);
}

.shop-line-page .shop-buy-row{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin-top:3px;
}

.shop-line-page .shop-size{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--catalog-hairline-strong);
  border-radius:4px;
  background:var(--catalog-paper);
  color:var(--catalog-ink);
  font:500 .7rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing:.06em;
  text-transform:uppercase;
}

.shop-line-page .shop-size.is-missing{
  border-color:var(--brand);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--brand) 12%, transparent);
}

.shop-line-page .shop-buy-row .btn{
  width:100%;
}

.shop-line-page .shop-cart{
  margin-top:clamp(44px, 7vw, 84px);
  padding:clamp(16px, 2.5vw, 28px);
  border:1px solid var(--catalog-hairline);
  border-radius:var(--catalog-radius);
  background:var(--catalog-paper);
  box-shadow:none;
}

.shop-line-page .shop-cart-head{
  align-items:end;
  border-bottom:1px solid var(--catalog-hairline-strong);
}

.shop-line-page .shop-cart-head .kicker{
  color:var(--catalog-muted);
  font-family:var(--mono, ui-monospace, monospace);
  font-size:.66rem;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.shop-line-page .shop-cart-head .page-title{
  margin-top:8px;
  color:var(--catalog-muted);
  font-size:clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.shop-line-page .shop-cart-item,
.shop-line-page .shop-lightbox-inner{
  border-radius:var(--catalog-radius);
  box-shadow:none;
}

.shop-line-page .shop-lightbox-inner{
  border-color:rgba(255,255,255,.3);
}

.shop-line-page .shop-lightbox-close{
  border-radius:50%;
  box-shadow:none;
}

@media (max-width:1180px){
  .shop-line-page .shop-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .shop-line-page .shop-grid .shop-product:last-child{
    grid-column:auto;
  }
}

@media (max-width:900px){
  .shop-line-page .shop-hero-grid{
    grid-template-columns:1fr;
  }

  .shop-line-page .shop-hero-copy{
    min-height:460px;
  }

  .shop-line-page .shop-hero-media{
    min-height:0;
    height:clamp(340px, 76vw, 620px);
    border-top:1px solid var(--catalog-hairline);
    border-left:0;
  }

  .shop-line-page .shop-hero-media img{
    min-height:0;
  }
}

@media (max-width:760px){
  .shop-line-page .shop-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .shop-line-page .shop-grid .shop-product:last-child{
    grid-column:auto;
  }

  .shop-line-page .catalog-line-head{
    grid-template-columns:1fr;
    align-items:start;
  }

  .shop-line-page .catalog-line-actions{
    justify-content:flex-start;
  }
}

@media (max-width:520px){
  .shop-line-page .shop-hero{
    padding-top:22px;
  }

  .shop-line-page .shop-hero-copy{
    min-height:430px;
    padding:20px 18px;
  }

  .shop-line-page .shop-hero-copy .kicker{
    margin-top:58px;
  }

  .shop-line-page .brand-title{
    font-size:clamp(3rem, 16vw, 4.5rem);
  }

  .shop-hero-index{
    font-size:.58rem;
  }

  .shop-hero-facts{
    grid-template-columns:1fr;
  }

  .shop-hero-facts div{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:8px 0;
    border-bottom:1px solid var(--catalog-hairline);
  }

  .shop-hero-facts div + div{
    padding-left:0;
    border-left:0;
  }

  .shop-line-page .shop-hero-media{
    height:clamp(300px, 105vw, 470px);
  }

  .shop-line-page .shop-grid{
    grid-template-columns:1fr;
  }

  .shop-line-page .shop-grid .shop-product:last-child{
    grid-column:auto;
  }

  .shop-line-page .shop-product h3{
    min-height:0;
  }

  .shop-line-page .catalog-line-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .shop-line-page .catalog-line-actions .btn{
    width:100%;
  }

  .shop-hero-caption{
    font-size:.56rem;
  }
}

@media (prefers-reduced-motion:reduce){
  .shop-line-page .shop-product-media img,
  .shop-line-page .shop-product,
  .shop-line-page .btn{
    transition:none;
  }
}
