/* ══════════════════════════════════════════════════════════════════════
   CU29 — LANDING PAGES: header with the main site's menu, search, cart
   and account. Loaded after cu29-mobile.css, before cu29-theme.css.
   ══════════════════════════════════════════════════════════════════════ */

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-desktop-links .nav-link.is-current {
  color: #FFFFFF !important;
}

.nav-desktop-links .nav-link.is-current::after {
  width: 100% !important;
}

/* ── Search, cart, account ── */
.nav-actions {
  gap: 6px;
}

.header-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFFFFF;
  transition: background-color var(--transition-fast);
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: var(--color-btn);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Account menu: <details> opens without any script */
.account-menu {
  position: relative;
}

.account-menu > summary {
  list-style: none;
  cursor: pointer;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  min-width: 200px;
  padding: 8px;
  border: 1px solid rgba(143, 176, 210, 0.2);
  border-radius: 12px;
  background: #0A1525;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.account-menu-panel a,
.account-menu-panel button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: #F0F4F8;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.account-menu-panel .account-menu-admin {
  color: #E0A073;
}

.account-menu-panel .account-menu-signout {
  color: #F29A9A;
}

.account-menu-panel hr {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid rgba(143, 176, 210, 0.16);
}

/* ── Small laptops: seven menu items plus three icons ── */
@media (min-width: 1025px) and (max-width: 1279px) {
  .nav-desktop-links {
    gap: clamp(12px, 1.4vw, 20px);
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* ── Phones: logo, cart, account and menu must fit next to each other ── */
@media (max-width: 350px) {
  .header-search {
    display: none;
  }
}
