/* Premium header shell (top utility bar, main row, logo, icon actions) and
   the "Pages" dropdown/nav-link styling used inside the header megamenu —
   see components/layout/StorefrontHeaderDesktop.tsx, MegaMenu.tsx and
   PagesDropdown.tsx. */

:root {
  --sw-h2-green: #1a5632;
  --sw-h2-green-dark: #123f24;
  --sw-h2-green-tint: #eef6f0;
  --sw-h2-text: #1f2a24;
  --sw-h2-muted: #6b7a71;
  --sw-h2-border: #e7ebe8;
}

.sw-header2 {
  background: #fefefe;
}

/* ---- Top utility bar ---- */

.sw-header2-topbar {
  border-bottom: 1px solid var(--sw-h2-border);
  background: #fcfdfc;
}

.sw-header2-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--sw-h2-muted);
}

.sw-header2-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.sw-header2-currency > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sw-h2-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sw-header2-currency .fa-caret-down {
  font-size: 12px;
  color: var(--sw-h2-muted);
}

.sw-header2-utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-header2-utility-links li a,
.sw-header2-utility-links li button {
  color: var(--sw-h2-muted);
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sw-header2-utility-links li a:hover,
.sw-header2-utility-links li button:hover {
  color: var(--sw-h2-green);
}

.sw-header2-utility-links li.sw-header2-welcome a {
  color: var(--sw-h2-text);
  font-weight: 500;
}

/* ---- Main row: logo + nav + actions ---- */

.sw-header2-main {
  border-bottom: 1px solid var(--sw-h2-border);
}

.sw-header2-main-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.sw-header2-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.sw-header2-logo img {
  height: 88px;
  width: auto;
  max-width: none;
  display: block;
}

.sw-header2-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sw-header2-wordmark-main {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--sw-h2-green-dark, #123f24);
}

.sw-header2-wordmark-sub {
  margin-top: 3px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-h2-green);
}

.sw-header2-main-inner .megamenu-hori.sw-nav2 {
  flex: 1;
  width: auto;
}

.sw-header2-main-inner .sw-nav2 .container-megamenu,
.sw-header2-main-inner .sw-nav2 .megamenu-wrapper,
.sw-header2-main-inner .sw-nav2 .megamenu-pattern,
.sw-header2-main-inner .sw-nav2 .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.sw-header2-main-inner .sw-nav2 ul.megamenu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.sw-header2-main-inner .sw-nav2 ul.megamenu > li {
  float: none;
  margin-right: 0;
}

.sw-nav2-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.sw-nav2-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: none;
  border: 0;
  padding: 0;
  color: var(--sw-h2-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.sw-nav2-icon-btn:hover {
  background: var(--sw-h2-green-tint);
  color: var(--sw-h2-green);
}

.sw-nav2-icon-btn .fa {
  font-size: 20px;
}

.sw-nav2-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #d64545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ---- Search flyout (icon in .sw-nav2-actions expands into this form) ---- */

.sw-header2 .search {
  position: relative;
}

.sw-header2 .search .input-search {
  display: none;
}

.sw-header2 .search .input-search.open {
  display: flex;
  align-items: center;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--sw-h2-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 41, 26, 0.14);
  padding: 6px;
  z-index: 1200;
}

.sw-header2 .search .input-search.open input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 8px 10px;
  font-size: 13.5px;
  background: none;
  color: var(--sw-h2-text);
}

.sw-header2 .search .input-search.open button {
  background: none;
  border: 0;
  color: var(--sw-h2-muted);
  padding: 6px 8px;
  cursor: pointer;
}

.sw-header2 .search .input-search.open button:hover {
  color: var(--sw-h2-green);
}

.sw-nav2-item {
  position: relative;
}

/* The vendor theme forces `.responsive ul.megamenu > li > a { color: #666
   !important }` (and `ul.megamenu > li > a { color: #fff }`), which — since
   it targets the <a> tag directly — silently overrides our nav-link color
   for every plain Link-based item (Home/Shop/Blog/About/Contact). The Pages
   trigger is a <button>, so it was never affected, which is why only it
   showed the intended styling. Beating a `!important` rule requires an
   equal-or-higher-specificity `!important` rule of our own. */
.sw-header2-main-inner .responsive ul.megamenu > li > a.sw-nav2-link {
  color: var(--sw-h2-text) !important;
}

.sw-header2-main-inner .responsive ul.megamenu > li > a.sw-nav2-link:hover,
.sw-header2-main-inner .responsive ul.megamenu > li > a.sw-nav2-link.is-active {
  color: var(--sw-h2-green) !important;
}

.sw-nav2-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sw-h2-text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.sw-nav2-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--sw-h2-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.sw-nav2-link:hover {
  color: var(--sw-h2-green);
}

.sw-nav2-link:hover::after {
  transform: scaleX(1);
}

.sw-nav2-link.is-active {
  color: var(--sw-h2-green);
}

.sw-nav2-link.is-active::after {
  transform: scaleX(1);
}

.sw-nav2-chevron {
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* ---- Pages dropdown ---- */

.sw-pages-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 270px;
  background: #fff;
  border: 1px solid var(--sw-h2-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(18, 41, 26, 0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
}

.sw-pages-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sw-pages-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sw-pages-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sw-h2-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sw-pages-dropdown a .fa {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--sw-h2-muted);
  transition: color 0.15s ease;
}

.sw-pages-dropdown a:hover {
  background: var(--sw-h2-green-tint);
  color: var(--sw-h2-green);
}

.sw-pages-dropdown a:hover .fa {
  color: var(--sw-h2-green);
}
