/* Cumparaturi — redesign Seto (se incarca dupa styles.css + seto.css). */
.page { display: flex; flex-direction: column; }
.page > * { flex-shrink: 0; }
.seto-bottom { margin-top: auto; }

/* Titlul paginii: „‹ Inapoi", titlu mare, o linie de context */
.page-title { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
.page-title h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; }
.page-title > .muted { font-size: 14px; }
.title-row { display: flex; align-items: flex-end; gap: 10px; }
.title-row h1 { flex: 1; min-width: 0; }
.title-meta { font-size: 13px; padding-bottom: 5px; white-space: nowrap; }
.settings-btn { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; margin-bottom: -4px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 32px; padding: 0; margin-left: -4px; border: 0; background: transparent; color: #A9C6FF; font-weight: 600; font-size: 14px; cursor: pointer; }
.back { background: transparent !important; border: 0 !important; color: #A9C6FF !important; padding: 0 !important; font-weight: 600; margin-bottom: 8px; }

/* Cautare + adaugare */
.add-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 14px; background: var(--bg-elev); border: 1px solid #2F3744; color: #8E97A5; box-sizing: border-box; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; outline: none !important; padding: 0 !important; margin: 0 !important; color: var(--text); font-size: 16px; }
.add-typed { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; padding: 0; }
.chips { display: flex; gap: 8px; margin: 0 0 6px; }
.chip-t { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #2F3744; background: transparent; color: #C9CFD8; font-weight: 600; font-size: 13px; cursor: pointer; }
.chip-t.on { border-color: var(--accent); background: rgba(138,180,255,.14); color: #CFE0FF; font-weight: 700; }

/* Categorii ca niste carduri */
.cat-group { margin: 10px 0 0; }
.cat-title { display: flex; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; margin: 6px 4px 6px !important; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cat-group.attn .cat-title { color: #F5C27A !important; }
.cat-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cat-group.attn .cat-box { border-color: rgba(245,180,84,.4); }
.cat-box .item { margin: 0 !important; border: 0 !important; border-radius: 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; min-height: 56px; padding: 8px 10px 8px 12px !important; gap: 10px !important; }
.cat-box .item:last-child { border-bottom: 0 !important; }
.item-main { flex: 1 1 0; min-width: 0; }
.item-name { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.who { font-size: 12px !important; color: #8E97A5 !important; }
.item.bought { opacity: .5; }
.item.bought .item-name { text-decoration: line-through; }
.item-check input {
  -webkit-appearance: none; appearance: none; width: 26px !important; height: 26px !important; margin: 0 !important; padding: 0 !important;
  border-radius: 50% !important; border: 2px solid #3A4250 !important; background: transparent !important; display: grid; place-items: center; cursor: pointer;
}
.item-check input:checked { background: var(--green) !important; border-color: var(--green) !important; }
.item-check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #0B1220; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.pend-dot { color: var(--amber); display: grid; place-items: center; width: 26px; flex: none; }
.item-qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qbtn { width: 34px; height: 36px; border: 0 !important; background: transparent !important; color: var(--text); font-size: 18px; padding: 0; border-radius: 10px; }
.item-qty .qbtn:first-child { border-radius: 10px 0 0 10px; }
.item-qty:has(.qval) { gap: 6px; }
.qval { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; }
.item-qty .qbtn, .item-qty .qval { background: #1E2430 !important; height: 36px; display: grid; place-items: center; }
.item-qty .qbtn[data-dec] { border-radius: 10px 0 0 10px !important; margin-right: -6px; }
.item-qty .qbtn[data-inc] { border-radius: 0 10px 10px 0 !important; margin-left: -6px; }
.qinp { width: 56px !important; height: 36px !important; margin: 0 !important; box-sizing: border-box; text-align: right; font-weight: 700; font-size: 15px; background: #1E2430 !important; border: 1px solid #2F3744 !important; border-radius: 10px !important; }
.unitsel { height: 36px; border-radius: 10px !important; border: 1px solid #2F3744 !important; background: #1E2430 !important; color: #C9CFD8; font-size: 13px; padding: 0 4px; }
.item-menu { width: 34px; height: 36px; border: 0 !important; background: transparent !important; color: var(--muted); display: grid; place-items: center; padding: 0; }
.qbtn.ok { color: var(--green); }
.qbtn.no { color: #FF9A8F; }

/* Liste de evenimente / liste */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 14px !important; margin: 0 !important; cursor: pointer; }
.ev-row .grow { flex: 1; min-width: 0; }
.ev-row .title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-row .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.row-ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(123,216,143,.14); color: var(--app-cumparaturi); display: grid; place-items: center; flex: none; }
.ev-row.is-done { background: transparent; }
.ev-row.is-done .row-ic { background: #1A1F28; color: #8E97A5; }
.chev { color: #6B7482; display: grid; place-items: center; flex: none; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #232B38; color: #C9CFD8; }
.action-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.btn.sm { height: 38px; padding: 0 12px; border-radius: 10px !important; background: #1A1F28 !important; border: 1px solid #2A313C !important; color: var(--text) !important; font-weight: 600; font-size: 13px; }
.btn.sm.danger { color: #FF9A8F !important; }
/* Controale mai compacte -> mai mult loc pentru numele produsului. */
.cat-box .item { gap: 8px !important; }
.item-qty { gap: 4px !important; }
.item-qty .qbtn { width: 30px !important; }
.unitsel { width: 52px; padding: 0 2px !important; }
.qinp { width: 52px !important; }
.item-menu { width: 30px !important; }
