/* CORMAK 2026 facelift for IQITMEGAMENU. Visual layer only; no sticky/fixed behavior. */
.cormak2026-facelift {
  position: relative;
  z-index: 97;
  background: var(--cormak-nav-bg, #fff);
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(17, 24, 39, .06);
}

.cormak2026-facelift .container-iqitmegamenu {
  max-width: 1760px;
}

.cormak2026-facelift #iqitmegamenu-horizontal {
  min-height: var(--cormak-nav-height, 56px);
  background: var(--cormak-nav-bg, #fff);
}

.cormak2026-facelift #cbp-hrmenu > ul {
  display: flex;
  align-items: stretch;
  min-height: var(--cormak-nav-height, 56px);
}

.cormak2026-facelift #cbp-hrmenu > ul > li {
  display: flex;
  align-items: stretch;
}

.cormak2026-facelift #cbp-hrmenu > ul > li > a.nav-link {
  min-height: var(--cormak-nav-height, 56px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  color: var(--cormak-nav-text, #111827) !important;
  background: transparent !important;
  font-size: var(--cormak-nav-font-size, 13px);
  font-weight: var(--cormak-nav-font-weight, 700);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.cormak2026-facelift #cbp-hrmenu > ul > li.pull-right {
  margin-left: auto;
}

.cormak2026-facelift #cbp-hrmenu > ul > li:hover > a.nav-link,
.cormak2026-facelift #cbp-hrmenu > ul > li.cbp-hropen > a.nav-link {
  color: var(--cormak-accent, #e30613) !important;
  background: #fff7f7 !important;
  border-bottom-color: var(--cormak-accent, #e30613);
}

.cormak2026-facelift .cbp-submenu-aindicator {
  font-size: 11px;
  opacity: .72;
}

/* Existing IQIT vertical-menu-on-top becomes the red TOATE CATEGORIILE button. */
.cormak2026-facelift .cbp-vertical-on-top {
  align-self: stretch;
}

.cormak2026-facelift .cbp-vertical-title-text {
  display: inline !important;
  white-space: nowrap;
}

.cormak2026-facelift .cbp-vertical-on-top .cbp-vertical-title {
  min-height: var(--cormak-nav-height, 56px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: #fff !important;
  background: var(--cormak-accent, #e30613) !important;
  font-size: var(--cormak-nav-font-size, 13px);
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 0;
}

.cormak2026-facelift .cbp-vertical-on-top .cbp-vertical-title:hover {
  filter: brightness(.94);
}

/* Mega-menu shell */
.cormak2026-facelift .cbp-hrsub {
  margin-top: 0;
  padding-top: 12px;
  background: transparent;
}

.cormak2026-facelift .cbp-hrsub-inner {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: var(--cormak-submenu-radius, 14px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
}

.cormak2026-facelift .iqitmegamenu-submenu-container {
  padding: 0;
}

.cormak2026-facelift .cbp-tabs-container {
  margin: 0;
}

.cormak2026-facelift .cbp-tabs-container > .row {
  min-height: 390px;
}

.cormak2026-facelift .cbp-tabs-container .tabs-links {
  flex: 0 0 var(--cormak-tabs-width, 250px);
  max-width: var(--cormak-tabs-width, 250px);
  background: #f8fafc;
  border-right: 1px solid #e7ebf0;
  padding: 14px 10px;
}

.cormak2026-facelift .cbp-tabs-container .tab-content {
  flex: 1 1 auto;
  max-width: none;
  padding: 24px 26px 26px;
  background: #fff;
}

.cormak2026-facelift .cbp-hrsub-tabs-names li {
  border: 0;
  margin: 2px 0;
}

.cormak2026-facelift .cbp-hrsub-tabs-names li a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 11px 38px 11px 14px;
  border-radius: 9px;
  color: #1f2937 !important;
  font-size: 14px;
  font-weight: 650;
}

.cormak2026-facelift .cbp-hrsub-tabs-names li a:hover,
.cormak2026-facelift .cbp-hrsub-tabs-names li a.active,
.cormak2026-facelift .cbp-hrsub-tabs-names li.active a {
  color: var(--cormak-accent, #e30613) !important;
  background: #fff0f1 !important;
}

.cormak2026-facelift .cbp-submenu-it-indicator {
  right: 14px;
  color: #94a3b8;
}

.cormak2026-facelift .cbp-hrsub-tabs-names li a.active .cbp-submenu-it-indicator,
.cormak2026-facelift .cbp-hrsub-tabs-names li.active a .cbp-submenu-it-indicator {
  color: var(--cormak-accent, #e30613);
}

.cormak2026-facelift .cbp-column-title {
  color: #111827 !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}

.cormak2026-facelift .cbp-links li a {
  color: #475569 !important;
  font-size: 13px;
  line-height: 1.45;
}

.cormak2026-facelift .cbp-links li a:hover {
  color: var(--cormak-accent, #e30613) !important;
}

/* Existing IQIT product grid, visually upgraded without changing the builder. */
.cormak2026-facelift .cbp-products-big {
  margin-left: -8px;
  margin-right: -8px;
}

.cormak2026-facelift .cbp-products-big .product-grid-menu {
  padding-left: 8px;
  padding-right: 8px;
}

.cormak2026-facelift .cbp-products-big .product-miniature-container {
  height: 100%;
  text-align: left;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: var(--cormak-product-radius, 10px);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cormak2026-facelift .cbp-products-big .product-miniature-container:hover {
  transform: translateY(-2px);
  border-color: #d8dde4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
}

.cormak2026-facelift .cbp-products-big .product-image-container {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.cormak2026-facelift .cbp-products-big .product-image-container img {
  max-height: 145px;
  width: auto;
  object-fit: contain;
}

.cormak2026-facelift .cbp-products-big .product-title {
  min-height: 38px;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.cormak2026-facelift .cbp-products-big .product-title a {
  color: #111827 !important;
}

.cormak2026-facelift .cbp-products-big .product-title a:hover {
  color: var(--cormak-accent, #e30613) !important;
}

.cormak2026-facelift .cormak-product-reference {
  min-height: 17px;
  margin-bottom: 5px;
  color: #8a94a3;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.cormak2026-facelift .cbp-products-big .product-price-and-shipping {
  margin-top: 6px;
}

.cormak2026-facelift .cbp-products-big .product-price {
  color: #111827;
  font-weight: 800;
}

.cormak2026-facelift .cbp-banner-image {
  width: 100%;
  border-radius: 12px;
}

@media (max-width: 1199px) {
  .cormak2026-facelift #cbp-hrmenu > ul > li > a.nav-link {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }
  .cormak2026-facelift .cbp-tabs-container .tabs-links {
    flex-basis: 220px;
    max-width: 220px;
  }
}

@media (max-width: 999px) {
  .cormak2026-facelift {
    border: 0;
    box-shadow: none;
  }
}
