/* Custom overrides to fix layout after stripping Wix runtime JS */

/* === HEADER === */
#SITE_HEADER {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 80px !important;
}

#SITE_HEADER > div,
#SITE_HEADER .wixui-column-strip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 12px 32px !important;
  gap: 16px !important;
}

#SITE_HEADER .wixui-column-strip__column {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
}

/* The middle column (nav) should grow */
#SITE_HEADER .wixui-column-strip__column:nth-child(2) {
  flex: 1 1 auto !important;
  justify-content: center !important;
  gap: 24px !important;
}

/* Force inline nav items */
#SITE_HEADER nav,
#SITE_HEADER [data-mesh-id*="MENU"],
#SITE_HEADER ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

#SITE_HEADER li {
  list-style: none !important;
  white-space: nowrap !important;
}

/* Hide elements that don't work without backend */
#SITE_LOGIN_SOCIAL_BAR,
[data-hook="login-button"],
[data-testid="loginButton"],
.LoginButton,
button[aria-label="Log In"],
button:has(span:contains("Log In")),
.wixui-shopping-cart-icon,
[data-hook="cart-icon-button"],
[data-testid="cartIcon"] {
  display: none !important;
}

/* Hide Log In button by text content (CSS doesn't have :contains, use parent class) */
.LcZX5c { display: none !important; }
.LcZX5c, .LcZX5c::parent { display: none !important; }

/* Search box - reasonable size */
#SITE_HEADER input[type="search"],
#SITE_HEADER input[type="text"][role="searchbox"] {
  width: 200px !important;
  max-width: 200px !important;
}

/* === GENERAL FIXES === */

/* Body should not overflow */
body, html {
  overflow-x: hidden !important;
}

/* Force main content below header */
main, #PAGES_CONTAINER, #masterPage {
  position: relative !important;
}

/* Reasonable wrapper widths */
.wixui-column-strip,
section.wixui-column-strip {
  max-width: 100% !important;
}

/* Image responsiveness */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Keep <picture> sources working */
picture {
  display: inline-block !important;
}

/* Footer alignment */
#SITE_FOOTER {
  position: relative !important;
  width: 100% !important;
  display: block !important;
  padding: 32px !important;
}

/* Hide the Wix accessibility/cookie widget if it broke */
[data-hook="cookie-banner"],
.wixui-popup,
[data-mesh-id*="POPUP"]:not([data-mesh-id*="MENU"]) {
  display: none !important;
}
