/*
 * Minimal replacement for wm/css/{font-awesome,bootstrap,base}.min.css + wm/style.min.css
 * Contains only the rules actually used by the Optikmash header/nav HTML.
 * ~4 KB vs ~1.2 MB for the full WoodMart bundle.
 */

/* ── Bootstrap container (only class used from bootstrap.min.css) ─────── */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

/* ── whb flex structure ───────────────────────────────────────────────── */
.whb-flex-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.whb-column {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.whb-row { transition: background-color .2s ease; }

.whb-color-dark:not(.whb-with-bg) { background-color: #fff; }

/* ── Main header / sticky ─────────────────────────────────────────────── */
.whb-main-header {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  z-index: 390;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.whb-sticked .whb-main-header {
  position: fixed;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}

.whb-sticked .whb-not-sticky-row { display: none; }

.whb-sticked .whb-row { transition: background-color .3s ease; }

.whb-sticky-shadow.whb-sticked .whb-main-header {
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ── Scroll-slide animation ───────────────────────────────────────────── */
.whb-scroll-slide.whb-scroll-down .whb-main-header,
.whb-scroll-slide.whb-scroll-up .whb-main-header {
  transition: -webkit-transform .3s ease;
  transition: transform .3s ease;
  transition: transform .3s ease, -webkit-transform .3s ease;
}

.whb-scroll-slide.whb-sticked .whb-main-header {
  -webkit-animation: wd-fadeInDownBig .4s ease;
          animation: wd-fadeInDownBig .4s ease;
}

.whb-scroll-slide.whb-hide-on-scroll.whb-sticked .whb-main-header {
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  -webkit-animation: none;
          animation: none;
}

.whb-scroll-slide.whb-hide-on-scroll.whb-scroll-up .whb-main-header {
  -webkit-transform: none;
          transform: none;
}

@-webkit-keyframes wd-fadeInDownBig {
  from { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
  to   { -webkit-transform: translateY(0);     transform: translateY(0); }
}
@keyframes wd-fadeInDownBig {
  from { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
  to   { -webkit-transform: translateY(0);     transform: translateY(0); }
}

/* ── Mobile-hidden top bar row ────────────────────────────────────────── */
.whb-hidden-mobile { display: none; }

@media (min-width: 992px) {
  .whb-hidden-mobile { display: flex; }
}

/* ── Navigation base ──────────────────────────────────────────────────── */
.woodmart-navigation .menu {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.woodmart-navigation .item-level-0 > a {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding-right: 10px;
  padding-left: 10px;
  text-transform: uppercase;
  letter-spacing: .2px;
  line-height: 1;
}

.woodmart-navigation .item-level-0.menu-item-has-children { position: relative; }
.woodmart-navigation .item-level-0.menu-item-has-children > a { position: relative; }

.main-nav .item-level-0 > a {
  height: 40px;
  font-weight: 600;
  font-size: 13px;
}

/* ── Underline hover animation ────────────────────────────────────────── */
.navigation-style-underline .nav-link-text {
  position: relative;
  display: inline-block;
  padding-top: 1px;
  padding-bottom: 1px;
  line-height: 1.2;
}

.navigation-style-underline .nav-link-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 2px;
  transition: width .4s cubic-bezier(.175,.885,.32,1.15);
}

.navigation-style-underline .item-level-0:hover > a .nav-link-text::after,
.navigation-style-underline .item-level-0.current-menu-item > a .nav-link-text::after {
  width: 100%;
}

.whb-color-dark .navigation-style-underline .item-level-0 > a { color: #333; }
