/* Desktop uses the same five section colors and SVG vocabulary as the mobile dock. */
.sf-desktop-nav[hidden] { display:none!important; }
@media (min-width:701px)  and (min-height:501px),(min-width:1001px) {
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head,
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head.has-realm-segments {
    display:grid!important;
    grid-template-columns:100px minmax(0,1fr) auto;
    align-items:center;
    gap:8px 20px;
    padding-block:8px;
    background:#fbf9f4;
  }
  html body.sf-desktop-navigation .main-head > .wordmark { grid-column:1; grid-row:1; width:auto; max-width:100%; min-width:0; gap:10px; }
  html body.sf-desktop-navigation .main-head .wordmark strong { font-size:21px; white-space:nowrap; }
  html body.sf-desktop-navigation .main-head .wordmark small { font-size:10px; line-height:1.5; }
  html body.sf-desktop-navigation .main-head > #v9-header-search.sf-header-search { grid-column:2; grid-row:1; width:100%; max-width:none; min-width:0; margin:0; }
  html body.sf-desktop-navigation .main-head > .realm-segments:not([hidden]) { grid-column:3; grid-row:1; justify-self:end; }
  html body.sf-desktop-navigation .main-head > :is(.sf-browse-actions,.header-account-cart) { display:none!important; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head > .sf-header-categories { grid-column:1/-1; grid-row:3; padding-block:0 2px; background:transparent; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head > .sf-desktop-nav:not([hidden]) {
    --desktop-nav-muted:#5b6a60;
    --desktop-nav-line:#e3e5da;
    --desktop-nav-focus:#24583f;
    display:flex!important;
    align-items:stretch;
    gap:8px;
    grid-column:1/-1;
    grid-row:2;
    min-width:0;
    width:100%;
    padding:6px 0 0;
    margin:0;
    border-top:1px solid var(--desktop-nav-line);
  }
  .sf-desktop-nav [data-nav-section=home] { --desktop-nav-ink:#23563f; --desktop-nav-soft:#eaf2e7; }
  .sf-desktop-nav [data-nav-section=category] { --desktop-nav-ink:#7c5a12; --desktop-nav-soft:#fbf2d8; }
  .sf-desktop-nav [data-nav-section=dishes] { --desktop-nav-ink:#a34428; --desktop-nav-soft:#fbede5; }
  .sf-desktop-nav [data-nav-section=cart] { --desktop-nav-ink:#a03243; --desktop-nav-soft:#fbeaec; }
  .sf-desktop-nav [data-nav-section=account] { --desktop-nav-ink:#315e6b; --desktop-nav-soft:#e9f2f4; }
  /* Include the legacy cart ID so its older primary-button rules cannot override this row. */
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > :is(.sf-desktop-nav-item,#cart-open) {
    display:flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    flex-wrap:nowrap;
    order:0!important;
    position:relative;
    gap:8px;
    width:auto;
    min-width:108px;
    max-width:none;
    min-height:44px;
    margin:0;
    padding:5px 12px;
    border:1px solid transparent;
    border-radius:12px;
    color:var(--desktop-nav-muted)!important;
    background:transparent!important;
    box-shadow:none;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    text-align:center;
    text-decoration:none;
    white-space:normal;
    cursor:pointer;
    transition:background-color .16s ease,color .16s ease;
  }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > #cart-open { margin-left:auto; border-color:var(--desktop-nav-soft)!important; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > #customer-nav-link { max-width:240px; flex:0 1 auto; }
  html body.sf-desktop-navigation .sf-desktop-nav > #cart-open::after { display:none; }
  .sf-desktop-nav .sf-desktop-nav-icon {
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    flex:none;
    border-radius:10px;
    background:var(--desktop-nav-soft);
    color:var(--desktop-nav-ink);
  }
  html body.sf-desktop-navigation .sf-desktop-nav .sf-desktop-nav-icon .sf-icon {
    display:block;
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .sf-desktop-nav .sf-desktop-nav-label { min-width:0; overflow-wrap:anywhere; }
  .sf-desktop-nav #sf-category-toggle > [aria-hidden=true]:not(.sf-desktop-nav-icon) { display:none; }
  .sf-desktop-nav .v9-account::before { display:none!important; }
  html body.sf-desktop-navigation .sf-desktop-nav #cart-count {
    display:inline-grid;
    place-items:center;
    flex:none;
    min-width:20px;
    min-height:20px;
    padding:2px 5px;
    border-radius:8px;
    background:var(--desktop-nav-soft);
    color:var(--desktop-nav-ink);
    font-size:12px;
    line-height:1;
  }
  html body.sf-desktop-navigation .main-head > .sf-header-categories button[aria-current=true] {
    background:#fbf2d8!important;
    color:#7c5a12!important;
    border-color:#d4bd7e!important;
  }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > :is(.sf-desktop-nav-item,#cart-open):hover,
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation:not(:has(#cart-panel[aria-hidden=false])) .sf-desktop-nav:not(:has(> [aria-expanded=true])) > [aria-current=page],
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > :is(.sf-desktop-nav-item,#cart-open)[aria-expanded=true],
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation:has(#cart-panel[aria-hidden=false]) .sf-desktop-nav > #cart-open {
    color:var(--desktop-nav-ink)!important;
    background:var(--desktop-nav-soft)!important;
  }
  html body.sf-desktop-navigation:not(:has(#cart-panel[aria-hidden=false])) .sf-desktop-nav:not(:has(> [aria-expanded=true])) > [aria-current=page] .sf-desktop-nav-icon,
  html body.sf-desktop-navigation .sf-desktop-nav > [aria-expanded=true] .sf-desktop-nav-icon,
  html body.sf-desktop-navigation:has(#cart-panel[aria-hidden=false]) .sf-desktop-nav > #cart-open .sf-desktop-nav-icon {
    background:var(--desktop-nav-ink);
    color:#fff;
  }
  .sf-desktop-nav > :is([aria-current=page],[aria-expanded=true]) .sf-desktop-nav-label {
    font-weight:750;
    text-decoration:underline;
    text-underline-offset:5px;
    text-decoration-thickness:2px;
  }
  html body.sf-desktop-navigation .sf-desktop-nav > .sf-desktop-nav-item:focus-visible { outline:3px solid var(--desktop-nav-focus); outline-offset:2px; }
  .sf-desktop-nav > .sf-desktop-nav-item:active { opacity:.75; }
}
@media (min-width:701px) and (max-width:1100px)  and (min-height:501px),(min-width:1001px) and (max-width:1100px) {
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head,
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head.has-realm-segments { grid-template-columns:84px minmax(0,1fr) auto; gap:8px 12px; }
  html body.sf-desktop-navigation .main-head > .realm-segments:not([hidden]) { grid-column:3; grid-row:1; }
  html body.sf-desktop-navigation .main-head > #v9-header-search.sf-header-search { grid-column:2; grid-row:1; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head > .sf-desktop-nav:not([hidden]) { display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr)); grid-row:2; gap:6px; padding-top:6px; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .sf-desktop-nav > :is(.sf-desktop-nav-item,#cart-open) { min-width:0; width:100%; padding:5px 6px; gap:6px; font-size:13px; }
  html body.storefront-v9.sf-navigation.sf-enhanced.sf-desktop-navigation .main-head > .sf-header-categories { grid-row:3; }
  .sf-desktop-nav .sf-desktop-nav-icon { width:30px; height:30px; border-radius:9px; }
  html body.sf-desktop-navigation .sf-desktop-nav .sf-desktop-nav-icon .sf-icon { width:20px; height:20px; }
}
@media (max-width:700px) ,(max-width:1000px)  and (max-height:500px){
  .sf-desktop-nav,.sf-desktop-nav-icon { display:none!important; }
}
@media (prefers-reduced-motion:reduce) {
  .sf-desktop-nav,.sf-desktop-nav * { transition:none!important; }
}
@media print {
  .sf-desktop-nav { display:none!important; }
}

/* Compact brand/search row; heights remain content-driven for text zoom. */
html body.web-order .top-ribbon { display:none; }
html body.web-order .main-head > .wordmark.storefront-brand {
  display:flex; align-items:center; justify-content:flex-start;
  width:84px; min-width:0; min-height:44px; padding:0; margin:0; gap:0; flex:0 0 84px;
}
html body.web-order .main-head > .wordmark.storefront-brand::before { content:none; }
html body.web-order .main-head .storefront-brand .brand-logo {
  display:block; width:84px; max-width:100%; height:56px; object-fit:contain;
  background:transparent; border:0; border-radius:0; padding:0; mix-blend-mode:normal;
}
html body.sf-navigation.sf-enhanced .main-head #v9-header-search .search-control {
  box-sizing:border-box; min-height:50px; padding:2px 4px; gap:4px; box-shadow:none;
}
html body.sf-navigation.sf-enhanced .main-head #search {
  min-height:44px; padding:8px 4px; padding-block:8px!important; line-height:1.5;
}
html body.sf-navigation.sf-enhanced .main-head .realm-segments:not([hidden]) {
  box-sizing:border-box; min-height:50px; padding:2px; gap:2px; border-radius:12px; align-self:center;
}
html body.sf-navigation.sf-enhanced .main-head .realm-segments button {
  box-sizing:border-box; min-height:44px; padding:8px 14px; border-radius:9px; line-height:1.5;
}
@media (min-width:701px)  and (min-height:501px),(min-width:1001px) {
  html body.storefront-v9.sf-navigation.sf-enhanced .main-head > .sf-header-categories button {
    min-height:44px; padding:6px 12px; gap:8px; font-size:14px;
  }
  html body.storefront-v9.sf-navigation.sf-enhanced .main-head > .sf-header-categories button img {
    width:30px; height:30px; border-radius:6px; object-fit:cover;
  }
}
@media (max-width:700px) ,(max-width:1000px)  and (max-height:500px){
  html body.sf-navigation.sf-enhanced.web-order .main-head > .wordmark.storefront-brand { width:66px; min-height:44px; }
  html body.web-order .main-head .storefront-brand .brand-logo { width:66px; height:44px; }
  html body.sf-navigation.sf-enhanced .main-head .realm-segments button { padding-inline:10px; }
}
@media (min-width:600px) and (max-width:700px) ,(min-width:600px) and (max-width:1000px)  and (max-height:500px){
  html body.storefront-v9.sf-navigation.sf-enhanced.web-order .main-head,
  html body.storefront-v9.sf-navigation.sf-enhanced.web-order .main-head.has-realm-segments { grid-template-columns:66px minmax(0,1fr) auto; }
  html body.storefront-v9.sf-navigation.sf-enhanced .main-head > #v9-header-search.sf-header-search { grid-column:2; grid-row:1; }
  html body.storefront-v9.sf-navigation.sf-enhanced.web-order .main-head .realm-segments:not([hidden]) { grid-column:3; grid-row:1; }
  html body.storefront-v9.sf-navigation.sf-enhanced.web-order .main-head:has(> .support-launcher--inline) { grid-template-columns:66px minmax(0,1fr) auto 44px; }
  html body.storefront-v9.sf-navigation.sf-enhanced.web-order .main-head > .support-launcher--inline { grid-column:4; grid-row:1; width:44px; min-width:44px; min-height:44px; padding:0; margin:0; justify-self:end; }
}
