.shared-header {
  background: #f7f1e8;
  border-bottom: none;
  box-shadow: none;
}

.shared-header__container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.shared-header__top-row,
.shared-header__bottom-row,
.shared-location,
.shared-header__actions,
.shared-profile,
.shared-icon-link,
.shared-cart,
.shared-nav,
.shared-cat-btn,
.shared-cat-panel a {
  display: flex;
  align-items: center;
}

.shared-header__top-row {
  gap: 20px;
  padding: 20px 0 12px;
}

.shared-brand {
  color: #171411;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.shared-brand em {
  color: #d86e42;
  font-style: normal;
}

.shared-location {
  gap: 10px;
  color: #6d5849;
  min-width: 250px;
}

.shared-location svg,
.shared-profile svg,
.shared-icon-link svg,
.shared-cart svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.shared-location small {
  display: block;
  font-size: 0.88rem;
  line-height: 1;
}

.shared-location strong {
  display: block;
  font-size: 0.98rem;
  color: #4b382b;
  line-height: 1.1;
}

.shared-search {
  position: relative;
  flex: 1 1 440px;
  max-width: 520px;
}

.shared-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #8c715f;
  transform: translateY(-50%);
  pointer-events: none;
}

.shared-search input {
  width: 100%;
  border: 1px solid rgba(79, 59, 42, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #2b231d;
  padding: 14px 18px 14px 46px;
  font: inherit;
}

.shared-search input:focus {
  outline: 3px solid rgba(216, 110, 66, 0.18);
  border-color: rgba(216, 110, 66, 0.3);
}

.shared-header__actions {
  gap: 14px;
  margin-left: auto;
  color: #3e2e24;
  white-space: nowrap;
}

.shared-profile,
.shared-icon-link,
.shared-cart,
.shared-location,
.shared-nav a,
.shared-cat-btn,
.shared-cat-panel a {
  text-decoration: none;
  color: #4f3d31;
}

.shared-profile {
  gap: 10px;
  font-weight: 600;
}

.shared-profile-photo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.shared-profile.has-photo .shared-profile-icon {
  display: none;
}

.shared-icon-link,
.shared-cart {
  gap: 9px;
  font-weight: 600;
}

.shared-cart strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #171411;
  color: #fff;
  font-size: 0.82rem;
}

.shared-header__bottom {
  border-top: none;
}

.shared-header__bottom-row {
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
}

.shared-nav {
  gap: clamp(20px, 4vw, 54px);
  flex-wrap: wrap;
}

.shared-nav a,
.shared-cat-btn {
  font: inherit;
  font-size: 0.98rem;
  color: #5d4a3d;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.shared-nav a.is-current,
.shared-cat-btn.is-current,
.shared-nav a:hover,
.shared-cat-btn:hover,
.shared-profile:hover,
.shared-icon-link:hover,
.shared-cart:hover,
.shared-location:hover {
  color: #171411;
}

.shared-cat {
  position: relative;
}

.shared-cat-btn {
  gap: 7px;
}

.shared-cat-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(79, 59, 42, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(42, 26, 16, 0.12);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 25;
}

.shared-cat.is-open .shared-cat-panel {
  display: flex;
}

.shared-cat-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.shared-cat-panel a:hover {
  background: rgba(216, 110, 66, 0.08);
}

.shared-header-spacer {
  height: 0;
}

body.with-shared-header .page,
body.with-shared-header .page-shell,
body.with-shared-header .cart-page {
  padding-top: 24px;
}

body.home-page .shared-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(255,104,38,0.1);
  box-shadow: 0 18px 36px rgba(212, 105, 39, 0.08);
}

body.home-page .shared-header__container {
  width: min(1248px, calc(100% - 40px));
}

body.home-page .shared-header__top-row {
  gap: 24px;
  padding: 24px 0 18px;
}

body.home-page .shared-brand {
  color: #f45d22;
  font-size: 2.4rem;
  letter-spacing: -0.08em;
}

body.home-page .shared-brand em {
  color: #ff7d42;
}

body.home-page .shared-location {
  color: #8a6d59;
}

body.home-page .shared-location small {
  color: #b88a70;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.home-page .shared-location strong {
  color: #4e372b;
  font-weight: 700;
}

body.home-page .shared-search {
  flex: 1 1 560px;
  max-width: 620px;
}

body.home-page .shared-search input {
  border-color: rgba(255,104,38,0.14);
  background: #fff8f4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 12px 24px rgba(242, 104, 35, 0.06);
  padding: 16px 22px 16px 50px;
}

body.home-page .shared-search input::placeholder {
  color: #8b6a56;
}

body.home-page .shared-header__actions {
  color: #51382c;
  gap: 16px;
  align-items: center;
}

body.home-page .shared-profile,
body.home-page .shared-icon-link,
body.home-page .shared-cart,
body.home-page .shared-location,
body.home-page .shared-nav a,
body.home-page .shared-cat-btn,
body.home-page .shared-cat-panel a {
  color: #5e4739;
}

body.home-page .shared-cart strong {
  background: linear-gradient(135deg, #f45d22 0%, #ff7f3f 100%);
  box-shadow: 0 10px 18px rgba(244, 93, 34, 0.24);
}

body.home-page .shared-profile--icon,
body.home-page .shared-icon-link,
body.home-page .shared-cart--icon {
  position: relative;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff8f4;
  border: 1px solid rgba(244, 93, 34, 0.12);
}

body.home-page .shared-profile--icon span:not(.sr-only),
body.home-page .shared-cart--icon span:not(.sr-only) {
  display: none;
}

body.home-page .shared-cart--icon strong {
  position: absolute;
  top: -6px;
  right: -6px;
}

body.home-page .shared-header__bottom {
  border-top: 1px solid rgba(255,104,38,0.08);
}

body.home-page .shared-header__bottom-row {
  justify-content: center;
  padding: 14px 0 18px;
}

body.home-page .shared-nav {
  width: 100%;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

body.home-page .shared-nav a,
body.home-page .shared-cat-btn {
  font-size: 1rem;
  font-weight: 600;
  color: #3b2c23;
}

body.home-page .shared-nav a.is-current,
body.home-page .shared-cat-btn.is-current,
body.home-page .shared-nav a:hover,
body.home-page .shared-cat-btn:hover,
body.home-page .shared-profile:hover,
body.home-page .shared-icon-link:hover,
body.home-page .shared-cart:hover,
body.home-page .shared-location:hover {
  color: #f45d22;
}

body.home-page .shared-cat-panel {
  background: #fff;
  border-color: rgba(255,104,38,0.12);
  box-shadow: 0 22px 44px rgba(96, 54, 24, 0.12);
}

body.home-page .shared-cat-panel a:hover {
  background: #fff4ed;
  color: #f45d22;
}

@media (max-width: 1080px) {
  .shared-header__top-row {
    flex-wrap: wrap;
  }

  .shared-location {
    min-width: auto;
    order: 3;
  }

  .shared-search {
    order: 2;
    flex-basis: 100%;
    max-width: none;
  }

  .shared-header__actions {
    order: 4;
    width: 100%;
    justify-content: flex-end;
  }

  .shared-header__bottom-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shared-header__container {
    width: min(100% - 20px, 1180px);
  }

  body.home-page .shared-header__container {
    width: min(100% - 24px, 1248px);
  }

  body.home-page .shared-search {
    max-width: none;
    flex-basis: 100%;
    order: 3;
  }

  body.home-page .shared-header__actions {
    margin-left: 0;
    order: 2;
  }

  body.home-page .shared-header__bottom-row {
    justify-content: flex-start;
    padding-top: 4px;
  }

  body.home-page .shared-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.home-page .shared-nav::-webkit-scrollbar {
    display: none;
  }

  .shared-brand {
    font-size: 1.55rem;
  }

  .shared-header__top-row,
  .shared-header__actions,
  .shared-nav {
    gap: 12px;
  }

  .shared-header__actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .shared-profile span,
  .shared-cart span {
    font-size: 0.95rem;
  }

  .shared-nav {
    width: 100%;
    justify-content: space-between;
  }
}
