/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/
/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/*============================================================================================*/
/* MOBILE HEADER FIX  (<= 991px)                                                              */
/*============================================================================================*/
@media (max-width: 991px) {

  /* Turn the header into a single clean row: [hamburger] [logo] [actions] */
  header.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
  }
  header.header.sticky {
    padding: 10px 15px;
  }

  /* Hamburger on the far left, vertically centred */
  header.header .btn_mobile {
    order: 1;
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
  }

  /* Logo in the middle, no longer absolutely positioned */
  #logo {
    order: 2;
    position: static;
    float: none;
    width: auto;
    flex: 1 1 auto;
    text-align: center;
    margin: 0;
  }
  #logo img {
    height: 34px;
    width: auto;
    margin: 0;
  }

  /* Actions cluster (WhatsApp + Tailor-Made) on the right */
  ul#top_menu {
    order: 3;
    float: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  ul#top_menu li {
    float: none;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  ul#top_menu li a {
    display: flex;
    align-items: center;
  }

  /* Shrink the oversized Tailor-Made button to a sensible size */
  ul#top_menu a.theme-btn {
    line-height: 38px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }
}

/* Extra-small phones: keep the button compact so nothing overlaps */
@media (max-width: 400px) {
  ul#top_menu a.theme-btn {
    line-height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  #logo img { height: 30px; }
}