/* =========================================================
   EN BABA — SMART MEGA MENU + HOME LIVE UPDATE SPEED
   - Desktop mega menu: left category navigator + one active panel
   - Existing nested accordions remain available inside large categories
   - Live update marquee is only rendered on home; speed is tuned here
========================================================= */

.enb-live-update-track{
  animation-duration:14s !important;
}

@media (max-width:639px){
  .enb-live-update-track{
    animation-duration:10s !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .enb-live-update-track{
    animation:none !important;
  }
}

@media (min-width:1024px){
  #megaMenuPanel .enb-mega-browser{
    display:grid;
    grid-template-columns:minmax(214px, 236px) minmax(0, 1fr);
    gap:14px;
    align-items:start;
    min-width:0;
  }

  #megaMenuPanel .enb-mega-index{
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    flex-wrap:nowrap;
    gap:5px;
    margin:0 !important;
    padding:8px !important;
    border:1px solid rgba(226,232,240,.95);
    border-radius:18px;
    background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
    box-shadow:0 10px 26px rgba(15,23,42,.045);
  }

  #megaMenuPanel .enb-mega-index__label{
    display:flex !important;
    align-items:center;
    min-height:32px;
    margin:0 2px 3px;
    padding:0 10px;
    border-radius:10px;
    background:#0f172a;
    color:#fff;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  #megaMenuPanel .enb-mega-index__btn{
    width:100%;
    min-height:49px;
    display:grid !important;
    grid-template-columns:30px minmax(0,1fr) 16px;
    align-items:center;
    gap:8px;
    padding:7px 9px !important;
    border:1px solid transparent !important;
    border-radius:13px !important;
    background:transparent !important;
    color:#334155 !important;
    text-align:left;
    box-shadow:none !important;
    transform:none !important;
    cursor:pointer;
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease !important;
  }

  #megaMenuPanel .enb-mega-index__btn:hover,
  #megaMenuPanel .enb-mega-index__btn:focus-visible{
    background:#fff !important;
    border-color:#e2e8f0 !important;
    color:#111827 !important;
    box-shadow:0 7px 18px rgba(15,23,42,.055) !important;
    outline:none;
  }

  #megaMenuPanel .enb-mega-index__btn.is-active{
    background:linear-gradient(135deg,#eef2ff,#fff) !important;
    border-color:rgba(99,102,241,.34) !important;
    color:#312e81 !important;
    box-shadow:0 9px 22px rgba(79,70,229,.10) !important;
  }

  #megaMenuPanel .enb-mega-index__icon{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:rgba(148,163,184,.10);
    font-size:15px;
    line-height:1;
  }

  #megaMenuPanel .enb-mega-index__btn.is-active .enb-mega-index__icon{
    background:rgba(99,102,241,.12);
  }

  #megaMenuPanel .enb-mega-index__copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  #megaMenuPanel .enb-mega-index__copy strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12.5px;
    line-height:1.15;
    font-weight:900;
    color:inherit;
  }

  #megaMenuPanel .enb-mega-index__copy small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:9.5px;
    line-height:1.2;
    font-weight:650;
    color:#94a3b8;
  }

  #megaMenuPanel .enb-mega-index__btn.is-active .enb-mega-index__copy small{
    color:#6366f1;
  }

  #megaMenuPanel .enb-mega-index__arrow{
    justify-self:end;
    font-size:20px;
    line-height:1;
    color:#cbd5e1;
    transform:translateX(-1px);
  }

  #megaMenuPanel .enb-mega-index__btn.is-active .enb-mega-index__arrow{
    color:#4f46e5;
  }

  #megaMenuPanel .enb-mega-gridScroll{
    min-width:0;
    overflow:visible !important;
  }

  #megaMenuPanel .enb-mega-mainGrid{
    display:block !important;
    min-width:0;
  }

  #megaMenuPanel [data-mega-category-card]{
    width:100%;
    min-width:0 !important;
    margin:0 !important;
    padding:16px !important;
    border:1px solid rgba(226,232,240,.95) !important;
    border-radius:18px !important;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
    box-shadow:0 10px 26px rgba(15,23,42,.045) !important;
    transform:none !important;
  }

  #megaMenuPanel [data-mega-category-card][hidden]{
    display:none !important;
  }

  #megaMenuPanel .enb-mega-catCard__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 12px;
    padding:0 0 11px;
    border-bottom:1px solid #eef2f7;
  }

  #megaMenuPanel .enb-mega-catCard__head h4{
    margin:1px 0 0 !important;
    font-size:17px !important;
    line-height:1.2 !important;
    font-weight:950 !important;
    letter-spacing:-.02em !important;
    color:#0f172a !important;
  }

  #megaMenuPanel .enb-mega-catCard__eyebrow{
    display:block;
    font-size:9.5px;
    line-height:1;
    font-weight:900;
    letter-spacing:.09em;
    text-transform:uppercase;
    color:#818cf8;
  }

  #megaMenuPanel .enb-mega-catCard__content{
    min-width:0;
  }

  #megaMenuPanel #megaCatOzelGunContent,
  #megaMenuPanel #megaCatCocukContent,
  #megaMenuPanel #megaCatMuzikContent,
  #megaMenuPanel #megaCatPersonelContent{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px 10px !important;
  }

  #megaMenuPanel #megaCatFotoVideoContent,
  #megaMenuPanel #megaCatEkipmanContent{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px 10px !important;
  }

  #megaMenuPanel #megaCatOzelGunContent > a,
  #megaMenuPanel #megaCatCocukContent > a,
  #megaMenuPanel #megaCatMuzikContent > a,
  #megaMenuPanel #megaCatPersonelContent > a,
  #megaMenuPanel #megaCatFotoVideoContent > a,
  #megaMenuPanel #megaCatEkipmanContent > a{
    display:flex !important;
    align-items:center;
    min-height:37px;
    margin-top:0 !important;
    padding:7px 9px;
    border:1px solid rgba(226,232,240,.82);
    border-radius:11px;
    background:#fff;
    color:#475569;
    text-decoration:none;
    transition:border-color .14s ease,background-color .14s ease,color .14s ease,transform .14s ease;
  }

  #megaMenuPanel #megaCatOzelGunContent > a:hover,
  #megaMenuPanel #megaCatCocukContent > a:hover,
  #megaMenuPanel #megaCatMuzikContent > a:hover,
  #megaMenuPanel #megaCatPersonelContent > a:hover,
  #megaMenuPanel #megaCatFotoVideoContent > a:hover,
  #megaMenuPanel #megaCatEkipmanContent > a:hover{
    border-color:rgba(99,102,241,.26);
    background:#f8faff;
    color:#4338ca;
    transform:translateY(-1px);
  }

  #megaMenuPanel #megaCatKurumsalContent,
  #megaMenuPanel #megaCatUlasimContent,
  #megaMenuPanel #megaCatTurizmContent{
    display:block !important;
  }

  #megaMenuPanel #megaCatKurumsalContent > div,
  #megaMenuPanel #megaCatUlasimContent > div,
  #megaMenuPanel #megaCatTurizmContent > div{
    display:block;
  }

  #megaMenuPanel #megaCatKurumsalContent [data-acc-toggle],
  #megaMenuPanel #megaCatUlasimContent [data-acc-toggle],
  #megaMenuPanel #megaCatTurizmContent [data-acc-toggle]{
    min-height:42px;
    margin:0 !important;
    padding:8px 10px !important;
    border:1px solid #e2e8f0;
    border-radius:11px;
    background:#f8fafc;
    color:#334155;
    font-size:12.5px !important;
  }

  #megaMenuPanel #megaCatKurumsalContent [data-acc-toggle][aria-expanded="true"],
  #megaMenuPanel #megaCatUlasimContent [data-acc-toggle][aria-expanded="true"],
  #megaMenuPanel #megaCatTurizmContent [data-acc-toggle][aria-expanded="true"]{
    border-color:rgba(99,102,241,.28);
    background:#eef2ff;
    color:#3730a3;
  }

  #megaMenuPanel #megaKurumsalEtkinlikler:not(.hidden),
  #megaMenuPanel #megaIkramArabalari:not(.hidden),
  #megaMenuPanel #megaSoforValeList:not(.hidden),
  #megaMenuPanel #megaTransferList:not(.hidden),
  #megaMenuPanel #megaGelinArabasiList:not(.hidden),
  #megaMenuPanel #megaAracKiralamaList:not(.hidden),
  #megaMenuPanel #megaTurOrganizasyonuList:not(.hidden),
  #megaMenuPanel #megaDilBazliRehberlerList:not(.hidden),
  #megaMenuPanel #megaDenizBogazList:not(.hidden){
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px 8px;
    margin:0 !important;
    padding:8px 4px 2px;
  }

  #megaMenuPanel #megaIkramArabalari:not(.hidden),
  #megaMenuPanel #megaDilBazliRehberlerList:not(.hidden),
  #megaMenuPanel #megaDenizBogazList:not(.hidden){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #megaMenuPanel #megaKurumsalEtkinlikler:not(.hidden) > a,
  #megaMenuPanel #megaIkramArabalari:not(.hidden) > a,
  #megaMenuPanel #megaSoforValeList:not(.hidden) > a,
  #megaMenuPanel #megaTransferList:not(.hidden) > a,
  #megaMenuPanel #megaGelinArabasiList:not(.hidden) > a,
  #megaMenuPanel #megaAracKiralamaList:not(.hidden) > a,
  #megaMenuPanel #megaTurOrganizasyonuList:not(.hidden) > a,
  #megaMenuPanel #megaDilBazliRehberlerList:not(.hidden) > a,
  #megaMenuPanel #megaDenizBogazList:not(.hidden) > a{
    min-width:0;
    margin-top:0 !important;
    padding:5px 7px;
    border-radius:8px;
    background:#fff;
    color:#64748b;
    line-height:1.28 !important;
  }

  #megaMenuPanel #megaCatDeneyimContent{
    display:block !important;
  }

  #megaMenuPanel #megaCatDeneyimContent > div{
    margin:0 !important;
  }
}

@media (min-width:1024px) and (max-width:1240px){
  #megaMenuPanel .enb-mega-browser{
    grid-template-columns:190px minmax(0,1fr);
    gap:10px;
  }

  #megaMenuPanel .enb-mega-index__copy small{
    display:none;
  }

  #megaMenuPanel #megaCatOzelGunContent,
  #megaMenuPanel #megaCatCocukContent,
  #megaMenuPanel #megaCatMuzikContent,
  #megaMenuPanel #megaCatPersonelContent{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}
