/* Header layout only. Keep the existing Elementor menu and category images. */
:root {
  --moledo-header-height: 132px;
  --moledo-header-space: 16px;
  --moledo-header-inset: 24px;
}

@media (min-width: 1200px) {
  body.single-post main.site-main#content {
    padding-block-start: calc(var(--moledo-header-height) + var(--moledo-header-space));
  }

  .elementor.elementor-26322 .moledo-header,
  .elementor.elementor-26322 .moledo-header:hover {
    background-color: #fff;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-181b6b4 {
    height: 40px;
    min-height: 40px;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-bf43e86 {
    --padding-top: var(--moledo-header-space);
    --padding-bottom: var(--moledo-header-space);
    --padding-left: var(--moledo-header-inset);
    --padding-right: var(--moledo-header-inset);
    min-height: 92px;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-e81be17 {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: var(--moledo-header-space);
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    min-width: 0;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-7ea1abf {
    display: block;
    width: 100%;
    height: 60px;
    min-height: 0;
    background-position: left center;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-d25ffa7 {
    display: grid;
    grid-template-columns: minmax(144px, 1fr) max-content max-content;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-eee588c {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-49d51dc {
    --n-menu-heading-wrap: nowrap;
    --n-menu-title-font-size: 15px;
    --n-menu-title-color-active: var(--n-menu-title-color-normal);
    --n-menu-title-color-hover: var(--n-menu-title-color-normal);
    width: max-content;
    min-width: 0;
  }

  .elementor.elementor-26322 .e-n-menu-heading > .e-n-menu-item > .e-n-menu-title {
    padding: 10px 8px;
    min-height: 44px;
    white-space: nowrap;
    text-shadow: none;
  }

  .elementor.elementor-26322 .elementor-element.elementor-element-f7134e9 {
    width: max-content;
    min-width: 0;
  }

  .elementor.elementor-26322 .elementor-menu-cart__toggle_button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    white-space: nowrap;
  }
}

/* The desktop header is positioned above the content by the saved template. */
body.home .moledo-home-delivery {
  margin-top: var(--moledo-header-height);
}

/* Use the same complete mobile navigation on narrow laptops and tablets. */
@media (max-width: 1199px) {
  .elementor-location-header {
    display: none !important;
  }

  .moledo-mobile-header {
    color-scheme: only light;
    isolation: isolate;
    --nav-surface: #fff;
    --nav-ink: #232620;
    --nav-rule: #d3d8cf;
    --nav-action: #3e5038;
    --nav-on-action: #fff;
    --nav-placeholder: #586153;
    --nav-inset: clamp(10px, 3vw, 18px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 12px var(--nav-inset) 0;
    min-height: 76px;
    color: var(--nav-ink);
    border-bottom: 1px solid var(--nav-rule);
    background: var(--nav-surface);
    position: relative;
    z-index: 100;
  }

  .moledo-mobile-header a,
  .moledo-mobile-header summary {
    color: var(--nav-ink);
    font-size: 16px;
    text-decoration: none;
  }

  .moledo-mobile-logo {
    flex: 1;
    min-width: 0;
  }

  .moledo-mobile-logo img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    /* Keep the monochrome mark legible against the background the browser actually paints. */
    filter: brightness(0) invert(1);
    mix-blend-mode: difference;
  }

  .moledo-mobile-header > a,
  .moledo-mobile-header summary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .moledo-mobile-header > a:not(.moledo-mobile-logo),
  .moledo-mobile-header > details > summary {
    justify-content: center;
    min-width: 44px;
    padding: 8px 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .moledo-mobile-header > details > summary {
    cursor: pointer;
    gap: 8px;
    list-style: none;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: var(--nav-action);
    color: var(--nav-on-action);
  }

  .moledo-mobile-header summary::-webkit-details-marker {
    display: none;
  }

  .moledo-mobile-header > details > summary::before {
    content: "";
    box-sizing: border-box;
    width: 18px;
    height: 14px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .moledo-mobile-header :focus-visible {
    outline: 2px solid var(--nav-ink);
    outline-offset: 2px;
  }

  .moledo-mobile-header > details > nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-surface);
    border-bottom: 1px solid var(--nav-rule);
    padding: 14px 20px 24px;
    max-height: calc(100vh - 118px);
    max-height: calc(100dvh - 118px);
    overscroll-behavior-y: contain;
    box-shadow: 0 12px 20px #0000000a;
  }

  .moledo-mobile-header nav > a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--nav-rule);
  }

  .moledo-mobile-shortcuts {
    display: flex;
    grid-column: 1 / -1;
    gap: clamp(16px, 4vw, 32px);
    overflow-x: auto;
    margin-inline: calc(-1 * var(--nav-inset));
    padding-inline: var(--nav-inset);
    border-top: 1px solid var(--nav-rule);
    scrollbar-width: thin;
    scrollbar-color: var(--nav-rule) transparent;
  }

  .moledo-mobile-shortcuts a {
    flex: none;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
  }

  .moledo-mobile-shortcuts a[aria-expanded="true"] {
    border-bottom-color: var(--nav-action);
  }

  .moledo-mobile-shortcuts a:focus-visible {
    outline-offset: -2px;
  }

  .moledo-mobile-group {
    border-bottom: 1px solid var(--nav-rule);
  }

  .moledo-mobile-group > summary {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
  }

  .moledo-mobile-group > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-inline-end: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .moledo-mobile-group[open] > summary::after {
    transform: rotate(225deg);
  }

  .moledo-mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 16px;
  }

  .moledo-mobile-panel .moledo-mobile-all {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: var(--nav-action);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
  }

  .moledo-mobile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .moledo-mobile-cards a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
  }

  .moledo-mobile-cards img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.8;
    object-fit: contain;
    background: white;
  }

  /* A shortcut opens its own photo panel; the Menu button shows the full list. */
  .moledo-mobile-header details[data-shortcut-panel] > nav > :not(.moledo-mobile-group[open]) {
    display: none;
  }

  .moledo-mobile-header nav a {
    min-height: 44px;
  }

  .moledo-mobile-header form {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .moledo-mobile-header label {
    width: 100%;
    font-size: 14px;
  }

  .moledo-mobile-header input[type=search] {
    flex: 1;
    width: 65%;
    min-width: 0;
    color: var(--nav-ink);
    background: var(--nav-surface);
    border: 1px solid var(--nav-placeholder);
    padding: 10px;
    font-size: 16px;
  }

  .moledo-mobile-header input::placeholder {
    color: var(--nav-placeholder);
    opacity: 1;
  }

  .moledo-mobile-header button {
    background: var(--nav-action);
    color: var(--nav-on-action);
    border: 0;
    padding: 10px;
  }

  body.home .moledo-home-delivery {
    margin-top: 0;
  }

  .elementor-location-archive,
  .single-product .elementor-location-single {
    padding-top: 0;
  }

  body.woocommerce-cart main.site-main#content,
  body.woocommerce-checkout main.site-main#content {
    padding-top: 24px;
  }
}

@media (min-width: 640px) and (max-width: 1199px) {
  .moledo-mobile-cards {
    grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
    max-width: 860px;
  }
}

@media (max-width: 1199px) and (prefers-color-scheme: dark) {
  .moledo-mobile-header {
    color-scheme: only dark;
    --nav-surface: #20251f;
    --nav-ink: #f5f6f1;
    --nav-rule: #50584d;
    --nav-action: #d7e5cd;
    --nav-on-action: #20291d;
    --nav-placeholder: #b7c1b2;
  }

}

@media (max-width: 1199px) and (forced-colors: active) {
  .moledo-mobile-logo img {
    forced-color-adjust: none;
    background-color: white;
    filter: none;
    mix-blend-mode: normal;
  }
}

.elementor-location-header .moledo-accessory-menu {
  gap: 16px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.elementor-location-header .moledo-accessory-menu > .moledo-accessory-menu-card {
  width: calc((100% - 48px) / 4);
  min-width: 0;
  padding: 0;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-image .elementor-widget-container {
  padding: 18px 18px 24px;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-image a {
  display: block;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-image a:focus-visible {
  outline: 2px solid var(--moledo-accent, #3e5038);
  outline-offset: 4px;
}

.elementor-location-header .moledo-accessory-menu .elementor-widget-image a:focus-visible img {
  transform: scale(1.1);
}

@media (min-width: 1200px) {
  /* Elementor initially puts the logo link beside the logo, then moves it inside. */
  .elementor-26322 .elementor-element-e81be17 > a.eael-wrapper-link-7ea1abf,
  .elementor-26322 .elementor-element-e81be17 > .elementor-element-7ea1abf {
    grid-area: 1 / 1;
  }
  .elementor-26322 .elementor-element-e81be17 > a.eael-wrapper-link-7ea1abf {
    align-self: stretch;
    z-index: 1;
  }
}
