.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  background: var(--color-ink);
  color: #fff;
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.site-header a,
.site-header a:visited {
  color: inherit;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  flex: 0 0 194.344px;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: 194.344px;
  height: 40px;
  object-fit: contain;
}

.header-navigation { margin: 0; }

.site-header .header-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-menu a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding-block: 12px;
}

.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.site-header__cart {
  display: block;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.site-header a.button--light { color: var(--color-ink); }
.site-header .menu-toggle { display: none; }
@media (hover: hover) {
@media (hover: hover) and (pointer: fine) {
.header-menu a:hover,
.site-header__cart:hover { color: var(--color-accent); }
}

@media (hover: hover) and (pointer: fine) {
.site-header a.button--light:hover { color: #fff; }
}

}

@media (max-width: 1399px) {
  .header-navigation { padding-left: 0; }
  .site-header .header-menu { gap: 24px; }
}


.menu-canvas { display: none; }

@media (max-width: 1050px) {
  .site-header__inner { display: flex; gap: 16px; }
  .header-navigation { order: 3; }
  .site-header .header-menu, .site-header__login { display: none; }
  .site-header__actions { margin-left: auto; }
  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after { display: block; width: 24px; height: 2px; background: currentColor; }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__icon::before { top: -7px; }
  .menu-toggle__icon::after { top: 7px; }

  .menu-canvas[open] {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: 85vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: var(--color-ink);
    color: #fff;
  }
  .menu-canvas::backdrop { background: #0009; }
  .menu-canvas__content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-canvas__login { width: 100%; min-height: 48px; flex-shrink: 0; }
  .menu-canvas__links { list-style: none; padding: 24px 0 0; margin: 0; }
  .menu-canvas__links a {
    display: block;
    padding-block: 16px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
  }
@media (hover: hover) and (pointer: fine) {
.menu-canvas__links a:hover { color: var(--color-accent); }
}

  .menu-canvas__spacer { flex: 1 0 32px; }
  .menu-canvas__hours { flex-shrink: 0; padding-top: 20px; border-top: 1px solid #ffffff26; }
  .menu-canvas__hours p { margin: 0; font-size: 16px; line-height: 1.5; }
  .menu-canvas__hours p:first-child { margin-bottom: 4px; font-weight: 600; }
  .menu-canvas__hours p:last-child { color: #ffffffb3; }
  .menu-canvas__close {
    position: absolute;
    top: 12px;
    left: -44px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 32px/1 sans-serif;
    cursor: pointer;
  }
  body.menu-canvas-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  .admin-bar #wpadminbar { position: fixed; }
  .site-header__inner { gap: 8px; }
  .site-header__logo { flex-basis: 145px; }
  .site-header__logo img { width: 145px; height: auto; }
  .site-header__cart { padding: 10px 8px; font-size: 14px; }
}

@media (max-width: 1050px) {
  .menu-canvas[open] { transform: translate3d(var(--canvas-x, 0px), 0, 0); }
  .menu-canvas[open]::backdrop { background: rgb(0 0 0 / calc(var(--canvas-progress, 1) * .6)); }
  .menu-canvas__close { opacity: var(--canvas-progress, 1); }
}
@media (max-width: 1050px) and (prefers-reduced-motion: no-preference) {
  .menu-canvas[open] { transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
  .menu-canvas[open]::backdrop { transition: background-color .32s ease; }
  .menu-canvas[open].is-dragging,
  .menu-canvas[open].is-dragging::backdrop { transition: none; }
}

/* Updated floating header. */
.site-header { inset: 20px 0 auto; height: 80px; background: transparent; pointer-events: none; }
.admin-bar .site-header { top: 52px; }
.site-header__inner.layout { display: flex; justify-content: space-between; width: calc(100% - 64px); max-width: 1022px; padding: 20px; gap: 16px; border-radius: 16px; background: var(--color-ink); backdrop-filter: blur(25px); pointer-events: auto; }
.site-header .header-menu { gap: 4px; }
.header-menu a { padding: 12px; border-radius: 12px; opacity: .5; }
.header-menu li:first-child a, .header-menu .current-menu-item a { background: var(--color-accent); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
.header-menu a:hover { opacity: 1; color: #fff; }
}

.site-header__actions { margin-left: 0; }
.site-header__cart, .site-header__login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--color-accent); color: #fff; font-size: 16px; font-weight: 600; }
.site-header__cart img, .site-header__login img { width: 16px; height: 16px; }
@media (max-width: 1100px) { .site-header__inner.layout { gap: 10px; } .header-menu a { padding-inline: 8px; } }
@media (max-width: 1050px) {
 .site-header { height: 72px; }
 .site-header__inner.layout { width: calc(100% - 40px); padding: 16px; }
 .site-header__login { display: none; }
 .site-header__actions { margin-left: auto; }
 .site-header__cart { padding: 12px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 66px; } }
@media (max-width: 600px) {
 .site-header { top: 12px; height: 64px; }
 .admin-bar .site-header { top: 58px; }
 .site-header__inner.layout { width: calc(100% - 24px); padding: 12px; gap: 8px; border-radius: 14px; }
 .site-header__logo img { width: 145px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
.header-menu a,
.site-header__cart,
.site-header a.button--light,
.menu-canvas__links a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, box-shadow .2s ease; }
}

/* One hover treatment for the header's accent controls. */
@media (hover: hover) and (pointer: fine) {
  .site-header .header-menu li:first-child a:hover,
  .site-header .header-menu .current-menu-item a:hover,
  .site-header .site-header__cart:hover,
  .site-header .site-header__login:hover { background-color: #e93c27; color: #fff; opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-header .header-menu li:first-child a,
  .site-header .header-menu .current-menu-item a,
  .site-header .site-header__cart,
  .site-header .site-header__login { transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
}

@media (max-width: 600px) { .site-header { position: absolute; } }
