/* s6catalog2 (#6747, GLOBAL): catalog + quickorder (ui-catalog.js). The app's own theme tokens only; phone first; 44px+ tap targets. */
.uc-cat, .uc-qo { color: var(--text); }
.uc-title { font: 700 1.15rem/1.25 var(--h, inherit); margin: 4px 0 12px; }
.uc-search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface); }
.uc-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; min-height: 44px; }
.uc-search .ui-ico, .uc-search svg { width: 18px; height: 18px; color: var(--muted); }
.uc-depts { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.uc-depts::-webkit-scrollbar { display: none; }
.uc-depts button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9rem/1 inherit; white-space: nowrap; cursor: pointer; }
.uc-depts button.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .uc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1320px) { .uc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.uc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 10px); overflow: hidden; }
.uc-ph { display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; border: 0; background: #fff center / contain no-repeat; color: var(--muted); cursor: pointer; padding: 0; }
.uc-ph svg { width: 32px; height: 32px; opacity: .5; }
.uc-cb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uc-nm { border: 0; background: none; padding: 0; text-align: left; font: 600 .92rem/1.3 inherit; color: var(--text); cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.uc-sku { font: 500 .75rem/1.2 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.uc-pw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.uc-pr { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.uc-pr b { font-size: 1.02rem; font-weight: 800; color: var(--primary); }
.uc-pr small { font-size: .74rem; color: var(--muted); }
.uc-pr s { font-size: .78rem; color: var(--muted); }
.uc-pack { font-size: .74rem; color: var(--muted); }
.uc-each { display: block; width: 100%; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.uc-each s { margin-left: 4px; }
.uc-badge { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--ink, var(--text)); color: var(--surface); font-weight: 700; font-size: .68rem; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }   /* s1ucbadge: "font: ... inherit" is invalid shorthand, so the whole rule was dropped and the badge took the card's big font; one line, ellipsis */
.uc-note { display: block; font-size: .74rem; color: var(--muted); }
.uc-note.is-bad { color: #c62828; }
.uc-apply { border: 0; background: none; padding: 6px 0; min-height: 32px; color: var(--accent, var(--primary)); font: 600 .78rem/1.2 inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.uc-plus { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: var(--on-primary, #fff); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.uc-plus[disabled] { opacity: .4; cursor: default; }
.uc-plus svg { width: 20px; height: 20px; }
.uc-more { text-align: center; margin: 16px 0 8px; }
.uc-morebtn, .uc-btn { min-height: 46px; padding: 0 20px; border-radius: var(--radius, 10px); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 700 .95rem/1 inherit; cursor: pointer; }
.uc-btn.is-main { width: 100%; margin-top: 12px; background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.uc-empty { grid-column: 1 / -1; padding: 28px 12px; text-align: center; color: var(--muted); }
.uc-sk { min-height: 220px; border-radius: var(--radius, 10px); background: linear-gradient(90deg, var(--surface), var(--bg), var(--surface)); background-size: 200% 100%; animation: ucsk 1.2s infinite linear; }
@keyframes ucsk { to { background-position: -200% 0; } }
/* item sheet */
.uc-sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.uc-sheet-bg.on { background: rgba(0, 0, 0, .45); }
.uc-sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface); color: var(--text); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .2s; }
.uc-sheet-bg.on .uc-sheet { transform: none; }
@media (min-width: 720px) { .uc-sheet-bg { align-items: center; } .uc-sheet { border-radius: 18px; } }
.uc-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer; }
.uc-pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #fff; }
.uc-pics img { flex: none; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: start; }
.uc-sb { padding: 16px 18px 8px; }
.uc-sb h2 { font: 700 1.25rem/1.25 var(--h, inherit); margin: 0 0 4px; }
.uc-sp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0; }
.uc-sp .uc-pr b { font-size: 1.4rem; }
.uc-ptab { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.uc-ptab th, .uc-ptab td { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; }
.uc-ptab td { text-align: right; font-weight: 700; }
.uc-ptab tr.is-retail th, .uc-ptab tr.is-retail td { color: var(--muted); font-weight: 500; }
.uc-desc { color: var(--muted); font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.uc-sf { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.uc-step { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.uc-step button { width: 44px; height: 44px; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.uc-step span { min-width: 44px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.uc-step small { font-size: .68rem; color: var(--muted); }
.uc-add { flex: 1; min-height: 48px; border-radius: 999px; border: 0; background: var(--primary); color: var(--on-primary, #fff); font: 700 1rem/1 inherit; cursor: pointer; }
.uc-add[disabled] { opacity: .5; }
/* quick order */
.uc-hint { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.uc-qo-in { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface); color: var(--text); font: 500 .95rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin-bottom: 10px; }
.uc-qo-list { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface); overflow: hidden; }
.uc-qo-r { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); min-height: 48px; }
.uc-qo-r:last-child { border-bottom: 0; }
.uc-qo-r small { display: block; color: var(--muted); font-size: .76rem; }
.uc-qo-r.is-miss b { color: var(--muted); }
.uc-qo-q { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.uc-qo-t { font-variant-numeric: tabular-nums; }
.uc-qo-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; font-size: 1.05rem; }
.uc-qo-sum b { font-size: 1.2rem; color: var(--primary); }

/* s7prodview (#7090): layout "retail": a store's product grid (tall photos, name and price, no SKU, no quick-add; a tap opens the Product page) */
.uc-cat.is-retail .uc-grid { gap: 18px 14px; }
.uc-cat.is-retail .uc-card { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.uc-cat.is-retail .uc-ph { aspect-ratio: 4 / 5; border-radius: var(--radius, 12px); background-color: var(--surface); background-size: cover; background-position: center; }
.uc-cat.is-retail .uc-cb { padding: 10px 2px 0; }
.uc-cat.is-retail .uc-nm { font-weight: 600; font-size: .95rem; line-height: 1.3; text-align: left; }
.uc-cat.is-retail .uc-sku, .uc-cat.is-retail .uc-plus { display: none; }
/* s2priceslide (#7189): the price slider (catalog price_style slider) */
.uc-pslide { padding: 12px 2px 4px; }
.uc-pslide-l { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.uc-pslide-l b { color: var(--text); font-weight: 600; }
.uc-pslide input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--primary); cursor: pointer; }
.uc-pslide input[type=range]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
