/* Header v3 (template 6669). Phones and tablets: a solid cream bar once scrolled, without the live blur behind it
   (a backdrop-filter on a fixed bar repaints on every scroll frame on iOS). Design audit 2026-10-12. */
@media (hover: none), (max-width: 1024px) {
  body.m-scrolled .m-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: #FBF4EC !important; }
}
/* desktop: the blur lives on a layer behind the bar, not on the bar. A backdrop-filter on .m-header makes it the
   containing block of the cart's fixed panel, which then shrank to the bar's height once scrolled (2026-10-14). */
@media (hover: hover) and (min-width: 1025px) {
  body.m-scrolled .m-header { background-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .m-header::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--m-header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; transition: opacity .35s ease;
  }
  body.m-scrolled .m-header::after { opacity: 1; }
}
/* no navy: header text on cream is ink */
.m-header { --m-header-ink: #2A2F33; }
/* native Menu Cart in the header: orange bag, white count on orange */
.m-header .elementor-menu-cart__toggle .elementor-button { background: transparent !important; border: 0 !important; padding: 8px !important; min-height: 44px; }
/* Log in / My account: the wrapper inherits a 48px line-height and the inline-block link sat on its baseline, 6px low */
.m-header .m-header-link .elementor-button-wrapper { display: flex; }
/* phones: logo on the left, then cart and menu together on the right */
@media (max-width: 767px) {
  .m-header .elementor-element-7403e43 { flex: 1 1 auto; }
  .m-header .elementor-element-4cbd87a { order: 2; --width: auto; width: auto !important; flex: 0 0 auto; }
  .m-header .elementor-element-5c90a95 { order: 3; --width: auto; width: auto !important; flex: 0 0 auto; }
}

/* ---------- cart panel (2026-10-14): cream, Synthmesc orange names and prices, gooey buttons (header.js tags them) */
.m-header .elementor-menu-cart__container { background-color: rgba(43, 26, 18, .35) !important; }
.m-header .elementor-menu-cart__main {
  width: 440px; background-color: #FBF4EC !important; border-radius: 32px 0 0 32px; box-shadow: none;
  padding: 32px 40px 40px; overflow-y: auto; color: #2A2F33; font-family: 'Montserrat', sans-serif;
}
.m-header .m-cart-title {
  margin: 0 56px 32px 0; font-family: 'Synthmesc', sans-serif; font-size: 44px; line-height: .95; text-transform: uppercase; color: #F3763A;
}
.m-header .elementor-menu-cart__close-button {
  position: absolute; top: 26px; right: 30px; margin: 0; width: 44px; height: 44px; --cart-close-icon-size: 44px;
}
.m-header .elementor-menu-cart__close-button::before,
.m-header .elementor-menu-cart__close-button::after { background: #2A2F33 !important; height: 2px; width: 26px; left: 9px; }
.m-header .elementor-menu-cart__close-button:hover::before,
.m-header .elementor-menu-cart__close-button:hover::after { background: #F3763A !important; }
.m-header .elementor-menu-cart__products { max-height: none; overflow: visible; }
.m-header .elementor-menu-cart__product { grid-template-columns: 104px auto; border-bottom: 1px solid #E6DCD2; padding: 0 0 24px; }
.m-header .elementor-menu-cart__product:not(:first-of-type) { padding-top: 24px; }
.m-header .elementor-menu-cart__product-image img { border-radius: 24px; width: 104px; height: 104px; object-fit: cover; }
.m-header .elementor-menu-cart__product-name { padding: 4px 56px 0 20px; font-size: 18px; line-height: 1.05; }
.m-header .elementor-menu-cart__product-name a {
  font-family: 'Synthmesc', sans-serif; text-transform: uppercase; color: #F3763A !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.m-header .elementor-menu-cart__product-name a:hover { color: #2A2F33 !important; }
.m-header .elementor-menu-cart__product-name dl.variation { font-family: 'Montserrat', sans-serif; font-size: 14px; text-transform: none; color: #6B6560; }
.m-header .elementor-menu-cart__product-price { padding-inline-start: 20px; font-size: 14px; font-weight: 500; color: #6B6560; }
.m-header .elementor-menu-cart__product-price .amount { font-family: 'Synthmesc', sans-serif; font-size: 20px; color: #F3763A; margin-left: 4px; }
.m-header .elementor-menu-cart__product-remove {
  top: 0; bottom: auto; --remove-item-button-size: 44px; border-color: #E6DCD2 !important; --remove-item-button-color: #6B6560;
  --remove-item-button-hover-color: #F3763A;
}
.m-header .elementor-menu-cart__product-remove:hover { border-color: #F3763A !important; }
.m-header .elementor-menu-cart__subtotal {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 4px; text-align: left;
  border: 0; padding: 24px 0 0; font-size: 17px; font-weight: 700; color: #2A2F33;
}
.m-header .elementor-menu-cart__subtotal .amount { font-family: 'Synthmesc', sans-serif; font-weight: 400; font-size: 32px; color: #F3763A; }
.m-header .m-cart-vat { grid-column: 2; justify-self: end; font-size: 13px; font-weight: 500; color: #6B6560; }
.m-header .elementor-menu-cart__footer-buttons { grid-template-columns: 1fr; row-gap: 12px; padding-top: 32px; }
.m-header .elementor-menu-cart__footer-buttons .elementor-button {
  font-family: 'Synthmesc', sans-serif; font-size: 19px; line-height: 1; text-transform: uppercase; padding: 20px 40px !important;
}
.m-header .elementor-menu-cart__footer-buttons .elementor-button--checkout { order: -1; }
.m-header .woocommerce-mini-cart__empty-message { font-size: 18px; line-height: 1.6; color: #2A2F33; margin: 0; }
@media (max-width: 767px) {
  .m-header .elementor-menu-cart__main { width: 100%; border-radius: 0; padding: 18px 20px 40px; }
  .m-header .m-cart-title { font-size: 36px; margin: 10px 56px 24px 0; }
  .m-header .elementor-menu-cart__close-button { top: 12px; right: 12px; }
  .m-header .elementor-menu-cart__product { grid-template-columns: 88px auto; }
  .m-header .elementor-menu-cart__product-image img { width: 88px; height: 88px; }
  .m-header .elementor-menu-cart__product-name { padding-left: 16px; font-size: 16px; }
  .m-header .elementor-menu-cart__product-price { padding-inline-start: 16px; }
  .m-header .elementor-menu-cart__footer-buttons .elementor-button { font-size: 17px; padding: 18px 32px !important; }
}

/* ---------- phone and tablet menu (2026-10-14): full-screen cream under the bar, Synthmesc orange links ---------- */
@media (max-width: 1024px) {
  .m-header .elementor-menu-toggle + .elementor-nav-menu__container {
    position: fixed !important; inset: 0 !important; width: auto !important; height: 100svh; max-height: none !important;
    margin: 0 !important; transform: none !important; z-index: -1; overflow-y: auto;
    background: #FBF4EC !important; border-radius: 0 !important; padding: 104px 32px 48px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .m-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .m-header .elementor-nav-menu--dropdown .elementor-nav-menu { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
  .m-header .elementor-nav-menu--dropdown .elementor-item {
    justify-content: flex-start !important; padding: 10px 0 !important; min-height: 56px; background: transparent !important;
    font-family: 'Synthmesc', sans-serif !important; font-size: 44px !important; font-weight: 400 !important; line-height: .95 !important;
    text-transform: uppercase; text-align: left !important; color: #F3763A !important;
  }
  .m-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .m-header .elementor-nav-menu--dropdown .m-menu-login { margin-top: 32px; }
  /* Log in as a button (Majd 2026-10-31: plain text didn't match): orange ring pill, Synthmesc caps, under the big links */
  .m-header .elementor-nav-menu--dropdown .m-menu-login .elementor-item {
    display: inline-flex !important; align-items: center; justify-content: center !important; width: auto !important;
    min-height: 52px; padding: 0 32px !important; border: 2px solid #F3763A !important; border-radius: 999px !important;
    font-family: 'Synthmesc', sans-serif !important; font-size: 18px !important; font-weight: 400 !important; line-height: 1 !important;
    text-transform: uppercase; color: #F3763A !important; text-decoration: none !important;
  }
  .m-header .elementor-nav-menu--dropdown .m-menu-login .elementor-item:active { background: #F3763A !important; color: #FFFFFF !important; }
  /* bar goes solid while the menu is open, close icon in ink; the page behind doesn't scroll */
  .m-header:has(.elementor-menu-toggle.elementor-active) { background-color: #FBF4EC !important; box-shadow: none !important; }
  .m-header:has(.elementor-menu-toggle.elementor-active) .elementor-menu-toggle { color: var(--m-header-ink) !important; }
  .m-header:has(.elementor-menu-toggle.elementor-active) .elementor-menu-toggle svg { fill: var(--m-header-ink) !important; }
  html:has(.m-header .elementor-menu-toggle.elementor-active) { overflow: hidden; }
}
@media (max-width: 767px) {
  .m-header .elementor-menu-toggle + .elementor-nav-menu__container { padding: 92px 20px 40px; }
  .m-header .elementor-nav-menu--dropdown .elementor-item { font-size: 36px !important; min-height: 52px; }
}
/* the Log in menu item is for the phone menu only; desktop has its own Log in link */
.m-header .elementor-nav-menu--main .m-menu-login { display: none; }
/* logged in: My account replaces Log in in the phone menu (desktop swaps by display conditions in 6669) */
body.logged-in .m-header .m-menu-login:not(.m-menu-account),
body:not(.logged-in) .m-header .m-menu-account { display: none; }
