/* ========================================================================== 
   Asia Laptop Mega Menu - Front Styles (نسخه 2.2.2 نهایی)
   ========================================================================== */

.asia-mega-menu-wrapper,
.asia-mega-menu-wrapper * {
  box-sizing: border-box;
}

.asia-mega-menu-wrapper {
  position: relative;
  display: inline-block;
  direction: rtl;
  z-index: 999999;
}

/* Trigger - دکمه کوچکتر بدون سایه */
.asia-mega-menu-wrapper .asia-mega-menu-trigger {
  width: 160px !important;
  height: 56px !important;
  border-radius: 40px !important;
  padding: 14px 28px !important;
  gap: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
  border: 0 !important;
  cursor: pointer !important;
  direction: rtl !important;
  transition: background-color .2s ease !important;
  box-shadow: none !important;
}

.asia-mega-menu-wrapper .asia-mega-menu-trigger .trigger-text {
  font-family: 'Estedad-FD', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 100% !important;
  letter-spacing: -0.02em !important;
  color: #FFFFFF !important;
  user-select: none !important;
  order: 2 !important;
}

.asia-mega-menu-wrapper .asia-mega-menu-trigger .trigger-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 auto !important;
  object-fit: contain !important;
  order: 1 !important;
}

.asia-mega-menu-wrapper .asia-mega-menu-trigger:hover {
  background: #111111 !important;
  transform: none !important;
  box-shadow: none !important;
}

.asia-mega-menu-wrapper.is-open .asia-mega-menu-trigger {
  background: #2267F2 !important;
}

.asia-mega-menu-wrapper .asia-mega-menu-trigger:focus-visible {
  outline: 3px solid #2267F2 !important;
  outline-offset: 2px !important;
}

/* Dropdown */
.asia-mega-menu-wrapper .asia-mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 999999;
  direction: rtl;
}

.asia-mega-menu-wrapper:hover .asia-mega-menu-dropdown,
.asia-mega-menu-wrapper.is-open .asia-mega-menu-dropdown,
.asia-mega-menu-wrapper .asia-mega-menu-dropdown:hover,
.asia-mega-menu-wrapper .asia-mega-menu-dropdown:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Container */
.asia-mega-menu-wrapper .asia-mega-menu-container {
  display: flex;
  flex-direction: row;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  background: #FFFFFF;
}

/* Right sidebar */
.asia-mega-menu-wrapper .asia-mega-menu-sidebar {
  width: 283px;
  min-height: 465px;
  background: #F5F5F5;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asia-mega-menu-wrapper .asia-menu-item-link {
  text-decoration: none;
  display: block;
}

/* Main item button - فقط .active دارای background باشد نه hover */
.asia-mega-menu-wrapper .asia-menu-item-btn {
  width: 255px;
  min-height: 60px;
  padding: 20px 14px;
  border-radius: 13px;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  text-align: right;
  direction: rtl;
  transition: background-color .2s ease;
}

.asia-mega-menu-wrapper .asia-menu-item-link .asia-menu-item-btn {
  display: block;
}

/* فقط active دارای background سفید باشد */
.asia-mega-menu-wrapper .asia-menu-item-btn.active {
  background: #FFFFFF !important;
}

/* در hover فقط رنگ عنوان تغییر کند نه background */
.asia-mega-menu-wrapper .asia-menu-item-btn:hover {
  background: transparent !important;
}

.asia-mega-menu-wrapper .asia-menu-item-btn.active:hover {
  background: #FFFFFF !important;
}

.asia-mega-menu-wrapper .asia-menu-item-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asia-mega-menu-wrapper .asia-menu-item-text {
  flex: 1;
  min-width: 0;
}

.asia-mega-menu-wrapper .asia-menu-title {
  display: block;
  font-family: 'Estedad-FD', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #000000;
  transition: color .2s ease;
}

.asia-mega-menu-wrapper .asia-menu-subtitle {
  display: block;
  margin-top: 4px;
  font-family: 'Estedad-VF', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #999999;
}

.asia-mega-menu-wrapper .asia-menu-item-btn:hover .asia-menu-title,
.asia-mega-menu-wrapper .asia-menu-item-btn.active .asia-menu-title {
  color: #2267F2;
}

/* Icons */
.asia-mega-menu-wrapper .asia-menu-icon-wrapper {
  width: 24px;
  height: 24px;
  position: relative;
  flex: 0 0 auto;
}

.asia-mega-menu-wrapper .asia-menu-icon-wrapper img {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity .2s ease;
}

.asia-mega-menu-wrapper .asia-icon-normal { opacity: 1; }
.asia-mega-menu-wrapper .asia-icon-hover { opacity: 0; }

.asia-mega-menu-wrapper .asia-menu-item-btn:hover .asia-icon-normal,
.asia-mega-menu-wrapper .asia-menu-item-btn.active .asia-icon-normal { opacity: 0; }

.asia-mega-menu-wrapper .asia-menu-item-btn:hover .asia-icon-hover,
.asia-mega-menu-wrapper .asia-menu-item-btn.active .asia-icon-hover { opacity: 1; }

/* Left content area */
.asia-mega-menu-wrapper .asia-mega-menu-content-area {
  width: 915px;
  min-height: 465px;
  background: #FFFFFF;
  padding: 40px;
}

.asia-mega-menu-wrapper .asia-submenu-content { display: none; }
.asia-mega-menu-wrapper .asia-submenu-content.active { display: block; }

/* Grid */
.asia-mega-menu-wrapper .asia-submenu-grid {
  display: grid;
  gap: 50px;
}
.asia-mega-menu-wrapper .asia-submenu-grid[data-columns="1"] { grid-template-columns: 1fr; }
.asia-mega-menu-wrapper .asia-submenu-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.asia-mega-menu-wrapper .asia-submenu-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.asia-mega-menu-wrapper .asia-submenu-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

/* عنوان ستون - راست‌چین با آیکن دقیقاً سمت راست */
.asia-mega-menu-wrapper .asia-column-heading {
  margin: 0 0 20px 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  direction: rtl !important;
  text-align: right !important;
}

.asia-mega-menu-wrapper .asia-column-heading img {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  order: 1 !important;
}

.asia-mega-menu-wrapper .asia-column-heading span {
  font-family: 'Estedad-VF', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 100% !important;
  letter-spacing: -0.02em !important;
  color: #000000 !important;
  text-align: right !important;
  order: 2 !important;
}

/* Links */
.asia-mega-menu-wrapper .asia-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asia-mega-menu-wrapper .asia-submenu-link {
  font-family: 'Estedad-VF', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #999999;
  text-decoration: none;
  transition: color .2s ease, font-weight .2s ease;
}

.asia-mega-menu-wrapper .asia-submenu-link:hover,
.asia-mega-menu-wrapper .asia-submenu-link[aria-current="page"] {
  font-weight: 500;
  color: #F8873B;
}

.asia-mega-menu-wrapper .asia-submenu-link:focus-visible,
.asia-mega-menu-wrapper .asia-menu-item-btn:focus-visible {
  outline: 2px solid #2267F2;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1280px) {
  .asia-mega-menu-wrapper .asia-mega-menu-content-area { width: 700px; }
  .asia-mega-menu-wrapper .asia-submenu-grid { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .asia-mega-menu-wrapper * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}