:root {
  --header-height: 100px;
}
#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(calc(-100% - 2px));
  transition: transform 0.3s ease;
  box-shadow: 0 2px 12px var(--shadow-light);
}

#header-container.visible {
  transform: translateY(0);
}

#header-container.header-hidden {
  transform: translateY(calc(-100% - 2px));
}

.stickyHeader {
  position: static;
}

/* Site-wide promotional banner */
/* ─── Site Banner ─── */

.site-banner {
  position: relative;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.3s ease;
  width: 100%;
  background: var(--accent-green);
  color: var(--text-light);
}

.site-banner.visible {
  max-height: 240px; /* roomy height for inner content */
  opacity: 1;
}

.site-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.site-banner-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.site-banner-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.95;
  transition: opacity 0.12s;
  position: absolute;
  right: 20px;
}

.site-banner-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .site-banner-inner { 
    padding: 10px 48px 10px 16px;
    justify-content: flex-start;
  }

  .site-banner-text { 
    font-size: 0.85rem;
  }

  .site-banner-close { 
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1000px) {
  .site-banner-text {
    font-size: 1rem;
  }
}

/* ─── Header ─── */
header {
  height: 100px;
  background-color: var(--accent-light);
  border-bottom: 1px solid var(--accent-green);
}

.menu-toggle {
  display: none;
  /* Dold på dator */
}

header.box {
  padding: 15px clamp(15px, 2.5vw, 40px);
  display: flex;
  align-items: center;
  position: relative;
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.headerLogo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* ─── Nav ─── */
/* The header's own menu, centred across the header whatever sits either side
   of it. Scoped to the header: as a bare `nav` this reached every <nav> on the
   site — it was taking the blog's prev/next links out of the flow and pulling
   them halfway across the page, and it would do the same to the shop's type
   row. */
.stickyHeader nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
}

nav a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text-dark);
}

nav a.active {
  color: var(--text-dark);
  font-weight: bold;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 50px);
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

/* Desktop: visa bara den utanför nav */
.lang-switcher {
  display: none;
}

.lang-switcher-desktop {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 30px;
}


/* Mobile: visa bara den inuti nav, längst ner */
@media (max-width: 960px) {
  .lang-switcher-desktop {
    display: none !important;
  }

  /* Flaggorna står först i kolumnen i stället för ovanpå den. Som absolut
     placerade låg de utanför flödet och täckte listans översta länk. */
  .lang-switcher {
    order: -1;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 80%;
  }

  #nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  #nav-menu .link-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0;
  }
}

.lang-btn .fi {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 3px;
  display: block;
}

.lang-btn:hover {
  opacity: 0.75;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.15);
}