/* Storefront only. Keep navigation and search in the same compact sticky bar. */
html:has(body.fresh-store) { scroll-padding-top: 86px; }
html:has(body.fresh-store.promotion-active) { scroll-padding-top: 116px; }

.fresh-store .site-header {
  border-bottom-color: #e4e9de;
  box-shadow: 0 3px 14px #263b1c09;
}
.fresh-store .header-shell {
  height: auto;
  min-height: 72px;
  padding: 10px clamp(16px, 3vw, 32px);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(14px, 2vw, 28px);
}
.fresh-store .header-shell > .brand-logo { grid-area: 1 / 1; width: 128px; height: 48px; }
.fresh-store .header-shell > .header-actions { grid-area: 1 / 4; justify-self: end; }
.fresh-store .header-primary { grid-area: 1 / 3; }
.fresh-store .header-nav { gap: 4px; }
.fresh-store .header-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 14px;
  white-space: nowrap;
}
.fresh-store .header-nav a::after { content: none; }
.fresh-store .header-nav a:hover { background: #edf3e6; }
.fresh-store .cart-button { min-height: 46px; min-width: 66px; padding: 0 10px; justify-content: center; }
.fresh-store .cart-button:hover { background: #e3edd7; transform: none; }
.fresh-store .site-header :is(a, button):focus-visible { outline: 2px solid #426c0b; outline-offset: 2px; }

.fresh-store .header-shell .search-drawer {
  grid-area: 1 / 2;
  min-width: 0;
  max-height: none !important;
  padding: 0;
  border: 0;
  overflow: visible;
}
.fresh-store .header-shell .search-control {
  width: 100%;
  max-width: none;
  height: 48px;
  margin: 0;
  padding: 0 2px 0 14px;
  gap: 10px;
  border: 1px solid #dce4d5;
  border-radius: 12px;
  background: #f4f7f0;
}
.fresh-store .header-shell .search-control:focus-within {
  border-color: #52820d;
  background: #fff;
  box-shadow: 0 0 0 3px #52820d24;
}
.fresh-store .search-control svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.fresh-store .header-search-icon { color: #426c0b; }
.fresh-store .search-control input { height: 44px; padding: 0; font-size: 16px; }
.fresh-store .search-control input::placeholder { color: #566451; opacity: 1; }
.fresh-store #clearSearch { display: grid; place-items: center; padding: 0; border-radius: 9px; color: #426c0b; }
.fresh-store #clearSearch:hover { background: #e8efe1; }
.fresh-store .search-control input:placeholder-shown + #clearSearch { display: none; }

@media (max-width: 1023px) {
  html:has(body.fresh-store) { scroll-padding-top: 132px; }
  html:has(body.fresh-store.promotion-active) { scroll-padding-top: 162px; }
  .fresh-store .header-shell { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; }
  .fresh-store .header-shell .search-drawer { grid-area: 2 / 1 / 3 / -1; }
  .fresh-store .header-primary { grid-area: 1 / 2; justify-self: center; }
  .fresh-store .header-shell > .header-actions { grid-area: 1 / 3; }
}
@media (max-width: 780px) {
  .fresh-store .header-shell { padding: 8px 14px 10px; }
  .fresh-store .header-shell > .brand-logo { width: 116px; }
}
