/* DS Mega Menu (torovape-style)
   Widget output markup: .dsmm .dsmm__flyouts .dsmm__flyout a.dsmm__trigger + .dsmm__panel
*/

.dsmm {
  position: relative;
  width: 100%;
}

/* ----------------------------------------------------------
   DragonVape-style header wrappers
   (You asked for .header-navigation-wrapper as the main hook)
   ---------------------------------------------------------- */
.header-navigation-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
}
.header-navigation {
  width: 100%;
}
.header-navigation__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 18px;
}
.dsmm__flyouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}
.dsmm__flyout {
  position: static;
}
a.dsmm__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  color: #37414a !important;
  fill: #37414a !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
  padding: 12px 0;
  text-decoration: none;
}
a.dsmm__trigger:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.dsmm__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 24px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 9999;
}

.dsmm__panel-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.dsmm__cols {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
}

.dsmm__col {
  min-width: 0;
}
.dsmm__col-title {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
  text-decoration: none;
}
.dsmm__col-img {
  display: block;
  margin-top: 10px;
}
.dsmm__col-img img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.dsmm__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dsmm__link {
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

/* Open states */
.dsmm__flyout.is-open > .dsmm__panel {
  display: block;
}
.dsmm[data-open-mode="hover"] .dsmm__flyout:hover > .dsmm__panel {
  display: block;
}
.dsmm[data-open-mode="hover"] .dsmm__flyout:hover > a.dsmm__trigger {
  text-decoration: underline;
}

/* Mobile: stack + click to expand */
@media (max-width: 991px) {
  .dsmm__flyouts {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  a.dsmm__trigger {
    padding: 14px 0;
  }
  .dsmm__panel {
    position: static;
    box-shadow: none;
    padding: 0 0 14px 0;
    border-top: 0;
  }
  .dsmm__panel-inner {
    max-width: none;
  }
  .dsmm__cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dsmm__col-img img {
    height: 160px;
  }
}

/* ==========================================================
   Mobile off-canvas (DragonVape-style) for prodvariants layout
   ========================================================== */

button.dsmmM__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #192f42;
}
.dsmmM__burger {
  display: grid;
  gap: 5px;
}
.dsmmM__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.dsmmM {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.dsmmM.is-open {
  display: block;
}
.dsmmM__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.dsmmM__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-100vw);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.dsmmM.is-open .dsmmM__panel {
  transform: translateX(0);
}

.dsmmM__views {
  height: 100%;
  display: flex;
  width: 300%;
  transform: translateX(0);
  transition: transform 240ms ease;
  will-change: transform;
}
/* view states: root (0), products (1), variants (2) */
.dsmmM.is-sub .dsmmM__views {
  transform: translateX(-33.333%);
}
.dsmmM.is-vars .dsmmM__views {
  transform: translateX(-66.666%);
}

.dsmmM__view {
  flex: 0 0 33.333%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Mobile menu: defensive resets against theme button/link styles */
.dsmmM a,
.dsmmM button {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.dsmmM button {
  appearance: none;
}
.dsmmM__rootItem,
.dsmmM__prodItem,
.dsmmM__varLink {
  border: 0 !important;
  outline: 0;
}
.dsmmM__rootItem:hover,
.dsmmM__prodItem:hover,
.dsmmM__varLink:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dsmmM__topbar,
.dsmmM__subbar {
  height: 44px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.dsmmM__topbar button,
.dsmmM__subbar button {
  color: #fff;
  border: 1px solid #fff;
  font-size: 1.5rem;
  padding: 0px 10px;
}
.dsmmM__tabs {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.dsmmM__close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.dsmmM__rootList {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dsmmM__rootItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsmmM__back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.dsmmM__subTitle {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 36px; /* balance back button */
}

.dsmmM__subBody {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dsmmM__goto {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}

.dsmmM__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dsmmM__prodItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsmmM__prodText {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}
.dsmmM__prodItem .dsmmM__chev {
  opacity: 0.7;
}
span.dsmmM__chev {
  font-size: 16px;
}
.dsmmM__varLink {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}
.dsmmM__varLink:active,
.dsmmM__prodItem:active,
.dsmmM__rootItem:active {
  background: rgba(0, 0, 0, 0.08);
}

.dsmmM__prod {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.dsmmM__prodBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dsmmM__vars {
  padding: 0 16px 10px;
}
.dsmmM__varList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dsmmM__varLink {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

@media (max-width: 991px) {
  /* Hide desktop tabs & dropdown on mobile; use off-canvas instead */
  .dsmm--prodvariants .dsmm__flyouts {
    display: none;
  }
  .dsmm--prodvariants button.dsmmM__toggle {
    display: inline-flex;
  }
}

/* Prevent background scroll when mobile menu is open */
html.dsmmM-open,
html.dsmmM-open body {
  overflow: hidden;
}

/* ==========================================================
   simple layout: DragonVape-like category mega menu
   (headings + link lists, no products)
   ========================================================== */

.dsmm--simple .dsmm__flyouts {
  justify-content: center;
}

.dsmm--simple .dsmm__panel {
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 22px 0 30px;
  background: #fff;
  z-index: 999999;
}

.dsmm--simple .dsmm__panel-inner {
  max-width: 1600px;
  padding: 0 32px;
}

/* Flexbox columns */
.dsmm--simple .dsmm__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
}

.dsmm--simple .dsmm__col {
  flex: 0 1 240px;
  min-width: 200px;
}

.dsmm--simple .dsmm__col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.dsmm--simple .dsmm__links {
  gap: 10px;
}

.dsmm--simple .dsmm__link {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dsmm--simple .dsmm__link:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .dsmm--simple .dsmm__cols {
    gap: 36px;
  }
  .dsmm--simple .dsmm__col {
    flex-basis: 220px;
  }
}

@media (max-width: 900px) {
  .dsmm--simple .dsmm__cols {
    gap: 22px;
    justify-content: flex-start;
  }
  .dsmm--simple .dsmm__col {
    flex: 1 1 220px;
  }
}
/* Products (optional under each column) */
.dsmm__products {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dsmm__prod {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.dsmm__prodImg {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 44px;
}
.dsmm__prodMeta {
  display: grid;
  gap: 2px;
}
.dsmm__prodTitle {
  font-size: 13px;
  line-height: 1.25;
}
.dsmm__prodPrice {
  font-size: 12px;
  opacity: 0.8;
}

/* ==========================================================
   torovape layout: match ToroVape screenshot (text-only columns)
   ========================================================== */

/* Full-width solid dropdown so page products don't show through */
.dsmm--torovape .dsmm__panel {
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: #fff;
  z-index: 999999;
}

/* Center the top trigger row */
.dsmm--torovape .dsmm__flyouts {
  justify-content: center;
}

/* Full-width dropdown with centered inner container */
.dsmm--torovape .dsmm__panel {
  padding: 18px 0 26px;
}

.dsmm--torovape .dsmm__panel-inner {
  max-width: 1600px;
  padding: 0 32px;
}

/* Hide category images + subcategory headings/trees in torovape list view */
.dsmm--torovape .dsmm__col-img,
.dsmm--torovape .dsmm__col-title,
.dsmm--torovape .dsmm__links {
  display: none !important;
}

/* Make product links (or the only content) flow into columns */
.dsmm--torovape .dsmm__cols {
  display: block; /* override grid */
}

.dsmm--torovape .dsmm__products {
  display: block; /* override grid */
  columns: 6;
  column-gap: 56px;
  margin-top: 8px;
}

.dsmm--torovape .dsmm__prod {
  break-inside: avoid;
  padding: 10px 0;
}

.dsmm--torovape .dsmm__prodImg,
.dsmm--torovape .dsmm__prodPrice {
  display: none !important;
}

.dsmm--torovape .dsmm__prodTitle {
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.dsmm--torovape .dsmm__prod:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .dsmm--torovape .dsmm__products {
    columns: 4;
  }
}

@media (max-width: 900px) {
  .dsmm--torovape .dsmm__products {
    columns: 3;
    column-gap: 32px;
  }
}

@media (max-width: 600px) {
  .dsmm--torovape .dsmm__products {
    columns: 2;
  }
}

/* ==========================================================
   Explorer layout: Categories → Products → Variants (AJAX)
   Uses flexbox (requested)
   ========================================================== */

.dsmm--explorer .dsmm__panel {
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: #fff;
  z-index: 999999;
  padding: 18px 0 26px;
}

.dsmm--explorer .dsmm__panel-inner {
  max-width: 1400px;
  padding: 0 32px;
}

.dsmmx {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.dsmmx__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dsmmx__cats {
  flex: 0 0 260px;
}
.dsmmx__products {
  flex: 1 1 0;
}
.dsmmx__variants {
  flex: 1 1 0;
}

.dsmmx__title {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.dsmmx__pane {
  flex: 1;
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.dsmm__loading {
  font-size: 13px;
  opacity: 0.8;
}

/* Categories list */
.dsmmx__catList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dsmmx__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.dsmmx__catImg {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 32px;
}

.dsmmx__catName {
  font-size: 13px;
  line-height: 1.25;
}

.dsmmx__cat.is-active {
  background: rgba(0, 0, 0, 0.06);
}

/* Products list */
.dsmmx__prodList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsmmx__prodLink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.dsmmx__prodImg {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 44px;
}

.dsmmx__prodMeta {
  min-width: 0;
}

.dsmmx__prodName {
  font-size: 13px;
  line-height: 1.25;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsmmx__prod.is-active .dsmmx__prodLink {
  background: rgba(0, 0, 0, 0.06);
}

/* Variants */
.dsmmx__variantList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dsmmx__variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dsmmx__cta {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .dsmmx {
    flex-direction: column;
    gap: 14px;
  }
  .dsmmx__cats {
    flex: 1 1 auto;
  }
  .dsmmx__pane {
    max-height: none;
  }
}

/* Products → Variants (Category trigger) layout */

/* Full-width dropdown (DragonVape-style) */
.dsmm--prodvariants .dsmm__panel {
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: #fff;
  z-index: 999999;
  padding: 18px 0 26px;
}

.dsmm--prodvariants .dsmm__panel-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

.dsmm--prodvariants .dsmmPV__grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 28px;
  align-items: flex-start;
}

.dsmm--prodvariants .dsmmPV__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  max-width: 220px;
}

.dsmm--prodvariants .dsmmPV__product {
  text-decoration: none;
  display: inline-flex;
}

.dsmm--prodvariants .dsmmPV__productName {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #111;
}

.dsmm--prodvariants .dsmmPV__variantList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dsmm--prodvariants .dsmmPV__variantLink {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a5a5a;
}

.dsmm--prodvariants .dsmmPV__variantLink:hover {
  text-decoration: underline;
  color: #111;
}

.dsmm--prodvariants .dsmmPV__empty {
  font-size: 12px;
  color: #666;
}
