/* Umi local redesign: umipos-redesign/src/{catalog,interface-system}.css.
   Customer menu adaptation. The v5 interaction model stays in menu-v6.html. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../files/IBMPlexSans-Regular.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../files/IBMPlexSans-Medium.ttf');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../files/IBMPlexSans-SemiBold.ttf');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../files/BricolageGrotesque12pt-SemiBold.ttf');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../files/BricolageGrotesque12pt-Bold.ttf');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #172440;
  --muted: #6f7b8e;
  --bg: #f7f7f4;
  --white: #fffefa;
  --line: #e1e4e9;
  --canvas: #f0f2f5;
  --navy: #223979;
  --blue: #223979;
  --blue-soft: #e8edf8;
  --success: #286653;
  --field-line: #8b92a0;
  --radius: 8px;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
}
body {
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.wrap {
  max-width: 1240px;
  padding-inline: 32px;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.8px;
}
h2,
h3,
h4 {
  letter-spacing: -0.35px;
}
.eyebrow,
.brand-tag {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.demo-bar {
  background: var(--canvas);
}
.demo-label::before {
  display: none;
}
.demo-switch button {
  min-height: 44px;
  border-radius: 6px;
}
.demo-switch button[aria-pressed='true'] {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-header .wrap {
  height: 84px;
}
.brand {
  gap: 0;
}
.brand-name {
  font-size: 30px;
  letter-spacing: -0.7px;
}
.brand-tag {
  margin-top: 4px;
  font-size: 12px;
}
.umi-word {
  font-size: 30px;
  letter-spacing: -1.2px;
}
.header-right {
  gap: 24px;
}
.welcome {
  padding-block: 30px 26px;
}
.welcome p {
  font-size: 15px;
  margin-top: 8px;
}
.hours-pill {
  font-size: 13px;
  margin: 0;
}
.layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding-bottom: 36px;
}
.search {
  height: 48px;
  border-color: var(--field-line);
  border-radius: var(--radius);
  background: var(--white);
}
.search:focus-within {
  border-color: var(--navy);
  box-shadow: none;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.search button {
  width: 44px;
  height: 44px;
  margin-right: -12px;
}
.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  margin: 14px 0 28px;
  padding: 3px;
  overflow: visible;
}
[data-category='favorites'] {
  --category-surface: #e9eaf0;
}
[data-category='breakfast'] {
  --category-surface: #efdeda;
}
[data-category='coffee'] {
  --category-surface: #dce8f2;
}
[data-category='bakery'] {
  --category-surface: #f2e3d1;
}
[data-category='dessert'] {
  --category-surface: #e9eaf0;
}
.category {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--category-surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}
.category small {
  color: var(--muted);
  font-size: 12px;
}
.category[aria-selected='true'] {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.section-head {
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 23px;
}
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.menu-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.menu-product img {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.menu-product[data-product='toast'] img {
  object-position: center 35%;
}
.menu-product:hover {
  border-color: var(--ink);
}
.menu-product:active {
  border-color: var(--navy);
}
.menu-product-category {
  font-size: 12px;
  margin: 16px 16px 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--category-surface);
}
.menu-product-name {
  margin-inline: 16px;
  font: 500 18px/1.3 var(--body);
  letter-spacing: 0;
}
.menu-product-price {
  margin-top: auto;
  padding: 16px;
  font-size: 17px;
  font-weight: 500;
}
.menu-product-schedule {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--white);
}
.menu-product-schedule svg {
  width: 16px;
  height: 16px;
}
.menu-note {
  margin-top: 20px;
  line-height: 1.5;
}
.empty-results {
  background: var(--white);
  border-radius: 8px;
}
.cart-aside {
  top: 24px;
}
.fulfillment-box,
.cart-box {
  background: var(--white);
  border-radius: var(--radius);
}
.fulfillment-box {
  padding: 18px;
  margin-bottom: 12px;
}
.context-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-soft);
}
.context-title {
  font-size: 17px;
}
.context-sub,
.fulfillment-caption {
  font-size: 12px;
}
.cart-box {
  padding: 20px;
}
.cart-heading h2 {
  font-size: 23px;
}
.count {
  background: var(--canvas);
}
.cart-empty {
  padding: 30px 0;
}
.bag-drawing {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  margin-bottom: 12px;
}
.cart-empty h3 {
  font-size: 18px;
}
.cart-empty p {
  font-size: 13px;
}
.cart-line {
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding-block: 16px;
}
.cart-line:has(+ .subtotal) {
  border-bottom: 0;
}
.cart-line img {
  width: 44px;
  height: 52px;
  border-radius: 6px;
}
.cart-line .line-title {
  font-size: 14px;
  line-height: 1.35;
}
.line-options {
  font-size: 12px;
}
.line-bottom {
  flex-wrap: wrap;
  gap: 8px;
}
.stepper {
  height: 44px;
  border-radius: 8px;
  gap: 0;
}
.stepper button {
  width: 44px;
  height: 42px;
}
.stepper span {
  min-width: 20px;
  font-size: 14px;
}
.subtotal {
  border-top-style: solid;
  margin-top: 12px;
  font: 400 15px var(--body);
}
.subtotal strong {
  font: 600 28px var(--display);
}
.primary,
.secondary {
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}
.primary {
  min-height: 48px;
}
.secondary {
  min-height: 44px;
  background: var(--white);
}
.primary:hover {
  background: #1b2e63;
}
.cart-footnote {
  font-size: 12px;
}
.powered {
  margin-block: 16px;
}
.site-footer {
  background: var(--bg);
}
.modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.modal::backdrop {
  background: #17244066;
  backdrop-filter: none;
}
.dialog-top {
  padding: 20px 24px;
}
.dialog-top h2 {
  font-size: 25px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.modal-photo {
  height: 280px;
  background: var(--canvas);
}
.modal-photo img {
  object-fit: contain;
  object-position: center;
}
.modal-body {
  padding: 24px;
}
.modal-body h2 {
  font-size: 28px;
}
.modal-body .description {
  color: #58667b;
}
.option-group legend {
  font-family: var(--body);
  font-size: 15px;
}
.option-row {
  min-height: 48px;
}
.optional {
  font-size: 12px;
}
.field {
  border-color: var(--field-line);
  border-radius: var(--radius);
  min-height: 48px;
  font-size: 16px;
}
.field-label {
  font-size: 14px;
  font-weight: 500;
}
.modal-actions {
  padding: 16px 24px;
}
.modal-actions .stepper button {
  width: 44px;
}
.checkout-summary,
.choice,
.schedule-fields,
.info-note,
.status-meta,
.demo-controls,
.info-demo {
  border-radius: 8px;
}
.checkout-summary {
  background: var(--canvas);
}
.choice {
  background: var(--white);
  min-height: 72px;
}
.choice:has(:checked) {
  background: var(--blue-soft);
  border-color: var(--navy);
}
.schedule-fields {
  background: var(--bg);
}
.confirm-total {
  font-family: var(--body);
  font-size: 16px;
}
.confirm-total strong {
  font: 600 28px var(--display);
}
.status-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--blue-soft);
}
.status-hero .eyebrow,
.demo-controls .eyebrow {
  font-size: 12px;
  letter-spacing: 0;
}
.status-hero h2 {
  font-size: 28px;
}
.status-meta strong {
  font-weight: 500;
}
.timeline-dot {
  background: var(--white);
}
.demo-controls button {
  min-height: 44px;
}
.toast {
  box-shadow: none;
  border-radius: 8px;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .wrap {
    padding-inline: 24px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }
  .categories {
    display: flex;
    overflow-x: auto;
  }
  .category {
    flex: 0 0 110px;
  }
  .menu-product-name {
    font-size: 18px;
  }
  .cart-box {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  body {
    background: var(--bg);
  }
  .wrap {
    padding-inline: 16px;
  }
  .demo-bar .wrap {
    padding-inline: 16px;
  }
  .demo-label {
    font-size: 11px;
  }
  .demo-switch button {
    font-size: 12px;
    padding: 4px 9px;
  }
  .site-header .wrap {
    height: 76px;
  }
  .brand-name {
    font-size: 27px;
  }
  .brand-tag {
    font-size: 11px;
    letter-spacing: 0;
  }
  .header-right {
    gap: 20px;
  }
  .header-right .text-btn {
    font-size: 12px;
  }
  .header-right .umi-word {
    font-size: 28px;
  }
  .welcome {
    padding-block: 24px 20px;
  }
  .welcome h1 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }
  .welcome p {
    font-size: 14px;
    margin-top: 7px;
  }
  .welcome .hours-pill {
    display: none;
  }
  .layout {
    display: block;
    padding-bottom: 28px;
  }
  .mobile-context {
    padding: 12px;
    min-height: 48px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  .search {
    height: 48px;
    background: var(--white);
    border-color: var(--field-line);
  }
  .search input {
    font-size: 16px;
  }
  .categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 9px -16px 20px;
    padding: 3px 16px;
  }
  .category {
    flex: 0 0 auto;
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .category small {
    font-size: 11px;
  }
  .section-head {
    margin-bottom: 12px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .product-grid {
    gap: 12px;
  }
  .menu-product-category {
    margin: 12px 12px 8px;
  }
  .menu-product-name {
    margin-inline: 12px;
    font-size: 16px;
    line-height: 1.25;
  }
  .menu-product-price {
    padding: 12px;
    font-size: 16px;
  }
  .menu-product-schedule {
    right: 12px;
    bottom: 12px;
  }
  .menu-note {
    font-size: 12px;
  }
  .mobile-cart {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    backdrop-filter: none;
  }
  .mobile-cart .primary {
    min-height: 48px;
  }
  .site-footer {
    padding-block: 24px 112px;
  }
  .site-footer .wrap {
    gap: 12px;
  }
  .modal {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }
  .modal-photo {
    height: 240px;
  }
  .dialog-top {
    padding: 16px 20px;
  }
  .dialog-top h2 {
    font-size: 23px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-body h2 {
    font-size: 27px;
  }
  .modal-actions {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .modal-actions .stepper span {
    min-width: 18px;
  }
  .status-hero {
    padding: 24px 20px 16px;
  }
  .status-hero h2 {
    font-size: 27px;
  }
  .choice strong {
    font-size: 13px;
  }
}
@media (max-width: 370px) {
  .menu-product-name {
    font-size: 16px;
  }
  .modal-actions {
    padding-inline: 16px;
  }
  .modal-actions .primary {
    padding-inline: 12px;
  }
}
