body {
  --bg-color-wholesale: #a83342;
  --bg-color-referral: #0c4568;
}
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

#sidebar li {
  list-style: none;
}

body {
  font-family: 'Poppins', sans-serif;
}

.wrapper {
  display: flex;
}

.main {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
}

#sidebar {
  width: 70px;
  min-width: 70px;
  transition: all .25s ease-in-out;
  background-color: var(--bg-color-wholesale);
  display: flex;
  flex-direction: column;
  z-index: 1047;
  top: 0;
  bottom: 0;
  height: 100vh;
  position: sticky;
}
.referral #sidebar {
  background-color: var(--bg-color-referral);
}

@media (max-width: 990px) {
  #sidebar {
    position: fixed;
    width: 0;
    min-width: 0;
  }
}

#sidebar.expand {
  width: 260px;
  min-width: 260px;
}

.toggle-btn {
  background-color: transparent;
  cursor: pointer;
  border: 0;
}

.toggle-btn span {
  padding: 1rem;
}

.sidebar-logo {
  margin: auto 0;
}

.sidebar-logo a {
  color: #fff;
  font-size: 1em;
  font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) .toggle-btn,
#sidebar:not(.expand) a.sidebar-link span,
#sidebar:not(.expand) a.sidebar-link-collapsed {
  display: none;
}
@media (max-width: 990px) {
  #sidebar:not(.expand) a.sidebar-link {
    display: none;
  }
}

.sidebar-nav {
  padding: 2rem 0;
  flex: 1 1 auto;
}

a.sidebar-link {
  padding: .625rem 1.25rem;
  color: #fff;
  display: block;
  font-size: 1em;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.sidebar-link svg {
  margin-right: .75rem;
}

a.sidebar-link:hover {
  background-color: rgba(255, 255, 255, .075);
  border-left: 3px solid #fff;
}

.sidebar-item {
  position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  position: absolute;
  top: 0;
  left: 70px;
  background-color: var(--bg-color-wholesale);
  padding: 0;
  min-width: 15rem;
  display: none;
}
.referral #sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  background-color: var(--bg-color-referral);
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
  display: block;
  max-height: 15em;
  width: 100%;
  opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 .075rem .075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

/*.region-header, .region-highlighted {*/
/*  width: -webkit-fill-available;*/
/*}*/

.sidebar-logo svg {
  height: 60px;
  width: 180px;
}

.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  border: none;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #333;
  background: #f4f4f4;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #e0e0e0;
}

@media (max-width: 768px) {

  .overflow-auto-mobile {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
  }
}
