/* ==========================================================================
   Storefront header — premium luxury chrome + mobile navigation
   ========================================================================== */

:root {
  --sf-header-noir: #1e1f29;
  --sf-header-noir-mid: #171a24;
  --sf-header-noir-soft: #15161d;
  --sf-header-accent: #d10024;
  --sf-header-text: #e5e7eb;
  --sf-header-muted: #94a3b8;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

body.sf-nav-open {
  overflow: hidden;
}

/* ---- Sticky header + navigation (sticks on page scroll) ---- */
.sf-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.sf-sticky-chrome .sf-main-header {
  position: relative;
  z-index: 2;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.sf-sticky-chrome .sf-site-nav {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.25s ease;
}

.sf-sticky-chrome--scrolled {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.sf-sticky-chrome--scrolled .sf-main-header {
  padding-top: 6px;
  padding-bottom: 6px;
  box-shadow: none;
}

.sf-sticky-chrome--scrolled .sf-main-header .header-logo .logo img {
  max-height: 68px;
  transition: max-height 0.25s ease;
}

.sf-sticky-chrome--scrolled .sf-site-nav {
  box-shadow: none;
}

.sf-sticky-chrome--scrolled .sf-site-nav .main-nav > li > a {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Mobile: header + search must NOT freeze — let them scroll away so content uses the full screen. */
@media (max-width: 991px) {
  .sf-sticky-chrome {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
  }

  .sf-sticky-chrome--scrolled {
    box-shadow: none !important;
  }
}

@media (min-width: 992px) {
  .sf-sticky-chrome .sf-site-nav .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sf-sticky-chrome .sf-site-nav .container::-webkit-scrollbar {
    display: none;
  }

  .sf-sticky-chrome .sf-site-nav .main-nav {
    display: flex;
    flex-wrap: nowrap;
    float: none;
    width: 100%;
    min-width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .sf-sticky-chrome .sf-site-nav .main-nav > li {
    float: none;
    flex: 0 0 auto;
  }

  .sf-sticky-chrome .sf-site-nav .main-nav > li + li {
    margin-left: 0;
  }

  .sf-sticky-chrome .sf-site-nav .main-nav > li > a {
    padding: 11px 14px;
    font-size: 12px;
    letter-spacing: 0.07em;
  }
}

/* ---- Top utility bar ---- */
.sf-top-header,
body #top-header.sf-top-header,
body.storefront-home #top-header,
body.storefront-shop #top-header,
body.storefront-product #top-header,
body.storefront-cart #top-header,
body.storefront-checkout #top-header {
  background: linear-gradient(90deg, #171a24 0%, #11141d 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 0;
  position: relative;
  z-index: 30;
}

.sf-top-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209, 0, 36, 0.25), transparent);
  pointer-events: none;
}

.sf-top-header .container {
  width: 100%;
}

.sf-top-header .header-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
}

.sf-top-header .header-links li {
  display: inline-flex;
  align-items: center;
}

.sf-top-header .header-links li a,
.sf-top-header .header-links li button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sf-header-text);
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.sf-top-header .header-links li a span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-top-header .header-links li a i,
.sf-top-header .header-links li button i {
  color: var(--sf-header-accent);
  font-size: 11px;
  flex-shrink: 0;
}

.sf-top-header .header-links li a:hover,
.sf-top-header .header-links li button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.top-contact-dropdown {
  display: none !important;
  position: relative;
}

.top-contact-dropdown summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sf-header-text);
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.top-contact-dropdown summary::-webkit-details-marker {
  display: none;
}

.top-contact-dropdown[open] summary {
  border-color: var(--sf-header-accent);
  background: var(--sf-header-accent);
  color: #fff;
}

.top-contact-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 280px;
  background: var(--sf-header-noir-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.top-contact-dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--sf-header-text);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.4;
}

.top-contact-dropdown-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.account-pill-link,
.account-pill-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.account-pill-link:hover,
.account-pill-btn:hover {
  border-color: var(--sf-header-accent) !important;
  background: var(--sf-header-accent) !important;
  color: #fff !important;
}

.header-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.locale-pill {
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  margin-left: 2px;
  color: var(--sf-header-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.locale-pill.active,
.locale-pill:hover {
  border-color: var(--sf-header-accent);
  background: var(--sf-header-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(209, 0, 36, 0.28);
}

.sf-locale-switch {
  margin-left: 4px;
}

/* ---- Main header (light template) ---- */
.sf-main-header,
body #header.sf-main-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 14px 0;
  position: relative;
  z-index: 25;
}

.sf-main-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.sf-main-header__logo-col {
  display: flex;
  align-items: center;
}

.sf-main-header .header-logo {
  float: none;
  line-height: 0;
}

.sf-main-header .header-logo .logo {
  display: inline-flex;
  align-items: center;
}

.sf-main-header .header-logo .logo img {
  max-width: 280px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: max-height 0.25s ease, max-width 0.25s ease;
}

.sf-header-search form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.sf-header-search .input-select {
  flex: 0 0 auto;
  max-width: 38%;
  border: none;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  padding: 0 14px;
  min-height: 44px;
}

.sf-header-search .input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 0;
  font-size: 14px;
  padding: 0 16px;
  min-height: 44px;
  background: #fff;
  color: #1e293b;
}

.sf-header-search .input::placeholder {
  color: #94a3b8;
}

.sf-header-search .search-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 0;
  min-height: 44px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #e11d3a 0%, var(--sf-header-accent) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sf-header-search .search-btn:hover {
  background: linear-gradient(180deg, #c40020 0%, #a8001c 100%);
  color: #fff;
}

.sf-header-ctn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  float: none !important;
}

.sf-header-ctn > div > a,
.sf-header-ctn .dropdown > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-header-ctn > div > a:hover,
.sf-header-ctn .dropdown > a:hover {
  background: rgba(209, 0, 36, 0.06);
  color: var(--sf-header-accent);
}

.sf-header-ctn i {
  font-size: 22px;
  color: #1e293b;
}

.sf-header-ctn__label {
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.sf-header-ctn .qty {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--sf-header-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.sf-header-ctn > div,
.sf-header-ctn .dropdown {
  position: relative;
}

.sf-menu-toggle {
  display: none;
}

.sf-menu-toggle__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sf-menu-toggle__btn i {
  font-size: 20px;
  color: var(--sf-header-accent);
}

/* ---- Navigation (premium centered strip) ---- */
.sf-site-nav,
body #navigation.sf-site-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-top: 3px solid var(--sf-header-accent) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.sf-site-nav .container {
  display: flex;
  justify-content: center;
}

.sf-site-nav .sf-main-nav,
.sf-site-nav .main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  float: none;
  width: 100%;
  margin: 0;
  gap: 2px;
}

.sf-site-nav .main-nav > li {
  float: none;
  margin: 0;
}

.sf-site-nav .main-nav > li + li {
  margin-left: 0;
}

.sf-site-nav .main-nav > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-family: "Plus Jakarta Sans", Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  border-radius: 10px 10px 0 0;
  background: transparent;
  transition: color 0.22s ease, background 0.22s ease;
}

.sf-site-nav .main-nav > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  width: auto;
  background: linear-gradient(90deg, #e11d3a 0%, var(--sf-header-accent) 100%);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.sf-site-nav .main-nav > li > a:hover,
.sf-site-nav .main-nav > li > a:focus {
  color: var(--sf-header-accent);
  background: rgba(209, 0, 36, 0.05);
}

.sf-site-nav .main-nav > li > a:hover::after,
.sf-site-nav .main-nav > li > a:focus::after,
.sf-site-nav .main-nav > li.active > a::after {
  transform: scaleX(1);
}

.sf-site-nav .main-nav > li.active > a {
  color: var(--sf-header-accent);
  background: rgba(209, 0, 36, 0.08);
  font-weight: 800;
}

.sf-nav-close {
  display: none;
}

.sf-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
}

.sf-nav-backdrop[hidden] {
  display: none !important;
}

/* ---- Mobile ---- */
@media (max-width: 1199px) {
  .sf-top-contact-address span {
    max-width: 160px;
  }
}

@media (max-width: 991px) {
  .sf-top-hide-sm {
    display: none !important;
  }

  .sf-top-header {
    padding: 8px 0;
  }

  .sf-top-header .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .top-contact-item {
    display: none !important;
  }

  .top-contact-dropdown {
    display: inline-flex !important;
  }

  .sf-top-header .header-links.pull-left,
  .sf-top-header .header-links.pull-right {
    float: none !important;
    width: 100%;
    justify-content: flex-start;
  }

  .sf-top-header .header-links.pull-right {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sf-main-header {
    padding: 12px 0;
  }

  .sf-main-header__logo-col {
    text-align: center;
    margin-bottom: 12px;
  }

  .sf-main-header .header-logo .logo img {
    max-width: 240px;
    max-height: 78px;
    margin: 0 auto;
  }

  .sf-main-header__search-col {
    margin-bottom: 12px;
  }

  .sf-header-search .input-select {
    max-width: 42%;
    font-size: 11px;
    padding: 0 10px;
  }

  .sf-header-search .input {
    font-size: 13px;
    padding: 0 12px;
  }

  .sf-header-ctn {
    justify-content: center;
    width: 100%;
  }

  .sf-menu-toggle {
    display: block !important;
  }

  body .menu-toggle {
    display: block !important;
  }

  .sf-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
  }

  #responsive-nav.sf-responsive-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 56px 0 24px;
    background: linear-gradient(180deg, var(--sf-header-noir-mid) 0%, var(--sf-header-noir) 100%);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #responsive-nav.sf-responsive-nav.active {
    transform: translateX(0);
  }

  .sf-site-nav .main-nav {
    float: none;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .sf-site-nav .main-nav > li {
    float: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .sf-site-nav .main-nav > li > a {
    display: block;
    padding: 14px 20px;
    color: #e2e8f0;
    font-size: 13px;
  }

  .sf-site-nav .main-nav > li.active > a {
    color: var(--sf-header-gold);
    background: rgba(201, 168, 108, 0.08);
  }

  #navigation.sf-site-nav .container {
    padding: 0;
  }

  #navigation.sf-site-nav {
    border: none;
    box-shadow: none;
    background: transparent;
    min-height: 0;
  }

  /* Do not let the nav create a stacking context on mobile, otherwise the
     fixed drawer (z-index 999) gets trapped below the backdrop (z-index 998). */
  .sf-sticky-chrome .sf-site-nav,
  #navigation.sf-site-nav {
    position: static;
    z-index: auto;
  }

  /* Backdrop below the drawer, above everything else */
  .sf-nav-backdrop {
    z-index: 1200;
  }

  #responsive-nav.sf-responsive-nav {
    z-index: 1300;
  }
}

@media (max-width: 767px) {
  .sf-header-search form {
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .sf-header-search .input-select {
    flex: 1 1 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
  }

  .sf-header-search .input {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .sf-header-search .search-btn {
    flex: 1 1 100%;
    border-radius: 0 0 14px 14px;
    min-height: 44px;
  }

  .sf-header-ctn__label {
    display: none;
  }

  .sf-header-ctn > div > a,
  .sf-header-ctn .dropdown > a,
  .sf-menu-toggle__btn {
    min-width: 56px;
    padding: 10px 8px;
  }

  .account-pill-link,
  .account-pill-btn {
    padding: 5px 9px !important;
    font-size: 10px !important;
  }

  .locale-pill {
    padding: 4px 8px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .sf-top-header .header-links.pull-right {
    justify-content: center;
  }
}

/* Global mobile polish */
@media (max-width: 991px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  #responsive-nav.sf-responsive-nav {
    transition-duration: 0.01ms !important;
  }
}
