﻿/* =========================================================================
   vitawick-style header / footer overrides for BShop (global)
   Loaded in layout.master (after app.css) and scoped to .vw-header/.vw-footer
   so it only restyles the chrome and never touches the homepage middle
   (.vw-home) or other BShop functionality.
   Palette: ink #000 / body #a5a5a5 / link-hover #285cea / cart-badge #000
   Font: DM Sans (loaded globally in layout.master)
   ========================================================================= */

.vw-header,
.vw-footer {
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
}

/* ----------------------------- HEADER ----------------------------------- */
.vw-header {
  background: #ffffff;
}

/* thin top utility bar (currency / language / phone) 鈥?kept for BShop
   plugin hooks but restyled minimal to echo vitawick's clean look */
.vw-header .top-wrap {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666;
  padding: 6px 0;
}
.vw-header .top-wrap a,
.vw-header .top-wrap .dropdown > a {
  color: #444;
  font-size: 13px;
}
.vw-header .top-wrap a:hover { color: #285cea; }
.vw-header .top-wrap .dropdown-menu { min-width: 8rem; }
.vw-header .top-wrap .left > span,
.vw-header .top-wrap .right > span { color: #666; }

/* main header row: white, sticky, subtle border + light shadow */
.vw-header .header-content {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
}
.vw-header .header-content .navbar-expand-lg {
  display: flex;
  align-items: center;
}
.vw-header .header-content .logo img {
  height: 48px;
  width: auto;
}

/* desktop nav menu (BShop category menu) 鈥?matched to vitawick reference
   reference token: .t4s-nav__ul>li>a { font-size:20px; font-weight:400; padding:5px 17.5px }
   color #000 / hover #285cea (handled in shared rule below) */
.vw-header .menu-wrap { flex: 1 1 auto; }
.vw-header .menu-wrap a,
.vw-header .menu-wrap .nav-link {
  color: #000000;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .2px;
  padding: 5px 17.5px;
}
.vw-header .menu-wrap a:hover,
.vw-header .menu-wrap .nav-link:hover,
.vw-header .menu-wrap a.active { color: #285cea; }
/* narrow desktop: keep the row from wrapping when many categories exist */
@media (max-width: 1199px) {
  .vw-header .menu-wrap a,
  .vw-header .menu-wrap .nav-link {
    font-size: 16px;
    padding: 5px 12px;
  }
}

/* right icon group: search / wishlist / account / cart + currency / language */
.vw-header .right-btn { margin-left: auto; }
.vw-header .right-btn .nav-link { padding: 0 8px; }
.vw-header .right-btn .navbar-nav { align-items: center; }
.vw-header .right-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.vw-header .right-btn .dropdown-menu {
  right: 0;
  left: auto;
}
/* currency / language relocated look inside the icon row */
.vw-header .right-btn .nav-item .dropdown > a.btn {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  padding: 0 10px;
}
.vw-header .right-btn .nav-item .dropdown > a.btn:hover { color: #285cea; }

/* cart count badge -> vitawick style: black pill, white text
   reference token: .t4s-count-box { --h-count-bgcolor:#000; --h-count-color:#fff }
   design3 sizing: 19x19 circle */
.vw-header .cart-badge-quantity {
  position: absolute;
  top: -7px;
  right: -9px;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}

/* mobile header */
.vw-header .header-mobile {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}
.vw-header .header-mobile .mobile-content { padding: 8px 0; }
.vw-header .header-mobile .left img,
.vw-header .header-mobile .right img { width: 24px; height: 24px; }
.vw-header .header-mobile .center img { height: 32px; width: auto; }

/* ----------------------------- MOBILE BOTTOM NAV -------------------------- */
/* Reference: vitawick H5 bottom bar — 4 tabs: Shop / Cart / Account / Search */
.vw-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 100;
  /* keep above normal page content */
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.06);
}

.vw-mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.vw-mobile-nav__item:hover,
.vw-mobile-nav__item:active,
.vw-mobile-nav__item.is-active {
  color: #222;
}

.vw-mobile-nav__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 24px;
  line-height: 1;
}
.vw-mobile-nav__icon svg {
  width: 22px;
  height: 22px;
}
.vw-mobile-nav__icon i.la {
  font-size: 24px;
  line-height: 1;
  display: block;
}

/* cart badge: mirror the header badge styling */
.vw-mobile-nav .cart-badge-quantity {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 0 1.5px #fff;
}

.vw-mobile-nav__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* body padding-bottom so content isn't hidden behind the fixed nav */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 60px;
  }
}
