/* Minimal editorial accordion in the existing Farabi glass mega-menu.
   Existing columns, backgrounds, hover behavior and geometry remain intact. */
@media (min-width: 961px) {
  #ast-desktop-header .farabi-mega .farabi-mega-row[aria-expanded="true"] {
    background: rgba(224, 244, 233, .9) !important;
    border-color: rgba(165, 211, 187, .75) !important;
  }
  #ast-desktop-header .farabi-mega .farabi-accordion-content {
    margin: 2px 8px 8px 48px;
    padding: 10px 12px;
    background: rgba(245, 252, 247, .94);
    border-right: 2px solid rgba(56, 139, 96, .7);
    border-radius: 5px;
    color: #365b4b;
    font-size: 11px;
    font-weight: 400;
    line-height: 2.1;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: right;
    direction: rtl;
    animation: farabiAccordionAppear .16s ease-out;
  }
  @keyframes farabiAccordionAppear {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 960px) {
  #ast-mobile-header .farabi-accordion-mobile-description {
    margin: 0 9px 9px 12px;
    padding: 8px 10px;
    background: rgba(233, 248, 239, .86);
    border-right: 2px solid #77bc98;
    border-radius: 5px;
    font-size: 11px;
    line-height: 2.05;
    color: #416453;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: right;
    direction: rtl;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ast-desktop-header .farabi-mega .farabi-accordion-content {
    animation: none;
  }
}

/* Keep the entire Products dropdown visible while an accordion is clicked open.
 * UberMenu normally hides hover dropdowns on mouseleave. This state class is
 * scoped exclusively to the Products top-level item, not any other menus. */
@media (min-width: 961px) {
  #ast-desktop-header #menu-item-10146.farabi-accordion-pinned > ul.ubermenu-submenu.ubermenu-submenu-drop {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 10000 !important;
  }
}
