/* Ayur Ganesh premium mobile menu. All selectors are scoped to Astra's mobile drawer. */
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup {
  --ag-pm-bg: rgba(61, 37, 29, 0.74);
  --ag-pm-card: rgba(255, 255, 255, 0.075);
  --ag-pm-card-hover: rgba(255, 255, 255, 0.14);
  --ag-pm-text: #f7f2e9;
  --ag-pm-muted: #d1b9a4;
  --ag-pm-gold: #b18438;
  --ag-pm-gold-text: #261910;
  --ag-pm-focus: #eac781;
  --ag-pm-border: rgba(247, 242, 233, 0.16);
  z-index: 100000;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-overlay {
  background: rgba(15, 12, 10, 0.32) !important;
  transition: opacity 180ms ease;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-inner {
  left: auto !important;
  right: 0 !important;
  width: min(360px, 100vw) !important;
  max-width: min(360px, 100vw) !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--ag-pm-bg) !important;
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  color: var(--ag-pm-text) !important;
  border: 0;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: -16px 0 45px rgba(0, 0, 0, .22);
  transform: translateX(105%) !important;
  transition: transform 240ms ease-out, opacity 180ms ease;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup.active .ast-mobile-popup-inner {
  transform: translateX(0) !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  flex-shrink: 0;
  min-height: 94px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 14px !important;
  border-bottom: 1px solid var(--ag-pm-border);
  background: transparent !important;
  box-sizing: border-box;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ag-pm-text);
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-brand-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-brand-logo img {
  display: block;
  max-width: 58px;
  max-height: 57px;
  height: auto;
  width: auto;
  object-fit: contain;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-brand-label {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-menu-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ag-pm-text);
  white-space: nowrap;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-header .menu-toggle-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  flex: 0 0 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid var(--ag-pm-border) !important;
  border-radius: 10px !important;
  color: var(--ag-pm-text) !important;
  box-shadow: none !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-header .menu-toggle-close svg {
  fill: currentColor;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 24px !important;
  background: transparent !important;
  scrollbar-color: var(--ag-pm-border) transparent;
}

/* Astra may paint white on any intermediate off-canvas menu wrapper.
 * Clearing the entire wrapper chain removes pale strips between menu cards. */
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content :is(
  .ast-builder-layout-element,
  .ast-builder-menu,
  .ast-builder-menu-mobile,
  .main-header-bar-navigation,
  .ast-main-header-bar-alignment,
  nav,
  ul.main-header-menu,
  ul.ast-nav-menu,
  ul.menu,
  .ast-builder-menu-mobile .main-header-menu
) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content > .ast-builder-layout-element,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content > .ast-builder-menu {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .main-header-bar-navigation,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content nav,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .ast-main-header-bar-alignment {
  width: 100%;
  max-width: 100%;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  list-style: none;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item > a,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item > .menu-link {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: 0;
  padding: 14px 18px !important;
  min-height: 56px !important;
  width: 100%;
  margin: 0;
  background: var(--ag-pm-card) !important;
  border: 1px solid rgba(247, 242, 233, 0.11) !important;
  border-radius: 12px !important;
  font: 600 17px/1.45 Manrope, system-ui, sans-serif !important;
  color: var(--ag-pm-text) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 150ms ease, border-color 150ms ease;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item > a:hover,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item > a:focus-visible {
  background: var(--ag-pm-card-hover) !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .menu-item.current-menu-item > a,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .menu-item.current-menu-ancestor > a {
  border-left: 3px solid var(--ag-pm-gold) !important;
}

/* Never display generated menu-item icons or decorative arrows, including stale cached markup. */
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .ag-pm-icon,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content .ag-pm-end-icon {
  display: none !important;
}

/* Astra remains responsible for submenu expand/collapse behavior. */
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item-has-children > a {
  padding-right: 56px !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.menu-item-has-children > .ast-menu-toggle {
  position: absolute !important;
  right: 8px !important;
  top: 7px !important;
  left: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px !important;
  color: var(--ag-pm-gold) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu li .sub-menu {
  box-sizing: border-box;
  background: transparent !important;
  padding: 8px 0 2px 14px !important;
  margin: 0 !important;
  border: 0 !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu li .sub-menu li {
  margin: 0 0 7px !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu li .sub-menu li a {
  display: flex !important;
  align-items: center;
  min-height: 48px !important;
  padding: 10px 14px !important;
  font: 500 15px/1.4 Manrope, system-ui, sans-serif !important;
  color: var(--ag-pm-text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 9px !important;
}

/* Only a real top-level WordPress navigation item named "Online nákup" becomes a CTA. */
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.ag-pm-cta {
  order: 99;
  margin-top: 8px;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.ag-pm-cta > a,
body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.ag-pm-cta > .menu-link {
  background: rgba(177, 132, 56, 0.94) !important;
  color: var(--ag-pm-gold-text) !important;
  justify-content: center;
  font-weight: 700 !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li.ag-pm-cta > a:hover {
  background: #c49a4e !important;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ag-pm-footer {
  box-sizing: border-box;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  color: var(--ag-pm-muted);
  text-align: center;
  font: 500 12px/1.5 Manrope, system-ui, sans-serif;
  border-top: 1px solid var(--ag-pm-border);
  background: transparent !important;
  flex-shrink: 0;
}

body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup :is(a,button):focus-visible {
  outline: 2px solid var(--ag-pm-focus) !important;
  outline-offset: 3px !important;
}

@media (max-width: 359px) {
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content {
    padding: 14px !important;
  }
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-header {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-inner,
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-overlay,
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-content a {
    transition: none !important;
    animation: none !important;
  }
}

/* Fallback for browsers that do not support blurred translucent panels. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.ag-pm-enabled.ast-header-break-point #ast-mobile-popup .ast-mobile-popup-inner {
    background: rgba(61, 37, 29, 0.94) !important;
  }
}
