/* DCAShop desktop mega menu. Isolated selectors, no global .nav/.row overrides. */
.dcashop-mega {
  --dca-blue: #446084;
  --dca-blue-soft: #edf3f9;
  --dca-text: #26364a;
  --dca-muted: #66778b;
  direction: rtl;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  width: 100%;
  min-height: 435px;
  max-height: min(650px, calc(100vh - 155px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(25, 42, 65, .16);
  color: var(--dca-text);
  font-family: inherit;
  line-height: 1.8;
  text-align: right;
}
.dcashop-mega * { box-sizing: border-box; }
.dcashop-mega__rail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid #e5edf5;
  background: #f6f8fb;
}
.dcashop-mega__tab {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 0 0 auto;
  min-height: 43px;
  padding: 9px 12px;
  margin: 0;
  border: 0;
  border-right: 3px solid transparent;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #364a62;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  text-align: right;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.dcashop-mega__tab:hover, .dcashop-mega__tab:focus-visible,
.dcashop-mega__tab.is-active {
  background: #e9f0f8;
  border-right-color: var(--dca-blue);
  color: var(--dca-blue);
}
.dcashop-mega__tab:focus-visible { outline: 2px solid var(--dca-blue); outline-offset: -2px; }
.dcashop-mega__chevron { font-size: 20px; font-weight: 400; opacity: .75; }
.dcashop-mega__content { min-width: 0; overflow: hidden; }
.dcashop-mega__panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 22px 27px 26px; }
.dcashop-mega__panel[hidden] { display: none !important; }
.dcashop-mega__panelhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 21px; border-bottom: 1px solid #ecf0f5; }
.dcashop-mega__panelhead strong { color: #253a53; font-size: 16px; font-weight: 750; }
.dcashop-mega a.dcashop-mega__all { color: var(--dca-blue); font-size: 12px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.dcashop-mega a.dcashop-mega__all:before { content: '‹'; margin-left: 6px; font-size: 17px; }
.dcashop-mega__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px 28px; }
.dcashop-mega__group { margin: 0; padding: 0; min-width: 0; }
.dcashop-mega__group h3 { padding: 0; margin: 0 0 9px; line-height: 1.8; font-size: 13px; font-weight: 700; }
.dcashop-mega__group-title { display: inline-block; padding-right: 9px; border-right: 3px solid var(--dca-blue); color: var(--dca-text) !important; text-decoration: none !important; font-weight: 750; }
.dcashop-mega__group a.dcashop-mega__group-title:hover { color: var(--dca-blue) !important; }
.dcashop-mega__group ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.dcashop-mega__group li { list-style: none; padding: 0; margin: 0 !important; }
.dcashop-mega__group li a, .dcashop-mega__group li span { display: block; padding: 5px 11px 5px 0; border-radius: 5px; color: var(--dca-muted); text-decoration: none; font-size: 12.5px; line-height: 1.75; font-weight: 400; }
.dcashop-mega__group li a:hover, .dcashop-mega__group li a:focus-visible { color: var(--dca-blue); background: var(--dca-blue-soft); padding-right: 15px; }
.dcashop-mega__empty, .dcashop-mega-notice { padding: 15px; color: #64748b; font-size: 13px; }
/* Set CSS Class = dcashop-mega-trigger on the main menu item; let Flatsome position the dropdown. */
.dcashop-mega-trigger > .nav-dropdown { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
/* CSS only inside dropdown; avoids affecting Flatsome header or mobile navigation. */
@media (max-width: 1090px) {
  .dcashop-mega { grid-template-columns: 205px minmax(0, 1fr); }
  .dcashop-mega__groups { gap: 19px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcashop-mega__panel { padding: 18px 20px; }
}
@media (max-width: 849px) { .dcashop-mega { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .dcashop-mega * { transition: none !important; } }
