/* v3.9.0 the add-ons store: the box picker, the add-on cards (home.css's look) and the cart beside them */
.pickbox { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; margin: 0 0 18px; }
.seg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.seg .k { color: var(--muted); font-size: 13px; margin-right: 4px; }
.seg button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--accent); color: #1a1508; border-color: var(--accent); font-weight: 600; }
.from { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.from[hidden] { display: none; }
.from select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }

.shop { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.item.in { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.item.off { opacity: .55; }
.item .pic { border-radius: 10px; overflow: hidden; background: #15161a; line-height: 0; aspect-ratio: 4 / 3; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .pic.none img { visibility: hidden; }
.item h3 { margin: 2px 0 0; font-size: 17px; color: var(--text); }
.item .pr .v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.item .pr .u { font-size: 12px; color: var(--muted); }
.item .desc { margin: 0; font-size: 13px; opacity: .9; flex: 1; }
.item .act { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step button { width: 34px; height: 32px; border: 0; border-radius: 0; background: #191b20; color: var(--text); font-size: 17px; cursor: pointer; }
.step button:disabled { opacity: .35; cursor: default; }
.step output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.item .design { padding: 7px 10px; font-size: 13px; }

.cart { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.cart h2 { margin: 0; font-size: 13px; }
.cart p { margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.lines li { display: flex; justify-content: space-between; gap: 10px; }
.lines .a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); }
.total[hidden] { display: none; }
.total .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart .primary { padding: 9px 14px; font-size: 14px; font-weight: 600; background: var(--accent); color: #1a1508; border-color: var(--accent); }
.cart .primary:disabled { opacity: .45; cursor: default; }
#cartMsg.err { color: var(--bad); } #cartMsg.ok { color: var(--ok); }
#signNote[hidden] { display: none; }
#signNote a { color: var(--accent); }

@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .cart { position: static; }
}
