/**
 * ITALIST PIXEL-PERFECT STYLES
 * Complete CSS for all interactive functionality
 */

/* ============================================
   MEGA MENU HOVER STYLES
   ============================================ */

/* Hover box base - hidden by default */
.hover-box {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 400px;
  background: #f5f5f5;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Hidden state */
.hover-box.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Navigation content container */
.navigation-content-container {
  display: flex;
  padding: 15px;
}

.main-links-container {
  padding-right: 25px;
}

.designers-links-container {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px 15px;
}

/* Navigation links in dropdown */
.nav-content-link {
  display: block;
  color: #2d1f1f;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 13px;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.nav-content-link:hover {
  color: #000;
  text-decoration: underline;
}

/* ============================================
   DEPARTMENT TOGGLE STYLES
   ============================================ */

/* Active department link styling */
.header-department-box-container .fallback-link {
  cursor: pointer;
  text-decoration: none;
}

.header-department-box-container .fallback-link.dept-active .department-text {
  font-family: 'Maison Neue Demi', 'Arial Black', sans-serif !important;
  font-weight: bold !important;
}

/* Department text active/inactive states managed by JSX classes */
.department-text.jsx-2005615775 {
  font-family: 'Maison Neue Demi', 'Arial Black', sans-serif;
  font-weight: bold;
}

.department-text.jsx-2522988750 {
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-weight: 400;
}

/* ============================================
   MOBILE HEADER (Floating bar at bottom of hero)
   ============================================ */

/* Hide on desktop */
.italist-mobile-header {
  display: none;
}

@media (max-width: 1023px) {
  /* Show mobile header */
  .italist-mobile-header {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    z-index: 100;
    gap: 10px;
    align-items: center;
  }

  /* Hide desktop navigation on mobile */
  .nav-menu-wrapper,
  .header-container,
  .navigation-menu-wrapper {
    display: none !important;
  }

  /* Ensure hero container is positioned for absolute children */
  .hero-image-container {
    position: relative;
  }
}

/* Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(153, 153, 153, 0.2);
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  color: white;
  cursor: pointer;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 14px;
}

.mobile-menu-btn svg {
  width: 20px;
  height: 12px;
}

/* Search Button */
.mobile-search-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(153, 153, 153, 0.2);
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  color: white;
  cursor: pointer;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 14px;
}

.mobile-search-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.mobile-search-btn span {
  opacity: 0.8;
}

/* Wishlist Button */
.mobile-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(153, 153, 153, 0.2);
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  color: white;
  text-decoration: none;
}

.mobile-wishlist-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   MOBILE DRAWER MENU
   ============================================ */

.italist-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.italist-mobile-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.drawer-logo {
  height: 24px;
}

.drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.drawer-close svg {
  width: 24px;
  height: 24px;
}

/* Department Tabs */
.drawer-dept-tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.drawer-dept-tab {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-dept-tab.active {
  color: #2d1f1f;
  border-bottom-color: #2d1f1f;
  font-family: 'Maison Neue Demi', Arial, sans-serif;
}

/* Drawer Navigation */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.drawer-nav-section {
  padding: 10px 0;
}

.drawer-nav-link {
  display: block;
  padding: 16px 20px;
  color: #2d1f1f;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.drawer-nav-link.highlight {
  color: #c00;
  font-family: 'Maison Neue Demi', Arial, sans-serif;
}

.drawer-nav-link:hover {
  background: #f9f9f9;
}

/* Expandable Menu Items */
.drawer-nav-expandable {
  border-bottom: 1px solid #f0f0f0;
}

.drawer-nav-expand-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 16px;
  color: #2d1f1f;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-expand-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.drawer-nav-expand-btn.open svg {
  transform: rotate(180deg);
}

/* Submenu */
.drawer-nav-submenu {
  display: none;
  background: #f9f9f9;
  padding: 0 20px;
}

.drawer-nav-submenu.open {
  display: block;
}

.drawer-nav-submenu a {
  display: block;
  padding: 12px 15px;
  color: #666;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.drawer-nav-submenu a:last-child {
  border-bottom: none;
}

.drawer-nav-submenu a:hover {
  color: #2d1f1f;
}

/* Drawer Footer */
.drawer-footer {
  padding: 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.drawer-auth-btn {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  font-family: 'Maison Neue Demi', Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.drawer-auth-btn:not(.secondary) {
  background: #2d1f1f;
  color: white;
}

.drawer-auth-btn:not(.secondary):hover {
  background: #1a1212;
}

.drawer-auth-btn.secondary {
  background: transparent;
  color: #2d1f1f;
  border: 1px solid #2d1f1f;
}

.drawer-auth-btn.secondary:hover {
  background: #f5f5f5;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.italist-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.italist-search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.italist-search-modal.open .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.search-modal-input {
  flex: 1;
  border: none;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 16px;
  padding: 10px;
  outline: none;
}

.search-modal-input::placeholder {
  color: #999;
}

.search-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.search-modal-close svg {
  width: 24px;
  height: 24px;
}

.search-modal-suggestions {
  padding: 15px;
}

.search-suggestion-title {
  font-family: 'Maison Neue Demi', Arial, sans-serif;
  font-size: 12px;
  color: #666;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-modal-suggestions a {
  display: block;
  padding: 10px 0;
  color: #2d1f1f;
  font-family: 'Maison Neue Book', Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.search-modal-suggestions a:last-child {
  border-bottom: none;
}

.search-modal-suggestions a:hover {
  color: #000;
}

/* ============================================
   HERO IMAGE DEPARTMENT SWITCHING
   ============================================ */

.hero-image {
  transition: background 0.5s ease-in-out !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Department-specific hero backgrounds via CSS (fallback) */
body.dept-women .hero-image.jsx-3970551290 {
  background: url('../images/women-box-2.jpg') center/cover no-repeat !important;
}

body.dept-men .hero-image.jsx-3970551290 {
  background: url('../images/mobile_slider_02_men.jpg') center/cover no-repeat !important;
}

body.dept-kids .hero-image.jsx-3970551290 {
  background: url('../images/mobile_slider_03_kid.jpg') center/cover no-repeat !important;
}

/* Hero height adjustments for mobile */
@media (max-width: 1023px) {
  .hero-image {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-image-container {
    position: relative;
  }
}

/* ============================================
   DESKTOP NAVIGATION IMPROVEMENTS
   ============================================ */

@media (min-width: 1024px) {
  /* Hide mobile elements on desktop */
  .italist-mobile-header,
  .italist-mobile-drawer,
  .italist-search-modal {
    display: none !important;
  }

  /* Ensure navigation is visible */
  .nav-menu-wrapper,
  .navigation-menu-wrapper {
    display: flex !important;
  }

  /* Navigation link hover effect */
  .nav-link {
    position: relative;
  }

  .nav-link:hover .nav-link-text {
    text-decoration: underline;
  }

  /* Position hover boxes correctly */
  .navigation-menu-wrapper > div {
    position: relative;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide elements per department */
body.dept-women [data-dept="men"]:not(.fallback-link):not(.drawer-dept-tab),
body.dept-women [data-dept="kids"]:not(.fallback-link):not(.drawer-dept-tab) {
  display: none !important;
}

body.dept-men [data-dept="women"]:not(.fallback-link):not(.drawer-dept-tab),
body.dept-men [data-dept="kids"]:not(.fallback-link):not(.drawer-dept-tab) {
  display: none !important;
}

body.dept-kids [data-dept="women"]:not(.fallback-link):not(.drawer-dept-tab),
body.dept-kids [data-dept="men"]:not(.fallback-link):not(.drawer-dept-tab) {
  display: none !important;
}

/* Smooth transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2d1f1f;
  outline-offset: 2px;
}

/* ============================================
   FIX: Original site JSX class overrides
   ============================================ */

/* Ensure proper positioning */
.jsx-3970551290.hero-image-container {
  position: relative;
}

.jsx-3443632039.nav-menu-wrapper {
  position: relative;
}

/* Mobile override for header */
@media (max-width: 1023px) {
  .jsx-3443632039.header-container,
  .jsx-3443632039.nav-menu-wrapper {
    display: none !important;
  }
}

/* ============================================
   DEPARTMENT NAVIGATION SWITCHING
   ============================================ */

/* Navigation menus with data-dept attribute */
.navigation-menu-wrapper[data-dept] {
  display: none;
}

.navigation-menu-wrapper[data-dept="women"] {
  display: flex;
}

body.dept-women .navigation-menu-wrapper[data-dept="women"] {
  display: flex !important;
}

body.dept-women .navigation-menu-wrapper[data-dept="men"],
body.dept-women .navigation-menu-wrapper[data-dept="kids"] {
  display: none !important;
}

body.dept-men .navigation-menu-wrapper[data-dept="men"] {
  display: flex !important;
}

body.dept-men .navigation-menu-wrapper[data-dept="women"],
body.dept-men .navigation-menu-wrapper[data-dept="kids"] {
  display: none !important;
}

body.dept-kids .navigation-menu-wrapper[data-dept="kids"] {
  display: flex !important;
}

body.dept-kids .navigation-menu-wrapper[data-dept="women"],
body.dept-kids .navigation-menu-wrapper[data-dept="men"] {
  display: none !important;
}

/* Department toggle link styling - ensure clickable */
.header-department-box-container a {
  cursor: pointer !important;
  user-select: none;
}

/* Hero image smooth transitions */
.hero-image {
  transition: background-image 0.5s ease-in-out, background 0.5s ease-in-out !important;
}

/* Ensure toggle buttons don't look like links */
.header-department-box-container a:hover {
  text-decoration: none;
}

/* Active department indicator enhancement */
.department-text.jsx-2005615775 {
  font-family: 'Maison Neue Demi', 'Arial Black', sans-serif !important;
  font-weight: bold !important;
  position: relative;
}

.department-text.jsx-2005615775::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
}

/* ============================================
   HIDE ITALIST LOGO SVG ONLY - keep container for spacing
   ============================================ */

/* Only hide the SVG logo, keep containers for layout */
.italist-logo-container svg,
.logo.jsx-f20bdc55fc53c205 svg,
#logo-img svg,
a[aria-label="italist logo"] svg,
svg[viewbox="0 0 128 47"],
svg[viewBox="0 0 128 47"] {
  display: none !important;
  visibility: hidden !important;
}

