/* VýprodejHraček.cz: compact mobile header only. Desktop remains unchanged. */
.header-main > .vh-mobile-menu { display: none; }

@media (max-width: 699px) {
  /* Keep the brand and menu on a single row, with search below. */
  .site-header { top: 0; }
  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 7px;
    align-items: center;
    padding: 7px 0 10px;
  }
  .header-main > .logo.vh-brand-logo {
    grid-column: 1;
    grid-row: 1;
    width: min(70vw, 232px);
    max-width: 100%;
    min-width: 0;
    justify-self: start;
    align-self: center;
  }
  .header-main > .vh-mobile-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 410;
    width: 46px;
  }
  .vh-mobile-menu > summary {
    display: grid;
    place-items: center;
    list-style: none;
    cursor: pointer;
    width: 46px;
    height: 45px;
    background: #edf7f3;
    color: #285b51;
    border: 1px solid #daebe5;
    border-radius: 13px;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease;
  }
  .vh-mobile-menu > summary::-webkit-details-marker { display: none; }
  .vh-mobile-menu > summary::marker { content: ""; }
  .vh-mobile-menu > summary:focus-visible {
    outline: 3px solid #5ba67c;
    outline-offset: 2px;
  }
  .vh-mobile-menu[open] > summary {
    background: #dff1e8;
    border-color: #b6d9c7;
  }
  .vh-mobile-menu-icon--close { display: none; }
  .vh-mobile-menu[open] .vh-mobile-menu-icon--open { display: none; }
  .vh-mobile-menu[open] .vh-mobile-menu-icon--close { display: block; }

  .header-main > .search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }

  /* Remove ONLY the top horizontal category chips on phones.
     Every category remains accessible through the dropdown. */
  .site-header > .vh-nav-wrap { display: none !important; }

  .vh-mobile-menu-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 420;
    width: min(316px, calc(100vw - 24px));
    max-height: min(70vh, 580px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 9px;
    border: 1px solid #dcebe5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 17px 42px rgba(26, 61, 48, .19);
  }
  .vh-mobile-menu-heading {
    padding: 8px 11px 9px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .025em;
    color: #608477;
  }
  .vh-mobile-menu-panel a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    color: #234b44;
    white-space: normal;
  }
  .vh-mobile-menu-panel a:hover,
  .vh-mobile-menu-panel a:focus-visible,
  .vh-mobile-menu-panel a[aria-current="page"] {
    background: #eef8f2;
    color: #21774f;
  }
  .vh-mobile-menu-panel a > span {
    display: inline-flex;
    width: 23px;
    flex: 0 0 23px;
    color: #5e9e8b;
  }
  .vh-mobile-menu-panel .vh-menu-icon {
    display: block;
    width: 23px;
    height: 23px;
  }
  .vh-mobile-menu-divider {
    height: 1px;
    margin: 8px 8px;
    background: #e3eee8;
  }
}
