/* Kicking Area — mega navigation (desktop) + mobile drawer */

.vw-header,
.menu-desktop-wrap,
.menu-desktop-list {
  overflow: visible !important;
}

.menu-desktop-wrap {
  position: relative;
  width: 100%;
  background-color: #111111;
  border-bottom: 3px solid #c8102e;
  display: none;
  z-index: 1030;
}

@media (min-width: 992px) {
  .menu-desktop-wrap {
    display: block;
  }
}

/*
 * OpenCart Kick Sport：#menu 定位上下文；L1 position:static；
 * 弹层 left:0 / width:100%。
 */
#menu.menu-desktop-list,
.menu-desktop-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 0;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
  position: relative;
  z-index: 2;
}

.menu-desktop-list > li {
  position: relative;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .menu-desktop-list > li.menu-item-has-children {
    position: static !important;
  }
}

.menu-desktop-list > li > a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display, 'Barlow Condensed', Inter, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.menu-desktop-list > li > a:hover,
.menu-desktop-list > li:hover > a,
.menu-desktop-list > li:focus-within > a,
.menu-desktop-list > li.current-menu-item > a,
.menu-desktop-list > li.current-menu-ancestor > a,
.menu-desktop-list > li.current-menu-parent > a {
  color: #c8102e;
  text-decoration: none;
  border-bottom-color: transparent;
}

/* Desktop mega — OpenCart left/width; top flush under hovered L1 (JS sets --vw-mega-top) */
@media (min-width: 992px) {
  .menu-desktop-list > li > .vw-mega-panel {
    display: block !important;
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none;
    top: var(--vw-mega-top, 100%);
    z-index: 1000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 36px rgba(15, 17, 20, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  /* 向上延伸透明热区，消除菜单与弹层之间的空隙导致 hover 丢失 */
  .menu-desktop-list > li > .vw-mega-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  .menu-desktop-list > li:hover > .vw-mega-panel,
  .menu-desktop-list > li:focus-within > .vw-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 991.98px) {
  .menu-desktop-list > li > .vw-mega-panel {
    display: none !important;
  }
}

.vw-mega-inner {
  background: #fff;
  border: 0;
  margin: 0;
  padding: 1.1rem 0 0.95rem;
  width: 100%;
}

.vw-mega-inner > .container {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.vw-mega-grid.sub-menu,
.menu-desktop-list .vw-mega-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: static !important;
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-width: 0;
  align-items: start;
  float: none !important;
  left: auto !important;
  top: auto !important;
}

.vw-mega-grid > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}

.vw-mega-grid > li:not(.menu-item-has-children) > a,
.vw-mega-grid > li.vw-menu-depth-1:not(.menu-item-has-children) > a {
  display: block;
  padding: 0.4rem 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d1f21;
  line-height: 1.4;
  text-decoration: none;
}

.vw-mega-grid > li:not(.menu-item-has-children) > a:hover {
  color: #c8102e;
}

.vw-mega-grid > li.menu-item-has-children,
.vw-mega-grid > li.vw-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vw-mega-grid > li.menu-item-has-children > a,
.vw-mega-grid > li.vw-mega-col > a {
  display: block;
  padding: 0 0.1rem 0.4rem;
  margin-bottom: 0.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d1f21;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid #ebebeb;
}

.vw-mega-grid > li.menu-item-has-children > a:hover,
.vw-mega-grid > li.vw-mega-col > a:hover {
  color: var(--brand-accent, #c8102e);
}

.vw-mega-grid .vw-mega-col-list,
.vw-mega-grid .sub-menu {
  display: flex !important;
  flex-direction: column;
  gap: 0.05rem;
  position: static !important;
  transform: none !important;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none !important;
  background: transparent !important;
  list-style: none;
  float: none !important;
}

.vw-mega-grid .vw-mega-col-list a,
.vw-mega-grid .sub-menu a,
.vw-mega-grid .vw-menu-depth-2 > a {
  display: block;
  padding: 0.32rem 0.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  line-height: 1.4;
  text-decoration: none;
}

.vw-mega-grid .vw-mega-col-list a:hover,
.vw-mega-grid .sub-menu a:hover {
  color: var(--brand-accent, #c8102e);
}

.vw-mega-grid .vw-mega-nested {
  display: flex !important;
  flex-direction: column;
  margin: 0.1rem 0 0.3rem 0.55rem;
  padding: 0;
  list-style: none;
}

.vw-mega-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ebebeb;
}

.vw-mega-show-all {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1f21;
  text-decoration: none;
}

.vw-mega-show-all:hover {
  color: var(--brand-accent, #c8102e);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .menu-desktop-list > li > a {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
  }

  .vw-mega-grid.sub-menu,
  .menu-desktop-list .vw-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Mobile / tablet off-canvas ===== */
.vw-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1090;
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.vw-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 1100;
  box-shadow: var(--box-shadow-lg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body.vw-nav-open .vw-mobile-nav {
  transform: translateX(0);
}

body.vw-nav-open .vw-mobile-overlay {
  opacity: 1;
}

.vw-mobile-nav-inner {
  padding: 0.75rem 1rem 1.5rem;
}

.vw-mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.vw-mobile-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1f21;
}

.vw-mobile-close {
  border: none;
  background: #f3f3f3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  color: #1d1f21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vw-mobile-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vw-mobile-account a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d1f21;
  background: #f8f8f8;
}

.vw-mobile-account a:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.vw-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vw-mobile-menu > li {
  border-bottom: 1px solid #f0f0f0;
}

.vw-mobile-menu > li > a {
  display: block;
  padding: 0.9rem 2.5rem 0.9rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1d1f21;
  min-height: 44px;
}

.vw-mobile-menu .menu-item-has-children {
  position: relative;
}

.vw-submenu-toggle {
  position: absolute;
  top: 0.35rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.vw-mobile-menu .menu-item-has-children.is-open > .vw-submenu-toggle {
  transform: rotate(180deg);
  color: var(--brand-accent);
}

.vw-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.85rem;
  display: none;
}

.vw-mobile-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.vw-mobile-menu .sub-menu a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: #666;
  min-height: 40px;
}

.vw-mobile-menu .sub-menu .sub-menu {
  padding-left: 0.75rem;
  border-left: 2px solid #f0f0f0;
  margin-left: 0.15rem;
}

.vw-mobile-menu .sub-menu .menu-item-has-children > a {
  font-weight: 600;
  color: #1d1f21;
}

.vw-mobile-menu .vw-menu-depth-2 > a {
  font-size: 0.85rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .vw-mobile-nav {
    width: min(400px, 70vw);
  }

  .vw-mobile-menu > li > a {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .vw-mobile-nav,
  .vw-mobile-overlay {
    display: none !important;
  }
}
