/* Smart Drawer
   ========================================================================== */
#sd-menu {
  width: 50%;
  height: 100%;
  color: #fff;
  overflow: auto;
  position: fixed;
  right: -50%;
  z-index: 999;
  transition: transform 0.3s ease-out;
  background: #8B0000;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 1200px) {
  #sd-menu {
    width: 50%;
    right: -50%;
    top: 0;
    height: 100%;
  }
}
@media screen and (max-width: 640px) {
  #sd-menu {
    width: 100%;
    right: -100%;
    top: 0;
    height: 100%;
  }
}
#sd-menu.block {
  transform: translate3d(-100%, 0, 0);
}
#sd-menu .close {
  text-align: center;
  cursor: pointer;
  display: block;
  padding: 0;
  z-index: 120;
  background: #8B0000;
  right: 10px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
#sd-menu .close img {
  width: 40px;
  vertical-align: bottom;
}
.sd-trigger {
  text-align: center;
  cursor: pointer;
  display: block;
  padding: 0;
  z-index: 120;
  right: 10px;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.sd-trigger img {
  width: 40px;
  vertical-align: bottom;
}
#sd-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 900;
  transition: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
}
#sd-overlay.block {
  right: 0;
  opacity: 1;
}