/*
Theme Name: ErgoCraft Child
Author: VamTam
Author URI: https://vamtam.com
Template: ergocraft




*/



/*

put your child theme styles here


you don't need any @import rules

*/

html.aq-locked { overflow: hidden; } /* simplu, fallback */

/* < 768px — doar pe mobil */
@media (max-width: 767px){

  /* Header fix, fără tranziții (el nu animă) */
  #aq-m-header{
    position: sticky;
    top: 0;
    z-index: 10000;
    background: inherit;
    transition: none !important;
  }

  /* Căutare: animație lină, fără „tremurat” */
  #aq-m-search{
    --search-max-h: 220px;                 /* ajustează dacă e mai înaltă bara ta */
    overflow: hidden;
    max-height: var(--search-max-h);
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;

    /* perf */
    contain: layout paint;
    will-change: transform, opacity, max-height;
    backface-visibility: hidden;

    /* easing „moale” */
    transition:
      transform .28s cubic-bezier(.22,.61,.36,1),
      max-height .28s cubic-bezier(.22,.61,.36,1),
      opacity .18s linear,
      margin .28s cubic-bezier(.22,.61,.36,1),
      padding .28s cubic-bezier(.22,.61,.36,1);
  }

  /* Stare compactă la scroll în jos */
  #aq-m-header.header-compact #aq-m-search{
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.96);               /* fluidizează închidere */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Respectă preferința de mișcare redusă */
  @media (prefers-reduced-motion: reduce){
    #aq-m-search{ transition: none; }
  }
}


