/**
 * Fashion shared topbar — same chrome as Fashion Shop V3
 * Scope: body.fx-fashion-chrome
 */

body.fx-fashion-chrome {
  --fx-ink: #111111;
  --fx-muted: #737373;
  --fx-line: rgba(17, 17, 17, 0.08);
  --fx-soft: #f5f5f4;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-nav-h: 56px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--fx-nav-h) !important;
}

body.fx-fashion-chrome .shop-nav.fx-topbar,
body.fx-fashion-chrome nav.shop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--fx-nav-h) !important;
  min-height: var(--fx-nav-h);
  padding: 0 0.85rem !important;
  gap: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid var(--fx-line) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: none !important;
}

body.fx-fashion-chrome .shop-nav > a.shop-nav-back {
  flex-shrink: 0;
  color: var(--fx-ink) !important;
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.7;
  gap: 0.3rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
body.fx-fashion-chrome .shop-nav > a.shop-nav-back .track-txt { display: none; }
@media (min-width: 720px) {
  body.fx-fashion-chrome .shop-nav > a.shop-nav-back .track-txt { display: inline; }
}

body.fx-fashion-chrome .shop-nav-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
}

body.fx-fashion-chrome .shop-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

body.fx-fashion-chrome .shop-nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fx-soft);
}

body.fx-fashion-chrome .shop-nav-logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fx-ink);
}

body.fx-fashion-chrome .shop-nav .brand {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 650 !important;
  font-style: normal !important;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem) !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--fx-ink) !important;
  max-width: min(46vw, 200px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.fx-fashion-chrome .shop-nav-right {
  display: flex;
  align-items: center;
  gap: 0.1rem !important;
  flex-shrink: 0;
}

body.fx-fashion-chrome .shop-search-field {
  position: relative;
  max-width: 148px;
  margin-right: 0.15rem;
}
body.fx-fashion-chrome .shop-search-field > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--fx-muted);
  pointer-events: none;
}
@media (min-width: 768px) {
  body.fx-fashion-chrome .shop-search-field { max-width: 200px; }
}
@media (max-width: 520px) {
  body.fx-fashion-chrome .shop-search-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  body.fx-fashion-chrome .shop-nav-right .shop-nav-icon--search-mobile {
    display: inline-flex !important;
  }
}

body.fx-fashion-chrome .shop-nav-search {
  width: 100%;
  height: 34px !important;
  line-height: 34px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--fx-soft) !important;
  font-size: 0.78rem !important;
  padding: 0 12px 0 32px !important;
  -webkit-appearance: none;
  appearance: none;
}
body.fx-fashion-chrome .shop-nav-search:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
  background: #fff !important;
}

body.fx-fashion-chrome .shop-nav-icon,
body.fx-fashion-chrome .shop-nav .cart-link {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  color: var(--fx-ink) !important;
  background: transparent;
  border: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  font-size: 0.95rem !important;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background 0.25s var(--fx-ease);
}
body.fx-fashion-chrome .shop-nav-icon:hover,
body.fx-fashion-chrome .shop-nav .cart-link:hover {
  background: var(--fx-soft);
  opacity: 1;
}
body.fx-fashion-chrome .shop-nav-icon--search-mobile { display: none !important; }
body.fx-fashion-chrome .shop-nav .whatsapp-nav-btn { display: none !important; }
body.fx-fashion-chrome .shop-nav .cart-badge {
  position: absolute;
  top: 2px !important;
  right: 2px !important;
  background: var(--fx-ink) !important;
  color: #fff !important;
  font-size: 0.55rem !important;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Menu drawer */
body.fx-fashion-chrome .fx-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}
body.fx-fashion-chrome .fx-menu-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
body.fx-fashion-chrome .fx-menu-drawer__back {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  opacity: 0;
  transition: opacity 0.3s var(--fx-ease);
}
body.fx-fashion-chrome .fx-menu-drawer.is-open .fx-menu-drawer__back { opacity: 1; }
body.fx-fashion-chrome .fx-menu-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100%;
  background: #fff;
  padding: 1.15rem 1.15rem 2rem;
  transform: translateX(104%);
  transition: transform 0.4s var(--fx-ease);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
body.fx-fashion-chrome .fx-menu-drawer.is-open .fx-menu-drawer__panel { transform: translateX(0); }
body.fx-fashion-chrome .fx-menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
body.fx-fashion-chrome .fx-menu-drawer__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.fx-fashion-chrome .fx-menu-drawer__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--fx-soft);
  cursor: pointer;
}
body.fx-fashion-chrome .fx-menu-drawer a,
body.fx-fashion-chrome .fx-menu-drawer__filters {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.3rem;
  color: var(--fx-ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.92rem;
  border: 0;
  border-bottom: 1px solid var(--fx-line);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Hide legacy strips under fashion chrome */
body.fx-fashion-chrome > .shop-strip,
body.fx-fashion-chrome .sgf-strip {
  display: none !important;
}
