/* Lumi Store (/store). Builds on home.css (tokens, nav, footer, chips, dots, buttons). */
.nav-links a[aria-current="page"] { background: var(--paper-2); }

.st-hero { padding: 54px 0 26px; }
.st-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 14px 0 12px; max-width: 16em; }
.st-hero .lead { max-width: 42em; }
.st-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 26px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 8px 4px 18px; box-shadow: 3px 3px 0 var(--ink); }
.st-search svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.st-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 1.05rem 'Nunito', sans-serif; color: var(--ink); padding: 10px 4px; outline: none; }
.st-search:focus-within { outline: 3px solid var(--lav-d); outline-offset: 3px; }
.st-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.st-jump a { color: var(--lav-d); font-weight: 800; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); }

.st-sec { padding: 40px 0 50px; }
.st-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.st-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.st-count { margin: 0; color: var(--ink-2); font-weight: 700; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.st-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.st-colors .dot { position: relative; }
.st-colors .dot.prem::after { content: '★'; position: absolute; right: -6px; top: -7px; font-size: 11px; line-height: 1; color: #b7791f; background: var(--card); border-radius: 50%; padding: 1px; }
.st-colorname { margin: 10px 0 20px; color: var(--ink-2); font-weight: 700; font-size: .92rem; text-align: right; }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.st-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; min-width: 0; }
.st-card .th { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1240 / 1754; background: #fff; box-shadow: 0 1px 0 rgba(60, 45, 30, .05), 0 8px 18px -10px rgba(60, 45, 30, .3); }
.st-card .th canvas, .st-card .th img { width: 100% !important; height: 100% !important; object-fit: cover; }
.st-card[hidden], .st-empty[hidden] { display: none; }
.st-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-info b { font-family: 'Patrick Hand', cursive; font-weight: 400; font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.st-subj { align-self: flex-start; font: 800 .7rem 'Nunito', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--lav-d); margin-bottom: 2px; }
.st-info small { color: var(--ink-2); font-weight: 700; font-size: .8rem; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.st-use { padding: 8px 16px; }
.st-badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font: 800 .74rem 'Nunito', sans-serif; letter-spacing: .02em; white-space: nowrap; }
.st-badge.free { background: var(--mint); color: #24704f; }
.st-badge.prem { background: var(--sun); color: #7a4a00; }
.st-empty { text-align: center; color: var(--ink-2); font-weight: 700; padding: 30px 0; }

.st-packs { background: var(--paper-2); }
.st-packs .sm-note { margin: 0 0 24px; }
.st-pack { margin-bottom: 28px; }
.st-pack-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.st-pack-h h3 { font-size: 1.7rem; }
.st-pack-h small { color: var(--ink-2); font-weight: 700; }
.st-pack-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.st-fine { padding: 30px 0 60px; }
.st-fine p { margin: 0 auto; max-width: 44em; text-align: center; color: var(--ink-2); }

.use-dlg { border: 0; padding: 0; background: transparent; width: min(640px, 100vw - 24px); max-width: none; color: var(--ink); }
.use-dlg::backdrop { background: rgba(30, 24, 44, .72); }
.use-in { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; background: var(--card); border-radius: 22px; padding: 26px; }
.use-prev canvas, .use-prev img { border-radius: 8px; box-shadow: var(--shadow); }
.use-prev img { width: 150px; height: auto; }
.use-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.use-body h3 { font-size: 1.9rem; padding-right: 40px; }
.use-meta { margin: 0; color: var(--ink-2); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.use-qr { padding: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 4px; }
.use-qr canvas { width: 180px !important; height: 180px !important; }
.use-body .fine { margin: 0; }
.lb-x { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 800 1.5rem/1 'Nunito', sans-serif; cursor: pointer; display: grid; place-items: center; }
.lb-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

@media (max-width: 820px) {
  .st-hero { padding: 34px 0 16px; }
  .st-colorname { text-align: left; }
}
@media (max-width: 520px) {
  .st-grid, .st-pack-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .st-card { padding: 8px; border-radius: 14px; }
  .st-info b { font-size: 1.02rem; }
  .st-row { flex-wrap: wrap; }
  .st-use { flex: 1; justify-content: center; padding: 8px 10px; }
  .st-colors { gap: 6px; }
  .st-colors .dot { width: 26px; height: 26px; }
  .use-in { grid-template-columns: 1fr; padding: 20px; }
  .use-prev { display: none; }
}
