/* Global-style product mega menu (Hostinger / OVH pattern) */
.hb-svc-card-mini,
.hb-mega-item {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  text-align: start;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.35 !important;
  color: #12262c !important;
  white-space: normal !important;
  transform: none !important;
  transition: background .15s ease;
}
.hb-svc-card-mini:hover,
.hb-svc-card-mini:focus,
.hb-mega-item:hover,
.hb-mega-item:focus {
  background: #f4f8ea !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: #12262c !important;
}
.hb-svc-card-mini .hb-svc-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.hb-svc-card-mini .hb-svc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hb-svc-card-mini.tone-green .hb-svc-icon { background: #eef6e0; color: #4d7c0f; }
.hb-svc-card-mini.tone-slate .hb-svc-icon { background: #e7eef0; color: var(--brand-secondary); }
.hb-svc-card-mini.tone-dark .hb-svc-icon { background: #eceff1; color: var(--brand-ink); }
.hb-svc-card-mini.tone-mint .hb-svc-icon { background: #e8f8ee; color: #166534; }
.hb-mega-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hb-mega-title,
.hb-svc-card-mini h3 {
  display: block;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #12262c !important;
  letter-spacing: -.02em;
  line-height: 1.3 !important;
}
.hb-mega-desc,
.hb-svc-card-mini p {
  display: block;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}
.hb-mega-price,
.hb-svc-card-mini .hb-svc-price {
  margin-top: 4px;
  color: var(--brand-secondary);
  font-size: 12px;
  font-weight: 650;
}
.hb-mega-price strong,
.hb-svc-card-mini .hb-svc-price strong {
  color: #12262c;
  font-weight: 800;
}
.hb-mega-go {
  flex: 0 0 auto;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  background: transparent;
  opacity: .55;
  transition: opacity .15s ease, background .15s ease, transform .15s ease;
}
.hb-mega-item:hover .hb-mega-go {
  opacity: 1;
  background: #fff;
  transform: translateX(2px);
}
html[dir="rtl"] .hb-mega-item:hover .hb-mega-go {
  transform: translateX(-2px);
}

/* Client sidebar */
.sidebar-menu .treeview-menu.hb-sidebar-svc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 12px !important;
  background: #1b2a30 !important;
}
.sidebar-menu .treeview-menu.hb-sidebar-svc > li,
.sidebar-menu .treeview-menu.hb-sidebar-svc > .hb-svc-menu-item {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.sidebar-menu .treeview-menu.hb-sidebar-svc .hb-mega-item:hover {
  background: rgba(255,255,255,.06) !important;
}
.sidebar-menu .treeview-menu.hb-sidebar-svc .hb-mega-title,
.sidebar-menu .treeview-menu.hb-sidebar-svc .hb-mega-price strong {
  color: #fff !important;
}
.sidebar-menu .treeview-menu.hb-sidebar-svc .hb-mega-desc,
.sidebar-menu .treeview-menu.hb-sidebar-svc .hb-mega-price {
  color: #9db0b6 !important;
}

/* Public header mega panel */
.hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu {
  display: none !important;
  width: 420px;
  max-width: min(420px, 94vw);
  padding: 10px 8px 8px !important;
  background: #ffffff !important;
  border: 1px solid #e6edf0 !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 60px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .04) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.hb-navbar .navbar-nav > li.dropdown.open > .dropdown-menu.hb-svc-mega-menu {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  animation: hbMegaIn .16s ease;
}
@media (min-width: 992px) {
  .hb-navbar .navbar-nav > li.dropdown:hover > .dropdown-menu.hb-svc-mega-menu {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    animation: hbMegaIn .16s ease;
  }
}
@keyframes hbMegaIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu > li,
.hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu > .hb-svc-menu-item {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  line-height: normal !important;
  overflow: visible !important;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
}
.hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu > li > a,
.hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu .hb-svc-card-mini {
  padding: 12px 12px !important;
  color: #12262c !important;
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.35 !important;
}
.hb-mega-head {
  list-style: none;
  padding: 6px 14px 10px !important;
  margin: 0 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  height: auto !important;
  line-height: 1.2 !important;
}
.hb-mega-foot {
  list-style: none;
  margin: 6px 8px 2px !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid #eef2f4;
  height: auto !important;
}
.hb-mega-foot > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px !important;
  border-radius: 10px;
  color: var(--brand-secondary) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  background: transparent !important;
  height: auto !important;
}
.hb-mega-foot > a:hover {
  background: #f4f8ea !important;
  color: var(--brand-primary) !important;
}

@media (max-width: 991px) {
  .hb-navbar .navbar-nav > li.dropdown > .dropdown-menu.hb-svc-mega-menu {
    width: 100%;
    max-width: 100%;
    position: static;
    box-shadow: none !important;
    border: 0 !important;
    padding: 4px 0 8px !important;
  }
  .hb-navbar .navbar-nav > li.dropdown.open > .dropdown-menu.hb-svc-mega-menu {
    display: flex !important;
    flex-direction: column;
  }
}
