body {
  font-family: 'Noto Sans TC', sans-serif !important;
  min-width: 0 !important;

}
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
      font-size: 3.5rem;
  }
}

/* stylelint-disable selector-list-comma-newline-after */

.blog-header {
  line-height: 1;
  border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
  font-family: 'Noto Sans TC', sans-serif;
}

.blog-header-logo:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
}

.display-4 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
}

.card-img-right {
  height: 100%;
  border-radius: 0 3px 3px 0;
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 { height: 250px; }
@media (min-width: 768px) {
  .h-md-250 { height: 250px; }
}

/* Pagination */
.blog-pagination {
  margin-bottom: 4rem;
}
.blog-pagination > .btn {
  border-radius: 2rem;
}

/*
 * Blog posts
 */
.blog-post {
  margin-bottom: 4rem;
}
.blog-post-title {
  margin-bottom: .25rem;
  font-size: 2.5rem;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

/*
 * Footer
 */
.blog-footer {
  padding: 2.5rem 0;
  color: #727272;
  text-align: center;
  background-color: #f9f9f9;
  border-top: .05rem solid #e5e5e5;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}

.carousel-item img {
  height: 900px;          /* adjust this to your preferred banner height */
  width: 100%;
  object-fit: cover;      /* crop like the old slideshow */
  object-position: center center;
}
/* Disable Bootstrap's scroll-box behavior */
.nav-scroller {
  overflow: visible !important;
  white-space: normal !important;
}

/* Ensure dropdown appears above carousel */
.nav {
  position: relative;
  z-index: 20;
}

/* Base menu styling */
nav.nav a,
nav.nav .dropdown-toggle {
  font-family: 'Noto Sans TC', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  color: #444 !important;
  text-decoration: none !important; /* remove all default underlines */
}

/* Remove browser default underline for visited links */
nav.nav a:link,
nav.nav a:visited,
nav.nav .dropdown-toggle:link,
nav.nav .dropdown-toggle:visited {
  text-decoration: none !important;
}


/* Increase horizontal spacing between menu items */
nav.nav > a,
nav.nav .nav-item {
  margin-right: 20px;
}

/* Thick red underline on hover */
nav.nav a:hover,
nav.nav .dropdown-toggle:hover {
  text-decoration: underline !important;
  text-decoration-color: red !important;
  text-decoration-thickness: 5px !important;
  text-underline-offset: 5px !important;
  color: #444 !important; /* keep text color unchanged */
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.blog-header .row {
    margin-left: 0;
    margin-right: 0;
}

nav.nav .nav-item.dropdown {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Keep desktop spacing and underline style */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  font-family: 'Noto Sans TC', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  color: #444 !important;
  text-decoration: none !important;
  margin-right: 20px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  text-decoration: underline !important;
  text-decoration-color: red !important;
  text-decoration-thickness: 5px !important;
  text-underline-offset: 5px !important;
}

/* Align dropdown item vertically */
.navbar-nav .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Make hamburger icon visible */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
@media (max-width: 991.98px) {
  /* Stack nav items vertically */
  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Dropdown toggle full width */
  .navbar-nav .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding-left: 1rem;
  }

  /* Dropdown menu appears directly below toggle */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0.25rem 1.5rem 0.5rem 2rem; /* tighter left indent */
    display: none;
  }

  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }
    .navbar-nav .dropdown {
      flex-direction: column !important;
      align-items: stretch !important;
    }

  .navbar-nav .dropdown-item {
    display: block;
    padding: 0.25rem 0;
    font-size: 1rem;
    color: #444;
  }

  .navbar-nav .dropdown-item::before {
    content: "- ";
    color: #444;
    margin-right: 0.25rem;
  }

  .navbar-nav .dropdown-toggle::after {
    display: inline-block;
  }
}

.product-main-img {
  max-width: 100%;
  width: 90%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.product-thumb {
  max-width: 55%;
  max-height: 120px;
  object-fit: contain;
}

.thumb-wrap {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}

.padding-vert-5 {
  padding-top: 5px;
  padding-bottom: 5px;
}
.padding-vert-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}
.padding-vert-15 {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.product-img {
    height: 300px; /* or any consistent height you prefer */
    object-fit: cover;
}