/* stock-shops screen styles, round 1. Tokens only. Focus ring comes from the global :focus-visible rule. */

/* products: plain tile when there is no photo */
.thumb-plain { font-size: var(--type-small); font-weight: var(--weight-medium); color: var(--text-weak); }
.photo-plain { font-size: var(--type-h2); line-height: var(--lh-h2); font-weight: var(--weight-medium); color: var(--text-weak); }

/* product edit page */
.ed-row { display: flex; align-items: center; gap: var(--space-8); min-height: 48px; }
.ed-row + .ed-row { margin-top: var(--space-4); }
.ed-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); }
.ed-cf + .ed-cf { margin-top: var(--space-12); }
.ed-photo { max-height: 220px; }
label.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); cursor: pointer; text-align: center; }
label.btn:hover { background: var(--fill-hover); }
label.btn:active { background: var(--fill-press); }

/* shops: road header, add card */
.road-head { display: flex; align-items: center; gap: var(--space-8); margin: var(--space-16) 0 var(--space-8); }
.add-card { display: flex; align-items: center; gap: var(--space-12); width: 100%; min-height: 64px; padding: var(--space-12) var(--space-16); text-align: left; cursor: pointer; background: var(--surface-card); border: 1px dashed var(--stroke-strong); border-radius: var(--radius-card); color: inherit; font: inherit; }
.add-card:hover { background: var(--fill-hover); }
.add-card:active { background: var(--fill-press); }
.add-card .thumb { width: 48px; height: 48px; }

/* typed road field and chip groups that wrap */
.road-sg, .chips-wrapbox { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.road-sg:empty { display: none; }
.road-sg .chip { max-width: 100%; }
.road-note { min-height: 0; margin-top: var(--space-4); }
.road-note:empty { display: none; }

/* schedule: one card per day, tap to open */
.day-card { display: flex; align-items: flex-start; gap: var(--space-12); width: 100%; min-height: 64px; padding: var(--space-12) var(--space-16); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.day-card:hover { box-shadow: inset 0 0 0 999px var(--fill-hover); }
.day-card:active { box-shadow: inset 0 0 0 999px var(--fill-press); }
.day-card .chev { align-self: center; flex-shrink: 0; }
.day-name { display: flex; flex-direction: column; width: 48px; flex-shrink: 0; }
.day-roads { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; min-width: 0; }
.day-road { display: flex; flex-direction: column; min-width: 0; }
.day-road > span:first-child { overflow: hidden; text-overflow: ellipsis; }

/* F-20: road headers in the All list stay at the top while their shops scroll under the top bar */
.road-sticky { position: sticky; top: 66px; z-index: 6; background: var(--bg-screen); padding: var(--space-8) 0; margin: 0 0 var(--space-4); }
