/* Sticky Header & Mega Menu (lliuya.pe) v1.0.10 */
:root{
  --fsh-primary:#51C517;
  --fsh-secondary:#007F5F;
  --fsh-accent1:#FAC713;
  --fsh-accent2:#B6D12D;
  --fsh-dark:#1d1d1f;
  --fsh-light:#ffffff;
  --fsh-gray:#f3f4f6;
  --fshH:0px;
}

.fsh-container{width:100%;max-width:none;margin:0;padding:0}

/* Fixed header */
.fsh-header{position:fixed!important;top:0;left:0;right:0;width:100%;z-index:9999;background:var(--fsh-light);box-shadow:0 1px 3px rgba(0,0,0,.07)}
body.admin-bar .fsh-header{top:32px}
@media (max-width:782px){body.admin-bar .fsh-header{top:46px}}

/* Topbar */
.fsh-topbar{background:var(--fsh-secondary);color:#fff;font-size:13px}
.fsh-topbar .fsh-container{width:100%;max-width:none;margin:0;padding:0}
.fsh-topbar a{color:#fff;text-decoration:underline}

/* Main row */
.fsh-main{background:#fff}
.fsh-main .fsh-container{width:100%;max-width:none;margin:0;padding:0}
.fsh-burger{width:40px;height:40px;border:0;background:transparent;display:none;flex-direction:column;justify-content:center;gap:5px;cursor:pointer}
.fsh-burger span{display:block;height:2px;background:var(--fsh-dark)}
.fsh-logo img{max-height:48px;width:auto;display:block}
.fsh-site-name{color:var(--fsh-primary)}
.fsh-search{width:100%;max-width:none;justify-self:stretch}
.fsh-search input[type="search"]{width:100%;height:46px;padding:12px 16px;border:2px solid var(--fsh-primary);border-radius:10px}
.fsh-actions{display:flex;gap:14px;align-items:center;white-space:nowrap
  min-width: 340px;}
.fsh-action{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:var(--fsh-gray);text-decoration:none;color:var(--fsh-dark)}
.fsh-action:hover{background:var(--fsh-accent2)}
.fsh-cart{position:relative}
.fsh-cart-count{position:absolute;top:-8px;right:-8px;background:var(--fsh-primary);color:#fff;border-radius:999px;padding:2px 6px;font-size:12px;line-height:1}

/* Mega Menu */
.fsh-nav{background:var(--fsh-primary);border-top:1px solid rgba(0,0,0,.05);margin-top:4px;margin-bottom:12px}
.fsh-menu, .fsh-menu ul{list-style:none;margin:0;padding:0}
.fsh-menu{display:flex;gap:24px;align-items:center;position:relative}
.fsh-menu>li>a{display:block;padding:12px 10px;color:#fff;text-decoration:none;font-weight:600}
.fsh-menu>li{position:relative}
.fsh-menu>li.menu-item-has-children:hover>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.fsh-menu .sub-menu{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .18s ease;z-index:99999}
.fsh-menu .sub-menu li a{display:block;padding:8px 6px;border-radius:6px;color:#111;text-decoration:none;background:var(--fsh-gray)}
.fsh-menu .sub-menu li a:hover{background:var(--fsh-accent1)}

/* Mobile */
.fsh-hide-sm{display:inline}
@media (max-width: 1024px){
.fsh-main .fsh-container{width:100%;max-width:none;margin:0;padding:0
  .fsh-actions{display:flex;gap:12px;justify-content:center;grid-column:1/-1;margin-top:8px}

}
  .fsh-search{grid-column:1/-1}
  .fsh-burger{display:flex}
  .fsh-hide-sm{display:none}
  .fsh-nav{display:none}
  .fsh-nav.open{display:block}
  .fsh-menu{flex-direction:column;align-items:stretch}
  .fsh-menu>li>a{padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.25);color:#fff}
  .fsh-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;background:transparent;grid-template-columns:1fr;padding:0}
  .fsh-menu .sub-menu li a{background:#fff}
}

/* Spacer */
.fsh-header-spacer{height:var(--fshH, 0px)}

/* FiboSearch integration */
.fsh-search .dgwt-wcas-search-wrapp{width:100%;max-width:none;margin:0 auto}
.fsh-search .dgwt-wcas-search-input{height:46px;padding:12px 16px}


/* --- Desktop improvements: bigger search + stable layout --- */
@media (min-width: 1025px){
  .fsh-main .fsh-container{width:100%;max-width:none;margin:0;padding:0}
  .fsh-logo img{max-height:52px}
  .fsh-actions{gap:16px}
  .fsh-search{max-width:none}
  .fsh-search input[type="search"],
  .fsh-search .dgwt-wcas-search-input{
    height:52px;
    font-size:16px;
  }
}
@media (min-width: 1400px){
  .fsh-main .fsh-container{width:100%;max-width:none;margin:0;padding:0}
  .fsh-search{max-width:none}
}

/* Keep actions visible (avoid wrap) */
.fsh-actions{min-width:260px}

/* FiboSearch full-width and suggestions above */
.fsh-search .dgwt-wcas-sf-wrapp,
.fsh-search .dgwt-wcas-search-form,
.fsh-search .dgwt-wcas-search-wrapp{width:100%}
.fsh-search .dgwt-wcas-suggestions-wrapp{z-index:100000}

/* Ensure nav never hides on desktop */
.fsh-nav{position:relative; z-index:5}


.fsh-header .fsh-container{width:100%;max-width:none;margin:0;padding:0}


/* Desktop: remove burger column and expand search to edges */
@media (min-width: 1025px){
  .fsh-main .fsh-container{
    grid-template-columns:minmax(180px,280px) minmax(700px,1fr) max-content;
    gap:20px;
    padding-left:0;
    padding-right:0;
  }
  .fsh-burger{display:none}
  .fsh-search{max-width:none;justify-self:stretch}
  .fsh-search input[type="search"],
  .fsh-search .dgwt-wcas-search-input{height:52px;font-size:16px}
}


.fsh-search,
.fsh-search .dgwt-wcas-sf-wrapp,
.fsh-search .dgwt-wcas-search-form,
.fsh-search .dgwt-wcas-search-wrapp{max-width:none !important;width:100%}


/* === Full-bleed header overrides (no white bands) === */
.fsh-header{
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  width:100vw !important;
}
.fsh-header .fsh-container{
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:24px !important;
  padding-right:24px !important;
}
.fsh-main .fsh-container{padding-left:24px !important;padding-right:24px !important}



/* === Desktop: center & enlarge search === */
@media (min-width: 1025px){
  .fsh-main .fsh-container{
    display:grid;
    grid-template-areas: "logo search actions";
    grid-template-columns: 1fr minmax(800px, 1200px) 1fr;
    gap:24px;
    align-items:center;
    min-height:110px;
  }
  .fsh-logo{grid-area:logo;justify-self:start}
  .fsh-search{grid-area:search;justify-self:center;width:100%;max-width:none}
  .fsh-actions{grid-area:actions;justify-self:end;gap:18px}

  /* Bigger input */
  .fsh-search input[type="search"],
  .fsh-search .dgwt-wcas-search-input{
    height:58px;
    font-size:18px;
    padding:14px 18px;
    border-radius:14px;
  }
  /* Ensure wrappers stretch to full width of the center column */
  .fsh-search .dgwt-wcas-search-wrapp,
  .fsh-search .dgwt-wcas-sf-wrapp,
  .fsh-search .dgwt-wcas-search-form{width:100%}
}



/* === v1.0.11: larger, centered search on desktop === */
@media (min-width: 1025px){
  /* Three equal side tracks so the middle stays visually centered */
  .fsh-main .fsh-container{
    grid-template-columns: minmax(240px,1fr) minmax(720px, 1200px) minmax(240px,1fr) !important;
    gap: 28px !important;
  }
  /* Keep logo/actions within their side tracks */
  .fsh-logo{justify-self:start}
  .fsh-actions{justify-self:end}

  /* Center the search inside the middle track */
  .fsh-search{
    justify-self: center !important;
    width: 100% !important;
    max-width: 1200px !important;
  }

  /* Bigger input */
  .fsh-search input[type="search"],
  .fsh-search .dgwt-wcas-search-input{
    height: 58px !important;
    font-size: 18px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
  }
  /* Make FiboSearch wrappers fill the track */
  .fsh-search .dgwt-wcas-sf-wrapp,
  .fsh-search .dgwt-wcas-search-form,
  .fsh-search .dgwt-wcas-search-wrapp{
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
}



/* === v1.0.12: center the green nav bar content on desktop === */
.fsh-nav .fsh-container{max-width:1280px;margin:0 auto;padding:0 24px}
@media (min-width:1025px){
  .fsh-menu{justify-content:center;width:100%}
}
@media (max-width:1024px){
  .fsh-menu{justify-content:flex-start}
}



/* v1.0.13: slow ticker below search (moves to the right) */
.fsh-ticker{background:var(--fsh-secondary);color:#fff}
.fsh-ticker .fsh-container{overflow:hidden}
.fsh-ticker-track{white-space:nowrap;position:relative;overflow:hidden}
.fsh-ticker-item{display:inline-block;padding:8px 0 8px 100%;animation:fshTickerRight 45s linear infinite}
@keyframes fshTickerRight{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(0%)}
}



/* === v1.0.13: center actions + topbar on mobile, actions below search === */
@media (max-width: 1024px){
  /* Center topbar text */
  .fsh-topbar, .fsh-topbar .fsh-container{ text-align:center; justify-content:center }
  .fsh-topbar .fsh-topbar-text{ display:block; width:100% }

  /* Ensure visual order: search first, actions below */
  .fsh-search{ order: 10; grid-column: 1 / -1 }
  .fsh-actions{ order: 11; grid-column: 1 / -1; justify-content:center; gap:16px; padding-top:6px; padding-bottom:6px }
  .fsh-action{ flex:0 0 auto }
}



/* === v1.0.13: center actions & topbar text on mobile === */
@media (max-width:1024px){
  /* Place actions below the search and center them */
  .fsh-actions{
    grid-column: 1 / -1;
    justify-content: center !important;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  /* Center topbar message */
  .fsh-topbar .fsh-container{
    justify-content: center !important;
  }
  .fsh-topbar .fsh-topbar-text{
    width: 100%;
    text-align: center;
    display: block;
    padding: 6px 10px;
    line-height: 1.3;
  }
}



/* === v1.0.13: Actions alignment (mobile centered, desktop nudged left) === */
@media (max-width:1024px){
  .fsh-actions{
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0;
    gap: 16px;
  }
}
@media (min-width:1025px){
  .fsh-actions{
    margin-right: 18px; /* small left shift so cart icon is fully visible */
  }
}



/* === v1.0.14: Align actions & enforce topbar at top === */

/* Topbar fixed at the very top inside the header */
.fsh-topbar{position:relative;top:0;z-index:10001;margin:0;padding:0}
.fsh-topbar .fsh-container{min-height:36px}

/* Mobile: center actions block */
@media (max-width:1024px){
  .fsh-actions{
    grid-column: 1 / -1;
    justify-self: center !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    gap: 16px;
    margin: 6px 0 0 0;
  }
}

/* Desktop: nudge actions a bit left so cart icon is fully visible (logo untouched) */
@media (min-width:1025px){
  .fsh-actions{
    transform: translateX(-16px);
  }
}



/* === v1.0.15: Desktop grid to protect actions, reduce search a little (not too small) === */
@media (min-width:1025px){
  .fsh-main .fsh-container{
    grid-template-columns: minmax(200px, 280px) minmax(680px, 1fr) minmax(340px, max-content) !important;
    gap: 24px !important;
  }
  .fsh-actions{ transform: translateX(-8px); } /* slight left shift for visibility */
  .fsh-search{ max-width: none !important; }
}



/* === v1.0.16: Desktop pill-shaped search (no layout changes) === */
@media (min-width:1025px){
  /* Outer wrappers rounded (FiboSearch & native) */
  .fsh-search .dgwt-wcas-search-wrapp,
  .fsh-search .dgwt-wcas-sf-wrapp{
    border-radius: 9999px !important;
    overflow: hidden;
  }
  /* Input rounded + green border, same height */
  .fsh-search input[type="search"],
  .fsh-search .dgwt-wcas-search-input{
    height: 58px !important;
    border-radius: 9999px !important;
    border: 2px solid var(--fsh-primary) !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 44px !important; /* space for search icon */
    padding-right: 18px !important;
    box-shadow: none !important;
  }
  /* Ensure FiboSearch icon sits inside nicely */
  .fsh-search .dgwt-wcas-ico{
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}



/* === v1.0.17: Topbar as centered pill above search === */
.fsh-topbar{
  background: transparent !important;
  position: relative;
  top: 0;
  z-index: 10001;
  margin: 6px 0 8px 0; /* small gap above and just above search */
  padding: 0;
}
.fsh-topbar .fsh-container{
  min-height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fsh-topbar .fsh-topbar-text{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fsh-secondary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 480px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; }
}



/* === v1.0.18: Topbar fixed banner above the search/logo === */
.fsh-topbar{
  position: absolute !important;
  top: 0; left: 0; right: 0;
  background: var(--fsh-secondary) !important;
  color:#fff !important;
  z-index: 10001;
  margin: 0 !important;
  padding: 0 !important;
}
.fsh-topbar .fsh-container{
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 16px !important;
}
/* Remove previous pill styling, keep text readable */
.fsh-topbar .fsh-topbar-text{
  display: inline-block !important;
  background: transparent !important;
  color:#fff !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap;
}
/* Push the main row down so the banner sits above it */
.fsh-main{ padding-top: 40px !important; }
@media (max-width:480px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; }
}



/* === v1.0.19: Topbar sits ABOVE the search/logo row (normal flow) === */
.fsh-topbar{
  position: relative !important;
  top: auto !important; left: auto !important; right: auto !important;
  background: var(--fsh-secondary) !important;
  color: #fff !important;
  z-index: 10001;
  margin: 0 0 8px 0 !important;  /* small gap below topbar, right above search */
  padding: 4px 0 !important;
}
.fsh-topbar .fsh-container{
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
}
.fsh-topbar .fsh-topbar-text{
  background: transparent !important;
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}
@media (max-width: 540px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; }
}
/* Remove the padding-top added in 1.0.18 so search sits just below topbar */
.fsh-main{ padding-top: 0 !important; }



/* === v1.0.20: Fixed top announcement bar above header === */
:root{--fshTopbarH:0px;--fshAdminH:0px}

.fsh-topbar{
  position: fixed !important;
  top: var(--fshAdminH, 0px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  background: var(--fsh-secondary) !important;
  color:#fff !important;
  z-index: 10001;
  margin: 0 !important;
  padding: 0 !important;
}
.fsh-topbar .fsh-container{
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 16px !important;
}
.fsh-topbar .fsh-topbar-text{
  color:#fff !important;
  font-weight:600 !important;
  white-space: nowrap;
}
@media (max-width:540px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; text-align:center }
}

/* Push header down by topbar height (and admin bar if present) */
.fsh-header{
  top: calc(var(--fshAdminH, 0px) + var(--fshTopbarH, 0px)) !important;
}

/* Spacer must include header height + topbar height + small gap */
.fsh-header-spacer{ height: var(--fshH, 0px) !important }


/* === v1.0.21: Topbar directly above search/logo inside header (normal flow) === */
.fsh-topbar{
  position: relative !important;
  top: auto !important; left: auto !important; right: auto !important;
  transform: none !important;
  width: 100% !important;
  background: var(--fsh-secondary) !important;
  color:#fff !important;
  z-index: 2;
  margin: 0 0 8px 0 !important; /* just above .fsh-main */
  padding: 0 !important;
}
.fsh-topbar .fsh-container{
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 16px !important;
}
.fsh-topbar .fsh-topbar-text{
  color:#fff !important;
  font-weight:600 !important;
  white-space: nowrap;
}
@media (max-width:540px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; text-align:center }
}
/* Header should only account for admin bar, not topbar */
.fsh-header{ top: var(--fshAdminH, 0px) !important; }


/* === v1.0.22: Topbar restored to v1.0.12 design (simple green strip) === */
.fsh-topbar{
  position: relative !important;
  top: auto !important; left: auto !important; right: auto !important;
  transform: none !important;
  width: 100% !important;
  background: var(--fsh-secondary) !important;
  color:#fff !important;
  font-size: 13px !important;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
}
.fsh-topbar .fsh-container{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 !important;
}
.fsh-topbar .fsh-topbar-text{
  display: inline !important;
  background: transparent !important;
  color:#fff !important;
  font-weight: normal !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
@media (max-width:540px){
  .fsh-topbar .fsh-topbar-text{ white-space: normal; text-align: center; }
}
/* Ensure the main row sits directly under the topbar */
.fsh-main{ padding-top: 0 !important; margin-top: 0 !important; }

