/* Garden Master – Header (all selectors scoped to .gme-header) */
.gme-header{position:relative;width:100%;z-index:50}
.gme-header,.gme-header *,.gme-header *::before,.gme-header *::after{box-sizing:border-box}
.gme-header a{text-decoration:none;transition:color .2s ease,background-color .2s ease}
.gme-header a:focus-visible,.gme-header button:focus-visible{outline:3px solid #8b1252;outline-offset:3px;border-radius:4px}
.gme-header ul{list-style:none;margin:0;padding:0}

/* Top bar */
.gme-topbar{background:#1f5c10;color:#fff}
.gme-topbar__inner{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:28px;max-width:1200px;margin:0 auto;padding:0 20px;min-height:40px;font-size:14px}
.gme-topbar__item{display:inline-flex;align-items:center;gap:8px;color:inherit;line-height:1.4}
.gme-topbar__icon{display:inline-flex;align-items:center;font-size:14px;line-height:1}
.gme-topbar__icon svg{width:1em;height:1em;fill:currentColor}
.gme-topbar__sep{display:block;width:1px;height:16px;background:rgba(255,255,255,.35)}

/* Main bar */
.gme-main{position:relative;background:#fff}
.gme-main__inner{display:flex;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px;min-height:88px}
.gme-logo{display:inline-flex;align-items:center;gap:10px;margin-right:48px;color:#2b2b2b;flex:0 0 auto}
.gme-logo__img{display:block;width:64px;height:auto;max-width:none}
.gme-logo__text{display:flex;flex-direction:column;font-weight:700;font-size:22px;line-height:1.05;color:#2b2b2b;letter-spacing:.6px}

.gme-nav{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:0 36px 0 48px;min-height:48px}
.gme-dividers-yes .gme-nav,.gme-dividers-yes .gme-actions{border-left:1px solid #d9d9d9}
.gme-menu{display:flex;align-items:center;flex-wrap:wrap;gap:38px}
.gme-menu li{position:relative;margin:0}
.gme-menu > li > a{position:relative;display:block;padding:8px 0;color:#222;font-size:16px;font-weight:500;line-height:1.3;white-space:nowrap}
.gme-menu > li > a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:#8b1252;transform:scaleX(0);transform-origin:left center;transition:transform .25s ease}
.gme-menu > li:hover > a::after,
.gme-menu > li > a:focus-visible::after,
.gme-menu > li.current-menu-item > a::after,
.gme-menu > li.current-menu-ancestor > a::after,
.gme-menu > li.current_page_item > a::after{transform:scaleX(1)}

/* caret on items with sub-menus */
.gme-menu > li.menu-item-has-children > a{padding-right:18px}
.gme-menu > li.menu-item-has-children > a::before{content:"";position:absolute;right:2px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg)}

/* dropdown */
.gme-menu .sub-menu{position:absolute;top:100%;left:0;z-index:60;min-width:210px;padding:8px 0;background:#fff;border-radius:8px;border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 30px rgba(0,0,0,.12);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
.gme-menu li:hover > .sub-menu,
.gme-menu li:focus-within > .sub-menu,
.gme-menu li.is-open > .sub-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.gme-menu .sub-menu a{display:block;padding:10px 20px;color:#222;font-size:15px;line-height:1.3;white-space:nowrap}
.gme-menu .sub-menu .sub-menu{top:0;left:100%}
.gme-sub-toggle{display:none}
.gme-nav__extra{display:none}

/* Cart + burger */
.gme-actions{display:flex;align-items:center;gap:12px;padding-left:32px;flex:0 0 auto}
.gme-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;color:#2b2b2b;font-size:24px;line-height:1;min-width:44px;min-height:44px}
.gme-cart svg{width:1em;height:1em;fill:currentColor}
.gme-cart-count{position:absolute;top:2px;right:-4px;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#8b1252;color:#fff;font-size:11px;font-weight:700;line-height:1;font-family:inherit}
.gme-burger{display:none;width:46px;height:46px;padding:0;border:0;border-radius:12px;background:#f1f5ee;color:#2b2b2b;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.gme-burger__bar{display:block;width:26px;height:3px;border-radius:2px;background:currentColor;transition:transform .25s ease,opacity .2s ease}
.gme-header.is-open .gme-burger__bar:nth-child(1){transform:translateY(8px) rotate(45deg)}
.gme-header.is-open .gme-burger__bar:nth-child(2){opacity:0}
.gme-header.is-open .gme-burger__bar:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* Promo bar (slider) */
.gme-promo{background:#2b6a14;color:#fff;font-size:15px;font-weight:600}
.gme-promo__inner{display:flex;align-items:center;justify-content:center;gap:10px;max-width:1200px;margin:0 auto;padding:9px 16px;line-height:1.4;text-align:center}
.gme-promo__track{flex:1 1 auto;min-width:0;display:grid;overflow:hidden}
.gme-promo__item{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(70%);transition:opacity .45s ease,transform .45s ease,visibility 0s linear .45s}
.gme-promo__item.is-active{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.gme-promo__item.is-leaving{transform:translateY(-70%)}
.gme-promo--fade .gme-promo__item,.gme-promo--fade .gme-promo__item.is-leaving{transform:none}
.gme-promo a{color:inherit}
.gme-promo a:hover{text-decoration:underline}
.gme-promo__arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:18px;cursor:pointer;opacity:.85;transition:background-color .2s ease,opacity .2s ease}
.gme-promo__arrow:hover,.gme-promo__arrow:focus-visible{opacity:1;background:rgba(255,255,255,.16)}
.gme-promo__arrow svg{display:block;width:1em;height:1em}

/* ---------- Tablet & mobile: hamburger + slide-down panel ---------- */
@keyframes gmeItemIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes gmeSubIn{from{opacity:0}to{opacity:1}}

@media (max-width:1024px){
  .gme-main__inner{justify-content:space-between;min-height:76px}
  .gme-logo{margin-right:0}
  .gme-burger{display:inline-flex}
  .gme-actions{margin-left:auto;padding-left:0 !important;border-left:0 !important;gap:8px}

  /* panel */
  .gme-nav{position:absolute;left:0;right:0;top:100%;z-index:70;display:block;padding:0 !important;border:0 !important;min-height:0;max-height:0;overflow:hidden;visibility:hidden;background:#fff;border-radius:0 0 18px 18px;box-shadow:0 24px 40px rgba(0,0,0,.16);transition:max-height .38s ease,visibility 0s linear .38s}
  .gme-header.is-open .gme-nav{max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain;visibility:visible;transition:max-height .38s ease,visibility 0s}

  /* top-level list */
  .gme-menu{display:block;padding:12px 14px 8px;gap:0 !important}
  .gme-menu li{margin:0 0 4px;border:0}
  .gme-menu > li > a{display:flex;align-items:center;min-height:52px;padding:14px 16px;border-radius:12px;white-space:normal;color:#222}
  .gme-menu > li > a::after,.gme-menu > li > a::before{display:none}
  .gme-menu > li > a:hover,.gme-menu > li > a:focus-visible{background:#f1f6ee}
  .gme-menu > li.current-menu-item > a,.gme-menu > li.current-menu-ancestor > a,.gme-menu > li.current_page_item > a{background:#f9edf3;color:#8b1252;font-weight:600;box-shadow:inset 4px 0 0 #8b1252}
  .gme-header.is-open .gme-menu > li{animation:gmeItemIn .32s ease both}
  .gme-header.is-open .gme-menu > li:nth-child(2){animation-delay:.04s}
  .gme-header.is-open .gme-menu > li:nth-child(3){animation-delay:.08s}
  .gme-header.is-open .gme-menu > li:nth-child(4){animation-delay:.12s}
  .gme-header.is-open .gme-menu > li:nth-child(5){animation-delay:.16s}
  .gme-header.is-open .gme-menu > li:nth-child(n+6){animation-delay:.2s}

  /* items with sub-menu: label + round arrow button */
  .gme-menu li.menu-item-has-children{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
  .gme-menu li.menu-item-has-children > a{flex:1 1 0;min-width:0}
  .gme-sub-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#f1f5ee;color:#2b2b2b;cursor:pointer;transition:background-color .2s ease,color .2s ease}
  .gme-sub-toggle::before{content:"";width:8px;height:8px;margin-top:-4px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);transition:transform .25s ease,margin .25s ease}
  .menu-item.is-open > .gme-sub-toggle{background:#8b1252;color:#fff}
  .menu-item.is-open > .gme-sub-toggle::before{transform:rotate(-135deg);margin-top:4px}

  /* sub-menu: indented list with a guide line */
  .gme-menu .sub-menu,.gme-menu .sub-menu .sub-menu{position:static;display:none;flex:1 0 100%;min-width:0;margin:6px 0 8px 22px;padding:2px 0 2px 12px;border:0;border-left:2px solid #e3eadf;border-radius:0;box-shadow:none;background:transparent;opacity:1;visibility:visible;transform:none}
  .gme-menu li.is-open > .sub-menu{display:block;animation:gmeSubIn .25s ease}
  .gme-menu .sub-menu li{margin:0}
  .gme-menu .sub-menu a{display:flex;align-items:center;min-height:46px;padding:11px 14px;border-radius:10px;white-space:normal}

  /* bottom area: button + contact */
  .gme-nav__extra{display:block;margin:6px 14px 0;padding:16px 2px 18px;border-top:1px solid #e3eadf}
  .gme-nav__cta{display:flex;align-items:center;justify-content:center;min-height:50px;padding:13px 20px;border-radius:12px;background:#1d6b12;color:#fff;font-size:16px;font-weight:600;letter-spacing:.2px}
  .gme-nav__cta:hover,.gme-nav__cta:focus-visible{background:#8b1252;color:#fff}
  .gme-nav__contact{display:flex;flex-direction:column;gap:6px;margin-top:12px}
  .gme-nav__contact a{display:flex;align-items:center;gap:12px;min-height:44px;color:#2b2b2b;font-size:15px;overflow-wrap:anywhere}
  .gme-nav__contact-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#e8f3e3;color:#1d6b12;font-size:14px}
  .gme-nav__contact-icon svg{width:1em;height:1em;fill:currentColor}
}

@media (max-width:767px){
  .gme-topbar__sep{display:none}
  .gme-topbar__inner{padding:6px 14px;justify-content:center;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  .gme-header *,.gme-header *::before,.gme-header *::after{transition:none !important;animation:none !important}
}
