.casitek-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.casitek-mega-menu-grid .category-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.casitek-mega-menu-grid .category-item:hover {
  transform: translateY(-3px);
}

.casitek-mega-menu-grid .category-thumbnail {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.casitek-mega-menu-grid .category-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
  object-fit: contain;
  aspect-ratio: 1/1;
}

.casitek-mega-menu-grid .category-item:hover .category-thumbnail img {
  opacity: 0.85;
}

.casitek-mega-menu-grid .category-title {
  font-weight: 600;
  font-size: 14px;
  color: #f36f21;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casitek-header-nav li.has-casitek-mega-menu {
  position: static !important;
}

.casitek-header-nav .has-casitek-mega-menu .casitek-mega-menu-dropdown-wrapper::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: default;
}

.casitek-header-nav .has-casitek-mega-menu .casitek-mega-menu-dropdown-wrapper {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto 0 !important;

  width: 100% !important;
  max-width: 1100px !important;
  padding: 40px 50px !important;

  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 20px !important;
  border: none;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99999 !important;
  cursor: default;
  pointer-events: none;

  transform: translateY(15px);
}

.casitek-header-nav .has-casitek-mega-menu:hover .casitek-mega-menu-dropdown-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.casitek-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
}

.casitek-mega-menu-grid .category-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.casitek-mega-menu-grid .category-item:hover {
  transform: translateY(-3px);
}

.casitek-mega-menu-grid .category-thumbnail {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casitek-mega-menu-grid .category-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.casitek-mega-menu-grid .category-item:hover .category-thumbnail img {
  opacity: 0.85;
}

.casitek-mega-menu-grid .category-title {
  font-weight: 700;
  font-size: 14px;
  color: #f36f21;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
}
