/*
 * AK Chic Closet final cascade lock.
 * Loaded after the theme's legacy fix layers.
 */

:root {
  --ak-admin-offset: 0px;
  --ak-header-space: 126px;
}

.wp-site-blocks {
  padding-top: var(--ak-header-space) !important;
}

body.home .wp-site-blocks {
  padding-top: 0 !important;
}

html body header.ak-site-header,
html body .ak-site-header,
html body.home header.ak-site-header,
html body.home .ak-site-header {
  backface-visibility: hidden;
  left: 0 !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  transform: none !important;
  transition: background-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
  z-index: 100000 !important;
}

.admin-bar .ak-site-header {
  --ak-admin-offset: 32px;
  top: 32px !important;
}

.ak-site-header.ak-scrolled {
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.14) !important;
}

.ak-site-header.ak-scrolled .ak-site-nav,
body.home .ak-site-header.ak-scrolled .ak-site-nav {
  -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
  backdrop-filter: blur(12px) saturate(125%) !important;
  background: rgba(255, 250, 248, 0.94) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.26) !important;
}

.ak-dark .ak-site-header.ak-scrolled .ak-site-nav,
.ak-dark body.home .ak-site-header.ak-scrolled .ak-site-nav {
  background: rgba(17, 17, 17, 0.94) !important;
}

.ak-site-header .ak-account-menu.is-open[aria-hidden="false"] {
  max-height: calc(100vh - var(--ak-header-height, var(--ak-header-space)) - 1rem) !important;
  overflow-y: auto !important;
  position: fixed !important;
  right: clamp(0.75rem, 2vw, 1.5rem) !important;
  top: calc(
    var(--ak-admin-offset, 0px) +
    var(--ak-header-height, var(--ak-header-space)) -
    var(--ak-mobile-menu-offset, 0px) +
    0.5rem
  ) !important;
  z-index: 100010 !important;
}

body.home .ak-site-header:not(.ak-scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

body.home .ak-site-header:not(.ak-scrolled) .ak-announcement {
  -webkit-backdrop-filter: blur(2px) saturate(105%) !important;
  backdrop-filter: blur(2px) saturate(105%) !important;
  background: rgba(8, 8, 8, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72) !important;
}

body.home .ak-site-header:not(.ak-scrolled) .ak-site-nav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home .ak-site-header:not(.ak-scrolled) .ak-primary-menu {
  -webkit-backdrop-filter: blur(2px) saturate(105%) !important;
  backdrop-filter: blur(2px) saturate(105%) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

body.home .ak-site-header:not(.ak-scrolled) .ak-primary-menu .wp-block-navigation-item__content {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72) !important;
}

body.home .ak-site-header:not(.ak-scrolled) .ak-logo-fallback,
body.home .ak-site-header:not(.ak-scrolled) .wp-block-site-logo,
body.home .ak-site-header:not(.ak-scrolled) .custom-logo-link,
body.home .ak-site-header:not(.ak-scrolled) .ak-mobile-menu-toggle,
body.home .ak-site-header:not(.ak-scrolled) .ak-account-toggle,
body.home .ak-site-header:not(.ak-scrolled) .ak-header-bag,
body.home .ak-site-header:not(.ak-scrolled) .ak-theme-toggle {
  -webkit-backdrop-filter: blur(2px) saturate(105%) !important;
  backdrop-filter: blur(2px) saturate(105%) !important;
  background: rgba(9, 9, 9, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12) !important;
  color: #ffffff !important;
}

.ak-site-header .wp-block-site-logo img,
.ak-site-header .custom-logo {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

body.home .wp-block-cover.ak-hero,
body.home .ak-full-hero,
body.home .ak-hero {
  padding-top: calc(var(--ak-header-height, 124px) + clamp(1rem, 4vw, 3rem)) !important;
}

@media (max-width: 1024px) {
  body.home .ak-site-header .ak-primary-menu .wp-block-navigation-item__content,
  html.ak-menu-open body.home .ak-site-header .ak-primary-menu .wp-block-navigation-item__content {
    color: #111111 !important;
    text-shadow: none !important;
  }

  .ak-site-header .ak-header-actions > .ak-header-account,
  .ak-site-header .ak-header-actions > .ak-header-account .ak-account-toggle,
  body.home .ak-site-header .ak-header-actions > .ak-header-account,
  body.home .ak-site-header .ak-header-actions > .ak-header-account .ak-account-toggle,
  .ak-site-header .ak-primary-menu .ak-mobile-account-link,
  html.ak-menu-open .ak-site-header .ak-primary-menu .ak-mobile-account-link,
  body.ak-menu-open .ak-site-header .ak-primary-menu .ak-mobile-account-link {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --ak-header-space: 106px;
    --ak-mobile-bottom-nav-height: 64px;
  }

  body {
    padding-bottom: calc(var(--ak-mobile-bottom-nav-height) + env(safe-area-inset-bottom)) !important;
  }

  .ak-mobile-bottom-nav {
    align-items: center;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 242, 0.96)),
      rgba(255, 243, 242, 0.96);
    border-top: 1px solid rgba(212, 175, 55, 0.32);
    bottom: 0;
    box-shadow:
      0 -16px 46px rgba(17, 17, 17, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    display: grid !important;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: calc(var(--ak-mobile-bottom-nav-height) + env(safe-area-inset-bottom));
    left: 0;
    padding: 0.36rem 0.35rem calc(0.36rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 2147483000;
  }

  .ak-mobile-bottom-nav__item {
    align-items: center;
    color: rgba(17, 17, 17, 0.72);
    display: grid;
    gap: 0.16rem;
    justify-items: center;
    min-width: 0;
    padding: 0.18rem 0.08rem;
    text-decoration: none;
  }

  .ak-mobile-bottom-nav__icon {
    align-items: center;
    display: inline-flex;
    height: 23px;
    justify-content: center;
    position: relative;
    width: 23px;
  }

  .ak-mobile-bottom-nav__icon svg {
    fill: currentColor;
    height: 21px;
    width: 21px;
  }

  .ak-mobile-bottom-nav__label {
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .ak-mobile-bottom-nav__item.is-active,
  .ak-mobile-bottom-nav__item[aria-current="page"] {
    color: #111111;
  }

  .ak-mobile-bottom-nav__item.is-active .ak-mobile-bottom-nav__icon,
  .ak-mobile-bottom-nav__item[aria-current="page"] .ak-mobile-bottom-nav__icon {
    color: var(--ak-accent);
  }

  .ak-dark .ak-mobile-bottom-nav {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(24, 22, 21, 0.98)),
      #111111;
    border-top-color: rgba(212, 175, 55, 0.36);
  }

  .ak-dark .ak-mobile-bottom-nav__item {
    color: rgba(255, 243, 242, 0.62);
  }

  .ak-dark .ak-mobile-bottom-nav__item.is-active,
  .ak-dark .ak-mobile-bottom-nav__item[aria-current="page"] {
    color: #fff3f2;
  }
}

@media (max-width: 767px) {
  :root {
    --ak-header-space: 94px;
  }

  .admin-bar .ak-site-header {
    --ak-admin-offset: 46px;
    top: 46px !important;
  }

  .ak-mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .ak-site-header .ak-site-nav > .alignwide,
  .ak-site-header .ak-site-nav .alignwide {
    grid-template-columns: minmax(58px, 1fr) 46px 46px 46px !important;
  }

  .ak-site-header .ak-site-nav > .alignwide > .ak-mobile-menu-toggle,
  .ak-site-header .ak-site-nav .alignwide > .ak-mobile-menu-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .ak-site-header .ak-site-nav > .alignwide > .ak-header-actions,
  .ak-site-header .ak-site-nav .alignwide > .ak-header-actions {
    display: contents !important;
  }

  .ak-site-header .ak-site-nav > .alignwide > .ak-header-actions > .ak-header-bag,
  .ak-site-header .ak-site-nav .alignwide > .ak-header-actions > .ak-header-bag {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .ak-site-header .ak-site-nav > .alignwide > .ak-header-actions > .ak-theme-toggle,
  .ak-site-header .ak-site-nav .alignwide > .ak-header-actions > .ak-theme-toggle {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }

  body.home .wp-block-cover.ak-hero,
  body.home .ak-full-hero,
  body.home .ak-hero {
    min-height: clamp(430px, 58svh, 480px) !important;
    padding-bottom: 1.25rem !important;
    padding-top: 7rem !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .ak-site-header {
    --ak-admin-offset: 46px;
    top: 46px !important;
  }
}

@media (max-width: 560px) {
  html body .ak-site-header .ak-site-nav > .alignwide,
  html body .ak-site-header .ak-site-nav .alignwide {
    grid-template-columns: minmax(58px, 1fr) repeat(3, 46px) !important;
  }

  html body .ak-site-header .ak-site-nav > .alignwide > .ak-header-actions > .ak-header-bag,
  html body .ak-site-header .ak-site-nav .alignwide > .ak-header-actions > .ak-header-bag {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  html body .ak-site-header .ak-site-nav > .alignwide > .ak-header-actions > .ak-theme-toggle,
  html body .ak-site-header .ak-site-nav .alignwide > .ak-header-actions > .ak-theme-toggle {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }
}
