/* EMKAN v125 — header/search correction + calm, stable cover entrances */

/* Undo the v123 header squeeze. Keep the original site rhythm and make room for Account + Search. */
@media (min-width:901px){
  html body .site-header{max-width:var(--header-max,1080px)!important}
  html body .primary-nav{padding-inline:94px!important}
  html body .nav-list{max-width:900px!important;gap:clamp(12px,1.35vw,19px)!important}
  html body .nav-list>li{display:flex!important;align-items:center!important;min-height:28px}
  html body .nav-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;line-height:1.25!important;vertical-align:middle!important}
  html[lang="fa"] body [data-emkan-search-nav],html[lang="ar"] body [data-emkan-search-nav]{margin-left:18px!important}
  html[lang="en"] body [data-emkan-search-nav]{margin-right:18px!important}
}
.emkan-search-nav-link{gap:6px!important;transform:none!important}
.emkan-search-nav-link:hover{transform:none!important}
.emkan-search-nav-link svg{width:12px!important;height:12px!important;flex:0 0 12px!important;display:block!important;transform:translateY(.4px)!important}
.emkan-search-nav-link span{display:inline-block;line-height:1.25}

/* Kill all older competing card-entry animations/transitions. v125 owns the entrance. */
:where(.category-grid,.v49-grid,.gallery-items-container,.related-grid,.store-grid,.product-grid) > :where(.category-card,.gallery-item,.related-item,.store-card,.product-card),
.emkan-v125-enter{
  animation:none!important;
}
.emkan-v125-enter{
  opacity:0!important;
  transform:translate3d(0,10px,0)!important;
  transition-property:opacity,transform!important;
  transition-duration:1.45s,1.45s!important;
  transition-timing-function:cubic-bezier(.22,.61,.36,1),cubic-bezier(.22,.61,.36,1)!important;
  transition-delay:var(--emkan-v125-delay,0ms)!important;
  will-change:opacity,transform;
}
.emkan-v125-enter.is-emkan-v125-entered{
  opacity:1!important;
  transform:translate3d(0,0,0)!important;
}
/* Architecture's legacy visibility class may still be toggled; v125 keeps the final state authoritative. */
.gallery-item.emkan-v125-enter.is-emkan-v125-entered{opacity:1!important;transform:none!important}
@media(prefers-reduced-motion:reduce){
  .emkan-v125-enter{opacity:1!important;transform:none!important;transition:none!important;will-change:auto!important}
}

/* Search page — restrained and consistent with the rest of EMKAN. */
.emkan-search-headline{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.emkan-search-meta{font-size:8.5px;line-height:1.8;color:var(--category-muted,#767d82);white-space:nowrap}
.emkan-search-form{position:relative}
.emkan-search-input{min-height:42px}
.emkan-search-results[aria-busy="true"]{opacity:.58;transition:opacity .18s ease}
.emkan-search-empty{border-bottom:1px solid var(--line,#ccd0d5);margin:0}
.emkan-search-result{transition:color .18s ease,opacity .18s ease}
.emkan-search-result:hover{opacity:.88}
@media(max-width:900px){
  html body [data-emkan-search-nav]{margin:0!important}
  html body .nav-list>li{display:block!important}
  .emkan-search-nav-link{justify-content:flex-start!important}
}
@media(max-width:700px){
  .emkan-search-headline{align-items:flex-start;flex-direction:column;gap:6px}
  .emkan-search-meta{white-space:normal}
}
