/* Top Header Promo Banner - Full width & full height image display, scrolls naturally with body content */
.top-header-banner {
  width: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 99;
}

.top-banner-link {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}

.top-banner-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

.top-banner-link:hover .top-banner-img {
  opacity: 0.95;
}

/* Mobile responsive banner crop and height adjustments */
@media (max-width: 768px) {
  .top-banner-img {
    height: var(--mobile-banner-height, 85px);
    object-fit: cover;
    object-position: var(--mobile-banner-crop, center center);
  }
}

/* Header Group Container (Enables Top Banner, Announcement & Header reordering while keeping scroll & sticky behavior) */
#headerGroupWrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Sticky Main Navigation Header */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #000000;
  border-bottom: 1px solid #222222;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

/* Light theme overrides for sticky header if background is white */
.site-header.is-sticky.light-theme,
.site-header[data-theme="light"].is-sticky {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.is-sticky.light-theme .logo-text,
.site-header[data-theme="light"].is-sticky .logo-text,
.site-header.is-sticky.light-theme .nav-link,
.site-header[data-theme="light"].is-sticky .nav-link,
.site-header.is-sticky.light-theme .currency-select,
.site-header[data-theme="light"].is-sticky .currency-select,
.site-header.is-sticky.light-theme .header-action-btn,
.site-header[data-theme="light"].is-sticky .header-action-btn {
  color: #111111;
}

.site-header.is-sticky.light-theme .header-action-btn svg,
.site-header[data-theme="light"].is-sticky .header-action-btn svg {
  stroke: #111111;
}

/* Announcement Bar Marquee - Pixie Rebels Crimson Red */
.announcement-bar {
  background-color: #a81c1c; /* Dark Crimson Red */
  color: var(--color-white);
  height: 32px;
  overflow: hidden;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  width: 100%;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.5rem;
  color: inherit;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Header */
.site-header {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  background-color: #000000; /* Pixie Rebels Solid Black */
  border-bottom: 1px solid #222222;
  z-index: 100;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-logo-link {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}

.logo-subtext {
  font-family: var(--font-script);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #aaaaaa;
  display: block;
}

/* Nav Desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.sale-link {
  color: #ff3333 !important;
}

.nav-link.sale-link::after {
  background-color: #ff3333 !important;
}

.mobile-direct-link.sale-highlight {
  color: #ff3333 !important;
}

/* Pixie Rebels Style Full-Width Mega Menu */
.has-dropdown {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000000;
  border-top: 1px solid #1c1c1c;
  border-bottom: 1px solid #222222;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
}

/* Hover bridge to prevent flickering when moving cursor from nav link */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu,
.mega-menu:hover,
.mega-menu.force-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.mega-menu-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 180px 240px 180px 1fr;
  gap: 3rem;
  align-items: start;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-menu-title {
  font-family: var(--font-headline), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu-list li {
  margin: 0;
}

.mega-menu-list a {
  font-family: var(--font-headline), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d1d5db;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1.4;
}

.mega-menu-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Featured Column */
.mega-col-featured {
  display: flex;
  justify-content: flex-end;
}

.mega-menu-featured {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 520px;
  text-decoration: none;
  cursor: pointer;
}

.mega-featured-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111111;
  border: 1px solid #1f1f1f;
}

.mega-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mega-menu-featured:hover .mega-featured-img {
  transform: scale(1.03);
}

.mega-featured-title {
  font-family: var(--font-headline), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.15s ease;
}

.mega-menu-featured:hover .mega-featured-title {
  color: #ff3333;
}

@media (max-width: 1024px) {
  .mega-menu-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.75rem 1rem;
  }
  .mega-col-featured {
    grid-column: span 2;
    justify-content: flex-start;
  }
  .mega-menu-featured {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mega-col-featured {
    grid-column: span 1;
  }
}

/* Header Center Logo */
.header-logo {
  text-align: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

.header-custom-logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-subtext {
  font-family: var(--font-script);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  display: block;
  margin-top: -2px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

/* Currency Selector Button */
.currency-selector {
  display: inline-flex;
  align-items: center;
}

.currency-selector select,
#currencySelect,
.currency-select {
  background-color: var(--currency-btn-bg, #ffffff);
  color: var(--currency-btn-color, #000000);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.currency-selector select option,
#currencySelect option,
.currency-select option {
  background-color: #18181b;
  color: #ffffff;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff; /* White icons on black header */
  position: relative;
  padding: 6px;
  transition: opacity var(--transition-fast);
}

.action-btn:hover {
  opacity: 0.75;
}

.action-icon {
  width: 20px;
  height: 20px;
}

.action-badge {
  position: absolute;
  top: 0px;
  right: -2px;
  background-color: #333333;
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-badge.cart-badge {
  background-color: var(--color-red);
}

.mobile-only-btn {
  display: none;
}

/* Search Modal - Matching Image 3 (Full Screen) */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #e6e6e6; /* Full page light gray backdrop */
  z-index: 2000;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 60px 20px 40px 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.search-modal.active {
  transform: translateY(0);
}

.search-bar-row {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #000000;
  height: 40px;
  padding: 0 12px;
  border-radius: 0px;
}

.search-input-box .search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: #111111;
  padding: 0;
}

.search-input-box .search-input::placeholder {
  color: #888888;
}

.search-sale-tag {
  color: #e50000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-right: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.search-sale-tag:hover {
  opacity: 0.8;
}

.search-submit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #111111;
  transition: opacity 0.2s;
}

.search-submit-btn:hover {
  opacity: 0.7;
}

.search-close-x-btn {
  background: none;
  border: none;
  color: #ffffff; /* White close X on light gray background */
  font-size: 1.3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.search-close-x-btn:hover {
  opacity: 0.7;
}

.search-results-grid {
  max-width: 900px;
  margin: 30px auto 0 auto;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}


/* Mobile Hamburger Toggle Button (3 gạch) */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-hamburger-btn {
    display: flex !important;
  }
}

/* Mobile Off-canvas Navigation Drawer (Matching Pixie Rebels - Right Slide-in) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0; /* Slide in from right */
  left: auto;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 1003;
  transform: translateX(100%);
  transition: transform var(--transition-smooth, 0.3s ease);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.mobile-drawer.active,
.mobile-drawer.open {
  transform: translateX(0) !important;
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebebeb;
}

.mobile-drawer-logo .logo-text {
  color: #000000;
  font-size: 1.6rem;
}

.mobile-drawer-content {
  flex: 1;
  padding: 0 1.5rem;
  overflow-y: auto;
}

/* Accordions inside mobile menu */
.mobile-menu-accordion {
  border-bottom: 1px solid #eeeeee;
}

.mobile-sub-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 10px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e4e4e7;
}

.mobile-accordion-header {
  width: 100%;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  background: none;
  cursor: pointer;
}

.mobile-chevron {
  font-size: 1rem;
  transition: transform var(--transition-normal);
}

.mobile-menu-accordion.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-body {
  display: none;
  padding-bottom: 1.25rem;
}

.mobile-menu-accordion.open .mobile-accordion-body {
  display: block;
}

.mobile-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-sub-list a {
  font-size: 0.88rem;
  color: #555555;
  font-weight: 500;
  display: block;
}

.mobile-sub-list a:hover {
  color: #000000;
}

/* Embedded promo card in menu */
.mobile-menu-promo {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 110px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.mobile-menu-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.mobile-promo-overlay {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.mobile-promo-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffcccc;
}

.mobile-promo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Direct Links */
.mobile-direct-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eeeeee;
}

.mobile-direct-link {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
}

.mobile-direct-link.sale-highlight {
  color: #e50000;
  font-weight: 800;
}

/* Drawer Social Footer */
.mobile-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid #eeeeee;
  background: #fafafa;
}

.mobile-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mobile-social-box {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  color: #000000;
  transition: all var(--transition-fast);
}

.mobile-social-box:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
