/*
  Author:
  Karich.Design 2024
  https://github.com/karich-design

  Project: 
  erpnext-frontent
  https://github.com/bitopen/erpnext-frontend/


  1. Root Colors
  2. Header-Navigation
  3. Filter Mods
*/

/* ****** Root Colors-Settings ****** */
:root {
  
  --primary-mcs: #efe52e; /* Primary used color */
  --secondary-mcs: #e31e24; /* Secondary color */
  --accent-mcs: #1e8ad3; /* Buttons, click to actions etc. */
  --dark-mcs: #2b2a29; /* Text */

  /* Header Height */
  --header-height-mcs:100px; 

  /* Checkbox size */
  --filter-checkbox-mcs:18px;
}




/* ****** Header-Navigation ****** */
.navbar-light {
  background: var(--primary-mcs);
}

.navbar {
  display: flex; /* Assuming navbar uses flexbox */
  justify-content: space-between; /* Distributes content horizontally */
  align-items: center; /* Aligns content vertically */
  padding: 5px 10px 5px 10px;
}

.navbar .collapse {
  /* flex: 1; Allows navbar-nav elements to fill space */
}

.navbar-brand, .navbar-toggler {
  /* Move these elements outside the flexbox flow */
  order: 0; /* Ensures logo and button appear first */
}

.navbar-toggler {
  display: inline-block !important;
}

.navbar-brand img {
  min-width: 150px;
  min-height: 50px;
}

.navbar-nav {
  flex-direction: column !important;
}

.nav-item{
  padding-left: 25px;
}

.navbar-collapse {
  background-color: #ffffff;
  border-radius: 15px;
}

.navbar-collapse{
  /* display: none !important; // Never display the written menu */
  /* display: flex !important; */
  /* flex-basis: auto; */
  order: 1;
}

#page-index{
  padding-top: var(--header-height-mcs);
}

/* .page_content{
  padding-top: var(--header-height-mcs);
} */

.navbar-cta{
  margin: 5px 25px 25px 25px !important;
}

#language-switcher{
  min-width: 100%;
  order: 2; /* Positions language switcher after logo and button */
  /* padding-bottom: 5px; */
  padding-bottom: 5px;
  padding-top: 5px;
}

#language-switcher select{
  width: 150px;
}

@media (max-width: 447px) {
  #language-switcher{

  }
}

@media (min-width: 448px) {
  /* .navbar-collapse{
    margin-left: 10px;
  } */
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    flex: 1 !important; /* Override display with flexbox for better responsiveness */
    display: none !important; /* Hide the menu by default */
  }

  .navbar-expand-lg>.container, .navbar-expand-lg>.container-fluid, .navbar-expand-lg>.container-sm, .navbar-expand-lg>.container-md, .navbar-expand-lg>.container-lg, .navbar-expand-lg>.container-xl {
    flex-wrap: wrap;
    padding-right: 0;
    padding-left: 0;
  }

  .navbar-collapse{
    margin-left: 10px;
  }

  /* Show the menu on button click using the existing collapse class */
  .navbar-collapse.show {
    display: flex !important; /* Show menu when the collapse class is applied */
    flex-basis: 100%;
    flex-grow: 1;
  }
}

@media (min-width: 576px) {
  .navbar-collapse .navbar-nav {
    align-items: flex-start;
  }

}




/* ****** Filter Mods ****** */
.row {
  /* we might get in trouble in the future with that rule */
  flex-direction: column;
  /* background-color: #e31e24; */
}

.toggle-container{
/* remove list- and grid view buttons */
  display: none;
}

.filters-section {
  display: block !important;
}

/* stretch search bar 100% */
.toolbar .input-group {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

/* made brand filter smaller */
/* justify horizontally */
.filter-options{
  /* max-height: 100px; */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-items: center;
  flex-wrap: wrap;
}

.filter-options .product-filter {
  width: var(--filter-checkbox-mcs) !important; /* Adjust width as needed */
  height: var(--filter-checkbox-mcs) !important; /* Adjust height as needed */
}

.filter-lookup-wrapper{
  padding-right: 10px;
}

@media (min-width: 768px) {

  /* stretch filter section 100% */
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* stretch product listing 100% */
  .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) {

  /* stretch products 100% wide */
  .col-sm-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
