:root {
  --vyro-header-height: 72px;
  --vyro-header-height-scrolled: 60px;
  --vyro-tab-bar-height: 64px;
  --vyro-z-sticky: 500;
  --vyro-color-border: #e2e8f0;
  --vyro-color-accent: #6d28d9;
  --vyro-color-accent-soft: rgba(109, 40, 217, 0.1);
  --vyro-color-text-muted: #64748b;
}

/* -----------------------------------------
   ANNOUNCEMENT BAR
----------------------------------------- */
.vyro-announcement {
  background: linear-gradient(90deg, #8b5cf6, #4f46e5);
  color: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  z-index: calc(var(--vyro-z-sticky) + 1);
  overflow: hidden;
}

.vyro-announcement.is-hidden {
  display: none !important;
}

.vyro-announcement__content {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.vyro-announcement__content a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* Optional Marquee */
.vyro-announcement__content.is-marquee {
  white-space: nowrap;
  animation: vyro-marquee 20s linear infinite;
}
@keyframes vyro-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.vyro-announcement__dismiss {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.vyro-announcement__dismiss:hover {
  opacity: 1;
}

/* -----------------------------------------
   SITE HEADER
----------------------------------------- */
.vyro-site-header {
  position: sticky;
  top: 0;
  z-index: var(--vyro-z-sticky);
  width: 100%;
  transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  height: var(--vyro-header-height);
  display: flex;
  align-items: center;
}

/* Dark Mode */
.vyro-site-header[data-vyro-header="dark"],
.vyro-site-header--dark {
  background-color: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
}
.vyro-site-header[data-vyro-header="dark"] .vyro-menu__link {
  color: #fff;
}

/* Light Mode */
.vyro-site-header[data-vyro-header="light"],
.vyro-site-header--light {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0f172a;
  border-bottom: 1px solid var(--vyro-color-border);
}
.vyro-site-header[data-vyro-header="light"] .vyro-menu__link {
  color: #0f172a;
}

/* Transparent Mode */
.vyro-site-header[data-vyro-header="transparent"] {
  background-color: transparent;
  color: #fff;
  border-bottom: none;
}
.vyro-site-header[data-vyro-header="transparent"] .vyro-menu__link {
  color: #fff;
}

/* Scrolled State */
.vyro-site-header.is-scrolled {
  height: var(--vyro-header-height-scrolled);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Hide on Scroll Up */
.vyro-site-header.is-hidden-up {
  transform: translateY(-100%);
}

.vyro-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------
   NAVIGATION & MEGA MENU
----------------------------------------- */
.vyro-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.vyro-menu__link {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vyro-menu__link:hover,
.vyro-menu__link:active,
.vyro-menu__link.is-active {
  background-color: var(--vyro-color-accent-soft);
  color: var(--vyro-color-accent) !important;
}

.vyro-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--vyro-color-accent);
  padding: 32px 24px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.vyro-menu-item.has-mega-menu:hover .vyro-mega-menu {
  display: grid;
}

/* -----------------------------------------
   HEADER ACTIONS & BADGES
----------------------------------------- */
.vyro-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vyro-header-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  position: relative;
}
.vyro-header-action-btn:hover {
  background-color: var(--vyro-color-accent-soft);
  color: var(--vyro-color-accent);
}
.vyro-header-action-btn:active {
  transform: scale(0.96);
}

.vyro-search-trigger:focus {
  animation: vyro-pulse 1s;
}

@keyframes vyro-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.vyro-cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: var(--vyro-color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.vyro-cart-badge.is-updated {
  animation: vyro-badge-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vyro-badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); background-color: #ec4899; }
  100% { transform: scale(1); }
}

/* -----------------------------------------
   MOBILE NAV DRAWER
----------------------------------------- */
.vyro-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: #0f172a;
  color: #fff;
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.vyro-mobile-nav.is-open {
  right: 0;
}

.vyro-mobile-nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vyro-mobile-nav__overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* -----------------------------------------
   MOBILE BOTTOM TAB BAR (NEW)
----------------------------------------- */
.vyro-mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--vyro-z-sticky);
  height: var(--vyro-tab-bar-height);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--vyro-color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: stretch;
}

body.has-tab-bar {
  padding-bottom: calc(var(--vyro-tab-bar-height) + env(safe-area-inset-bottom, 0));
}

.vyro-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--vyro-color-text-muted);
  transition: color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  position: relative;
}

.vyro-tab-item:active {
  transform: scale(0.95);
}

.vyro-tab-item__icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vyro-tab-item__icon svg {
  width: 100%;
  height: 100%;
}

.vyro-tab-item__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vyro-tab-item.is-active {
  color: var(--vyro-color-accent);
}

.vyro-tab-item.is-active::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--vyro-color-accent);
  border-radius: 50%;
}

.vyro-tab-item__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--vyro-color-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  height: 14px;
  min-width: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* -----------------------------------------
   RESPONSIVE BREAKPOINTS
----------------------------------------- */
@media (max-width: 1023px) {
  .vyro-menu {
    display: none; /* Hide desktop nav on mobile */
  }
}

@media (min-width: 1024px) {
  .vyro-mobile-nav,
  .vyro-mobile-nav__overlay,
  .vyro-mobile-tab-bar {
    display: none !important;
  }
  
  body.has-tab-bar {
    padding-bottom: 0;
  }
}
