/* MounCake: one predictable header on every page.
 * This file is deliberately loaded last, after legacy catalogue CSS.
 * Only styles inside .site-header are changed here.
 */

.site-header .mobile-nav-contact { display: none; }

/* Legacy catalogue stylesheet used to append a second dropdown arrow. */
.site-header .main-nav > .nav-dropdown > a::after {
  content: none !important;
  display: none !important;
}
.site-header .main-nav .nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 10px;
  width: 10px;
  height: 12px;
  margin-left: 1px;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}
.site-header .main-nav .nav-chevron::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Shared desktop geometry: identical for the homepage and every catalogue. */
@media (min-width: 1341px) {
  .site-header, .cakes-page .site-header {
    box-sizing: border-box;
    background: #fffdfa;
    border-bottom: 1px solid #eee5e1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .header-inner, .cakes-page .site-header .header-inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 42px);
    max-width: 1400px;
    height: 76px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0;
    gap: clamp(10px, 0.95vw, 15px);
  }
  .site-header .logo, .cakes-page .site-header .logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 149px;
    width: 149px;
    margin: 0;
  }
  .site-header .logo img, .cakes-page .site-header .logo img {
    display: block;
    width: 149px;
    max-width: 149px;
    height: auto;
  }
  .site-header .main-nav, .cakes-page .site-header .main-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    gap: clamp(12px, 1.05vw, 18px);
    overflow: visible;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: "Segoe UI", Inter, InterCustom, Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.35;
  }
  .site-header .main-nav > a,
  .site-header .main-nav > .nav-dropdown > a {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 8px 0;
    gap: 7px;
    color: #362a29;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-header .main-nav > .nav-dropdown {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .site-header .main-nav > a:hover,
  .site-header .main-nav > .nav-dropdown > a:hover,
  .site-header .main-nav a[aria-current="page"] {
    color: #a33e57;
  }
  .site-header .header-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
    text-align: right;
    white-space: nowrap;
  }
  .site-header .header-actions .phone {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
  }
  .site-header .header-actions span {
    font-size: 11px;
    line-height: 1.25;
  }
  .site-header .header-vk {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
  }
  .site-header .burger { display: none; }
}
@media (min-width: 1341px) and (max-width: 1440px) {
  .site-header .header-inner, .cakes-page .site-header .header-inner {
    width: calc(100% - 28px);
    gap: 9px;
  }
  .site-header .logo, .cakes-page .site-header .logo { flex-basis: 135px; width: 135px; }
  .site-header .logo img, .cakes-page .site-header .logo img { width: 135px; max-width: 135px; }
  .site-header .main-nav, .cakes-page .site-header .main-nav { gap: 11px; }
  .site-header .main-nav > a, .site-header .main-nav > .nav-dropdown > a { font-size: 13px; }
  .site-header .header-actions .phone { font-size: 14px; }
  .site-header .header-actions span { font-size: 10.5px; }
  .site-header .header-vk { padding: 9px 11px; font-size: 12px; }
}

/* Keep the existing mobile drawer and its toggle, but normalize the header
 * geometry even on pages which also include legacy style.css. */
@media (max-width: 1340px) {
  .site-header, .cakes-page .site-header {
    background: #fffdfa;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .header-inner, .cakes-page .site-header .header-inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 28px);
    height: auto;
    min-height: var(--moun-header-h, 70px);
    max-width: 1400px;
    margin-inline: auto;
    padding: 0;
    gap: 10px;
  }
  .site-header .logo, .cakes-page .site-header .logo { flex: 0 0 auto; margin: 0; }
  .site-header .logo img, .cakes-page .site-header .logo img {
    display: block;
    width: 148px;
    max-width: 148px;
    height: auto;
  }
  .site-header .main-nav .nav-chevron { display: none; }
  .site-header .header-actions { display: none; }
  .site-header .header-vk {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    margin-left: auto;
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .site-header .burger {
    display: flex;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
  }
  /* Contact details sit below the catalogue links, never in the desktop nav. */
  .site-header .mobile-nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 14px 0 2px;
    padding: 14px 0 3px;
    border-top: 1px solid #eae1dc;
  }
  .site-header .mobile-nav-contact .mobile-nav-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 0;
    color: #a33e57;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }
  .site-header .mobile-nav-contact .mobile-nav-phone:hover {
    color: #802b40;
  }
  .site-header .mobile-nav-contact .mobile-nav-phone:focus-visible {
    outline: 2px solid #a33e57;
    outline-offset: 3px;
  }
  .site-header .mobile-nav-contact .mobile-nav-location {
    color: #776761;
    font-size: 12px;
    line-height: 1.5;
  }
}
@media (max-width: 760px) {
  .site-header .header-inner, .cakes-page .site-header .header-inner {
    width: calc(100% - 28px);
    min-height: 65px;
    gap: 8px;
  }
  .site-header .logo img, .cakes-page .site-header .logo img {
    width: 138px;
    max-width: 138px;
  }
  .site-header .header-vk { min-height: 38px; padding: 8px 10px; font-size: 11.5px; }
  .site-header .burger { width: 39px; height: 40px; }
  /* Mobile subcategories stay visible and unboxed inside the shared panel. */
  .site-header .nav-dropdown.submenu-open > .nav-dropdown-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    padding: 0 0 5px 10px;
  }
  .site-header .nav-dropdown-menu a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    overflow-wrap: break-word;
  }
  .site-header .main-nav {
    scrollbar-width: thin;
    scrollbar-color: #cbb8b1 transparent;
  }
  .site-header .main-nav::-webkit-scrollbar { width: 5px; }
  .site-header .main-nav::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #cbb8b1;
  }
}
@media (max-width: 380px) {
  .site-header .logo img, .cakes-page .site-header .logo img {
    width: 122px;
    max-width: 122px;
  }
  .site-header .header-vk { padding: 8px 9px; font-size: 10.5px; }
}


/* Remove the obsolete animated underline inherited from style.css/redesign.css.
   With the new 42px-high link it passed through the letters on hover. */
.site-header .main-nav a::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  transition: none !important;
}
.site-header .main-nav a,
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
@media (min-width: 1341px) {
  .site-header .main-nav,
  .cakes-page .site-header .main-nav {
    gap: clamp(21px, 1.55vw, 27px);
  }
  .site-header .main-nav > a[aria-current="page"],
  .site-header .main-nav > .nav-dropdown > a[aria-current="page"] {
    color: #a33e57;
    font-weight: 700;
  }
}
@media (min-width: 1341px) and (max-width: 1440px) {
  .site-header .main-nav,
  .cakes-page .site-header .main-nav {
    gap: 20px;
  }
}

/* Dropdown text stays readable at hover; no old pseudo-lines at any depth. */
@media (min-width: 1341px) {
  .site-header .nav-dropdown-menu {
    left: -12px;
    top: 100%; /* No pointer dead zone between the header link and dropdown. */
    min-width: 254px;
    padding: 8px;
  }
  .site-header .nav-dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 41px;
    margin: 0;
    padding: 10px 13px;
    border-radius: 8px;
    color: #493837;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.4;
    background: transparent;
  }
  .site-header .nav-dropdown-menu a:hover,
  .site-header .nav-dropdown-menu a:focus-visible {
    color: #994158;
    background: #fbf0ed;
  }
}
