/* MARSOLIN_UI55 2026-10-22. Header input spacing, single responsive navigation. */
#header .ms-main-header__search{min-width:0}
#header .ms-main-header__search #ps_searchbar{position:relative;min-width:0;width:100%}
#header .ms-main-header__search #ps_searchbar .ps-searchbar__form{position:relative;display:block;width:100%;min-width:0;margin:0}
#header .ms-main-header__search #ps_searchbar .ps-searchbar__magnifier{
  position:absolute!important;inset-inline-start:14px!important;inset-inline-end:auto!important;
  top:50%!important;transform:translateY(-50%)!important;
  z-index:2;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  margin:0!important;padding:0!important;pointer-events:none!important;line-height:1;font-size:20px;
}
#header .ms-main-header__search #ps_searchbar input.ps-searchbar__input{
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;
  padding-inline-start:48px!important;padding-inline-end:46px!important;
  text-align:start!important;text-indent:0!important;background-image:none!important;
  background-position:initial!important;font-size:14px!important;line-height:1.4!important;
}
#header .ms-main-header__search #ps_searchbar input.ps-searchbar__input::placeholder{opacity:1;text-indent:0!important}
#header .ms-main-header__search #ps_searchbar .ps-searchbar__clear{
  position:absolute;inset-inline-end:8px;inset-inline-start:auto;top:50%;transform:translateY(-50%);z-index:2;
}
html[lang^="ar"] #header .ms-main-header__search #ps_searchbar .ps-searchbar__form{direction:rtl}
html[lang^="ar"] #header .ms-main-header__search #ps_searchbar input.ps-searchbar__input{direction:rtl;text-align:right!important}
/* PrestaShop ships one genuine horizontal category bar and one genuine left drawer.
   UI43 duplicates and the in-category sidebar are NOT needed on small screens. */
#ms43-mobile-nav,#ms43-tablet-trigger,#ms43-tablet-drawer,#ms43-shade{display:none!important}
@media(max-width:1199px){
  #header #ms-mega{display:none!important}
  #header #ms-category-nav .ms-category-nav__items{overflow-x:auto!important;overflow-y:hidden!important;
    flex-wrap:nowrap!important;white-space:nowrap!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    justify-content:flex-start!important;overscroll-behavior-x:contain}
  #header #ms-category-nav .ms-category-nav__items::-webkit-scrollbar{display:none}
  #header #ms-category-nav .ms-category-nav__items>a{flex:0 0 auto;white-space:nowrap}
  #header #ms-category-nav .ms-category-nav__all{flex:0 0 auto;min-height:43px}
}
@media(max-width:900px){
  body#category #left-column{display:none!important}
  body#category #content-wrapper{width:100%!important;max-width:100%!important;flex:0 0 100%!important;min-width:0!important}
  body#category #wrapper .container,body#category #main{min-width:0}
  body#category #products{min-width:0}
  body#category .ms-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  body#category .ms-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body#category .ms-cat-grid a{min-width:0;min-height:62px;padding:11px 10px;font-size:13px}
  #header .ms-main-header__search #ps_searchbar input.ps-searchbar__input{padding-inline-start:45px!important;padding-inline-end:36px!important}
}
