/* Virgo header — dark glass + bottom navigation */

:root {
  --pf-header-height: 168px;
  --pf-accent: #5fbbc8;
  --pf-accent-soft: rgba(95, 187, 200, 0.14);
  --pf-accent-line: rgba(95, 187, 200, 0.38);
  --pf-header-bg: rgba(0, 0, 0, 0.82);
  --pf-header-border: rgba(255, 255, 255, 0.08);
  --pf-mega-surface: #f7fbfc;
  --pf-mega-surface-alt: #ecf6f8;
  --pf-mega-border: rgba(95, 187, 200, 0.28);
  --pf-mega-text: #243a40;
  --pf-mega-text-muted: #5a7278;
}

@media (max-width: 991.98px) {
  :root {
    --pf-header-height: 92px;
  }
}

/* ---- Promo top strip ---- */
.pf-topbar {
  background: rgba(0, 0, 0, 0.95);
  color: #f0f0f0;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--pf-header-border);
  width: 100%;
}

.pf-topbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 420px) minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  min-height: 36px;
  padding: 0.4rem 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.pf-topbar-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.pf-topbar-col--left {
  justify-content: flex-start;
}

.pf-topbar-contact {
  gap: 0.65rem;
}

.pf-topbar-phone,
.pf-topbar-email {
  white-space: nowrap;
}

.pf-topbar-col--right {
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.pf-topbar-col--center {
  justify-content: center;
  gap: 0.35rem;
  max-width: 420px;
  justify-self: center;
}

.pf-topbar-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  user-select: none;
}

.pf-topbar-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.75rem;
  transition: color 0.15s;
}

.pf-topbar-col a:hover {
  color: var(--pf-accent);
}

.pf-topbar-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.pf-topbar-arrow:hover {
  color: var(--pf-accent);
}

.pf-promo-swiper {
  flex: 1;
  min-width: 0;
  height: 1.25rem;
  overflow: hidden;
}

.pf-promo-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-topbar-promo-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem 0.5rem;
  border-top: 1px solid var(--pf-header-border);
  max-width: 1440px;
  margin: 0 auto;
}

.pf-topbar-promo-mobile .pf-promo-swiper {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .pf-topbar-promo-mobile {
    border-top: none;
    padding-top: 0.45rem;
  }
}

/* ---- Main header (glass dark) ---- */
.pf-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: var(--pf-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--pf-header-border);
}

.pf-main-header {
  border-bottom: 1px solid var(--pf-header-border);
}

.pf-main-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  min-height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.pf-menu-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pf-menu-icon {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

.pf-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.pf-header .pf-header-logo {
  height: 46px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  position: static !important;
  transform: none !important;
}

.pf-main-header-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pf-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pf-search-trigger:hover {
  border-color: var(--pf-accent-line);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.pf-search-trigger i {
  color: rgba(255, 255, 255, 0.7);
}

.pf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.pf-action-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.pf-action-item--btn {
  font: inherit;
}

.pf-action-item:hover,
.pf-action-item:focus-visible {
  color: var(--pf-accent);
  background: rgba(255, 255, 255, 0.1);
}

.pf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  transition: background 0.15s, color 0.15s;
}

.pf-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pf-accent);
}

/* ---- Bottom navigation bar (mega bar) ---- */
.pf-nav-bar {
  background: rgba(0, 0, 0, 0.55);
  border-top: 2px solid var(--pf-accent-line);
}

.pf-nav-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

.pf-category-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  min-height: 46px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-accent-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.pf-category-nav::-webkit-scrollbar {
  height: 4px;
}

.pf-category-nav::-webkit-scrollbar-thumb {
  background: var(--pf-accent-line);
  border-radius: 4px;
}

.pf-nav-item {
  flex-shrink: 0;
  position: relative;
}

.pf-nav-item + .pf-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--pf-accent-line);
  pointer-events: none;
  z-index: 1;
}

.pf-nav-item:nth-child(odd) .pf-nav-link {
  background: rgba(95, 187, 200, 0.06);
}

.pf-nav-item:nth-child(even) .pf-nav-link {
  background: rgba(255, 255, 255, 0.03);
}

.pf-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pf-nav-link:hover,
.pf-nav-item.is-active .pf-nav-link,
.pf-nav-link.is-current {
  color: var(--pf-accent);
  border-bottom-color: var(--pf-accent);
  background: var(--pf-accent-soft) !important;
}

.pf-nav-item--static .pf-nav-link.is-current {
  background: var(--pf-accent-soft) !important;
}

/* ---- Mega menu flyout ---- */
.pf-mega-flyout {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--pf-mega-surface);
  border-top: 2px solid var(--pf-accent);
  box-shadow: 0 16px 40px rgba(36, 58, 64, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1020;
}

.pf-mega-flyout.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pf-mega-flyout-inner {
  display: flex;
  gap: 0;
  padding: 0;
  max-width: 1440px;
  margin: 0 auto;
  max-height: min(70vh, 460px);
  width: 100%;
}

.pf-mega-panels {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 0.5rem 0;
  width: 100%;
  max-width: 100%;
}

.pf-mega-panel {
  display: none;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.pf-mega-panel.is-active {
  display: flex;
}

.pf-mega-column {
  flex: 0 0 auto;
  width: 180px;
  min-width: 140px;
  padding: 1rem 1.15rem;
}

.pf-mega-column:last-of-type {
  border-right: none;
}

.pf-mega-column:nth-child(odd) {
  background: var(--pf-mega-surface-alt);
}

.pf-mega-column:nth-child(even) {
  background: var(--pf-mega-surface);
}

.pf-mega-column-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;

}

.pf-mega-column-title a {
  color: var(--pf-mega-text);
  text-decoration: none;
}

.pf-mega-column-title a:hover {
  color: var(--pf-accent);
}

.pf-mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
}



.pf-mega-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--pf-mega-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  line-height: 1.45;
}

.pf-mega-links a:hover {
  color: var(--pf-accent);
}

.pf-mega-preview-wrap {
  display: none;
}

.pf-mega-preview-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pf-mega-border);
  transition: opacity 0.2s;
}

.pf-mega-view-all {
  align-self: center;
  margin: 0.75rem 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pf-accent);
  text-decoration: none;
  border: 1px solid var(--pf-mega-border);
  border-radius: 6px;
  background: var(--pf-mega-surface);
  white-space: nowrap;
}

.pf-mega-view-all:hover {
  background: var(--pf-accent-soft);
  border-color: var(--pf-accent);
}
@media (max-width: 400px) {
    .pf-action-item {
    width: 1.65rem!important;
    height: 1.65rem!important;
    font-size: .9rem;
  }
}
/* ---- Mobile layout ---- */
@media (max-width: 991.98px) {
  .pf-menu-toggler {
    display: inline-flex !important;
    flex-shrink: 0;
  }

  .pf-main-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    min-height: 56px;
  }

  .pf-main-header-start {
    flex: 0 0 auto;
    z-index: 2;
  }

  .pf-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: auto;
  }

  .pf-menu-toggler,
  .pf-header-actions {
    position: relative;
    z-index: 2;
  }

  .pf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0;
  }

  .pf-action-item {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.1rem;
  }

  .pf-header .pf-header-logo {
    height: 42px;
    max-width: 120px;
  }

  .pf-mega-flyout {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .pf-main-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .pf-main-header-start {
    flex: 1 1 0;
    min-width: 0;
  }

  .pf-search-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 46vw);
    max-width: 480px;
    margin: 0;
    z-index: 3;
    pointer-events: auto;
  }

  .pf-header-actions {
    flex: 1 1 0;
    justify-content: flex-end;
    margin-left: 0;
    min-width: 0;
    position: relative;
    z-index: 4;
  }

  .pf-main-header-start {
    position: relative;
    z-index: 4;
  }
}

/* ---- Mobile offcanvas (id avoids legacy #navbarNav white overrides) ---- */
#pfMobileMenu.pf-mobile-nav.offcanvas {
  background: #111 !important;
  color: #f5f5f5 !important;
}

#pfMobileMenu.pf-mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--pf-header-border);
  background: #0a0a0a !important;
}

#pfMobileMenu.pf-mobile-nav .offcanvas-body {
  background: #111 !important;
  color: #f5f5f5 !important;
}

#pfMobileMenu.pf-mobile-nav .btn-close {
  filter: invert(1);
}

#pfMobileMenu .pf-mobile-menu-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.pf-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pf-header-border);
}

#pfMobileMenu .pf-mobile-nav-link {
  display: block;
  padding: 0.65rem 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

#pfMobileMenu .pf-mobile-nav-link.is-current,
#pfMobileMenu .pf-mobile-nav-link:hover {
  color: var(--pf-accent) !important;
}

#pfMobileMenu .pf-mobile-cats-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 0 0.5rem;
}

.pf-mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pf-header-border);
}

.pf-mobile-cat-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#pfMobileMenu .pf-mobile-cat-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
}

#pfMobileMenu .pf-mobile-cat-body {
  padding: 0 0 0.75rem 0.5rem;
}

#pfMobileMenu .pf-mobile-sub-list,
#pfMobileMenu .pf-mobile-child-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
}

#pfMobileMenu .pf-mobile-sub-list li,
#pfMobileMenu .pf-mobile-child-list li {
  padding: 0.35rem 0;
}

#pfMobileMenu .pf-mobile-sub-list a,
#pfMobileMenu .pf-mobile-child-list a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  font-size: 0.875rem;
}

#pfMobileMenu .pf-mobile-sub-list a:hover,
#pfMobileMenu .pf-mobile-child-list a:hover {
  color: var(--pf-accent) !important;
}

@media (max-width: 991.98px) {
  #pfMobileMenu.pf-mobile-nav.offcanvas.show {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden;
    margin-left: 0 !important;
    width: min(320px, 90vw) !important;
  }

  #pfMobileMenu .pf-offcanvas-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem !important;
  }
}
