/*
 * Obsidian Premium Experience — global molecular header v1.1.0
 * Intentionally loaded on every public page, including WooCommerce checkout.
 * This file targets only Astra header elements.
 */

body.obsidian-premium-ui {
  --ope-header-black: #070708;
  --ope-header-red: #ed1c24;
  --ope-amino-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 250'%3E%3Cg fill='none' stroke='%23ff4054' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26 143L101 94l76 49 77-49 76 49 77-49 76 49 77-49 76 49 77-49 76 49'/%3E%3Cpath d='M177 143v66M254 94V29M330 143v66M407 94V29M483 143v66M560 94V29'/%3E%3Cpath d='M168 143v62M245 94V34M321 143v62M398 94V34M474 143v62M551 94V34' opacity='.48'/%3E%3C/g%3E%3Cg fill='%23ff4054'%3E%3Ccircle cx='26' cy='143' r='6'/%3E%3Ccircle cx='101' cy='94' r='5'/%3E%3Ccircle cx='177' cy='143' r='6'/%3E%3Ccircle cx='254' cy='94' r='5'/%3E%3Ccircle cx='330' cy='143' r='6'/%3E%3Ccircle cx='407' cy='94' r='5'/%3E%3Ccircle cx='483' cy='143' r='6'/%3E%3Ccircle cx='560' cy='94' r='5'/%3E%3Ccircle cx='636' cy='143' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

body.obsidian-premium-ui #masthead,
body.obsidian-premium-ui .site-header,
body.obsidian-premium-ui .main-header-bar,
body.obsidian-premium-ui .ast-primary-header-bar {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .11) !important;
  background: linear-gradient(105deg, #070708 0%, #190308 48%, #42000e 100%) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34), inset 0 -1px 0 rgba(237, 28, 36, .22) !important;
}

body.obsidian-premium-ui #masthead {
  position: relative;
  isolation: isolate;
  z-index: 40;
  overflow: hidden;
}

body.obsidian-premium-ui #masthead::before {
  position: absolute;
  top: -28px;
  right: -92px;
  bottom: -28px;
  z-index: 0;
  width: min(62%, 820px);
  content: "";
  opacity: .22;
  background: var(--ope-amino-motif) right center / auto 108% no-repeat;
  filter: drop-shadow(0 0 7px rgba(237, 28, 36, .24));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, #000 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, #000 46%, #000 100%);
  pointer-events: none;
}

body.obsidian-premium-ui #masthead::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(237, 28, 36, .92) 50%, transparent);
  box-shadow: 0 0 18px rgba(237, 28, 36, .42);
  pointer-events: none;
}

body.obsidian-premium-ui #masthead :where(.ast-container, .ast-builder-grid-row, .site-primary-header-wrap) {
  position: relative;
  z-index: 1;
}

body.obsidian-premium-ui .ast-primary-header-bar,
body.obsidian-premium-ui .site-primary-header-wrap {
  min-height: 88px !important;
}

body.obsidian-premium-ui .site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 10px 28px rgba(0, 0, 0, .22);
}

body.obsidian-premium-ui .site-header .custom-logo-link img,
body.obsidian-premium-ui .site-header .custom-logo {
  width: auto !important;
  max-width: 250px !important;
  max-height: 78px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .32));
}

body.obsidian-premium-ui .ast-desktop .main-header-menu > .menu-item > .menu-link {
  position: relative;
  min-height: 44px;
  margin: 0 2px;
  padding: 0 16px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, .91) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: .015em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease !important;
}

body.obsidian-premium-ui .ast-desktop .main-header-menu > .menu-item > .menu-link::after {
  right: 14px !important;
  bottom: 6px !important;
  left: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, #ff3b43, transparent) !important;
}

body.obsidian-premium-ui .ast-desktop .main-header-menu > .menu-item:hover > .menu-link,
body.obsidian-premium-ui .ast-desktop .main-header-menu > .current-menu-item > .menu-link,
body.obsidian-premium-ui .ast-desktop .main-header-menu > .current_page_item > .menu-link,
body.obsidian-premium-ui .ast-desktop .main-header-menu > .current-menu-ancestor > .menu-link,
body.obsidian-premium-ui .ast-desktop .main-header-menu > .menu-item > .menu-link:focus-visible {
  border-color: rgba(237, 28, 36, .36);
  background: linear-gradient(135deg, rgba(237, 28, 36, .18), rgba(255, 255, 255, .04));
  color: #fff !important;
  transform: translateY(-1px);
}

body.obsidian-premium-ui :where(.ast-header-account-wrap, .ast-site-header-cart > div, .ast-header-search) > a,
body.obsidian-premium-ui .ast-button-wrap .menu-toggle {
  border: 1px solid rgba(255, 255, 255, .11) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 20px rgba(0, 0, 0, .20) !important;
}

body.obsidian-premium-ui .ast-sticky-active :where(.ast-primary-header-bar, .site-primary-header-wrap) {
  min-height: 72px !important;
  background-color: rgba(7, 7, 8, .96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 921px) {
	/* Astra paints an opaque mobile bar above #masthead::before. Put the
	   molecular layer inside the visible bar so the identity survives mobile. */
	body.obsidian-premium-ui #ast-mobile-header .ast-primary-header-bar,
	body.obsidian-premium-ui .ast-mobile-header-wrap .ast-primary-header-bar {
		position: relative;
		isolation: isolate;
		overflow: hidden;
	}

	body.obsidian-premium-ui #ast-mobile-header .ast-primary-header-bar::before,
	body.obsidian-premium-ui .ast-mobile-header-wrap .ast-primary-header-bar::before {
		position: absolute;
		top: -34px;
		right: -105px;
		bottom: -34px;
		z-index: 0;
		width: min(78vw, 480px);
		content: "";
		opacity: .30;
		background: var(--ope-amino-motif) right center / auto 125% no-repeat;
		filter: drop-shadow(0 0 8px rgba(255, 52, 66, .30));
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
		pointer-events: none;
	}

	body.obsidian-premium-ui #ast-mobile-header .ast-primary-header-bar > *,
	body.obsidian-premium-ui .ast-mobile-header-wrap .ast-primary-header-bar > * {
		position: relative;
		z-index: 1;
	}

  body.obsidian-premium-ui #masthead::before {
    right: -190px;
    width: 88%;
    opacity: .16;
  }

  body.obsidian-premium-ui .ast-primary-header-bar,
  body.obsidian-premium-ui .site-primary-header-wrap {
    min-height: 76px !important;
  }

  body.obsidian-premium-ui .site-header .custom-logo-link {
    padding: 4px 8px;
    border-radius: 12px;
  }

  body.obsidian-premium-ui .site-header .custom-logo-link img,
  body.obsidian-premium-ui .site-header .custom-logo {
    max-width: min(190px, 44vw) !important;
    max-height: 62px !important;
  }

  body.obsidian-premium-ui #ast-mobile-header .site-header-primary-section-right,
  body.obsidian-premium-ui .ast-mobile-header-wrap .site-header-primary-section-right {
    gap: 9px !important;
  }

  body.obsidian-premium-ui #ast-mobile-header [data-section="section-header-mobile-trigger"] .menu-toggle,
  body.obsidian-premium-ui .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 544px) {
	body.obsidian-premium-ui #ast-mobile-header .ast-primary-header-bar::before,
	body.obsidian-premium-ui .ast-mobile-header-wrap .ast-primary-header-bar::before {
		right: -138px;
		width: 92vw;
		opacity: .27;
	}

  body.obsidian-premium-ui .ast-primary-header-bar,
  body.obsidian-premium-ui .site-primary-header-wrap {
    min-height: 70px !important;
  }

  body.obsidian-premium-ui .site-header .custom-logo-link img,
  body.obsidian-premium-ui .site-header .custom-logo {
    max-width: min(158px, 40vw) !important;
    max-height: 54px !important;
  }
}
