#masthead.header-main .header-inner {
  gap: clamp(14px, 2vw, 30px);
}

#masthead .header-inner > #logo {
  flex: 0 0 clamp(154px, 17vw, 220px);
  width: auto;
  margin: 0;
}

#masthead .header-inner > .hide-for-medium.flex-left {
  min-width: 0;
}

#masthead .header-inner > .hide-for-medium.flex-right {
  flex: 0 0 auto;
  margin-right: 0;
}

#masthead .header-nav-main .header-search-form {
  min-width: 0;
  margin: 0;
}

#masthead .header-nav-main .header-search-form-wrapper {
  width: 100% !important;
  max-width: 600px;
}

#masthead .header-nav-main .search-field:not(:focus) { text-overflow: ellipsis; }

#masthead.header-main .header-nav-main.nav-right {
  flex-wrap: nowrap;
  gap: clamp(10px, 1.3vw, 20px);
}

#masthead .header-nav-main.nav-right > li {
  margin: 0;
}

#masthead.header-main .hotline_number a.hotline-link {
  font-size: clamp(20px, 2vw, 28px);
  white-space: nowrap;
}

#masthead .hotline_number a.hotline-link:hover,
#masthead .hotline_number a.hotline-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

#masthead.header-main .hotline_number p {
  font-size: clamp(10px, 1vw, 12px);
  white-space: nowrap;
}

#masthead .header-cart-link .header-cart-title {
  white-space: nowrap;
}

#header #wide-nav {
  border-bottom: 1px solid #eadbd7;
  background: #fcf8f5;
}

#wide-nav .header-bottom-nav.header-nav {
  --sgdn-wine: #8a3033;
  --sgdn-ink: #342624;
  --sgdn-soft: #fcf3ee;
  --sgdn-line: #eadbd7;
  position: relative;
  gap: 4px;
  flex-wrap: nowrap;
}

#wide-nav .header-bottom-nav.header-nav > li {
  margin: 0;
}

#wide-nav .header-bottom-nav.header-nav > li > .nav-top-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 48px;
  gap: 5px;
  padding: 0 clamp(6px, 0.95vw, 14px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

#wide-nav .header-bottom-nav.header-nav > li > .nav-top-link > i {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
}

#wide-nav .header-bottom-nav.header-nav > li.current-dropdown > .nav-top-link,
#wide-nav .header-bottom-nav.header-nav > li.current-menu-item > .nav-top-link {
  background: var(--sgdn-soft);
}

#wide-nav .header-bottom-nav.header-nav > :is(.sgdn-shop, .sgdn-contact) > .nav-top-link {
  min-height: 36px;
  margin-block: 6px;
  border: 1px solid #d7aca5;
  border-radius: 7px;
}

#wide-nav .header-bottom-nav.header-nav > .sgdn-contact > .nav-top-link,
#wide-nav .header-bottom-nav.header-nav > .sgdn-shop > a[aria-current="page"] {
  border-color: var(--sgdn-wine);
  background: var(--sgdn-wine);
  color: #fff;
}

#wide-nav .header-bottom-nav.header-nav > li > a:focus-visible {
  outline: 2px solid var(--sgdn-wine);
  outline-offset: -3px;
}

#wide-nav .header-bottom-nav.header-nav > li:has(> .sgdn-panel) {
  position: static;
}

#wide-nav .header-bottom-nav.header-nav > li:has(> .sgdn-panel)::before,
#wide-nav .header-bottom-nav.header-nav > li:has(> .sgdn-panel)::after,
#wide-nav .sgdn-panel::after {
  display: none;
}

#wide-nav .header-bottom-nav.header-nav > li > .sgdn-panel {
  top: 100%;
  left: 50% !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: min(660px, 100%);
  min-width: 0;
  max-height: min(420px, max(140px, calc(100dvh - 165px)));
  margin: 0 !important;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--sgdn-line);
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 16px 28px rgb(59 31 27 / 18%);
  transform: translateX(-50%);
  transition: opacity .16s ease-out;
}

#wide-nav .sgdn-panel > li {
  display: block;
  min-width: 0;
  margin: 0;
}

#wide-nav .sgdn-panel > li > a {
  display: flex;
  align-items: center;
  min-height: 39px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--sgdn-line);
  border-radius: 7px;
  background: #fff;
  color: var(--sgdn-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  white-space: normal;
}

#wide-nav .sgdn-panel > li > a:hover,
#wide-nav .sgdn-panel > li > a:focus-visible,
#wide-nav .sgdn-panel > li.current-menu-item > a {
  border-color: #d7aca5;
  background: var(--sgdn-soft);
  color: var(--sgdn-wine);
}

#wide-nav .sgdn-panel > li > a:focus-visible {
  outline: 2px solid var(--sgdn-wine);
  outline-offset: -2px;
}

#wide-nav .sgdn-panel > .sgdn-all { grid-column: 1 / -1; }

#wide-nav .sgdn-panel > .sgdn-all > a {
  justify-content: space-between;
  min-height: 42px;
  padding-inline: 12px;
  background: var(--sgdn-soft);
  color: var(--sgdn-wine);
  font-weight: 750;
}

@media (max-width: 900px) {
  #wide-nav .header-bottom-nav.header-nav {
    gap: 3px;
  }

  #wide-nav .header-bottom-nav.header-nav > li > .nav-top-link {
    padding-inline: 6px;
  }
}

#masthead .header-nav-main .sgss-panel {
  max-width: 100%;
  container-type: inline-size;
}

@container (max-width: 450px) {
  #masthead .header-nav-main .sgss-panel :is(.sgss-products, .sgss-catalog) {
    grid-template-columns: minmax(0, 1fr);
  }

  #masthead .header-nav-main .sgss-panel :is(.sgss-result-head, .sgss-intro) {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}
