/* ==========================================================================
   Fabulousite – modern navigation (overrides main.css / SmartMenus sm-blue)
   ========================================================================== */
:root {
  --fs-ink: #16181d;
  --fs-sub: #6b7280;
  --fs-line: rgba(17, 24, 39, .08);
  --fs-soft: #f4f4f6;
  --fs-accent: #ff4f6d;
  --fs-radius: 14px;
  --fs-head-h: 64px;
}

/* ---------- header bar ---------- */
#header.fs-header {
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid var(--fs-line);
  transition: box-shadow .25s ease, background .25s ease;
}
#header.fs-header.fixed {
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 6px 24px -12px rgba(17, 24, 39, .25);
}
#header.fs-header .header-content {
  max-width: 1440px;
  padding: 0 24px !important;
}
#header.fs-header .main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: var(--fs-head-h);
}
#header.fs-header .main-nav:after { display: none; }

#header.fs-header .nav-brand { float: none; order: 1; margin: 0 auto 0 0; }
#header.fs-header .nav-brand a {
  padding: 0;
  font-size: 26px;
  line-height: var(--fs-head-h);
  color: var(--fs-ink);
  letter-spacing: .01em;
}

/* ---------- top-level items (desktop) ---------- */
#header.fs-header #main-menu {
  order: 2;
  float: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: 0 !important;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
#header.fs-header #main-menu > li {
  float: none;
  border: 0 !important;
  background: transparent !important;
}
#header.fs-header #main-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--fs-ink) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
#header.fs-header #main-menu > li > a i {
  font-size: 14px !important;
  color: var(--fs-sub) !important;
  transition: color .2s ease;
}
/* SmartMenus caret → small chevron */
#header.fs-header #main-menu > li > a .sub-arrow {
  position: static !important;
  display: inline-block;
  width: 7px !important;
  height: 7px !important;
  margin: -3px 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1.6px solid currentColor !important;
  border-bottom: 1.6px solid currentColor !important;
  background: none !important;
  transform: rotate(45deg);
  transition: transform .2s ease;
  opacity: .5;
  overflow: hidden;
  text-indent: -999px;
}
#header.fs-header #main-menu > li > a.highlighted .sub-arrow {
  transform: rotate(-135deg);
  margin-top: 4px !important;
}
#header.fs-header #main-menu > li > a:hover,
#header.fs-header #main-menu > li > a:focus-visible,
#header.fs-header #main-menu > li > a.highlighted {
  background: var(--fs-soft) !important;
}
#header.fs-header #main-menu > li.here > a {
  background: var(--fs-ink) !important;
  color: #fff !important;
}
#header.fs-header #main-menu > li.here > a i { color: #fff !important; }

/* Contact = CTA pill */
#header.fs-header #main-menu > li.fs-cta > a {
  margin-left: 8px;
  background: var(--fs-accent) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -8px var(--fs-accent);
}
#header.fs-header #main-menu > li.fs-cta > a i { color: #fff !important; }
#header.fs-header #main-menu > li.fs-cta > a:hover { filter: brightness(1.06); transform: translateY(-1px); }
#header.fs-header li.column_contact a:after { display: none !important; }

/* ---------- mega menu panel ---------- */
#header.fs-header #main-menu .mega-menu {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--fs-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 30px 60px -20px rgba(17, 24, 39, .28), 0 2px 6px rgba(17, 24, 39, .04) !important;
  overflow: hidden;
}
#header.fs-header #main-menu .mega-menu > li { background: transparent !important; border: 0 !important; }
#header.fs-header .fs-panel {
  padding: 24px 28px 28px !important;
  max-height: calc(100vh - var(--fs-head-h) - 40px);
  overflow-y: auto !important;
}
#header.fs-header .fs-panel__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--fs-ink);
  letter-spacing: .01em;
}
#header.fs-header .fs-panel__title span {
  font-size: 12px;
  font-weight: 500;
  color: var(--fs-sub);
}

/* chips (Category / Tag) */
#header.fs-header #main-menu .mega-menu ul.fs-chips,
#header.fs-header #main-menu .mega-menu ul.fs-swatches {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
#header.fs-header #main-menu .mega-menu ul.fs-chips li,
#header.fs-header #main-menu .mega-menu ul.fs-swatches li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  clear: none !important;
  display: block !important;
  background: transparent !important;
}
#header.fs-header #main-menu .mega-menu ul.fs-chips a,
#header.fs-header #main-menu .mega-menu ul.fs-swatches a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 14px !important;
  border: 1px solid var(--fs-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--fs-ink) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
#header.fs-header #main-menu .mega-menu ul.fs-chips a:hover,
#header.fs-header #main-menu .mega-menu ul.fs-swatches a:hover {
  border-color: var(--fs-ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(17, 24, 39, .35);
}
#header.fs-header .fs-count {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--fs-soft);
  color: var(--fs-sub);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#header.fs-header #main-menu .mega-menu a:hover .fs-count { background: var(--fs-ink); color: #fff; }

/* swatches (Color) */
#header.fs-header #main-menu .mega-menu ul.fs-swatches {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
#header.fs-header #main-menu .mega-menu ul.fs-swatches a {
  width: 100%;
  padding: 8px 10px 8px 8px !important;
  border-radius: var(--fs-radius) !important;
}
#header.fs-header .fs-swatch {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
#header.fs-header .fs-swatch__name { flex: 1; }

/* ---------- hamburger ---------- */
#header.fs-header .main-menu-btn {
  order: 2;
  float: none;
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fs-ink);
  text-indent: 60px;
}
#header.fs-header .main-menu-btn-icon,
#header.fs-header .main-menu-btn-icon:before,
#header.fs-header .main-menu-btn-icon:after { left: 13px; width: 16px; }
#header.fs-header .main-menu-btn-icon:before,
#header.fs-header .main-menu-btn-icon:after { left: 0; }
#header.fs-header .main-menu-btn-icon:before { top: -6px; }
#header.fs-header .main-menu-btn-icon:after { top: 6px; }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  #header.fs-header .main-menu-btn { display: none; }
  #header.fs-header #main-menu .mega-menu {
    left: 24px !important;
    right: 24px !important;
    top: calc(var(--fs-head-h) - 4px) !important;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --fs-head-h: 58px; }
  #header.fs-header .header-content { padding: 0 16px !important; }
  #header.fs-header .nav-brand a { font-size: 22px; }
  #header.fs-header #main-menu {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 20px !important;
    max-height: calc(100vh - var(--fs-head-h));
    overflow-y: auto;
  }
  #header.fs-header #main-menu-state:not(:checked) ~ #main-menu { display: none; }
  #header.fs-header #main-menu:before { display: none; }
  #header.fs-header #main-menu > li > a {
    display: flex;
    width: 100%;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    font-size: 16px;
  }
  #header.fs-header #main-menu > li > a .sub-arrow { margin-left: auto !important; }
  #header.fs-header #main-menu > li.fs-cta > a { margin: 10px 0 0; justify-content: center; }
  #header.fs-header #main-menu > li.fs-cta > a .sub-arrow { display: none; }
  #header.fs-header #main-menu .mega-menu {
    position: static !important;
    margin: 4px 0 8px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    background: var(--fs-soft) !important;
    border: 0 !important;
  }
  #header.fs-header .fs-panel { padding: 16px !important; max-height: none; }
  #header.fs-header .fs-panel__title { display: none; }
  #header.fs-header #main-menu .mega-menu ul.fs-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header.fs-header #main-menu .mega-menu ul.fs-chips a { font-size: 13px; padding: 8px 8px 8px 12px !important; }
  body.open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  #header.fs-header *, #header.fs-header *:before, #header.fs-header *:after { transition: none !important; }
}
