.site-header { position: relative; z-index: 30; background: #fff; }

.utility-bar {
  height: 20px;
  border-bottom: 1px solid #f1f1f1;
  color: #777;
  background: #fafafa;
  font-size: 12px;
}

.utility-inner,
.utility-group { display: flex; align-items: center; }
.utility-inner { justify-content: space-between; height: 100%; }
.utility-group { gap: 18px; }
.utility-group span { display: inline-flex; align-items: center; gap: 5px; }
.utility-group svg { width: 13px !important; height: 13px !important; }
.utility-group a:hover { color: var(--brand); }

.main-header { position: relative; background: #fff; }
.header-grid {
  display: grid;
  grid-template-columns: 210px 138px minmax(280px, 1fr) 108px 54px;
  align-items: center;
  gap: 16px;
  min-height: 96px;
}

.brand { display: inline-flex; align-items: center; width: 190px; line-height: 1; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; }

.categories-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, #006bff 0%, #0d57e6 68%, #6a4dff 100%);
  box-shadow: 0 4px 10px rgba(0,84,220,.22), inset 0 1px 0 rgba(255,255,255,.24);
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.categories-button:hover,
.categories-button[aria-expanded="true"] { background: linear-gradient(135deg, #a765ff, #7c3aed 60%, #b35aff); }

.search-form { position: relative; display: flex; height: 40px; }
.search-form input {
  width: 100%;
  height: 40px;
  padding: 0 52px 0 18px;
  border: 1px solid #dedede;
  border-radius: var(--radius);
  color: #333;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.search-form input::placeholder { color: #b1b1b1; }
.search-form button {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  padding: 0;
  color: #777;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.search-suggestions button {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--text);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  text-align: left;
}
.search-suggestions button:hover,
.search-suggestions button.is-active { background: #f1f1f1; }

.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 8px;
  color: #505050;
  border: 0;
  border-left: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.1;
  cursor: pointer;
}
.header-action:first-of-type { border-left: 0; }
.header-action:hover { color: var(--brand); background: #fafafa; }
.cart-button { position: relative; }
.cart-count {
  position: absolute;
  top: 1px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--brand);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.popover-anchor { position: absolute; z-index: 60; inset: 100% 0 auto; }
.categories-popover,
.account-popover {
  position: absolute;
  top: -2px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 0 0 5px 5px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.17);
}
.categories-popover { left: 210px; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 2px; width: 620px; }
.categories-popover a { padding: 9px 10px; border-radius: 3px; font-size: 13px; }
.categories-popover a:hover { color: var(--brand); background: #f5f5f5; }
.account-popover { right: 180px; display: grid; gap: 9px; width: 190px; }
.account-popover a { color: var(--link); font-size: 13px; }
.favorites-count { display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; margin-left: 4px; padding-inline: 5px; color: #fff; border-radius: 999px; background: var(--brand); font-size: 12px; }

.benefit-options { min-height: 32px; border-top: 1px solid #f3f3f3; background: #eee; }
.options-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 32px; }
.location-button { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 12px; cursor: pointer; }
.location-button svg { width: 17px !important; height: 17px !important; }
.location-button .tiny { width: 12px !important; height: 12px !important; }
.options-inner nav { display: flex; align-items: center; justify-content: flex-end; gap: 26px; color: #505050; font-size: 12px; white-space: nowrap; }
.options-inner nav a:hover,
.options-inner .accent-link { color: var(--brand); }

.dark-nav { height: 36px; color: #fff; background: #111827; }
.dark-nav .page-container { display: flex; align-items: center; justify-content: center; gap: 40px; height: 100%; overflow: hidden; }
.dark-nav a { font-size: 12px; font-weight: 600; white-space: nowrap; }
.dark-nav a:hover { color: #b84be4; }

.mobile-menu,
.mobile-drawer,
.drawer-backdrop { display: none; }
