/* =============================================================
   The Sticker Wall — single-voice, token-driven.
   Gold appears ONCE: "Design your own" is the act of creating.
   ============================================================= */

.lp-wall {
  --wall-gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 16px 96px;
  color: var(--lp-ink);
}

/* Ray 2026-08-16: the heading was eating vertical space that belongs to
   the designs. Title and blurb now sit on ONE line where there is room,
   at a fraction of the old size — the grid starts higher. */
.lp-wall__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
}
.lp-wall__head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.lp-wall__title {
  font-family: "Bricolage Grotesque", var(--lp-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.lp-wall__sub {
  margin: 0;
  color: var(--lp-ink-3);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 68ch;
}
.lp-wall__design-cta {
  display: inline-block;
  background: #F4B942;
  color: var(--lp-ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--lp-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--lp-dur-fast) var(--lp-ease-out), filter var(--lp-dur-fast) var(--lp-ease-out);
}
.lp-wall__design-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* --- sticky facet bar --------------------------------------- */
.lp-wall__bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--lp-ground);
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius);
  padding: 10px 12px;
  box-shadow: var(--lp-shadow);
}
.lp-wall__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-wall__chip {
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-pill);
  background: var(--lp-surface);
  color: var(--lp-ink);
  cursor: pointer;
}
.lp-wall__chip[disabled] { opacity: .45; cursor: not-allowed; }
.lp-wall__chip.is-active {
  background: var(--lp-ink);
  color: var(--lp-surface);
  border-color: var(--lp-ink);
}
.lp-wall__row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.lp-wall__row2 input[type="search"],
.lp-wall__row2 select {
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
}
.lp-wall__row2 input[type="search"] { flex: 1 1 240px; min-width: 200px; }
.lp-wall__count { margin-left: auto; color: var(--lp-ink-3); font-size: 14px; }

/* --- the wall grid ------------------------------------------ */
.lp-wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--wall-gap);
  margin-top: 16px;
}
.lp-wall__tile {
  position: relative;
  margin: 0;
  background: var(--lp-surface);
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  overflow: hidden;
  transition: box-shadow var(--lp-dur-fast) var(--lp-ease-out), transform var(--lp-dur-fast) var(--lp-ease-out);
}
.lp-wall__tile:hover { box-shadow: var(--lp-shadow-lift); transform: translateY(-2px); }
.lp-wall__tile.is-hidden { display: none; }
.lp-wall__tile-link { text-decoration: none; color: inherit; display: block; }
.lp-wall__tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--lp-surface-2);
}
.lp-wall__tile figcaption { padding: 8px 10px 12px; }
.lp-wall__tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
  min-height: 2.6em;
}
.lp-wall__tile-sku {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--lp-ink-3);
}
.lp-wall__tile-price { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--lp-brand-deep); }

/* queued state: the tile carries its own sheet count */
.lp-wall__tile.is-queued { outline: 2px solid var(--lp-brand-deep); outline-offset: -2px; }
.lp-wall__tile-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-brand-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}
.lp-wall__save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lp-rule);
  border-radius: 50%;
  background: var(--lp-surface);
  color: var(--lp-ink-3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.lp-wall__save.is-saved { color: #C0392B; border-color: #C0392B; }

/* --- the order strip (running total lives in the sticky bar) - */
.lp-wall__order {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lp-rule);
}
/* the picked designs, left to right, above the price row */
.lp-wall__order-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  /* A big order must not swallow the viewport: two rows of picks stay
     visible and the rest scrolls inside the strip. */
  max-height: 132px;
  overflow-y: auto;
}
.lp-wall__order-thumbs:empty { display: none; }
.lp-wall__order-thumb {
  position: relative;
  padding-top: 5px;
  padding-right: 5px;
}
.lp-wall__order-thumb-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
/* Remove-one control. Always visible (not hover-only) — this has to be
   findable on a touch screen and by a customer who isn't hunting. */
.lp-wall__order-thumb-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--lp-rule);
  border-radius: 50%;
  background: var(--lp-surface);
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--lp-shadow);
}
.lp-wall__order-thumb-remove:hover {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}
.lp-wall__order-thumb img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--lp-rule);
  background: var(--lp-surface-2);
  display: block;
}
.lp-wall__order-thumb:hover img { border-color: var(--lp-brand-deep); }
.lp-wall__order-thumb span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lp-ink-2);
  line-height: 1.1;
}
.lp-wall__order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.lp-wall__order-summary {
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-pill);
  background: var(--lp-surface);
  color: var(--lp-ink);
  cursor: pointer;
}
.lp-wall__order-total {
  font-size: 18px;
  color: var(--lp-ink);
}
.lp-wall__order-add {
  margin-left: auto;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-ink);
  color: var(--lp-surface);
  cursor: pointer;
}
.lp-wall__order-add:hover { filter: brightness(1.08); }
.lp-wall__order-add[disabled] { opacity: .6; cursor: progress; }

/* --- the popup ---------------------------------------------- */
body.lp-wall-modal-open { overflow: hidden; }
.lp-wall__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 28, 37, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lp-wall__modal[hidden] { display: none; }
.lp-wall__modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lift);
  padding: 22px;
}
.lp-wall__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
  border: 0;
  background: none;
  color: var(--lp-ink-3);
  cursor: pointer;
}
.lp-wall__modal-media img {
  width: 100%;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface-2);
  object-fit: contain;
}
.lp-wall__modal-title {
  font-family: "Bricolage Grotesque", var(--lp-display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 4px 0 8px;
}
.lp-wall__modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 10px;
}
.lp-wall__modal-sku { font-size: 12.5px; color: var(--lp-ink-3); letter-spacing: .04em; }
.lp-wall__modal-price { font-size: 18px; font-weight: 700; color: var(--lp-brand-deep); }
.lp-wall__modal-desc { font-size: 14px; color: var(--lp-ink-2); margin: 0 0 16px; }
.lp-wall__modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.lp-wall__modal-qty { font-size: 13px; color: var(--lp-ink-2); display: flex; flex-direction: column; gap: 4px; }
.lp-wall__modal-qty input {
  font: inherit;
  font-size: 16px;
  width: 92px;
  padding: 9px 10px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
}
.lp-wall__modal-add {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-ink);
  color: var(--lp-surface);
  cursor: pointer;
}
.lp-wall__modal-add:hover { filter: brightness(1.08); }
.lp-wall__modal-remove {
  font: inherit;
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  color: var(--lp-stop);
  cursor: pointer;
}
.lp-wall__modal-remove:hover { border-color: var(--lp-stop); }
.lp-wall__modal-remove[hidden] { display: none; }
.lp-wall__order-caret { margin-left: 6px; font-size: 11px; color: var(--lp-ink-3); }
.lp-wall__modal-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--lp-brand-deep);
}
@media (max-width: 640px) {
  .lp-wall__modal-panel { grid-template-columns: 1fr; }
}

/* --- the queue panel ---------------------------------------- */
.lp-wall__queue {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(400px, calc(100vw - 36px));
  max-height: 62vh;
  overflow: auto;
  background: var(--lp-surface);
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lift);
  padding: 14px 16px;
}
.lp-wall__queue h2 { margin: 0 0 8px; font-size: 16px; }
.lp-wall__queue ul { list-style: none; margin: 0; padding: 0; }
.lp-wall__queue li {
  display: grid;
  grid-template-columns: 1fr 64px 74px 22px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--lp-rule-soft);
  font-size: 13px;
}
.lp-wall__queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-wall__queue-qty {
  font: inherit;
  font-size: 13px;
  width: 100%;
  padding: 5px 6px;
  border: 1px solid var(--lp-rule);
  border-radius: 6px;
}
.lp-wall__queue-line { text-align: right; font-weight: 600; color: var(--lp-brand-deep); }
.lp-wall__queue-remove { background: none; border: 0; color: var(--lp-ink-3); cursor: pointer; font-size: 15px; }
.lp-wall__queue-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 0;
  font-size: 15px;
}
.lp-wall__queue-foot strong { font-size: 18px; }
.lp-wall__queue-clear {
  margin-top: 10px;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  cursor: pointer;
}

/* --- retired shortlist drawer (kept: harmless if markup returns) */
.lp-wall__drawer-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  font: inherit;
  font-weight: 600;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--lp-radius-pill);
  background: var(--lp-brand-deep);
  color: #fff;
  box-shadow: var(--lp-shadow-lift);
  cursor: pointer;
}
.lp-wall__drawer {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 60;
  width: min(340px, calc(100vw - 36px));
  max-height: 60vh;
  overflow: auto;
  background: var(--lp-surface);
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lift);
  padding: 14px 16px;
}
.lp-wall__drawer h2 { margin: 0 0 8px; font-size: 16px; }
.lp-wall__drawer ul { list-style: none; margin: 0; padding: 0; }
.lp-wall__drawer li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lp-rule-soft); font-size: 13px; }
.lp-wall__drawer li a { color: var(--lp-brand-deep); text-decoration: none; }
.lp-wall__drawer-remove { background: none; border: 0; color: var(--lp-ink-3); cursor: pointer; font-size: 14px; }
.lp-wall__drawer-clear {
  margin-top: 10px;
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--lp-rule);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .lp-wall__tile, .lp-wall__design-cta { transition: none; }
  .lp-wall__tile:hover { transform: none; }
}
