/* ========================================
   MOBILE FIXES – Loaded LAST to override everything
   Only fix: backgrounds, mobile header, mobile menu
   DO NOT override text/heading colors (keep original orange theme)
   ======================================== */

/* Force BLACK background on Shopify color-scheme sections */
.color-scheme-1,
.color-scheme-2,
.color-scheme-3,
.color-scheme-4,
.color-scheme-5,
[class*="color-scheme-"] {
  --color-background: #000000 !important;
  --color-background-rgb: 0 0 0 !important;
  background-color: #000000 !important;
}

html, body {
  background-color: #000000 !important;
}

section,
main,
#MainContent,
.shopify-section,
[class*="shopify-section"],
.section,
[class*="section--"] {
  background-color: #000000 !important;
}

/* Hide the navigation bar row (white bar) */
.header__navigation-bar-row,
.header__row.header__navigation-bar-row {
  display: none !important;
}

/* Hide Shopify remnant elements */
.quick-add-modal, .quick-add-dialog, dialog,
.shopify-app-block, .shopify-block:not(.rte) {
  display: none !important;
  height: 0 !important;
}
/* Ensure RTE content blocks (About page text) remain visible */
.shopify-block.rte {
  display: block !important;
  height: auto !important;
}

/* ========================================
   MOBILE LAYOUT
   ======================================== */
@media screen and (max-width: 900px) {

  /* --- HEADER: Logo centered, hamburger right --- */
  .header__columns {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-height: 60px !important;
  }

  .header__column--left {
    display: contents !important;
  }

  .header__column--center {
    display: block !important;
  }

  .header__column--right {
    display: none !important;
  }

  /* Hide search, drawer, account on mobile */
  .search-action,
  .search-action--hidden-on-menu,
  .header__drawer,
  .account-button,
  [data-component="search-button"],
  [data-component="shopify-store"] {
    display: none !important;
  }

  /* Center the logo */
  .header-logo,
  a.header-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
  }

  /* Hamburger button */
  .mobile-nav-toggle,
  button.mobile-nav-toggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    background: none !important;
    border: none !important;
    color: white !important;
    padding: 8px !important;
    cursor: pointer !important;
  }

  /* Nav hidden by default */
  .header-menu,
  nav.header-menu {
    display: none !important;
  }

  /* --- MOBILE MENU OVERLAY --- */
  .header-menu.is-open,
  nav.header-menu.is-open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #000000 !important;
    z-index: 99999 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 24px !important;
  }

  .header-menu.is-open .header-menu__inner,
  .header-menu.is-open .menu-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    background: #000000 !important;
  }

  .header-menu.is-open .menu-list__list,
  .header-menu.is-open .overflow-menu,
  .header-menu.is-open ul.overflow-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
    align-items: center !important;
    background: #000000 !important;
    list-style: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* FORCE ALL MENU ITEMS VISIBLE */
  .header-menu.is-open .menu-list__list-item,
  .header-menu.is-open li.menu-list__list-item,
  .header-menu.is-open li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
  }

  .header-menu.is-open .menu-list__link,
  .header-menu.is-open .menu-list__link-title,
  .header-menu.is-open a.menu-list__link {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .header-menu.is-open a:hover,
  .header-menu.is-open a:active {
    color: #ff7545 !important;
  }

  /* Close button */
  .header-menu.is-open .mobile-nav-toggle {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 100000 !important;
    color: white !important;
    background: transparent !important;
  }
}


/* ========== STATIC SITE FIXES ========== */

/* Header display */
header#header-component, header[id="header-component"] {
  display: block !important;
}

/* Navigation menu - make visible */
.header-menu {
  display: block !important;
}
.header-menu .menu-list {
  display: block !important;
}
.header-menu__inner {
  display: block !important;
}

/* Menu list items - flex row */
.overflow-menu,
div[class*="overflow-menu"],
ul[class*="overflow-menu"] {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: var(--gap-xl, 1.25rem);
  align-items: center;
}
.menu-list__list {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: var(--gap-xl, 1.25rem);
  align-items: center;
}
.menu-list__list-item {
  display: list-item !important;
  visibility: visible !important;
  list-style: none;
}

/* Hide the "Mehr" button and slot=overflow items */
[slot="overflow"],
[slot="more"],
li[slot="more"],
li[slot="overflow"] {
  display: none !important;
}

/* Menu link styling */
.menu-list__link {
  color: var(--color-foreground, white);
  text-decoration: none;
  font-family: var(--font-heading--family, Inter, sans-serif);
  font-size: var(--menu-top-level-font-size-desktop, 0.875rem);
  font-weight: var(--font-heading--weight, 700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.menu-list__link:hover {
  opacity: 0.7;
}

/* Header layout */
.header__columns {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: var(--padding-sm, 0.7rem);
  min-height: 60px;
}
.header__column--left {
  justify-self: start;
}
.header__column--center {
  justify-self: center;
}
.header__column--right {
  justify-self: end;
}

/* Header underlay background */
.header__underlay-closed {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: var(--color-scheme-top-row, rgba(0 0 0 / 1.0)) !important;
}

/* Hide right column if empty (no cart/search/account anymore) */
.header__column--right:empty {
  display: none !important;
}

/* Slideshow/Carousel - horizontal scroll */
[data-slides] {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: var(--carousel-gap, 24px);
  padding-inline: var(--page-margin, 2rem);
  cursor: grab;
}

/* ===== MENU FIX: Match original brandeed.de header ===== */

/* Remove the white color-scheme-2 box from the navigation */
.overflow-menu.color-scheme-2,
ul.overflow-menu.color-scheme-2 {
  background-color: transparent !important;
  background: transparent !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Nav links: white text on transparent background */
.overflow-menu .menu-list__link,
.overflow-menu .menu-list__link-title {
  color: white !important;
}
.overflow-menu .menu-list__link:hover {
  opacity: 0.7;
  color: white !important;
}

/* Header: sticky, full-width, transparent */
header,
.header,
.section-header,
[id*="header"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
}

/* Header background: transparent -> dark on scroll (handled by JS) */
.header__underlay-closed {
  background: transparent !important;
  transition: background 0.3s ease !important;
}
.header--scrolled .header__underlay-closed {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Clean header spacing to match original */
.header__columns {
  padding-inline: var(--page-margin, 2rem) !important;
  max-width: 100% !important;
}

/* ===== END MENU FIX ===== */

/* Footer Visibility Fixes */
.terms-policies-popover { background-color: #111 !important; color: #fff !important; }
.terms-policies-popover a { color: #fff !important; text-decoration: none !important; }
.terms-policies-popover a:hover { opacity: 0.8 !important; }
.policy-list-trigger { color: #fff !important; }



/* Login Icon Fixes */
.login-icon-link {
    color: white !important;
    transition: opacity 0.2s ease;
}
.login-icon-link:hover {
    opacity: 0.7;
}
.header--scrolled .login-icon-link {
    color: white !important;
}



.account-button {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.login-icon-link {
    background: transparent !important;
}
