/** Shopify CDN: Minification failed

Line 7:1 Unexpected "/"

**/
   Modern search bar next to logo with typing ticker
*/

/* ========================================
   GLOBAL OVERFLOW FIX
   Prevent horizontal scroll from header nav
   ======================================== */
/* Removed html, body overflow-x: hidden as it breaks other elements */

/* ========================================
   STICKY HEADER - iOS Safari Compatible
   MUST be at the top of the file for specificity
   ======================================== */

/*
 * iOS Safari Sticky Fix:
 * - Use -webkit-sticky prefix
 * - Avoid transform on sticky element
 * - Ensure no overflow:hidden on ancestors
 * - Apply to ALL header section variations
 */

/* Header wrapper - relative positioning */
.header-wrapper {
  position: relative;
  z-index: 900;
  background: rgb(var(--color-background));
  /* Removed overflow-x: hidden - it clips mega menu dropdowns */
}

.header--mega-menu .header__top,
.header .header__top,
.header__top {
  background: rgb(var(--color-background));
}

/* ========================================
   HEADER TOP BAR - DESKTOP LAYOUT
   ======================================== */

/* Override the default header top inner for mega-menu style */
.header--mega-menu .header__top-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-block: 1.2rem;
}

@media screen and (min-width: 1200px) {
  .header--mega-menu .header__top-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search icons";
    gap: 2.4rem;
    padding-block: 1.6rem;
  }

  .header--mega-menu .header__heading,
  .header--mega-menu .header__heading-link {
    grid-area: logo;
    margin-right: 0;
  }

  .header--mega-menu .header__search {
    grid-area: search;
    order: unset;
    flex-basis: auto;
    margin: 0;
    max-width: 64rem;
    width: 100%;
    justify-self: center;
  }

  .header--mega-menu .header__column {
    grid-area: icons;
    margin-left: 0;
  }
}

@media screen and (min-width: 1400px) {
  .header--mega-menu .header__top-inner {
    gap: 3.2rem;
  }

  .header--mega-menu .header__search {
    max-width: 72rem;
  }
}

/* ========================================
   ENHANCED SEARCH BAR
   ======================================== */

.header--mega-menu .header__search {
  position: relative;
}

.header--mega-menu .header__search .search__content {
  background: transparent;
}

.header--mega-menu .header__search .search__form {
  position: relative;
}

.header--mega-menu .header__search .field {
  position: relative;
  min-height: 5rem;
  background-color: rgb(var(--color-background));
  border: 2px solid rgb(var(--color-border-input));
  border-radius: 2.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header--mega-menu .header__search .field:hover {
  border-color: rgb(var(--color-border-input-hover));
}

.header--mega-menu .header__search .field:focus-within {
  border-color: rgb(var(--color-button));
  box-shadow: 0 0 0 3px rgba(var(--color-button), 0.1);
}

/* Search Input */
.header--mega-menu .header__search .search__input.field__input {
  min-width: 100%;
  min-height: 4.6rem;
  padding: 1rem 5.5rem 1rem 2.4rem;
  background: transparent;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgb(var(--color-foreground));
}

.header--mega-menu .header__search .search__input.field__input:hover,
.header--mega-menu .header__search .search__input.field__input:focus {
  border: none;
  box-shadow: none;
}

.header--mega-menu .header__search .search__input.field__input::placeholder {
  color: transparent;
}

/* Search Button */
.header--mega-menu .header__search .search__button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(var(--color-button));
  border: none;
  border-radius: 50%;
  color: rgb(var(--color-button-text));
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header--mega-menu .header__search .search__button:hover {
  background-color: rgb(var(--color-button-hover));
  transform: translateY(-50%) scale(1.05);
}

.header--mega-menu .header__search .search__button .icon-search {
  width: 1.8rem;
  height: 1.8rem;
}

/* Label positioning */
.header--mega-menu .header__search .field__label {
  left: 2.4rem;
  color: rgb(var(--color-foreground-secondary));
}

/* ========================================
   TYPING TICKER ANIMATION - FIXED ALIGNMENT
   ======================================== */

.search-ticker {
  position: absolute;
  left: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.5rem;
  color: rgb(var(--color-foreground-secondary));
  opacity: 0.7;
  line-height: 1;
  white-space: nowrap;
}

.search-ticker__static {
  display: inline;
  white-space: nowrap;
}

.search-ticker__dynamic {
  display: inline;
  position: relative;
  white-space: nowrap;
}

.search-ticker__text {
  display: inline;
  color: rgb(var(--color-button));
  font-weight: 500;
}

.search-ticker__cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: rgb(var(--color-button));
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: ticker-blink 0.8s infinite;
}

@keyframes ticker-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Hide ticker when input has focus or value */
.header__search .field:focus-within .search-ticker,
.header__search .search__input:not(:placeholder-shown) ~ .search-ticker {
  opacity: 0;
  visibility: hidden;
}

/* ========================================
   PREDICTIVE SEARCH DROPDOWN - ENHANCED
   ======================================== */

.header--mega-menu .predictive-search--header {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  right: 0;
  background: rgb(var(--color-background));
  border: 1px solid rgb(var(--color-border));
  border-radius: 1.6rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 100;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.header--mega-menu .predictive-search--header::-webkit-scrollbar {
  width: 6px;
}

.header--mega-menu .predictive-search--header::-webkit-scrollbar-track {
  background: transparent;
  margin: 1rem 0;
}

.header--mega-menu .predictive-search--header::-webkit-scrollbar-thumb {
  background-color: rgba(var(--color-foreground), 0.2);
  border-radius: 3px;
}

.header--mega-menu .predictive-search--header::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--color-foreground), 0.3);
}

.header--mega-menu .predictive-search__heading {
  padding: 1.6rem 2rem 1rem;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--color-foreground), 0.5);
}

.header--mega-menu .predictive-search__item {
  padding: 1.2rem 2rem;
  border-radius: 0;
  transition: background-color 0.15s ease;
}

.header--mega-menu .predictive-search__item:hover {
  background-color: rgba(var(--color-foreground), 0.03);
}

.header--mega-menu .predictive-search__item--link {
  grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem;
}

.header--mega-menu .predictive-search__image {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(var(--color-foreground), 0.08);
}

.header--mega-menu .predictive-search__item-heading {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
}

.header--mega-menu .predictive-search__list-item:not(:first-child) {
  border-top: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .predictive-search__item--term {
  padding: 1.4rem 2rem;
  font-weight: 500;
}

/* ========================================
   HEADER ICONS - BETTER SPACING
   ======================================== */

.header--mega-menu .header__column {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header--mega-menu .header__icons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

@media screen and (min-width: 1200px) {
  .header--mega-menu .header__icons {
    gap: 0.4rem;
  }
}

@media screen and (min-width: 1400px) {
  .header--mega-menu .header__icons {
    gap: 0.8rem;
  }
}

.header--mega-menu .header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  border-radius: 0.8rem;
  transition: background-color 0.2s ease;
}

.header--mega-menu .header__icon:hover {
  background-color: rgba(var(--color-foreground), 0.05);
}

/* ========================================
   STORE HOURS WIDGET - LARGER TEXT
   ======================================== */

.header--mega-menu .fg-hours {
  margin-right: 0.8rem;
}

.header--mega-menu .fg-hours__toggle {
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  border-radius: 0.8rem;
}

.header--mega-menu .fg-hours__store-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.header--mega-menu .fg-hours__text {
  font-size: 1.2rem;
  font-weight: 500;
}

.header--mega-menu .fg-hours__dot {
  width: 10px;
  height: 10px;
}

.header--mega-menu .fg-hours__status {
  gap: 0.5rem;
}

.header--mega-menu .fg-hours__line1 {
  gap: 0.5rem;
}

/* ========================================
   ACCOUNT BUTTON - MODERN REDESIGN
   ======================================== */

.header--mega-menu .header__account {
  position: relative;
}

.header--mega-menu .header__account summary.header__icon--account {
  display: flex;
  align-items: center;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

.header--mega-menu .header__account summary.header__icon--account::-webkit-details-marker {
  display: none;
}

.header--mega-menu .header__account .header__summary-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.4rem;
  background-color: rgba(var(--color-foreground), 0.04);
  border: 1px solid rgba(var(--color-foreground), 0.08);
  border-radius: 5rem;
  transition: all 0.2s ease;
}

.header--mega-menu .header__account .header__summary-block:hover {
  background-color: rgba(var(--color-foreground), 0.07);
  border-color: rgba(var(--color-foreground), 0.12);
}

.header--mega-menu .header__account details[open] .header__summary-block {
  background-color: rgba(var(--color-foreground), 0.08);
  border-color: rgba(var(--color-foreground), 0.15);
}

.header--mega-menu .header__account .header__summary-block .icon-account {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

.header--mega-menu .header__account .header__summary-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.header--mega-menu .header__account .header__summary-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgb(var(--color-foreground));
  white-space: nowrap;
}

.header--mega-menu .header__account .header__summary-subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(var(--color-foreground), 0.6);
  white-space: nowrap;
}

/* Account Dropdown Modal */
.header--mega-menu .header__account-modal {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 24rem;
  padding: 1.6rem;
  background: rgb(var(--color-background));
  border: 1px solid rgba(var(--color-foreground), 0.1);
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.header--mega-menu .header__account__account {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.header--mega-menu .header__account__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(var(--color-foreground));
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
}

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

.header--mega-menu .header__account__body li a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  border-radius: 0.6rem;
  transition: background-color 0.15s ease;
}

.header--mega-menu .header__account__body li a:hover {
  background-color: rgba(var(--color-foreground), 0.05);
}

.header--mega-menu .header__account__logout {
  margin-top: 0.8rem;
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 1rem 1.6rem;
  border-radius: 0.8rem;
}

/* Login button for non-logged users */
.header--mega-menu .header__account__login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 0.8rem;
}

.header--mega-menu .header__account__register {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.3rem;
  color: rgba(var(--color-foreground), 0.7);
}

.header--mega-menu .header__account__register:hover {
  color: rgb(var(--color-foreground));
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media screen and (max-width: 1199px) {
  .header--mega-menu .header__search {
    order: 4;
    flex-basis: 100%;
    margin-top: 1rem;
  }

  .header--mega-menu .header__search .field {
    min-height: 4.6rem;
    border-radius: 2.3rem;
  }

  .header--mega-menu .header__search .search__input.field__input {
    min-height: 4.2rem;
    font-size: 1.4rem;
    padding: 0.8rem 5rem 0.8rem 1.8rem;
  }

  .header--mega-menu .header__search .search__button {
    width: 3.6rem;
    height: 3.6rem;
    right: 0.5rem;
  }

  .search-ticker {
    left: 1.8rem;
    font-size: 1.4rem;
  }

  /* Hide account text on mobile */
  .header--mega-menu .header__account .header__summary-body {
    display: none;
  }

  .header--mega-menu .header__account .header__summary-block {
    padding: 0.8rem;
    border-radius: 0.8rem;
  }
}

/* ========================================
   SMALL MENU CLEANUP
   ======================================== */

.header--mega-menu .small-menu {
  display: none;
}

@media screen and (min-width: 1400px) {
  .header--mega-menu .small-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.2rem;
  }

  .header--mega-menu .small-menu__link {
    padding: 0.6rem 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 0.6rem;
    transition: background-color 0.2s ease;
  }

  .header--mega-menu .small-menu__link:hover {
    background-color: rgba(var(--color-foreground), 0.05);
  }
}

/* ========================================
   CONTACT BLOCK - HIDE ON HEADER TOP
   ======================================== */

.header--mega-menu .header__contact {
  display: none;
}

/* ========================================
   HEADER DRAWER BUTTON
   ======================================== */

.header--mega-menu header-drawer .header__icon {
  width: 4.4rem;
  height: 4.4rem;
}

@media screen and (min-width: 1200px) {
  .header--mega-menu header-drawer {
    display: none;
  }
}

/* ========================================
   OVERLAY FOR SEARCH FOCUS
   ======================================== */

.header--mega-menu .header__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: -1;
}

.header--mega-menu .header__search:focus-within .header__overlay {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   CART ICON
   ======================================== */

.header--mega-menu .header__icon--cart {
  position: relative;
}

.header--mega-menu .cart-count-bubble {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ========================================
   MEGA MENU - CLEAN REWRITE
   Simple, reliable positioning
   ======================================== */

/* Make the whole header the positioning context for mega menu */
.header--mega-menu {
  position: relative !important;
}

/* Navigation Bar styling */
.header--mega-menu .header__bottom-inner {
  position: static !important;
  border-top: 1px solid rgba(var(--color-foreground), 0.08);
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
}

.header--mega-menu .header-menu__wraper {
  position: static !important;
  min-height: 5rem;
}

.header--mega-menu .header-menu__nav {
  position: static !important;
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.header--mega-menu .header-menu__nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Main Nav Links - no positioning context so mega menu positions to header */
.header--mega-menu .header__main-link {
  position: static !important;
  padding: 1.5rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.header--mega-menu .header__main-link:hover {
  color: rgb(var(--color-button));
}

.header--mega-menu .header-menu__nav > div:first-child .header__main-link {
  padding-left: 0;
}

/* View All Button */
.header--mega-menu .mega-menu-new__view-all {
  padding: 0.8rem;
}

.header--mega-menu .mega-menu-new__view-all svg {
  width: 2rem;
  height: 2rem;
}

/* ========================================
   MEGA MENU DROPDOWN - ABSOLUTE POSITIONING
   Positioned relative to header__bottom-inner
   Override base.css positioning (bottom: 0, transform)
   ======================================== */

.header--mega-menu .mega-menu-new {
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  transform: none !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: rgb(var(--color-background));
  border-top: 1px solid rgba(var(--color-foreground), 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* Hide by default - base.css handles open state */
.header--mega-menu .mega-menu-new:not(.open) {
  display: none;
}

/* Inner Container - use existing container class */
.header--mega-menu .mega-menu-new > .container {
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========================================
   MEGA MENU HEADER
   ======================================== */

.header--mega-menu .mega-menu-new__header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
  margin-bottom: 1.5rem;
}

.header--mega-menu .mega-menu-new__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header--mega-menu .mega-menu-new__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.header--mega-menu .mega-menu-new__header > a {
  color: rgb(var(--color-button));
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.header--mega-menu .mega-menu-new__header > a:hover {
  text-decoration: underline;
}

.header--mega-menu .mega-menu-new__close-btn {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-foreground), 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.header--mega-menu .mega-menu-new__close-btn:hover {
  background: rgba(var(--color-foreground), 0.1);
}

.header--mega-menu .mega-menu-new__close-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ========================================
   MEGA MENU COLUMNS - SIMPLE FLEXBOX
   ======================================== */

.header--mega-menu .mega-menu-new__sub-collections {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
}

.header--mega-menu .mega-menu-new__column {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2rem;
  border-right: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .mega-menu-new__column:first-child {
  padding-left: 0;
}

.header--mega-menu .mega-menu-new__column:last-child {
  padding-right: 0;
  border-right: none;
}

/* Hide empty columns */
.header--mega-menu .mega-menu-new__column:empty {
  display: none;
}

/* Category group within column */
.header--mega-menu .mega-menu-new__column > div {
  margin-bottom: 2rem;
}

.header--mega-menu .mega-menu-new__column > div:last-child {
  margin-bottom: 0;
}

/* Category header links */
.header--mega-menu .mega-menu-new__child-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.header--mega-menu .mega-menu-new__child-link:hover {
  color: rgb(var(--color-button));
}

/* Grandchild links container */
.header--mega-menu .mega-menu-new__grandchild-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Grandchild links */
.header--mega-menu .mega-menu-new__grandchild-link {
  display: block;
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(var(--color-foreground), 0.75);
  text-decoration: none;
  line-height: 1.5;
}

.header--mega-menu .mega-menu-new__grandchild-link:hover {
  color: rgb(var(--color-button));
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 1199px) {
  .header--mega-menu .header__bottom-inner {
    display: none;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .header--mega-menu .header__main-link {
    padding: 1.5rem 1.2rem;
    font-size: 1.3rem;
  }

  .header--mega-menu .mega-menu-new__column {
    padding: 0 1.5rem;
  }

  .header--mega-menu .mega-menu-new__child-link {
    font-size: 1.4rem;
  }

  .header--mega-menu .mega-menu-new__grandchild-link {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 1600px) {
  .header--mega-menu .mega-menu-new__column {
    padding: 0 2.5rem;
  }

  .header--mega-menu .mega-menu-new__child-link {
    font-size: 1.6rem;
  }

  .header--mega-menu .mega-menu-new__grandchild-link {
    font-size: 1.4rem;
  }
}

/* ========================================
   CONTENT Z-INDEX CONTROL
   Ensure main content doesn't override dropdowns
   ======================================== */

/* Main content area - lower z-index than header dropdowns */
.content-for-layout,
main.content-for-layout,
#MainContent {
  position: relative;
  z-index: 1;
}

/* Shopify sections below header */
.shopify-section:not(.shopify-section-header):not(.shopify-section-cart-drawer):not(.shopify-section-group-overlay-group) {
  position: relative;
  z-index: 1;
}

/* Banner grid specifically - no stacking context interference */
.banner-grid,
.banner-grid__wrapper,
.banner-grid__item {
  /* Don't create new stacking contexts that could interfere */
  isolation: auto;
}

/* ========================================
   HEADER Z-INDEX HIERARCHY
   Ensure header elements stack correctly
   ======================================== */

.header--mega-menu .header__top {
  position: relative;
  z-index: 1001;
  background: rgb(var(--color-background));
}

/* ========================================
   MOBILE HEADER - REBUILT FROM SCRATCH
   Clean, reliable mobile layout
   ======================================== */

@media screen and (max-width: 989px) {
  /* ----------------------------------------
     MOBILE HEADER LAYOUT - ALL PAGE TYPES
     Works on: Home, Collections, Products, etc.
     Row 1: Menu | Logo | Icons
     Row 2: Search
     Row 3: Store Hours
     ---------------------------------------- */

  /* Main header container */
  .header__top-inner,
  .header .header__top-inner,
  .header--mega-menu .header__top-inner,
  .shopify-section-header .header__top-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0.8rem 1rem !important;
    /* Extra padding at bottom for store hours + 10px above it */
    padding-bottom: 3.8rem !important;
    position: relative !important;
    /* Ensure content doesn't overflow */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* HAMBURGER - Left */
  header-drawer,
  .header header-drawer,
  .header--mega-menu header-drawer {
    order: 1 !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
  }

  header-drawer .header__icon--menu,
  header-drawer summary.header__icon--menu,
  .header header-drawer .header__icon--menu,
  .header--mega-menu header-drawer .header__icon--menu {
    width: 4.4rem !important;
    height: 4.4rem !important;
    min-width: 4.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  header-drawer .icon-hamburger,
  .header header-drawer .icon-hamburger,
  .header--mega-menu header-drawer .icon-hamburger {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  /* LOGO - Center using flex */
  .header__heading,
  h1.header__heading,
  .header .header__heading,
  .header--mega-menu .header__heading {
    order: 2 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 0.5rem !important;
    position: static !important;
  }

  .header__heading-link,
  .header .header__heading-link,
  .header--mega-menu .header__heading-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
  }

  /* Logo 5% larger than default 4rem = 4.2rem */
  .header__heading-logo,
  .header .header__heading-logo,
  .header--mega-menu .header__heading-logo {
    max-height: 4.2rem !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  /* ICONS - Right */
  .header__column,
  .header .header__column,
  .header--mega-menu .header__column {
    order: 3 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    /* Prevent icons from shrinking */
    flex-shrink: 0 !important;
  }

  /* Hide contact/small menu on mobile - ALL header types */
  .header__contact,
  .small-menu,
  .header--mega-menu .header__contact,
  .header--mega-menu .small-menu,
  .header .header__contact,
  .header .small-menu {
    display: none !important;
  }

  /* Icons container - ALL header types */
  .header__icons,
  .header .header__icons,
  .header--mega-menu .header__icons,
  .shopify-section-header .header__icons {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
  }

  /* Ensure last icon has proper spacing from edge */
  .header__icons > *:last-child,
  .header--mega-menu .header__icons > *:last-child {
    margin-right: 0;
  }

  /* Hide localization, color scheme on mobile - ALL header types */
  .header__localization,
  .header__icons > .color-scheme-toggle,
  .header--mega-menu .header__localization,
  .header--mega-menu .header__icons > .color-scheme-toggle,
  .header .header__localization,
  .header .header__icons > .color-scheme-toggle {
    display: none !important;
  }

  /* Account icon - ALL header types */
  .header__account,
  .header .header__account,
  .header--mega-menu .header__account,
  .shopify-section-header .header__account {
    display: flex !important;
    align-items: center !important;
  }

  .header__account .header__summary-block,
  .header .header__account .header__summary-block,
  .header--mega-menu .header__account .header__summary-block {
    padding: 0.8rem !important;
    background: transparent !important;
    border: none !important;
  }

  .header__account .header__summary-body,
  .header .header__account .header__summary-body,
  .header--mega-menu .header__account .header__summary-body {
    display: none !important;
  }

  .header__account .icon-account,
  .header .header__account .icon-account,
  .header--mega-menu .header__account .icon-account {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  /* Cart icon - ALL header types */
  .header__icon--cart,
  .header .header__icon--cart,
  .header--mega-menu .header__icon--cart,
  .shopify-section-header .header__icon--cart {
    width: 4.4rem !important;
    height: 4.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: unset !important;
    position: relative !important;
  }

  .header__icon--cart .icon-cart,
  .header .header__icon--cart .icon-cart,
  .header--mega-menu .header__icon--cart .icon-cart {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  .cart-count-bubble,
  .header .cart-count-bubble,
  .header--mega-menu .cart-count-bubble,
  .shopify-section-header .cart-count-bubble {
    position: absolute !important;
    top: 0.4rem !important;
    right: 0.4rem !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
    min-width: 1.8rem !important;
    font-size: 1rem !important;
  }

  /* ----------------------------------------
     ROW 2: SEARCH BAR (FULL WIDTH)
     ALL header types including collections
     ---------------------------------------- */
  .header__search,
  .header .header__search,
  .header--mega-menu .header__search,
  .shopify-section-header .header__search {
    order: 4 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    margin: 0.8rem 0 0.5rem 0 !important;
    /* CRITICAL: relative position for dropdown positioning */
    position: relative !important;
    z-index: 9999 !important;
  }

  .header__search .field,
  .header .header__search .field,
  .header--mega-menu .header__search .field {
    min-height: 4.4rem !important;
    border-radius: 2.2rem !important;
    position: relative !important;
    z-index: 201 !important;
  }

  .header__search .search__input.field__input,
  .header .header__search .search__input.field__input,
  .header--mega-menu .header__search .search__input.field__input {
    min-height: 4rem !important;
    font-size: 1.4rem !important;
    padding: 0.8rem 5rem 0.8rem 1.6rem !important;
    border-radius: 2.2rem !important;
  }

  .header__search .search__button,
  .header .header__search .search__button,
  .header--mega-menu .header__search .search__button {
    width: 3.6rem !important;
    height: 3.6rem !important;
    right: 0.4rem !important;
  }

  .header__search .search__button .icon-search,
  .header .header__search .search__button .icon-search,
  .header--mega-menu .header__search .search__button .icon-search {
    width: 1.6rem !important;
    height: 1.6rem !important;
  }

  .search-ticker,
  .header .search-ticker,
  .header--mega-menu .search-ticker {
    font-size: 1.4rem !important;
    left: 1.6rem !important;
  }

  /* Predictive search dropdown - absolute position below search */
  .predictive-search,
  .predictive-search--header,
  .header .predictive-search,
  .header .predictive-search--header,
  .header--mega-menu .predictive-search,
  .header--mega-menu .predictive-search--header {
    /* Absolute position relative to search */
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    z-index: 2147483646 !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    background: rgb(var(--color-background)) !important;
    border: 1px solid rgba(var(--color-foreground), 0.1) !important;
  }

  /* Ensure search container is the positioning context */
  .header__search,
  .header .header__search,
  .header--mega-menu .header__search {
    position: relative !important;
    z-index: 9999 !important;
  }

  /* Search form needs to be positioning context too */
  .header__search .search__content,
  .header__search details,
  .header .header__search .search__content,
  .header .header__search details,
  .header--mega-menu .header__search .search__content,
  .header--mega-menu .header__search details {
    position: relative !important;
  }

  /* Hide dropdown button on mobile */
  .shop-button__toggle,
  .header .shop-button__toggle,
  .header--mega-menu .shop-button__toggle {
    display: none !important;
  }
}

/* ----------------------------------------
   STORE HOURS - MOBILE REPOSITIONING
   ALL page types including collections
   ---------------------------------------- */

@media screen and (max-width: 989px) {
  /* Position store hours at bottom of header */
  .fg-hours,
  .header__icons > .fg-hours,
  .header .header__icons > .fg-hours,
  .header--mega-menu .header__icons > .fg-hours {
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 100 !important;
    /* 10px padding above store hours */
    margin-top: 1rem !important;
  }

  /* Store hours toggle button */
  .fg-hours__toggle {
    font-size: 1.2rem !important;
    padding: 0.25rem 0.8rem !important;
  }
}

/* ----------------------------------------
   Z-INDEX HIERARCHY FOR MOBILE HEADER
   iOS Safari Compatible - ensure dropdowns above ALL content
   Works on ALL page types: home, collections, products, etc.
   ---------------------------------------- */
@media screen and (max-width: 989px) {
  /*
   * iOS Safari z-index stacking context fix:
   * - Use maximum valid z-index values
   * - Apply to ALL header variations
   * - Ensure proper hierarchy: header < search < account < store hours
   */

  /* Header section - sticky with high z-index */
  .shopify-section-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
  }

  /* Header wrapper - ALL variations */
  .header-wrapper {
    position: relative !important;
    z-index: 900 !important;
    background: rgb(var(--color-background)) !important;
  }

  /* The header itself - ALL variations */
  .header,
  .header--mega-menu {
    position: relative !important;
    z-index: 900 !important;
    background: rgb(var(--color-background)) !important;
  }

  .header__top,
  .header .header__top,
  .header--mega-menu .header__top {
    position: relative !important;
    z-index: 900 !important;
    background: rgb(var(--color-background)) !important;
  }

  /* Account dropdown - fixed position for iOS - ALL variations */
  .header__account-modal,
  .header .header__account-modal,
  .header--mega-menu .header__account-modal {
    position: fixed !important;
    z-index: 2147483645 !important;
    top: auto !important;
    right: 1rem !important;
    /* GPU layer */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Search content container - ALL variations */
  .header__search .search__content,
  .header .header__search .search__content,
  .header--mega-menu .header__search .search__content {
    position: relative !important;
    z-index: 2147483644 !important;
  }

  /* Store hours dropdown - maximum z-index - ALL variations */
  .fg-hours__dropdown {
    z-index: 2147483647 !important;
    /* GPU layer for iOS - no translateX since we use margin auto for centering */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* ----------------------------------------
   CART DRAWER Z-INDEX
   Cart drawer must appear ABOVE header
   ---------------------------------------- */
cart-drawer,
.cart-drawer,
#cart-drawer,
[id^="cart-drawer"],
.drawer,
.shopify-section-cart-drawer {
  z-index: 1000000 !important;
}

cart-drawer .drawer__inner,
.cart-drawer .drawer__inner,
.drawer .drawer__inner {
  z-index: 1000001 !important;
}

/* Cart drawer overlay - covers everything including header */
cart-drawer .drawer__overlay,
.cart-drawer .drawer__overlay,
.drawer__overlay,
cart-drawer::before {
  z-index: 999999 !important;
}

/* ========================================
   MOBILE DRAWER MENU - ENHANCED STYLING
   Modern, clean design matching mega menu
   ======================================== */

.header--mega-menu .menu-drawer {
  background: rgb(var(--color-background));
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 989px) {
  /*
   * MOBILE DRAWER - Full width on mobile
   * The base component-menu-drawer.css handles the drawer itself
   * We just need to ensure proper sizing and scroll behavior
   */

  /* Drawer dimensions - FULL WIDTH on mobile */
  .header--mega-menu .menu-drawer {
    width: 100% !important;
    max-width: none !important;
    z-index: 100000 !important;
  }

  /* Inner container layout */
  .header--mega-menu .menu-drawer__inner-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Navigation container - main scrollable area */
  .header--mega-menu .menu-drawer__navigation-container {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Utility links at bottom - don't shrink */
  .header--mega-menu .menu-drawer__utility-links {
    flex-shrink: 0;
  }

  /* Ensure the overlay/backdrop appears */
  .header--mega-menu header-drawer > details > summary::before {
    z-index: 99999 !important;
  }
}

/* ----------------------------------------
   SMALL SCREEN ADJUSTMENTS (< 480px)
   ALL page types
   ---------------------------------------- */
@media screen and (max-width: 480px) {
  /* Header padding - ALL variations */
  .header__top-inner,
  .header .header__top-inner,
  .header--mega-menu .header__top-inner,
  .shopify-section-header .header__top-inner {
    padding: 0.6rem 0.8rem 3.2rem !important;
    min-height: 4.5rem !important;
  }

  /* Logo stays absolutely centered on small screens - 5% larger */
  .header__heading-logo,
  .header .header__heading-logo,
  .header--mega-menu .header__heading-logo {
    /* 3rem base * 1.05 = 3.15rem */
    max-height: 3.15rem !important;
  }

  /* Hamburger button - ALL variations */
  header-drawer .header__icon--menu,
  header-drawer summary.header__icon--menu,
  .header header-drawer .header__icon--menu,
  .header--mega-menu header-drawer .header__icon--menu {
    width: 4rem !important;
    height: 4rem !important;
  }

  /* Cart icon - ALL variations */
  .header__icon--cart,
  .header .header__icon--cart,
  .header--mega-menu .header__icon--cart {
    width: 4rem !important;
    height: 4rem !important;
    margin-right: 0 !important;
  }

  /* Search - ALL variations */
  .header__search,
  .header .header__search,
  .header--mega-menu .header__search {
    margin: 0.6rem 0 0.4rem 0 !important;
  }

  .header__search .field,
  .header .header__search .field,
  .header--mega-menu .header__search .field {
    min-height: 4rem !important;
  }

  .header__search .search__input.field__input,
  .header .header__search .search__input.field__input,
  .header--mega-menu .header__search .search__input.field__input {
    font-size: 1.3rem !important;
  }
}

/* ========================================
   DRAWER NAVIGATION STYLING
   ======================================== */

/* Navigation Container */
.header--mega-menu .menu-drawer__navigation-container {
  padding-top: 1.5rem;
}

.header--mega-menu .menu-drawer__navigation {
  padding: 0 2rem;
}

/* Menu Items - Clean, modern look */
.header--mega-menu .menu-drawer__menu li {
  border-top: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .menu-drawer__menu li:last-child:not(.menu-drawer__inner-submenu li:last-child) {
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .menu-drawer__menu .menu-drawer__menu-item {
  font-family: var(--font-heading-family);
  font-weight: 600;
  font-size: 1.6rem;
  color: rgb(var(--color-foreground));
  padding: 1.6rem 0;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.header--mega-menu .menu-drawer__menu .menu-drawer__menu-item:hover {
  color: rgb(var(--color-button));
}

/* Submenu styling */
.header--mega-menu .menu-drawer__submenu {
  background: rgba(var(--color-foreground), 0.02);
}

.header--mega-menu .menu-drawer__inner-submenu {
  padding: 1rem 0;
}

.header--mega-menu .menu-drawer__inner-submenu .menu-drawer__menu-item {
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1.2rem 2rem;
  color: rgba(var(--color-foreground), 0.85);
}

.header--mega-menu .menu-drawer__inner-submenu .menu-drawer__menu-item:hover {
  color: rgb(var(--color-button));
  background: rgba(var(--color-foreground), 0.03);
}

/* Back button */
.header--mega-menu .menu-drawer__close-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 2rem;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgb(var(--color-button));
  background: rgba(var(--color-button), 0.05);
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .menu-drawer__close-button:hover {
  background: rgba(var(--color-button), 0.1);
}

.header--mega-menu .menu-drawer__close-button .icon-arrow {
  width: 1.4rem;
  height: 1.4rem;
}

/* Caret icon in menu items */
.header--mega-menu .menu-drawer__menu-item > .icon-caret {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header--mega-menu .menu-drawer__menu-item:hover > .icon-caret {
  opacity: 1;
}

/* Small menu items (secondary links) */
.header--mega-menu .menu-drawer__small-menu-item {
  border-top: none !important;
}

.header--mega-menu .menu-drawer__small-menu-item .menu-drawer__menu-item {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.7);
  padding: 1rem 0;
}

/* Utility Links Section */
.header--mega-menu .menu-drawer__utility-links {
  padding: 2.5rem 2rem;
  background: rgba(var(--color-foreground), 0.02);
  border-top: 1px solid rgba(var(--color-foreground), 0.06);
}

/* Account Button */
.header--mega-menu .menu-drawer__account.button--primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.4rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 0.8rem;
}

.header--mega-menu .menu-drawer__account .icon-account {
  width: 1.8rem;
  height: 1.8rem;
}

/* Account Register Link */
.header--mega-menu .menu-drawer__account-register {
  margin-top: 1.4rem;
  font-size: 1.3rem;
  color: rgba(var(--color-foreground), 0.7);
}

.header--mega-menu .menu-drawer__account-register a {
  color: rgb(var(--color-button));
  font-weight: 600;
  font-size: 1.3rem;
}

/* Logged In User Account Section */
.header--mega-menu .menu-drawer__utility-account {
  margin-bottom: 2rem;
}

.header--mega-menu .menu-drawer__utility-account-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .menu-drawer__utility-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(var(--color-foreground));
}

.header--mega-menu .menu-drawer__utility-logout {
  font-size: 1.3rem;
  color: rgb(var(--color-button));
  font-weight: 500;
}

.header--mega-menu .menu-drawer__utility-account-body {
  padding: 1rem 1.5rem;
  background: rgba(var(--color-foreground), 0.03);
  border-radius: 0.8rem;
}

.header--mega-menu .menu-drawer__utility-account-body li a {
  font-size: 1.4rem;
  padding: 1rem 0;
  color: rgba(var(--color-foreground), 0.8);
}

.header--mega-menu .menu-drawer__utility-account-body li a:hover {
  color: rgb(var(--color-button));
}

/* Social Links */
.header--mega-menu .menu-drawer .list-social {
  margin-top: 2.5rem;
  gap: 1.5rem;
}

.header--mega-menu .menu-drawer .list-social__link {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-foreground), 0.05);
  border-radius: 50%;
  color: rgba(var(--color-foreground), 0.6);
  transition: all 0.2s ease;
}

.header--mega-menu .menu-drawer .list-social__link:hover {
  background: rgba(var(--color-button), 0.1);
  color: rgb(var(--color-button));
}

.header--mega-menu .menu-drawer .list-social__link .icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* Localization Selectors */
.header--mega-menu .menu-drawer__localization-wrapper {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.header--mega-menu .menu-drawer__localization {
  margin-bottom: 1rem;
}

.header--mega-menu .menu-drawer__localization:last-child {
  margin-bottom: 0;
}

.header--mega-menu .menu-drawer__localization .localization-selector {
  padding: 1rem 1.5rem;
  background: rgba(var(--color-foreground), 0.03);
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.header--mega-menu .menu-drawer__localization .localization-selector:hover {
  background: rgba(var(--color-foreground), 0.06);
}

/* Promo banners in drawer (mega menu items) */
.header--mega-menu .menu-drawer .mega-menu__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem 2rem;
  background: rgba(var(--color-foreground), 0.02);
}

.header--mega-menu .menu-drawer .mega-menu__item {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}

.header--mega-menu .menu-drawer .mega-menu__item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header--mega-menu .menu-drawer .mega-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.header--mega-menu .menu-drawer .mega-menu__item-heading {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.header--mega-menu .menu-drawer .mega-menu__item-description {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.3rem;
}

.header--mega-menu .menu-drawer .mega-menu__item-button-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
}

.header--mega-menu .menu-drawer .mega-menu__item-button {
  font-size: 1.2rem;
  padding: 0.6rem 1rem;
}
