/* Supplier: stacked warehouse photos, a searchable material picker that feeds the form */
.sp-hero { padding: 130px 0 clamp(50px, 7vw, 90px); }
.sp-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.sp-hero__copy { display: grid; gap: 22px; justify-items: start; }
.sp-photos { position: relative; height: clamp(320px, 34vw, 460px); }
.sp-photo { position: absolute; width: 82%; height: auto; aspect-ratio: 840 / 400; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 70px -35px rgba(13, 20, 36, .55); transition: transform .8s var(--ease); }
.sp-photo--a { left: 0; top: 0; transform: rotate(-3deg) translateY(var(--pa, 0px)); }
.sp-photo--b { right: 0; bottom: 0; transform: rotate(2.5deg) translateY(var(--pb, 0px)); }
.sp-stamp { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; color: #fff; background: var(--brand); box-shadow: 0 0 0 6px #fff, 0 20px 40px -10px rgba(13, 20, 36, .5); transform: rotate(-10deg); }

.sp-mats__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 60px; align-items: end; margin-bottom: 30px; }
.sp-mats__head > div { display: grid; gap: 16px; }
.matbox { padding: clamp(18px, 3vw, 30px); border-radius: 26px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.matbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 0; max-width: 420px; padding: 12px 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 15px var(--font); color: var(--ink); outline: none; }
.matbox__count { font-size: 14px; color: var(--muted); }
.matbox__count b { font-size: 22px; font-weight: 500; color: var(--ink); }
.mats { display: flex; flex-wrap: wrap; gap: 10px; }
.mat { position: relative; cursor: pointer; }
.mat[hidden] { display: none; }
.mat input { position: absolute; opacity: 0; pointer-events: none; }
.mat span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.mat span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); transition: background .2s, border-color .2s; }
.mat:hover span { border-color: var(--ink-2); }
.mat input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.mat input:checked + span::before { border-color: #4fd1a5; background: #4fd1a5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%230d1424' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.mat input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.mats__none { margin-top: 12px; color: var(--muted); }

.sp-form__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.sp-form__side { position: sticky; top: 110px; display: grid; gap: 20px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; border-radius: 20px; background: #fff; border: 1px dashed var(--line-2); min-height: 80px; align-content: flex-start; }
.picked__empty { color: var(--muted); font-size: 14.5px; }
.picked__empty a { color: var(--blue); }
.picked button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 13px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 13px; cursor: pointer; animation: sp-pop .3s var(--ease); }
.picked button::after { content: "×"; font-size: 15px; line-height: 1; opacity: .7; }
.picked button:hover::after { opacity: 1; }
@keyframes sp-pop { from { transform: scale(.7); opacity: 0; } }
.picks.is-invalid legend { color: #d6453a; }

@media (max-width: 1000px) {
  .sp-hero__grid, .sp-mats__head, .sp-form__grid { grid-template-columns: 1fr; }
  .sp-form__side { position: static; }
}
