.collection-purchase{
  --cp-night:#050505;
  --cp-paper:#f7f7f5;
  --cp-line:rgba(255,255,255,.16);
  --cp-muted:#8b8b88;
  font-family:"Eclipse Sans","Helvetica Neue",Arial,sans-serif;
}
.collection-purchase button,.collection-purchase select{font:inherit}
.collection-purchase__teaser{position:relative}
.collection-purchase__eyebrow{
  display:block;
  color:#8b8b88;
  font-size:9px;
  font-weight:700;
  letter-spacing:.17em;
  line-height:1.4;
  text-transform:uppercase;
}
.collection-purchase__copy h2{
  margin:9px 0 0;
  color:var(--cp-paper);
  font-family:"Eclipse Display","Arial Narrow",sans-serif;
  font-size:36px;
  font-weight:400;
  letter-spacing:.025em;
  line-height:.88;
  text-transform:uppercase;
}
.collection-purchase__copy p{
  margin:10px 0 0;
  color:#858582;
  font-size:10px;
  line-height:1.55;
}
.collection-purchase__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#777;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.collection-purchase__summary strong{
  color:var(--cp-paper);
  font-size:12px;
  letter-spacing:.05em;
}
.collection-purchase__actions{display:flex;align-items:stretch;gap:10px}
.collection-purchase__open,
.collection-purchase__discover{
  min-height:47px;
  border:1px solid var(--cp-line);
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 17px;
  color:var(--cp-paper);
  background:transparent;
  cursor:pointer;
  font-size:9px;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
  transition:background .35s ease,color .35s ease,border-color .35s ease;
}
.collection-purchase__open{background:var(--cp-paper);color:#090909;border-color:var(--cp-paper)}
.collection-purchase__open:hover,.collection-purchase__open:focus-visible{background:#d9d9d5;border-color:#d9d9d5}
.collection-purchase__discover:hover,.collection-purchase__discover:focus-visible{border-color:#777;background:#111}
.collection-purchase__unavailable{
  display:flex;
  min-height:47px;
  align-items:center;
  color:#777;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* The collection page ends with a full editorial chapter in the rail. */
.collection-purchase--collection{
  position:relative;
  z-index:3;
  width:min(60vw,920px);
  height:56svh;
  min-height:350px;
  max-height:560px;
  flex:none;
  scroll-snap-align:center;
  scroll-snap-stop:always;
}
.collection-purchase--collection .collection-purchase__teaser{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:minmax(280px,42%) 1fr;
  grid-template-areas:"copy visual" "summary visual" "actions visual";
  grid-template-rows:1fr auto auto;
  gap:18px 38px;
  padding:clamp(36px,4vw,62px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.24);
  background:linear-gradient(135deg,#080808,#030303);
  box-shadow:0 42px 120px rgba(0,0,0,.62);
  opacity:.3;
  transition:opacity .7s cubic-bezier(.16,1,.3,1);
}
.collection-purchase--collection.is-active .collection-purchase__teaser{opacity:1}
.collection-purchase--collection .collection-purchase__teaser::before{
  content:"";
  position:absolute;
  z-index:2;
  top:0;
  left:clamp(36px,4vw,62px);
  width:72px;
  height:1px;
  background:#fff;
}
.collection-purchase--collection .collection-purchase__copy{grid-area:copy;align-self:end;position:relative;z-index:2}
.collection-purchase--collection .collection-purchase__copy h2{font-size:clamp(58px,6.4vw,102px);max-width:5ch}
.collection-purchase--collection .collection-purchase__copy p{max-width:30ch;font-size:11px}
.collection-purchase--collection .collection-purchase__summary{
  grid-area:summary;
  position:relative;
  z-index:2;
  padding-top:16px;
  border-top:1px solid #282828;
}
.collection-purchase--collection .collection-purchase__actions{grid-area:actions;position:relative;z-index:2}
.collection-purchase--collection .collection-purchase__open{width:100%}
.collection-purchase--collection .collection-purchase__visuals{
  grid-area:visual;
  height:100%;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
}
.collection-purchase--collection .collection-purchase__visual{
  width:auto;
  min-width:0;
  height:auto;
  aspect-ratio:auto;
  margin:0;
  border-color:#242424;
  transform:none;
  box-shadow:none;
}
.collection-purchase--collection .collection-purchase__visual img{object-fit:cover;transition:transform 1s cubic-bezier(.16,1,.3,1),filter .5s ease}
.collection-purchase--collection.is-active .collection-purchase__visual:nth-child(2n) img{transform:scale(1.035)}

/* Product pages turn the same component into an editorial collection chapter. */
.collection-purchase--product{
  padding:clamp(48px,6vw,82px) clamp(28px,4.5vw,68px);
  background:#050505;
  color:var(--cp-paper);
  border-top:1px solid #1b1b1b;
}
.collection-purchase--product .collection-purchase__teaser{
  max-width:1420px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(290px,1.05fr) minmax(260px,.8fr) auto;
  grid-template-areas:"visual copy summary" "visual copy actions";
  align-items:end;
  gap:20px clamp(30px,4vw,68px);
}
.collection-purchase__visuals{
  grid-area:visual;
  position:relative;
  height:255px;
  display:flex;
  align-items:center;
  padding-left:22px;
}
.collection-purchase__visual{
  position:relative;
  width:31%;
  min-width:104px;
  aspect-ratio:4/5;
  margin-left:-7%;
  overflow:hidden;
  border:1px solid #292929;
  background:#0b0b0b;
  transform:translateY(calc((var(--visual-index) - 1.5) * 5px)) rotate(calc((var(--visual-index) - 1.5) * 2deg));
  box-shadow:0 22px 44px rgba(0,0,0,.5);
}
.collection-purchase__visual:first-child{margin-left:0}
.collection-purchase__visual img{display:block;width:100%;height:100%;object-fit:cover}
.collection-purchase--product .collection-purchase__copy{grid-area:copy;align-self:center}
.collection-purchase--product .collection-purchase__copy h2{font-size:clamp(52px,5vw,78px)}
.collection-purchase--product .collection-purchase__copy p{max-width:38ch;font-size:11px}
.collection-purchase--product .collection-purchase__summary{grid-area:summary;min-width:230px;padding-bottom:4px}
.collection-purchase--product .collection-purchase__actions{grid-area:actions;min-width:230px;flex-direction:column}

/* Shared configuration drawer. */
.collection-purchase__dialog{
  --cp-night:#050505;
  --cp-paper:#f7f7f5;
  --cp-line:rgba(255,255,255,.16);
  --cp-muted:#8b8b88;
  position:fixed;
  z-index:1000;
  inset:0;
  display:flex;
  justify-content:flex-end;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .42s ease,visibility .42s;
}
.collection-purchase__dialog.is-open{opacity:1;visibility:visible;pointer-events:auto}
.collection-purchase__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
}
.collection-purchase__sheet{
  position:relative;
  z-index:1;
  width:min(570px,100%);
  height:100%;
  display:flex;
  flex-direction:column;
  padding:34px 38px 0;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#090909;
  border-left:1px solid #292929;
  color:var(--cp-paper);
  box-shadow:-35px 0 100px rgba(0,0,0,.5);
  transform:translateX(100%);
  transition:transform .62s cubic-bezier(.16,1,.3,1);
}
.collection-purchase__dialog.is-open .collection-purchase__sheet{transform:translateX(0)}
.collection-purchase__header{display:flex;align-items:flex-start;justify-content:space-between;gap:25px}
.collection-purchase__header h2{
  margin:9px 0 0;
  font-family:"Eclipse Display","Arial Narrow",sans-serif;
  font-size:clamp(54px,6vw,78px);
  font-weight:400;
  line-height:.82;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.collection-purchase__close{
  width:40px;
  height:40px;
  flex:0 0 40px;
  padding:0;
  border:1px solid #333;
  display:grid;
  place-items:center;
  background:transparent;
  color:#aaa;
  cursor:pointer;
  font-size:22px;
  font-weight:400;
  transition:border-color .25s,color .25s,background .25s;
}
.collection-purchase__close:hover,.collection-purchase__close:focus-visible{border-color:#777;color:#fff;background:#151515}
.collection-purchase__intro{margin:24px 0;color:#858585;font-size:11px;line-height:1.6}
.collection-purchase__items{border-top:1px solid #292929}
.collection-purchase__item{
  position:relative;
  min-height:104px;
  display:grid;
  grid-template-columns:25px 74px minmax(0,1fr) 145px;
  align-items:center;
  gap:15px;
  padding:13px 0;
  border-bottom:1px solid #242424;
}
.collection-purchase__item-number{color:#555;font-size:8px;font-weight:700;letter-spacing:.14em}
.collection-purchase__item-image{display:block;width:74px;height:78px;overflow:hidden;background:#111}
.collection-purchase__item-image img{display:block;width:100%;height:100%;object-fit:cover}
.collection-purchase__item-copy{min-width:0}
.collection-purchase__item-copy a{
  display:block;
  color:#f0f0ed;
  font-family:"Eclipse Display","Arial Narrow",sans-serif;
  font-size:27px;
  font-weight:400;
  letter-spacing:.025em;
  line-height:.9;
  text-transform:uppercase;
}
.collection-purchase__item-copy span{display:block;margin-top:7px;color:#777;font-size:9px;font-weight:700;letter-spacing:.08em}
.collection-purchase__select-wrap{position:relative;display:block}
.collection-purchase__select-wrap::after{content:"⌄";position:absolute;right:12px;top:50%;color:#888;transform:translateY(-58%);pointer-events:none}
.collection-purchase__select-wrap select{
  width:100%;
  height:42px;
  appearance:none;
  border:1px solid #343434;
  border-radius:0;
  outline:0;
  padding:0 30px 0 12px;
  background:#0d0d0d;
  color:#ddd;
  cursor:pointer;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.collection-purchase__select-wrap select:focus{border-color:#888}
.collection-purchase__select-wrap.has-error select{border-color:#a66;animation:collectionFieldShake .38s ease}
.collection-purchase__unique{color:#686868;font-size:9px;font-weight:700;letter-spacing:.1em;text-align:right;text-transform:uppercase}
.collection-purchase__error{margin:15px 0 0;padding:11px 13px;border:1px solid #633;color:#d7a5a5;background:#160d0d;font-size:10px;line-height:1.5}
.collection-purchase__success{margin:15px 0 0;padding:14px;border:1px solid #3b513f;background:#0d160f;color:#c9d7ca;font-size:10px;line-height:1.5}
.collection-purchase__success a{float:right;color:#fff;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.collection-purchase__footer{
  position:sticky;
  bottom:0;
  margin:auto -38px 0;
  padding:20px 38px 26px;
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:22px;
  align-items:center;
  border-top:1px solid #292929;
  background:rgba(9,9,9,.96);
  backdrop-filter:blur(12px);
}
.collection-purchase__footer div span{display:block;color:#777;font-size:8px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.collection-purchase__footer div strong{display:block;margin-top:5px;color:#fff;font-size:15px;letter-spacing:.05em}
.collection-purchase__footer button{
  height:52px;
  border:1px solid #f2f2ef;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  background:#f2f2ef;
  color:#080808;
  cursor:pointer;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  transition:background .3s,color .3s,opacity .3s;
}
.collection-purchase__footer button:disabled{cursor:not-allowed;opacity:.38}
.collection-purchase__footer button.is-loading{color:#777;pointer-events:none}
.collection-purchase__footer button.is-success{background:#152018;color:#d6e0d7;border-color:#435a48}
body.collection-purchase-is-open{overflow:hidden!important}
@keyframes collectionFieldShake{0%,100%{transform:translateX(0)}35%{transform:translateX(-5px)}70%{transform:translateX(5px)}}

@media(max-width:900px){
  .collection-purchase--product .collection-purchase__teaser{
    grid-template-columns:minmax(250px,1fr) minmax(230px,.8fr);
    grid-template-areas:"visual copy" "visual summary" "visual actions";
  }
}
@media(max-width:760px){
  .collection-purchase--collection{width:calc(100vw - 36px);height:56svh;max-height:500px}
  .collection-purchase--collection .collection-purchase__teaser{
    grid-template-columns:1fr;
    grid-template-areas:"visual" "copy" "summary" "actions";
    grid-template-rows:minmax(0,1fr) auto auto auto;
    gap:11px;
    padding:18px;
  }
  .collection-purchase--collection .collection-purchase__teaser::before{left:18px}
  .collection-purchase--collection .collection-purchase__visuals{min-height:0;gap:6px}
  .collection-purchase--collection .collection-purchase__copy h2{font-size:48px;max-width:none}
  .collection-purchase--collection .collection-purchase__copy p{display:none}
  .collection-purchase--collection .collection-purchase__summary{padding-top:10px}
  .collection-purchase--collection .collection-purchase__open{min-height:44px}
  .collection-purchase--product{padding:44px 20px}
  .collection-purchase--product .collection-purchase__teaser{display:block}
  .collection-purchase__visuals{height:210px;margin-bottom:34px;padding-left:12px}
  .collection-purchase__visual{min-width:90px}
  .collection-purchase--product .collection-purchase__copy h2{font-size:54px}
  .collection-purchase--product .collection-purchase__summary{margin-top:25px;padding-top:17px;border-top:1px solid #282828}
  .collection-purchase--product .collection-purchase__actions{margin-top:15px}
  .collection-purchase__sheet{padding:24px 20px 0}
  .collection-purchase__item{grid-template-columns:20px 62px minmax(0,1fr);gap:11px;min-height:118px}
  .collection-purchase__item-image{width:62px;height:70px}
  .collection-purchase__select-wrap,.collection-purchase__unique{grid-column:3;margin-top:-5px;text-align:left}
  .collection-purchase__select-wrap{width:100%}
  .collection-purchase__item-copy a{font-size:24px}
  .collection-purchase__footer{margin:auto -20px 0;padding:16px 20px 20px;grid-template-columns:1fr 1.6fr;gap:12px}
  .collection-purchase__footer button{padding-inline:13px;font-size:8px}
  .collection-purchase__success a{float:none;display:block;margin-top:7px}
}
@media(prefers-reduced-motion:reduce){
  .collection-purchase__dialog,.collection-purchase__sheet{transition:none}
}
