.collection-showcase{padding:28px 0 16px;border-top:1px solid var(--line,#e7ded1);border-bottom:1px solid var(--line,#e7ded1);background:#fbf8f2}
.collection-showcase__head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.collection-showcase__head h2{margin:0;font-size:clamp(1.35rem,2vw,2rem)}
.collection-showcase__track{--visible:5;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--visible) - 1)*16px)/var(--visible));gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:10px}
.collection-showcase__track::-webkit-scrollbar{display:none}
.collection-showcase__card{scroll-snap-align:start;text-decoration:none;color:inherit;min-width:0}
.collection-showcase__image{aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:#eee8dd}
.collection-showcase__image img{width:100%;height:100%;object-fit:cover}
.collection-showcase__card strong{display:block;margin-top:9px;font-size:.95rem}
.collection-showcase__card small{display:block;color:#806d5a;margin-top:2px}

.collection-builder{padding:72px 0;background:#f7f1e8}
.collection-builder__head{max-width:820px;margin-bottom:30px}
.collection-builder__head h2{font-size:clamp(2.1rem,4vw,4.2rem);line-height:.98;margin:6px 0 14px}
.collection-builder__head p{font-size:1.03rem;color:#5f554a}
.collection-builder__layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:30px;align-items:start}
.collection-builder__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}

.collection-card{background:#fff;border:1px solid #e3d7c7;border-radius:24px;overflow:hidden;transition:.2s ease;display:flex;flex-direction:column;box-shadow:0 10px 22px rgba(62,44,18,.05)}
.collection-card.is-selected{border-color:#b6803c;box-shadow:0 0 0 2px rgba(182,128,60,.18),0 16px 32px rgba(62,44,18,.08)}
.collection-card__media{aspect-ratio:1/1;background:#eee8dd}
.collection-card__media img{width:100%;height:100%;object-fit:cover}
.collection-card__body{padding:16px;display:flex;flex-direction:column;gap:12px}
.collection-card__topline{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.collection-card__badge{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#a56d27;font-weight:700}
.collection-card__chip{font-size:.72rem;font-weight:700;padding:6px 10px;border-radius:999px;background:#f5efe5;color:#5f5344}
.collection-card h3{margin:0;font-size:1.28rem;line-height:1.15;color:#1f1a14}
.collection-card__hint{margin:-6px 0 0;font-size:.87rem;color:#6b6054}
.collection-card__packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.collection-card__pack{position:relative;display:block}
.collection-card__pack input{position:absolute;opacity:0;pointer-events:none}
.collection-card__pack-ui{display:flex;flex-direction:column;gap:4px;border:1px solid #ddd1c1;border-radius:18px;padding:12px 10px;min-height:92px;justify-content:space-between;background:#fbf8f2;cursor:pointer;text-align:left;transition:.18s ease}
.collection-card__pack-ui strong{font-size:.96rem;line-height:1.1;color:#2a241d}
.collection-card__pack-ui small{font-size:.76rem;color:#7f6c58;text-transform:uppercase;letter-spacing:.04em}
.collection-card__pack-ui b{font-size:1rem;color:#1f1a14}
.collection-card__pack input:checked + .collection-card__pack-ui{background:#29251f;color:#fff;border-color:#29251f;box-shadow:0 10px 22px rgba(34,30,26,.18)}
.collection-card__pack input:checked + .collection-card__pack-ui strong,.collection-card__pack input:checked + .collection-card__pack-ui small,.collection-card__pack input:checked + .collection-card__pack-ui b{color:#fff}
.collection-card__bottom{display:flex;justify-content:space-between;gap:12px;align-items:center}
.collection-card__qty{display:flex;align-items:center;justify-content:space-between;border:1px solid #e2d8ca;border-radius:999px;padding:6px;background:#fcfaf6;flex:1 1 auto;max-width:180px}
.collection-card__qty button{width:38px;height:38px;border:0;border-radius:50%;background:#efe7dc;font-size:1.3rem;cursor:pointer;line-height:1;color:#2c241b}
.collection-card__qty input{width:48px;text-align:center;border:0;background:transparent;font-weight:700;font-size:1.25rem;color:#17130f}
.collection-card__qty input::-webkit-outer-spin-button,.collection-card__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.collection-card__subtotal{text-align:right;min-width:94px}
.collection-card__subtotal small{display:block;color:#7a6e61;font-size:.76rem;text-transform:uppercase;letter-spacing:.06em}
.collection-card__subtotal strong{display:block;font-size:1.05rem;color:#1d1812}
.collection-card__custom{display:grid;gap:6px;border-top:1px solid #efe5d7;padding-top:12px}
.collection-card__custom.is-hidden{display:none}
.collection-card__custom label{font-size:.78rem;font-weight:700;color:#493f35}
.collection-card__custom input{width:100%;border:1px solid #ded2c2;border-radius:12px;padding:11px 12px;background:#fff}

.collection-summary{position:sticky;top:100px;background:#26231f;color:#fff;border-radius:24px;padding:24px;box-shadow:0 16px 45px rgba(40,32,24,.13)}
.collection-summary h3{margin:0 0 8px}
.collection-summary__intro{margin:0 0 14px;color:#d8ccbd;font-size:.92rem;line-height:1.5}
.collection-summary__items{display:grid;gap:12px;max-height:360px;overflow:auto}
.collection-summary__row{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:10px}
.collection-summary__row small{display:block;color:#d5c9b9;margin-top:2px}
.collection-summary__totals{display:flex;justify-content:space-between;gap:16px;margin:18px 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.2)}
.collection-summary__totals small{display:block;color:#d9ccbb}
.collection-summary__price{font-size:1.5rem}
.collection-summary .btn{width:100%;background:#c58a3f;color:#fff}
.collection-summary__status{min-height:20px;font-size:.82rem;margin:10px 0 0;color:#f4d6ad}
.collection-summary__empty{color:#cfc3b4}
.collection-builder__note{font-size:.84rem;color:#6f6254;margin-top:20px}

@media(max-width:1050px){
  .collection-builder__layout{grid-template-columns:1fr}
  .collection-summary{position:relative;top:auto}
  .collection-showcase__track{--visible:3}
}
@media(max-width:820px){
  .collection-builder__grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .collection-builder{padding:48px 0}
  .collection-builder__head h2{font-size:2.2rem}
  .collection-card__body{padding:13px}
  .collection-card h3{font-size:1.12rem}
  .collection-card__packs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .collection-card__pack-ui{padding:10px 8px;border-radius:14px;min-height:86px}
  .collection-card__pack-ui strong{font-size:.86rem}
  .collection-card__pack-ui b{font-size:.95rem}
  .collection-card__bottom{align-items:flex-start}
  .collection-card__qty{max-width:none}
  .collection-showcase__track{--visible:1.55}
  .collection-summary{border-radius:18px;padding:20px}
}
