/* Site header: sticky, frosted, spaced-caps navigation with a gold underline, icon actions and a
   primary call to action. Scoped to .site-header so it overrides the reference's generic `header`
   rules in store.css / enhancements.css at every breakpoint. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 88px;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgb(248 245 237 / 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid #dcdccd;
  transition: box-shadow 0.25s ease;
}
/* Only the shadow changes on scroll: changing the sticky header's height shifts the page under it,
   which makes the browser re-adjust scroll and the header flicker near the top. */
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgb(19 23 13 / 0.08);
}
.site-header .wordmark {
  font-size: 24px;
}

/* ---------- navigation ---------- */
.site-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-header nav a {
  position: relative;
  padding: 8px 0;
  color: #3d4330;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 1px;
  background: #987539;
  transition: left 0.25s ease, right 0.25s ease;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: #8a6a2e;
}
.site-header nav a:hover::after,
.site-header nav a[aria-current='page']::after {
  left: 0;
  right: 0;
}

/* ---------- actions ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #343b23;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover,
.icon-btn[aria-current='page'] {
  background: #e9e9db;
  color: #8a6a2e;
}
.site-header .bag {
  position: relative;
  top: auto;
  right: auto;
  gap: 0;
}
.site-header .bag span {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  width: auto;
  height: 17px;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: #343b23;
  color: #f6efda;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #343b23;
  color: #f6efda !important;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgb(52 59 35 / 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.header-cta svg {
  color: #d6b46a;
}
.header-cta:hover {
  background: #4a5233;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(52 59 35 / 0.24);
}

/* ---------- small laptops: tighten the nav so it stays on one line ---------- */
@media (min-width: 1241px) and (max-width: 1380px) {
  .site-header {
    gap: 20px;
  }
  .site-header nav {
    gap: 18px;
    letter-spacing: 0.12em;
  }
  .site-header .wordmark {
    font-size: 22px;
  }
}

/* ---------- tablets: brand + actions on top, nav on its own row ---------- */
@media (max-width: 1240px) {
  .site-header,
  .site-header.is-scrolled {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto; /* lets the nav row scroll instead of widening the page */
    grid-template-areas: 'brand actions' 'nav nav';
    gap: 6px 16px;
    padding-top: 14px;
    padding-bottom: 0;
  }
  .site-header .wordmark {
    grid-area: brand;
    justify-self: start;
  }
  .site-header .header-actions {
    grid-area: actions;
  }
  .site-header nav {
    grid-area: nav;
    gap: 24px;
    padding: 4px 0 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- phones: one swipeable nav row, compact actions ---------- */
@media (max-width: 700px) {
  .site-header {
    padding-top: 10px;
  }
  .site-header .wordmark {
    font-size: 20px;
  }
  .site-header .wordmark small {
    margin-top: 6px;
    font-size: 9px;
  }
  .site-header nav {
    justify-content: flex-start;
    gap: 20px;
    font-size: 11px;
    padding: 4px 0 8px;
    min-width: 0;
    /* fade the right edge to hint that the row scrolls */
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .header-actions {
    gap: 2px;
  }
  .header-cta {
    padding: 9px 14px;
    margin-left: 4px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 600px) {
  .announcement .ann-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header nav a::after,
  .header-cta {
    transition: none;
  }
}
