.cfm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 238, 227, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.cfm-topbar {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 7px 18px;
  background: var(--cfm-soft);
  color: var(--cfm-green);
  font-size: 12px;
  font-weight: 800;
}
.cfm-header-main {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(240px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0;
}
.cfm-logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--cfm-green);
  font-weight: 900;
}
.cfm-logo .custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}
.cfm-logo img,
.cfm-logo .custom-logo,
.cfm-header .custom-logo {
  width: 56px;
  max-width: 56px;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
}
.cfm-logo-text {
  overflow: hidden;
  color: var(--cfm-green);
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfm-logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--cfm-green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 94, 43, 0.18);
}
.cfm-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--cfm-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(11, 94, 43, 0.06);
}
.cfm-search input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  outline: 0;
}
.cfm-search button {
  width: 54px;
  border: 0;
  background: var(--cfm-green);
  color: #fff;
  cursor: pointer;
}
.cfm-nav ul,
.cfm-mobile-menu ul {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.cfm-nav a {
  color: #26332a;
  font-size: 14px;
  font-weight: 800;
}
.cfm-nav a:hover,
.cfm-nav .current-menu-item > a {
  color: var(--cfm-green);
}
.cfm-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cfm-account-link {
  display: inline-flex;
  max-width: 210px;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--cfm-line);
  border-radius: 15px;
  background: #fff;
  color: var(--cfm-green);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(11, 94, 43, 0.07);
}
.cfm-account-link img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 2px solid rgba(132, 196, 65, 0.45);
  border-radius: 50%;
  object-fit: cover;
}
.cfm-account-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfm-account-link.is-login {
  padding-inline: 14px;
}
.cfm-icon-link,
.cfm-menu-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--cfm-line);
  border-radius: 15px;
  background: #fff;
  color: var(--cfm-green);
  box-shadow: 0 10px 28px rgba(11, 94, 43, 0.07);
  cursor: pointer;
}
.cfm-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--cfm-light-green);
  color: var(--cfm-green);
  font-size: 12px;
  font-weight: 900;
}
.cfm-menu-toggle { display: none; }
.cfm-menu-toggle span:not(.screen-reader-text) {
  width: 18px;
  height: 2px;
  background: var(--cfm-green);
}
.cfm-mobile-menu {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 18px;
}
.cfm-mobile-menu ul {
  display: grid;
  gap: 8px;
}
.cfm-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cfm-soft);
  color: var(--cfm-green);
  font-weight: 800;
}
