/* Google font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;700&display=swap');

/* font-family: 'IBM Plex Sans Thai', sans-serif; */

body {
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

/* .sidebar {
  border-radius: 5px;
  position: absolute;
  width: 240px;
} */

.content {
  margin-top: 100px;
  margin-left: 280px;
  /* Match new sidebar width */
  flex: 1;
  padding: 10px;
  /* background-color: #b02a37; */
}

@media (max-width: 991.98px) {
  .content {
    margin-left: 0;
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .content {
    padding-top: 120px;
  }

  .carousel-inner {
    height: 700px;
  }

  /* .sidebar {
    display: none;
  } */
  /* .content {
    margin-left: 0px;
  } */
}

.nav-header {
  background-color: white;
  position: fixed;
  z-index: 10;
  width: 100%;
  border-top: solid 5px #b02a37;
  top: 0;
}

#sidebar-toggle {
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

#sidebar-toggle:hover {
  background-color: #e9ecef;
}

.nav-pills .nav-link.active {
  background-color: #b02a37;
}

.nav-pills .nav-link {
  color: #333333;
  font-weight: 500;
}

a.contact {
  background-color: #ffffff;
}

a.contact:hover {
  background-color: #ffffff;
  color: #b02a37;
}

.pricelist {
  color: #555555;
  text-decoration: line-through;
  font-size: 1rem;
}

.discount {
  color: #b02a37;
  font-size: 2rem;
}

/* --- New Sidebar System (.app-sidebar) --- */

.app-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.app-sidebar {
  position: fixed;
  width: 280px;
  height: calc(100vh - 198px);
  top: 98px;
  background-color: #f8f8f8;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
  z-index: 10;
  /* overflow-y: auto; */
  bottom: 0;
}

/* Glassmorphism version */
@supports (backdrop-filter: blur(10px)) {
  .app-sidebar {
    /* background: rgba(255, 255, 255, 0.8); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.sidebar-brand {
  color: #333;
  letter-spacing: -0.5px;
}

.btn-toggle {
  color: #666;
  padding: .25rem .5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: transparent;
  border: 0;
}

.btn-nolink {
  color: #fff;
  background-color: #b02a37;
  padding: .25rem .5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
}

.btn-toggle:hover,
.btn-nolink:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000;
  transform: translateX(4px);
}

.sidebar .btn-toggle[aria-expanded="true"]::after,
.app-sidebar .btn-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  color: #666;
  font-size: 0.9rem;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  display: inline-flex;
  text-decoration: none;
}

.btn-toggle-nav a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: #000;
  padding-left: 12px !important;
}

.btn-toggle-nav a.active,
.btn-nolink.active {
  background-color: #b02a37 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(176, 42, 55, 0.2);
}

.btn-toggle-nav a.active {
  margin-left: -1px;
  border-left: 3px solid #fff;
}

.transition-all {
  transition: all 0.2s ease;
}

.border-start {
  border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    top: 0;
    height: 100vh;
  }

  .app-sidebar.show {
    transform: translateX(0);
  }
}

.scrollarea {
  overflow-y: auto;
}

.carousel-control-prev-icon {
  opacity: .2;
}

.carousel-control-next-icon {
  opacity: .2;
}