function pixel_hair_spa_mobile_menu_open() {
  jQuery(".side_nav").addClass('show');
}
function pixel_hair_spa_mobile_menu_close() {
  jQuery(".side_nav").removeClass('show');
}

jQuery(function($){
  $('.toggle').click(function () {
    pixel_hair_spa_Keyboard_loop($('.side_nav'));
  });
});

var pixel_hair_spa_Keyboard_loop = function (elem) {
  var pixel_hair_spa_tabbable = elem.find('select, input, textarea, button, a').filter(':visible');
  var pixel_hair_spa_firstTabbable = pixel_hair_spa_tabbable.first();
  var pixel_hair_spa_lastTabbable = pixel_hair_spa_tabbable.last();
  pixel_hair_spa_firstTabbable.focus();

  pixel_hair_spa_lastTabbable.on('keydown', function (e) {
    if ((e.which === 9 && !e.shiftKey)) {
      e.preventDefault();
      pixel_hair_spa_firstTabbable.focus();
    }
  });

  pixel_hair_spa_firstTabbable.on('keydown', function (e) {
    if ((e.which === 9 && e.shiftKey)) {
      e.preventDefault();
      pixel_hair_spa_lastTabbable.focus();
    }
  });

  elem.on('keyup', function (e) {
    if (e.keyCode === 27) {
      elem.hide();
    };
  });
};

jQuery(document).ready(function($) {
  var isRtl = $('html').attr('dir') === 'rtl'; // Check if the site is RTL

  $('#banner-area .owl-carousel').owlCarousel({
      loop: true,
      margin: 0,
      nav: false,
      dots: false,
      rtl: isRtl,
      responsive: {
          0: {
              items: 1,
              nav: false,
          },
          600: {
              items: 1,
              nav: false,
          },
          1000: {
              items: 1,
          }
      }
  });
});