/* Market POS product page (loaded after product.css and product-kit.css). Accent colours come from .theme-marketpos in tokens.css. */
.mp-hero .hero-motif { opacity: .13; }
html[data-theme="dark"] .mp-hero .hero-motif { opacity: .2; }

/* ---------- Interactive till ---------- */
.till { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 20px; }
.till__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.item {
    display: grid; gap: 4px; padding: 14px; text-align: start; cursor: pointer; color: var(--ink);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .15s var(--ease), transform .15s var(--ease), background .15s var(--ease);
}
.item:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.item:active:not(:disabled) { transform: scale(.98); }
.item:disabled { opacity: .5; cursor: not-allowed; }
.item b { line-height: 1.3; }
.item__price { font-weight: 650; color: var(--accent); }
.item__stock { font-size: .78rem; color: var(--muted); }
.item__stock.is-low { color: var(--warn-ink, #b45309); font-weight: 650; }
.cart { display: flex; flex-direction: column; min-height: 20rem; padding: 14px; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 12px; }
.cart__title { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cart__lines { flex: 1; display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cart__empty { margin: auto; padding: 12px; text-align: center; color: var(--muted); font-size: .92rem; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 0; border-block-end: 1px solid var(--line); font-size: .92rem; }
.line__qty { display: inline-flex; align-items: center; gap: 6px; grid-column: 1; }
.line__qty button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.line__qty button:hover { border-color: var(--accent); }
.line__sum { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 650; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-block: 12px 10px; font-size: 1.2rem; font-weight: 750; }
.cart__pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block-end: 10px; }
.cart__pay .chip { justify-content: center; }
.cart .button { width: 100%; justify-content: center; }
.cart__done { display: none; margin: auto; text-align: center; }
.cart.is-done .cart__done { display: grid; gap: 12px; justify-items: center; }
.cart.is-done .cart__lines, .cart.is-done .cart__foot, .cart.is-done .cart__title { display: none; }
.cart__done .tick { display: grid; place-items: center; width: 54px; height: 54px; color: var(--on-accent); background: var(--accent); border-radius: 50%; }
.cart__done .tick svg { width: 28px; height: 28px; }
.till__reset { margin-block-start: 12px; font-size: .85rem; }
@media (max-width: 640px) { .till { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .item { transition: none; } }


.link-button { padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.link-button:hover { text-decoration-thickness: 2px; }
