/**
 * MegaStoreVn — Bricks element: mega-category-desktop
 */

.wpthemify-danhmuc {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

.wpthemify-dm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpthemify-dm-trigger:hover,
.wpthemify-danhmuc.is-open .wpthemify-dm-trigger {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wpthemify-dm-icon-chevron {
  transition: transform 0.2s;
}

.wpthemify-danhmuc.is-open .wpthemify-dm-icon-chevron {
  transform: rotate(180deg);
}

.wpthemify-dm-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10050;
  display: none;
  width: min(920px, calc(100vw - 32px));
  min-height: 320px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.wpthemify-danhmuc.is-open .wpthemify-dm-panel {
  display: flex;
}

.wpthemify-dm-sidebar {
  flex: 0 0 220px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  max-height: 420px;
  overflow-y: auto;
}

.wpthemify-dm-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wpthemify-dm-sidebar-item:hover,
.wpthemify-dm-sidebar-item.is-active {
  background: #fff;
  color: #2563eb;
  border-left-color: #2563eb;
}

.wpthemify-dm-content {
  flex: 1;
  position: relative;
  min-height: 280px;
  padding: 16px 18px;
  max-height: 420px;
  overflow-y: auto;
}

.wpthemify-dm-tab {
  display: none;
}

.wpthemify-dm-tab.is-active {
  display: block;
}

.wpthemify-dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.wpthemify-dm-subitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  text-align: center;
  transition: background 0.15s;
}

.wpthemify-dm-subitem:hover {
  background: #f1f5f9;
}

.wpthemify-dm-subicon,
.wpthemify-dm-subicon-font {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.wpthemify-dm-subicon-font {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #64748b;
}

.wpthemify-dm-subicon-placeholder {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.wpthemify-dm-subitem span {
  font-size: 13px;
  line-height: 1.35;
}

.wpthemify-dm-empty,
.wpthemify-dm-no-menu {
  margin: 0;
  padding: 24px 12px;
  color: #64748b;
  font-size: 14px;
}
