
/* Vapaat varastot -sivun yhtenäinen yläpalkki */

.site-header .desktop-nav,
.site-header .header-language,
.site-header .account-label {
  display: none;
}

@media (min-width: 1100px) {
  .site-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    white-space: nowrap;
  }

  .site-header .desktop-nav a {
    color: #171717;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .site-header .desktop-nav a:hover {
    color: #ed0a16;
  }

  .site-header .desktop-nav .desktop-nav__cta {
    background: #ed0a16;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
  }

  .site-header .header-actions {
    gap: 20px;
    margin-left: 24px;
  }

  .site-header .header-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #171717;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
  }

  .site-header .header-language svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .site-header .account-button {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .site-header .account-label {
    display: block;
    font-size: 11px;
    line-height: 1;
  }

  .site-header .menu-button {
    display: none !important;
  }
}

/* Työpöydän yläpalkin korjaukset */
@media (min-width: 1100px) {

  .site-header[data-astro-cid-lcdefpme] .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    white-space: nowrap;
  }

  .site-header[data-astro-cid-lcdefpme] .desktop-nav a {
    display: inline-flex;
    align-items: center;
    color: #171717;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .site-header[data-astro-cid-lcdefpme] .desktop-nav .desktop-nav__cta {
    background: #ed0a16 !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 8px;
  }

  .site-header[data-astro-cid-lcdefpme] .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
  }

  .site-header[data-astro-cid-lcdefpme] .header-language {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    text-decoration: none;
  }

  .site-header[data-astro-cid-lcdefpme] .header-language svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .site-header[data-astro-cid-lcdefpme] .account-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .site-header[data-astro-cid-lcdefpme] .account-label {
    display: block !important;
    font-size: 11px;
    line-height: 1;
  }

  .site-header[data-astro-cid-lcdefpme] .menu-button {
    display: none !important;
  }
}

/* Työpöydän yläpalkin tilankäyttö */
@media (min-width: 1100px) {
  .site-header[data-astro-cid-lcdefpme] {
    box-sizing: border-box;
    padding-left: 28px;
    padding-right: 32px;
    gap: 16px;
  }

  .site-header[data-astro-cid-lcdefpme] .brand {
    flex-shrink: 0;
  }

  .site-header[data-astro-cid-lcdefpme] .desktop-nav {
    gap: 18px;
    min-width: 0;
  }

  .site-header[data-astro-cid-lcdefpme] .header-actions {
    flex-shrink: 0;
    gap: 14px;
    margin-left: 12px;
  }

  .site-header[data-astro-cid-lcdefpme] .account-button {
    width: 64px;
    flex-shrink: 0;
  }
}

/* Toimipisteiden alavalikko */
@media (min-width: 1100px) {
  .site-header .locations-dropdown { position: relative; }
  .site-header .locations-trigger {
    border: 0; background: transparent; cursor: pointer;
    color: #171717; font: inherit; font-size: 14px;
    font-weight: 600; padding: 12px 0;
  }
  .site-header .locations-trigger:hover { color: #ed0a16; }
  .site-header .locations-submenu {
    display: none; position: absolute; top: 100%; left: -16px;
    min-width: 155px; padding: 8px; background: white;
    border-radius: 8px; box-shadow: 0 8px 24px #0002;
    z-index: 1200;
  }
  .site-header .locations-dropdown:hover .locations-submenu,
  .site-header .locations-dropdown:focus-within .locations-submenu {
    display: grid;
  }
  .site-header .locations-submenu a { padding: 12px; }
}

/* Toimipisteet mobiilivalikossa */
.mobile-locations summary {
  cursor: pointer;
  list-style: none;
}
.mobile-locations summary::-webkit-details-marker {
  display: none;
}
.mobile-locations > a {
  display: block;
  padding: 13px 20px;
  color: #171717;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}
