
.storefront-header {
  background: rgba(255, 250, 242, 0.97);
  border-bottom: 1px solid var(--sf-border);
  box-shadow: 0 3px 12px rgba(76, 42, 8, 0.045);
  position: sticky;
  top: 0;
  z-index: 400;
}

.storefront-header-main {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(210px, auto) minmax(190px, 1fr) auto;
  margin: 0 auto;
  max-width: var(--sf-page-max);
  min-height: 58px;
  padding: 7px var(--sf-pad);
}

.storefront-brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.storefront-logo {
  height: 44px;
  object-fit: contain;
  width: auto;
}

.storefront-brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.storefront-brand-text strong {
  color: var(--sf-brand-dark);
  font-family: var(--sf-font-serif);
  font-size: 1.18rem;
  line-height: 1;
  white-space: nowrap;
}

.storefront-brand-text small {
  color: var(--sf-soft-text);
  font-size: 0.66rem;
  font-weight: 650;
  white-space: nowrap;
}

.storefront-nav {
  align-items: center;
  display: flex;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.storefront-nav a {
  border-radius: 999px;
  color: var(--sf-ink);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.storefront-nav a:hover {
  background: #fff0d7;
  color: var(--sf-brand-dark);
}

.storefront-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}


.storefront-social {
  align-items: center;
  display: inline-flex;
  gap: 3px;
  margin-right: 2px;
}

.storefront-social a,
.storefront-social-icon {
  align-items: center;
  border-radius: 999px;
  color: var(--sf-brand-dark);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  text-decoration: none;
  width: 24px;
}

.storefront-social a:hover,
.storefront-social-icon:hover {
  background: #fff0d7;
}

.storefront-social i {
  font-size: 0.8rem;
  line-height: 1;
}

.storefront-search-wrap {
  flex: 0 1 245px;
  max-width: 245px;
  min-width: 175px;
  position: relative;
}

.storefront-search-form {
  align-items: center;
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(76, 42, 8, 0.035);
  display: flex;
  gap: 6px;
  min-height: 31px;
  padding: 3px 4px 3px 10px;
  width: 100%;
}

.storefront-search-form svg {
  color: var(--sf-brand);
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.storefront-search-form input {
  background: transparent;
  border: 0;
  color: var(--sf-ink);
  flex: 1;
  font: inherit;
  font-size: 0.78rem;
  min-width: 0;
  outline: 0;
}

.storefront-search-form button {
  background: var(--sf-brand);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
  min-height: 23px;
  padding: 0 10px;
}

.storefront-auth {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.user-greeting {
  color: var(--sf-muted);
  font-size: 0.72rem;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.auth-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-button.auth-link {
  background: transparent;
}

.auth-button.auth-link-primary {
  background: var(--sf-brand);
}

.auth-button.auth-link-primary:hover {
  background: var(--sf-brand-dark);
}

.auth-link {
  border-radius: 999px;
  color: var(--sf-brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 7px;
  text-decoration: none;
  white-space: nowrap;
}

.auth-link:hover {
  background: #fff0d7;
}

.auth-link-primary {
  background: var(--sf-brand);
  color: #fff;
}

.auth-link-primary:hover {
  background: var(--sf-brand-dark);
}

.auth-link-muted {
  color: var(--sf-soft-text);
}

.storefront-cart {
  align-items: center;
  margin-left: 4px;
  background: #fff5e6;
  border: 1px solid var(--sf-border-strong);
  border-radius: 999px;
  color: var(--sf-brand-dark);
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  width: 32px;
}

.storefront-cart svg {
  height: 16px;
  width: 16px;
}

.cart-badge {
  align-items: center;
  background: #b42318;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 850;
  height: 17px;
  justify-content: center;
  line-height: 1;
  min-width: 17px;
  padding: 0 4px;
  position: absolute;
  right: -6px;
  top: -7px;
}

.search-dropdown {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  box-shadow: var(--sf-shadow);
  left: 0;
  max-height: 310px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 600;
}

.search-dropdown a,
.search-dropdown .search-result-item,
.search-item-prod {
  align-items: center;
  color: var(--sf-ink);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.search-dropdown a:hover,
.search-dropdown .search-result-item:hover,
.search-item-prod:hover {
  background: #fff6e8;
}

.search-item-prod img,
.search-dropdown img {
  border-radius: 8px;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.search-results-list h4,
.search-no-results {
  color: var(--sf-muted);
  font-size: 0.78rem;
  margin: 0;
  padding: 10px 12px 6px;
}

.storefront-search-strip {
  display: none;
}

@media (max-width: 980px) {
  .storefront-header-main {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .storefront-nav {
    display: none;
  }

  .storefront-actions {
    gap: 7px;
  }

  .storefront-search-wrap {
    order: 5;
    flex-basis: 100%;
    max-width: none;
    min-width: 100%;
    width: 100%;
  }

  .storefront-header-main {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
  }

  .storefront-brand {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .storefront-header-main {
    padding: 7px 14px;
  }

  .storefront-logo {
    height: 40px;
  }

  .storefront-brand-text strong {
    font-size: 1.05rem;
  }

  .storefront-brand-text small {
    display: none;
  }

  .storefront-auth .user-greeting,
  .auth-link-muted {
    display: none;
  }

  .auth-link {
    font-size: 0.7rem;
    padding: 5px 6px;
  }
}


.modal-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

@media (max-width: 1180px) {
  .storefront-social {
    display: inline-flex;
    gap: 2px;
    margin-right: 2px;
  }

  .storefront-social a,
.storefront-social-icon {
    height: 22px;
    width: 22px;
  }

  .storefront-social i {
    font-size: 0.75rem;
  }

  .storefront-search-wrap {
    max-width: 190px;
    min-width: 145px;
  }

  .storefront-actions {
    gap: 7px;
  }

  .storefront-auth {
    gap: 4px;
  }

  .auth-link {
    padding-left: 6px;
    padding-right: 6px;
  }

  .storefront-cart {
    margin-left: 6px;
  }
}

@media (max-width: 760px) {
  .storefront-social {
    display: none;
  }
}
