/* Header: trust bar, main bar (logo, search, quote, account, cart), category navigation with mega menus, mini-cart drawer, mobile menu. */

/* Trust bar */
.hm-topbar { background: var(--hm-anthracite-2); color: #C9CED3; font-size: .8rem; }
.hm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.hm-topbar__usp { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.hm-topbar__usp li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hm-topbar__usp svg { width: 15px; height: 15px; color: #9BC3A6; }
.hm-topbar__links { display: flex; align-items: center; gap: 20px; }
.hm-topbar__links a { color: #E6E9EC; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hm-topbar__links a:hover { color: #fff; text-decoration: underline; }
.hm-topbar__links svg { width: 15px; height: 15px; }
.hm-topbar__phone { font-weight: 700; }

/* Sticky shell */
.hm-header { position: sticky; top: 0; z-index: 90; background: #fff; transition: box-shadow .2s; }
.hm-header.is-stuck { box-shadow: 0 6px 20px rgba(20, 24, 28, .10); }
.admin-bar .hm-header { top: 32px; }

/* Main bar */
.hm-locked { overflow: hidden; }
.hm-mainbar__brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hm-logo--light .hm-logo__name { color: #fff; }
.hm-mainbar { border-bottom: 1px solid var(--hm-line-2); }
.hm-mainbar__inner { display: grid; grid-template-columns: auto minmax(320px, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 44px); min-height: var(--hm-header-h); }
.hm-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hm-ink); }
.hm-logo img { max-height: 52px; width: auto; }
.hm-logo__mark { width: 44px; height: 44px; flex: none; }
.hm-logo__text { display: grid; line-height: 1.1; }
.hm-logo__name { font: 800 1.42rem/1 var(--hm-font-head); letter-spacing: -.02em; color: var(--hm-green-dark); }
.hm-logo__tag { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-wood); margin-top: 5px; }

.hm-search { display: flex; align-items: stretch; height: 50px; border: 2px solid var(--hm-green); border-radius: var(--hm-radius-sm); overflow: hidden; background: #fff; }
.hm-search__cat { border: 0; border-right: 1px solid var(--hm-line); background: var(--hm-beige-light); padding: 0 34px 0 14px; font-size: .86rem; font-weight: 600; color: var(--hm-ink); max-width: 210px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E2226' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.hm-search__input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: .95rem; background: transparent; }
.hm-search__input:focus { outline: none; }
.hm-search__btn { border: 0; background: var(--hm-green); color: #fff; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.hm-search__btn:hover { background: var(--hm-green-dark); }
.hm-search__btn svg { width: 20px; height: 20px; }
.hm-search:focus-within { box-shadow: 0 0 0 4px rgba(31, 74, 46, .14); }

.hm-actions { display: flex; align-items: center; gap: 6px; }
.hm-action { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--hm-radius-sm); color: var(--hm-ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.hm-action:hover { background: var(--hm-beige-light); color: var(--hm-ink); }
.hm-action svg { width: 26px; height: 26px; color: var(--hm-ink); }
.hm-action__icon { position: relative; display: inline-flex; }
.hm-action__text { display: grid; line-height: 1.15; }
.hm-action__small { font-size: .74rem; color: var(--hm-muted); }
.hm-action__label { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.hm-action__count { position: absolute; top: -9px; right: -11px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--hm-wood); color: #fff; font: 700 .72rem/20px var(--hm-font); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.hm-action--cart { background: var(--hm-green-50); padding: 8px 14px 8px 12px; gap: 16px; }
.hm-action--cart:hover { background: #E1ECE4; }
.hm-action--cart .hm-action__label { color: var(--hm-green-dark); }
.hm-action-sep { width: 1px; height: 32px; background: var(--hm-line); margin: 0 6px; }

/* Category navigation */
.hm-nav { background: var(--hm-green); color: #fff; }
.hm-nav__inner { display: flex; align-items: stretch; gap: 4px; min-height: 52px; }
.hm-nav__all { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; white-space: nowrap; text-decoration: none; margin-right: 8px; background: var(--hm-green-dark); color: #fff; border: 0; font-weight: 700; font-size: .92rem; cursor: pointer; }
.hm-nav__all svg { width: 20px; height: 20px; }
.hm-nav__all:hover { color: #fff; background: #10291A; }
.hm-menu { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; }
.hm-menu > li { position: static; display: flex; }
.hm-menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 0 15px; color: #fff; text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.hm-menu > li > a svg { width: 14px; height: 14px; opacity: .8; transition: transform .15s; }
.hm-menu > li:hover > a, .hm-menu > li:focus-within > a, .hm-menu > li.current-menu-item > a, .hm-menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, .08); border-bottom-color: var(--hm-beige); }
.hm-menu > li:hover > a svg { transform: rotate(180deg); }
.hm-nav__aside { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: .86rem; }
.hm-nav__pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.hm-nav__pill:hover { background: rgba(255,255,255,.18); color: #fff; }
.hm-nav__pill svg { width: 16px; height: 16px; color: var(--hm-beige); }
.hm-nav__pill--quote { background: var(--hm-beige); color: var(--hm-green-dark); }
.hm-nav__pill--quote:hover { background: #fff; color: var(--hm-green-dark); }
.hm-nav__pill--quote svg { color: var(--hm-wood); }

/* Mega menu */
.hm-nav { position: relative; }
.hm-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--hm-text); box-shadow: var(--hm-shadow-lg); border-top: 1px solid var(--hm-line-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 80; }
.hm-menu > li:hover > .hm-mega, .hm-menu > li:focus-within > .hm-mega, .hm-menu > li.is-open > .hm-mega, .hm-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.hm-mega__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding-block: 34px 38px; }
.hm-mega--guides .hm-mega__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.hm-mega__list { grid-template-columns: 1fr 1fr; column-gap: 24px !important; }
.hm-mega__col a svg { width: 18px; height: 18px; color: var(--hm-green); flex: none; }
.hm-mega__all { color: var(--hm-green) !important; }
.hm-mega__thumb { display: block; }
.hm-mega__col h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-muted); font-family: var(--hm-font); font-weight: 700; margin-bottom: 14px; }
.hm-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hm-mega__col a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin-inline: -10px; border-radius: var(--hm-radius-sm); color: var(--hm-ink); text-decoration: none; font-weight: 600; }
.hm-mega__col a:hover { background: var(--hm-beige-light); color: var(--hm-green); }
.hm-mega__col a small { display: block; font-weight: 400; color: var(--hm-muted); font-size: .8rem; }
.hm-mega__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--hm-beige); }
.hm-mega__promo { position: relative; border-radius: var(--hm-radius); overflow: hidden; min-height: 230px; color: #fff; display: flex; align-items: flex-end; padding: 22px; background-color: var(--hm-anthracite); background-position: center; background-size: cover; text-decoration: none; }
.hm-mega__promo:hover { color: #fff; }
.hm-mega__promo em svg { width: 16px; height: 16px; }
.hm-mega__promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(15,20,17,.85)); }
.hm-mega__promo > * { position: relative; }
.hm-mega__promo strong { display: block; font: 800 1.2rem/1.25 var(--hm-font-head); margin-bottom: 6px; }
.hm-mega__promo span { font-size: .88rem; color: #E9ECEF; }
.hm-mega__promo em { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--hm-beige); }

/* Overlays: mini-cart drawer and mobile menu */
.hm-overlay { position: fixed; inset: 0; background: rgba(15, 18, 20, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 150; }
.hm-overlay.is-open { opacity: 1; visibility: visible; }
.hm-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 100vw); background: #fff; z-index: 160; transform: translateX(100%); transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; visibility: hidden; }
.hm-drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.hm-drawer.is-open { transform: none; visibility: visible; box-shadow: var(--hm-shadow-lg); }
.hm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hm-line-2); }
.hm-drawer__head h2 { font-size: 1.15rem; margin: 0; }
.hm-drawer__close { border: 0; background: var(--hm-beige-light); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.hm-drawer__close svg { width: 20px; height: 20px; }
.hm-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.hm-drawer__foot { border-top: 1px solid var(--hm-line-2); padding: 18px 22px 22px; background: var(--hm-beige-light); }

.hm-minicart__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hm-line-2); align-items: start; }
.hm-minicart__item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--hm-beige); }
.hm-minicart__name { font-weight: 700; color: var(--hm-ink); text-decoration: none; line-height: 1.3; display: block; }
.hm-minicart__meta { font-size: .82rem; color: var(--hm-muted); margin-top: 4px; }
.hm-minicart__price { font-weight: 700; color: var(--hm-ink); white-space: nowrap; }
.hm-minicart__remove { font-size: .78rem; color: var(--hm-muted); }
.hm-minicart__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hm-minicart__row strong { font-size: 1.25rem; color: var(--hm-ink); }
.hm-minicart__legal { font-size: .78rem; color: var(--hm-muted); margin-bottom: 14px; }
.hm-minicart__buttons { display: grid; gap: 10px; }
.hm-minicart__trust { display: flex; justify-content: center; gap: 14px; margin-top: 14px; font-size: .76rem; color: var(--hm-muted); }
.hm-minicart__trust span { display: inline-flex; align-items: center; gap: 5px; }
.hm-minicart__trust svg { width: 14px; height: 14px; color: var(--hm-green); }
.hm-minicart__empty { text-align: center; padding: 48px 8px; color: var(--hm-muted); }
.hm-minicart__empty svg { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--hm-beige); }

.hm-mobilenav { list-style: none; margin: 0; padding: 0; }
.hm-mobilenav > li { border-bottom: 1px solid var(--hm-line-2); }
.hm-mobilenav a, .hm-mobilenav summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; color: var(--hm-ink); text-decoration: none; font-weight: 700; cursor: pointer; list-style: none; }
.hm-mobilenav summary::-webkit-details-marker { display: none; }
.hm-mobilenav details[open] summary svg { transform: rotate(180deg); }
.hm-mobilenav summary svg { width: 18px; height: 18px; transition: transform .15s; }
.hm-mobilenav ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 12px; border-left: 2px solid var(--hm-beige); }
.hm-mobilenav ul a { font-weight: 500; padding: 9px 0 9px 6px; }
.hm-mobilenav__contact { margin-top: 22px; padding: 18px; border-radius: var(--hm-radius); background: var(--hm-beige-light); font-size: .9rem; }
.hm-mobilenav__contact a { font-weight: 700; }

/* Burger + mobile search (hidden on desktop) */
.hm-burger, .hm-mobile-search { display: none; }

@media (max-width: 1500px) {
  .hm-menu > li > a { padding: 0 12px; }
  .hm-nav__all { padding: 0 16px; }
}
@media (max-width: 1400px) {
  .hm-nav__all { font-size: 0; gap: 0; padding: 0 16px; }
  .hm-nav__all svg { width: 22px; height: 22px; }
}
@media (max-width: 1360px) {
  .hm-search__btn span { display: none; }
  .hm-search__btn { padding: 0 18px; }
  .hm-nav__pill--delivery { display: none; }
}
@media (max-width: 1180px) {
  .hm-topbar__usp li:nth-child(3) { display: none; }
  .hm-logo__tag { display: none; }
  .hm-menu > li > a { padding: 0 11px; font-size: .88rem; }
}

@media (max-width: 1023px) {
  :root { --hm-header-h: 64px; }
  .hm-topbar__inner { justify-content: center; min-height: 34px; }
  .hm-topbar__usp li:not(:first-child), .hm-topbar__links { display: none; }
  .hm-topbar__usp, .hm-topbar__usp li { min-width: 0; max-width: 100%; }
  .hm-topbar__usp li { white-space: normal; text-align: center; line-height: 1.3; padding-block: 6px; }
  .hm-mainbar__inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .hm-burger { display: inline-flex; border: 0; background: none; padding: 8px; margin-left: -8px; cursor: pointer; color: var(--hm-ink); }
  .hm-burger svg { width: 28px; height: 28px; }
  .hm-logo { justify-self: start; }
  .hm-logo__mark { width: 36px; height: 36px; }
  .hm-logo__name { font-size: 1.15rem; }
  .hm-logo__tag { display: none; }
  .hm-mainbar__inner > .hm-search { display: none; }
  .hm-action__text { display: none; }
  .hm-action { padding: 8px; }
  .hm-action--cart { padding: 8px 10px; }
  .hm-mobile-search { display: block; padding: 0 var(--hm-gutter) 12px; border-bottom: 1px solid var(--hm-line-2); }
  .hm-mobile-search .hm-search { height: 46px; }
  .hm-mobile-search .hm-search__cat { display: none; }
  .hm-nav { display: none; }
}
