/* PAPIRUS HEADER V5 */
@media (max-width:1199px) {
  .mobile-header.container {
    height:68px;
    width:100%;
    max-width:none;
    padding:0 12px;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    background:#fff;
    border-bottom:1px solid #e8eeea;
    box-shadow:0 2px 12px rgba(0,0,0,.045);
    box-sizing:border-box;
  }

  .mobile-header > .col-xs-3:first-child {
    flex:0 0 44px;
    width:44px !important;
    padding:0;
  }

  .mobile-header img.mmenu {
    display:block;
    width:44px;
    height:44px;
    margin:0;
    padding:10px;
    background:#f3f7f4;
    border:1px solid #e0eae4;
    border-radius:13px;
    box-sizing:border-box;
    cursor:pointer;
  }

  .mobile-header > .mlogo {
    flex:1 1 auto;
    width:auto !important;
    min-width:0;
    height:68px !important;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .mobile-header .mlogo a {
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:100%;
    height:100%;
  }

  .mobile-header .mlogo img {
    display:block;
    margin:0;
    height:auto;
    max-height:43px;
    max-width:100%;
    width:auto;
  }

  .mobile-header > .mbasket {
    flex:0 0 96px;
    width:96px !important;
    padding:0;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
  }

  .papirus-header-search,
  .mobile-header .d-h-basket-mobile {
    width:44px;
    height:44px;
    min-width:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f7f4;
    border:1px solid #e0eae4;
    border-radius:13px;
    position:relative;
    padding:0;
    box-sizing:border-box;
    text-decoration:none;
    color:#17241e;
    cursor:pointer;
  }

  .papirus-header-search svg,
  .papirus-cart-modern {
    display:block;
    width:23px;
    height:23px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
    margin:0;
  }

  .mobile-header .d-h-basket-mobile
  .total_price_header {
    position:absolute;
    top:-6px;
    right:-5px;
    left:auto;
    width:auto;
    min-width:32px;
    max-width:76px;
    height:19px;
    padding:0 5px;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#008f68;
    color:#fff;
    font-size:10px;
    line-height:1;
    font-weight:700;
    white-space:nowrap;
    box-sizing:border-box;
    box-shadow:0 2px 5px rgba(0,0,0,.1);
  }

  .papirus-header-search:focus-visible,
  .mobile-header .d-h-basket-mobile:focus-visible {
    outline:2px solid #008f68;
    outline-offset:2px;
  }

  /* Aliniem meniul lateral sub noul header */
  .papirus-drawer-ready .mobile-header .menu-mobile {
    top:68px;
    height:calc(100dvh - 68px);
  }

  @media(max-width:380px) {
    .mobile-header.container {
      padding:0 8px;
      gap:5px;
    }
    .mobile-header .mlogo img {
      max-height:36px;
    }
  }
}

/* PAPIRUS_HEADER_STABLE_V1 */

@media (max-width:1199px) {

  /* Headerul ocupa mereu latimea ferestrei */
  .mobile-header.container {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Pozitionare stabila a logo-ului */
  .mobile-header > .mlogo {
    min-width: 0;
    flex-grow: 1;
    flex-shrink: 1;
  }

  /* Butoanele isi pastreaza dimensiunile */
  .mobile-header > .col-xs-3:first-child,
  .mobile-header > .mbasket {
    flex-shrink: 0;
  }
}


/* PAPIRUS_SCROLLBAR_STABLE_V1 */
@media (max-width: 1199px) {
  html {
    scrollbar-gutter: stable;
  }
}

/* PAPIRUS_HEADER_V6_STABLE */
@media (max-width:1199px) {

  /* Referinta stabila pentru toate elementele */
  .mobile-header.container {
    position:fixed;
    top:0;
    left:0;
    right:auto;
    width:100vw !important;
    max-width:100vw !important;
    height:68px;
    padding:0 !important;
    margin:0 !important;
    display:block !important;
    box-sizing:border-box;
  }

  /* Burger fix in stanga */
  .mobile-header > .col-xs-3:first-child {
    position:absolute;
    top:12px;
    left:12px;
    width:44px !important;
    height:44px;
    padding:0 !important;
    margin:0 !important;
    display:block;
  }

  /* Logo centrat in fereastra */
  .mobile-header > .mlogo {
    position:absolute;
    top:0;
    left:76px;
    right:112px;
    width:auto !important;
    height:68px !important;
    min-width:0;
    padding:0 !important;
    margin:0 !important;
    display:flex;
    justify-content:center;
    align-items:center;
  }

  /* Search si cos fixe in dreapta */
  .mobile-header > .mbasket {
    position:absolute;
    top:12px;
    right:12px;
    width:96px !important;
    height:44px;
    padding:0 !important;
    margin:0 !important;
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
  }

  /* Eliminam doar X-ul duplicat din panoul lateral */
  .mobile-header .menu-mobile
  .papirus-drawer-close {
    display:none !important;
  }

  /* Titlul meniului ramane vizibil */
  .mobile-header .menu-mobile
  .papirus-drawer-head {
    min-height:64px;
    padding:12px 20px;
    display:flex;
    align-items:center;
  }

  @media (max-width:380px) {
    .mobile-header > .col-xs-3:first-child {
      left:8px;
    }

    .mobile-header > .mlogo {
      left:60px;
      right:104px;
    }

    .mobile-header > .mbasket {
      right:8px;
    }
  }
}

