/* EatsHub: a local kitchen storefront. Functional layout lives in styles.css. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/barlow-400-latin.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/barlow-500-latin.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/barlow-600-latin.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/barlow-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/barlow-condensed-700-latin.woff2') format('woff2'); }

:root {
  --bg: #f5f7f3; --paper: #fff; --ink: #112f25; --muted: #59665d;
  --line: #dbe2da; --green: #174b38; --green-soft: #edf3ec;
  --orange: #174b38; --orange-dark: #103a2b; --orange-soft: #edf3ec;
  --maiz: #f4c642; --radius: 14px; --shadow: none;
  font-family: Barlow, 'Segoe UI', sans-serif;
}
body { background: var(--bg); }
h1, h2 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; letter-spacing: -.015em; }
h3 { letter-spacing: -.01em; }
em { color: inherit; font-style: normal; }
::selection { color: var(--ink); background: #f4c64270; }
.eyebrow, .step-label, .address-label { text-transform: none; letter-spacing: 0; font-weight: 600; }
.primary-button, .secondary-button, .ghost-button, .text-button { font-weight: 600; border-radius: 9px; transition: background-color .16s, border-color .16s; }
.primary-button, .primary-button:hover:not(:disabled) { box-shadow: none; }
.primary-button { background: var(--green); color: #fff; }
.primary-button:hover:not(:disabled) { background: var(--orange-dark); }
.primary-button:disabled { color: #59665d; background: #e3e9df; opacity: 1; box-shadow: none; }
.secondary-button { background: #fff; border-color: #bdcdbd; color: var(--green); }
.secondary-button:hover:not(:disabled) { background: var(--green-soft); }
input, textarea, select { border-color: #c9d4c8; }
input:not([type='checkbox']):not([type='radio']), textarea { background-color: #fff; border-radius: 9px; }
.topbar { min-height: 80px; background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.topbar .brand { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 2.15rem; font-weight: 700; letter-spacing: -.025em; color: var(--green); }
.topbar .brand-accent { color: inherit; }
.topbar .brand img { width: 38px; height: 38px; border-radius: 8px; border-color: var(--line); }
.topbar .header-note, .topbar-actions a { color: var(--muted); font-size: .875rem; }
.topbar-actions a:hover { color: var(--green); }
.header-login { color: #fff; background: var(--green); border-color: var(--green); border-radius: 8px; font-size: .9375rem; }
.header-login:hover { background: var(--orange-dark); }
.topbar .ghost-button { color: var(--green); border-color: var(--line); }
.topbar .ghost-button:hover { background: var(--green-soft); }
.topbar :focus-visible, .cart-head :focus-visible { outline-color: var(--green); }
main { padding-top: 16px; }
.customer-nav { width: 100%; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 8px; gap: 12px; box-shadow: none; }
.customer-nav button { min-width: 138px; color: var(--muted); border-radius: 7px; min-height: 46px; font-size: .9375rem; }
.customer-nav button:hover { background: #e8eee7; }
.customer-nav button[aria-current='page'] { color: var(--green); background: #e4ede0; box-shadow: none; }
.customer-nav button[aria-current='page'] .nav-count { color: var(--ink); background: var(--maiz); }
.nav-count { background: #e7ebe5; color: var(--green); }

/* A single expressive composition; photos retain their natural colour. */
#shopView .shop-hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 270px; border: 0; border-radius: 16px; background: var(--green); isolation: isolate; }
#shopView .shop-heading { padding: 30px 38px; display: flex; align-items: flex-start; gap: 0; animation: none; }
.shop-greeting { display: block; color: #d8e9ce; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
#shopView .shop-heading h1 { color: #fff; font-size: clamp(3.1rem, 5vw, 4.4rem); line-height: .98; margin: 10px 0 0; max-width: 10ch; }
#shopView .shop-heading > p { font-size: 1rem; line-height: 1.45; color: #eef4ec; margin: 17px 0 0; max-width: 32ch; }
#shopView .hero-explore { display: inline-flex; width: auto; min-height: 44px; margin-top: 22px; padding: 10px 16px; background: var(--maiz); color: var(--ink); font-size: .9375rem; box-shadow: none; }
#shopView .hero-explore:hover { background: #ffda65; }
#shopView .hero-footnote { color: #e1eddb; display: block; font-size: .8125rem; margin-top: 10px; }
#shopView .shop-hero-image { position: relative; inset: auto; z-index: 0; min-height: 270px; background: #d6b57c; }
#shopView .shop-hero-image img { z-index: 0; opacity: 1; object-position: center 48%; }
#shopView .shop-hero-image::after { content: none; }
.shop-hero-image .photo-caption { left: auto; right: 12px; bottom: 10px; z-index: 1; color: #fff; background: #112f25c9; border-radius: 4px; padding: 3px 7px; font-size: .6875rem; }
.delivery-strip { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0 0 30px; padding: 18px 0; box-shadow: none; }
.delivery-strip-copy { gap: 11px; }
.delivery-strip-copy .icon { color: var(--green); }
.delivery-strip-copy strong { font-size: .9375rem; }
.delivery-strip-copy p { font-size: .875rem; color: var(--muted); }
.delivery-address { border-color: var(--line); }
.delivery-address .address-label { font-size: .75rem; color: var(--muted); }
.delivery-address #addressSummary { font-size: .9375rem; color: var(--ink); }
.delivery-address .address-edit { color: var(--green); font-size: .8125rem; }

/* The business list is the primary destination, not a decorative card grid. */
.catalog-tools-header { align-items: end; border-bottom: 0; gap: 32px; padding-bottom: 12px; }
.catalog-tools-header .catalog-heading { gap: 18px; }
.catalog-heading h2 { font-size: 2.65rem; color: var(--ink); }
.catalog-heading p { font-size: .9375rem; margin-top: 5px; }
.catalog-heading #resultsCount { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: .875rem; }
.catalog-tools-header .search-row { width: 46%; }
.search-field { border: 1px solid #c6d2c5; border-radius: 10px; background: #fff; }
.search-field input[type='search'] { background: transparent; font-size: 1rem; min-height: 50px; }
.search-field .icon { color: #58705d; }
.search-clear { color: var(--green); }
.search-clear { display: grid; place-items: center; }
.search-clear .icon { width: 18px; height: 18px; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field input::placeholder, textarea::placeholder { color: #6c776f; opacity: 1; }
.category-chips { gap: 8px; }
.category-chips button { border-color: #d3ddd0; background: #fff; color: var(--muted); min-height: 44px; border-radius: 8px; font-size: .875rem; }
.category-chips button.active, .category-chips button[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: none; }
.category-chips button:focus-visible { outline-offset: -4px; }
.category-chips button[aria-pressed='true']:focus-visible { outline-color: var(--maiz); }
.catalog-controls { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
#catalogSection .catalog-toggles label, #catalogSection .catalog-controls .sort-control { font-size: .875rem; color: var(--muted); }
.catalog-toggles { gap: 8px 22px; }
#catalogSection .catalog-toggles label { padding: 8px 10px; border: 1px solid #d1dbcf; border-radius: 8px; background: #fff; }
#catalogSection .catalog-toggles label:has(input:checked) { color: var(--green); border-color: #73956f; background: #edf4e8; }
.catalog-toggles input { accent-color: var(--green); flex-shrink: 0; }
.sort-control select { font-size: .875rem; color: var(--green); background: transparent; min-height: 44px; }
.favorites-count { background: #e5ede2; color: var(--green); }
.business-list { gap: 26px; }
.business-card { border-radius: 13px; border-color: #d5dfd1; background: #fff; box-shadow: none; animation: none; transition: border-color .15s, background-color .15s; }
.business-card:hover { transform: none; box-shadow: none; border-color: #6c906e; }
.business-cover { aspect-ratio: 16 / 7; background: #e1ebdf; }
.business-card .business-avatar { border-radius: 12px; box-shadow: none; background: #fff; }
.business-avatar-initials { background: #e4eddf; color: var(--green); font-family: 'Barlow Condensed', sans-serif; }
.business-avatar-image { background: #fff; object-fit: contain; }
.business-card .business-body { padding: 20px; }
.business-card .business-name { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 700; }
.business-card .business-categories { font-size: .9375rem; }
.business-card .business-chip { font-size: .75rem; border-radius: 5px; padding: 5px 8px; background: #eef5ea; border: 0; color: #235735; }
.business-card .business-chip.is-closed { color: #645124; background: #f4eddc; }
.business-card .business-meta { font-size: .875rem; border-color: var(--line); }
.business-card .business-link { color: var(--green); font-weight: 600; }
.business-card .business-name .business-saved-icon { color: var(--green); }
.business-card.is-closed .business-cover-image { filter: saturate(.6); }
.catalog-sync { border-color: var(--line); color: var(--muted); margin-top: 22px; }
.catalog-sync > span, .catalog-sync .text-button, .catalog-footnote { font-size: .8125rem; }
.catalog-sync > span::before { content: none; }
.catalog-sync.is-stale { color: #855023; }
.catalog-column:not(.hidden), .cart-panel:not(.hidden), .orders-section:not(.hidden) { animation: none; }
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 160px; }
.loading-state::before { content: ''; width: 24px; height: 24px; border: 3px solid #d3e0ce; border-top-color: var(--green); border-radius: 50%; animation: spin .85s linear infinite; }
.empty-state, .cart-items .empty-state { border: 1px solid var(--line); background: #fff; padding: 28px 22px; }
.empty-state p { max-width: 44ch; margin-inline: auto; line-height: 1.6; }
.empty-state .secondary-button { margin-top: 18px; }
.skeleton-card { border-radius: 13px; }
.skeleton-media, .skeleton-line { background: #e5ece0; }
.price, .totals, .checkout-costs, .cart-line-price, .photo-price, .nav-count, #mobileCartTotal { font-variant-numeric: tabular-nums; }
.checkout-item > strong, .checkout-summary-line > strong, .totals > strong { white-space: nowrap; }

/* Menu, basket and account screens share the same visual hierarchy. */
.modal-card, .setup-card { background: #fff; border-radius: 16px; }
.modal-close { background: #fff; border-color: #cdd8c9; box-shadow: none; }
.modal-card > .modal-close { position: sticky; top: 12px; margin: 12px 12px -56px auto; z-index: 8; }
.modal-card { scroll-padding-block: 68px 24px; }
.menu-banner { background: #e3ecdf; }
.menu-card .modal-content { padding-top: 24px; }
.menu-card #menuTitle { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; letter-spacing: -.01em; }
.menu-card #menuAddress { color: var(--muted); font-size: .9375rem; }
.menu-title-row { margin-top: 0; }
.favorite-business-button { border-radius: 8px; color: var(--green); background: #fff; border-color: #c9d6c3; font-size: .875rem; }
.favorite-business-button[aria-pressed='true'] { background: #edf4e8; border-color: #9cb890; }
.favorite-hint { font-size: .75rem; margin-bottom: 12px; }
.menu-schedule { color: var(--muted); background: transparent; padding: 0; border-radius: 0; font-size: .875rem; }
.menu-tools { background: #fff; position: relative; top: auto; z-index: 1; border-color: var(--line); }
.menu-tools .search-field { background: #f5f7f3; }
.menu-category { font-size: 1.2rem; text-transform: none; color: var(--green); letter-spacing: 0; padding-block: 18px 8px; }
.product-row { border-color: var(--line); }
.product-copy h3 { font-family: Barlow, sans-serif; font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
.product-copy p:not(.price) { color: var(--muted); font-size: .875rem; }
.product-media { border-radius: 10px; background: #edf2e9; }
.product-row .price { color: var(--ink); font-size: 1.0625rem; }
.product-sort-category, .product-customizable { color: var(--muted); }
.add-button { border-radius: 8px; min-height: 44px; color: #fff; background: var(--green); border-color: var(--green); box-shadow: none; }
.add-button:hover:not(:disabled) { background: var(--orange-dark); }
.add-button:disabled { background: #ecf0e9; color: #59665d; border-color: #dce4d6; opacity: 1; }
.menu-bottom { background: #f5f8f2; border-color: #d7e2d2; box-shadow: none; }
.menu-bottom .primary-button { background: var(--green); color: #fff; }
.menu-sort select { background-color: #fff; }
.product-demo-badge { color: #635024; background: #f5eedb; border-radius: 4px; }
.photo-toolbar { background: var(--green); color: #fff; }
.photo-toolbar > span { font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.shop-section-intro h1 { font-size: 3rem; letter-spacing: -.01em; }
.cart-panel { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.cart-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.cart-head h2 { font-size: 2rem; }
.cart-icon { background: #edf3e7; color: var(--green); border-color: #d9e4d0; }
.cart-head .count-badge { background: var(--maiz); color: var(--ink); border-color: #fff; }
.cart-business-row { border-color: var(--line); }
.cart-panel:has(#cartFooter.hidden) .cart-business-row { display: none; }
.cart-line { border-color: var(--line); }
.cart-line .cart-remove { color: #735043; }
.qty-control { background: #f5f7f3; border-color: #cddac7; }
.cart-footer .totals { background: #f0f5ec; border-radius: 9px; border: 0; }
.cart-undo { background: #edf4e8; border-color: #cbdcc2; }
.notes-meta { font-size: .75rem; }
.guest-orders { border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: none; }
.guest-orders h2 { font-size: 2rem; }
.guest-orders-icon { background: #eaf2e3; color: var(--green); }
.order-card, .order-card.is-active { background: #fff; border-color: #d1dfca; box-shadow: none; border-radius: 14px; }
.order-card h3 { font-size: 1.2rem; }
.order-filters { background: #e9efe5; border-color: var(--line); border-radius: 9px; }
.order-filters button { min-height: 44px; font-size: .875rem; border-radius: 7px; }
.order-filters button[aria-pressed='true'] { color: var(--green); background: #fff; box-shadow: none; }
.order-chat-actions { background: #f0f5ec; border: 0; border-radius: 10px; }
.order-chat-button { background: #fff; border-color: #c7d7be; font-size: .875rem; }
.order-chat-intro h4 { color: var(--green); font-size: .875rem; }
.order-search, .sound-preferences { border-color: var(--line); background: #eff4ea; border-radius: 10px; }
.sound-preferences summary { font-size: .875rem; }
.order-details-button, .courier-call { color: var(--green); }
.chat-heading h2 { font-family: Barlow, sans-serif; font-size: 1.125rem; letter-spacing: -.01em; }
.chat-header, .chat-composer { background: #fff; border-color: var(--line); }
.chat-messages { background: var(--bg); }
.chat-state { background: var(--green-soft); }
.chat-card .chat-composer textarea { background: #fff; border-color: #c9d4c8; }
.chat-heading p, .chat-connection, .chat-state { font-size: .8125rem; }
.chat-author, .chat-time, .chat-character-count, .chat-history-note { font-size: .75rem; }
.chat-jump, .chat-card .chat-earlier, .chat-read-status .text-button { min-height: 44px; }
.chat-card .chat-earlier { font-size: .8125rem; }
.active-order-overview { background: var(--green); border-color: var(--green); border-radius: 12px; box-shadow: none; }
.active-order-overview .secondary-button { background: var(--maiz); color: var(--ink); border-color: var(--maiz); }
.auth-card h2 { font-size: 3.1rem; }
.auth-intro .hero-copy h1 { font-size: clamp(3.1rem, 5vw, 4.5rem); letter-spacing: -.015em; }
.auth-intro .hero-tag { text-transform: none; letter-spacing: 0; font-size: .9375rem; background: #fff; color: var(--green); }
.auth-intro .hero-copy p { color: #fff; }
.auth-journey { background: #edf4e8; color: var(--green); }
.auth-progress .step-label { font-size: .8125rem; }
.setup-copy h1 { font-size: 3.5rem; }
.form-heading h2, .modal-content h2 { font-size: 2.15rem; }
.map-heading .map-label, .map-kicker { color: var(--green); }
.location-row, .checkout-address { background: #eff4ea; border-color: #d1ddca; }
.option-choice { background: #fff; }
.option-choice:has(input:checked) { background: #edf4e8; }
.site-footer { border-color: var(--line); color: var(--muted); }
.site-footer strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; color: var(--green); }
.site-footer .footer-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 1.65rem; color: var(--green); letter-spacing: -.015em; }
.site-footer nav a { color: var(--muted); font-size: .875rem; }

@media (min-width: 701px) {
  .business-card { display: flex; flex-direction: column; }
  .business-cover { flex-shrink: 0; }
  .business-card .business-body { display: flex; flex-direction: column; flex: 1; width: 100%; }
  .business-card .business-categories { margin-bottom: 15px; }
  .business-card .business-meta { margin-top: auto; }
}
@media (min-width: 981px) {
  .customer-nav { position: sticky; top: 0; z-index: 29; padding-top: 7px; }
}
@media (max-width: 980px) {
  .customer-nav { border-radius: 0; border: 0; border-top: 1px solid #cbd7c5; background: #fff; padding: 7px 12px max(8px, env(safe-area-inset-bottom)); gap: 8px; box-shadow: none; }
  .customer-nav button { min-width: 0; font-size: .8125rem; min-height: 55px; }
  .catalog-tools-header { padding: 0; }
  .catalog-tools-header .catalog-heading { margin-bottom: 15px; padding-bottom: 0; border: 0; }
  .catalog-tools-header .search-row { width: 100%; }
}
@media (max-width: 700px) {
  .topbar { min-height: 70px; padding: 10px 18px; gap: 12px; }
  .topbar .brand { font-size: 1.9rem; gap: 8px; }
  .topbar .brand img { width: 32px; height: 32px; }
  .header-login { min-height: 44px; font-size: .875rem; padding: 9px 12px; }
  main { padding: 15px 18px 100px; }
  #shopView .shop-hero { grid-template-columns: 1.3fr 1fr; min-height: 0; border-radius: 12px; }
  #shopView .shop-heading { padding: 20px 16px; position: relative; }
  .shop-greeting { font-size: .75rem; color: #e1edda; }
  #shopView .shop-heading h1 { font-size: clamp(2rem, 7.5vw, 3.2rem); line-height: 1; margin-top: 8px; }
  #shopView .shop-heading > p { font-size: .8125rem; line-height: 1.35; margin-top: 12px; }
  #shopView .shop-hero-image { min-height: 0; position: relative; inset: auto; z-index: 0; }
  #shopView .shop-hero-image img { opacity: 1; object-position: 53% 50%; }
  #shopView .hero-explore, #shopView .hero-footnote { display: none; }
  .shop-hero-image .photo-caption { font-size: .5625rem; right: 6px; bottom: 7px; padding: 2px 4px; }
  .delivery-strip { padding: 14px 0; margin-bottom: 22px; }
  .delivery-address { border: 0; padding: 0; }
  .delivery-address #addressSummary { font-size: .875rem; }
  .delivery-address .address-label, .delivery-address .address-edit { font-size: .75rem; }
  .catalog-heading h2 { font-size: 2.15rem; }
  .catalog-heading p { font-size: .875rem; }
  .catalog-heading #resultsCount { font-size: .8125rem; max-width: 100px; text-align: right; }
  .catalog-toggles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #catalogSection .catalog-toggles label { font-size: .8125rem; gap: 6px; padding: 8px; }
  #catalogSection .catalog-controls .sort-control { font-size: .875rem; width: 100%; justify-content: space-between; }
  #catalogSection .sort-control select { min-width: 150px; }
  .catalog-controls { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; }
  .business-list { gap: 14px; }
  .skeleton-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-content: center; gap: 12px 16px; padding: 16px; min-height: 146px; }
  .skeleton-media { width: 84px; height: 84px; grid-row: 1 / 3; border-radius: 11px; }
  .skeleton-line, .skeleton-line:last-child { width: 90%; margin: 12px 0 0; }
  .skeleton-line:last-child { width: 65%; margin: 0 0 12px; }
  .business-card { padding: 16px; border-radius: 12px; }
  .business-card .business-body { padding: 0; column-gap: 14px; }
  .business-card .business-name { font-size: 1.125rem; }
  .business-card .business-categories, .business-card .business-meta { font-size: .875rem; }
  .business-card .business-chip { font-size: .75rem; }
  .business-card .business-avatar { border-radius: 11px; }
  .catalog-sync > span { max-width: 230px; font-size: .75rem; }
  .catalog-sync .text-button, .catalog-footnote { font-size: .75rem; }
  .menu-card .menu-banner { height: 125px; }
  .menu-card .modal-content { padding: 22px 20px; }
  .menu-card #menuTitle { font-size: 2.05rem; }
  .menu-title-row { gap: 12px; }
  .favorite-business-button { font-size: .8125rem; }
  .menu-card #menuAddress, .menu-schedule { font-size: .8125rem; }
  .menu-tools { margin-top: 10px; }
  .menu-bottom { padding: 13px 20px; }
  .product-copy h3 { font-size: 1rem; }
  .product-copy p:not(.price) { font-size: .875rem; }
  .menu-category { font-size: 1.0625rem; }
  .shop-section-intro h1 { font-size: 2.5rem; }
  .cart-head h2 { font-size: 1.85rem; }
  .order-card { padding: 20px; }
  .order-filters button { padding-inline: 10px; font-size: .8125rem; }
  .guest-orders h2 { font-size: 1.8rem; }
  .auth-intro .hero-copy h1 { font-size: 2.5rem; line-height: 1.02; }
  .auth-intro .hero-tag { font-size: .8125rem; }
  .auth-card h2 { font-size: 2.4rem; letter-spacing: -.015em; }
  .setup-copy h1 { font-size: 2.7rem; }
  .form-heading h2 { font-size: 1.85rem; }
  .site-footer { margin-inline: 18px; }
  #addressForm input, #addressForm textarea, #orderNotes, #chatInput { font-size: 1rem; }
}
@media (max-width: 360px) {
  main { padding-inline: 14px; }
  #shopView .shop-heading { padding: 18px 13px; }
  #shopView .shop-heading > p { font-size: .75rem; }
  .topbar .brand { font-size: 1.8rem; }
  .topbar .brand img { width: 28px; height: 28px; }
  .customer-nav { gap: 3px; padding-inline: 7px; }
  .customer-nav button { padding-inline: 6px; }
  .business-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  #shopView .shop-hero, #shopView .shop-heading, #shopView .shop-heading h1, #shopView .shop-heading > p, .shop-greeting { background: Canvas; color: CanvasText; }
  .customer-nav button[aria-current='page'], .business-card, .primary-button, .header-login { border: 1px solid ButtonText; }
}

/* Motion pass: small, purposeful feedback for browsing, ordering and tracking. */
.options-progress { margin: 10px 0 0; min-height: 1.25em; color: var(--muted); font-size: .75rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.search-field:focus-within { border-color: #789a6f; box-shadow: 0 0 0 4px #789a6f1c; }
.primary-button, .secondary-button, .ghost-button, .text-button, .add-button, .order-chat-button, .business-link { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease; }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled), .add-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled), .add-button:active:not(:disabled) { transform: translateY(0) scale(.985); }
.business-cover-image, .product-media img, .business-avatar-image { transition: transform .45s cubic-bezier(.2,.75,.25,1), filter .3s ease; }
.business-card:hover .business-cover-image, .business-card:focus-within .business-cover-image, .product-row:hover .product-media img { transform: scale(1.035); }
.option-choice { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.option-choice:focus-within { border-color: #789a6f; box-shadow: 0 0 0 3px #789a6f1b; }
.option-choice:active { transform: scale(.99); }
.tracking-route-line { stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  #shopView .shop-heading { animation: eh-hero-in .45s ease-out both; }
  #shopView .shop-hero-image { animation: eh-hero-photo-in .55s ease-out both; }
  .catalog-column:not(.hidden), .cart-panel:not(.hidden), .orders-section:not(.hidden) { animation: eh-panel-in .32s ease-out both; }
  .business-card { animation: eh-business-in .42s cubic-bezier(.2,.7,.25,1) both; will-change: transform, opacity; }
  .business-card:nth-child(2) { animation-delay: .035s; }
  .business-card:nth-child(3) { animation-delay: .07s; }
  .business-card:nth-child(4) { animation-delay: .105s; }
  .business-card:nth-child(5) { animation-delay: .14s; }
  .business-card:nth-child(6) { animation-delay: .175s; }
  .business-card:nth-child(n+7) { animation-delay: .21s; }
  .product-row { animation: eh-product-in .32s ease-out both; }
  .product-row:nth-child(2) { animation-delay: .035s; }
  .product-row:nth-child(3) { animation-delay: .07s; }
  .product-row:nth-child(4) { animation-delay: .105s; }
  .cart-line { animation: eh-line-in .24s ease-out both; }
  .chat-bubble { animation: eh-message-in .25s ease-out both; }
  .mobile-cart:not(.hidden) { animation: eh-cart-dock-in .3s cubic-bezier(.2,.8,.25,1) both; }
  .toast.show { animation: eh-toast-in .24s ease-out both; }
  .is-bumping { animation: eh-bump .46s cubic-bezier(.2,.85,.3,1) both; }
  .tracking-live-status:not(.is-delayed)::before { animation: eh-live-dot 1.7s ease-in-out infinite; }
  .tracking-destination-pin span { animation: eh-destination-pulse 2.8s ease-in-out infinite; }
  .order-timeline .is-current::before { animation: eh-current-step 1.8s ease-in-out infinite; }
  .tracking-route-line { stroke-dasharray: 10 7; animation: eh-route-flow 1.5s linear infinite; }
  .tracking-route-outline { stroke-dasharray: none; }
  @keyframes eh-panel-in { from { opacity: .55; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes eh-hero-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes eh-hero-photo-in { from { opacity: .35; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
  @keyframes eh-business-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes eh-product-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes eh-line-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes eh-message-in { from { opacity: 0; transform: translateY(5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes eh-cart-dock-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes eh-toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
  @keyframes eh-bump { 0%, 100% { transform: scale(1); } 38% { transform: scale(1.12); } 68% { transform: scale(.96); } }
  @keyframes eh-live-dot { 50% { box-shadow: 0 0 0 5px #24603b18; opacity: .65; } }
  @keyframes eh-destination-pulse { 50% { filter: drop-shadow(0 0 7px #f4c64288); } }
  @keyframes eh-current-step { 50% { box-shadow: 0 0 0 5px var(--orange-soft); } }
  @keyframes eh-route-flow { to { stroke-dashoffset: -34; } }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled), .add-button:hover:not(:disabled) { transform: none; }
  .business-cover-image, .product-media img, .business-avatar-image, .option-choice { transition: none; }
  .tracking-route-line { stroke-dasharray: none; animation: none; }
}
