body {
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 12px;
  font-weight: normal;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  /*background-color: #fc313d;*/
  background-image: linear-gradient(to bottom, #e56430, #c1032d);
  background-repeat: repeat-x;
  /*border: 1px solid #1f90bb;*/
  /*border-color: #1f90bb #1f90bb #145e7a;*/
  min-height: 40px;
  /*border-radius: 4px;*/
  width: 100%;
}

.menu-no-gutter {
    --bs-gutter-x: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#menu.navbar {
  padding: 0.5rem 1rem;
  margin-bottom: 20px;
}

/* 主選單字體 15px */
#menu .navbar-nav > li > a {
    font-size: 15px;
}

#menu .navbar-nav > li > a {
	color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    padding: 10px 15px 10px 15px;
    min-height: 15px;
    background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}
.product-thumb .image {
  text-align: center;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
  padding: 15px;
  /*margin-bottom: 45px;*/
}
.product-thumb .description h4 {
  font-weight: bold;
}
.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}
.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}
@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}
.rating .fa-star {
  color: #999;
  font-size: 15px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}
.rating .fa-star + .fa-star {
  color: #E69500;
}
/* product list */
.price {
  color: #444;
}
.price-new {
  font-weight: 600;
}
.price-old {
  color: #dc512c;
  text-decoration: line-through;
}
.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}
/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* ===== 手機版橫向卷軸修復（完整版） ===== */

@media (max-width: 767px) {
    /* 1. 基礎 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* 2. 所有圖片乖乖的 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 3. 修復選單（您加寬的那個） */
    #menu {
        width: 100%;
        overflow: hidden;
        padding: 0 15px !important;
    }
    
    #menu .navbar-nav {
        flex-wrap: wrap;
    }
    
    #menu .nav-item {
        width: 100%;
    }
    
    /* 4. 修復 Bootstrap row 的負 margin */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* 5. 容器安全間距 */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 6. 所有欄位不超出 */
    [class*="col-"] {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 7. 保護：如果是 col-sm-* 以上的，不要被上面影響（因為手機版不會用到 sm） */
    /* 但如果有 col-12 或 col-6 這種手機版多欄，請保留 */
    .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}



/* 專屬 Header 祥雲背景風格 */
header.auspicious-header {
  /* 底色採用東方貴氣的微光漸層（米金到淡緋紅漸層，柔和襯托 Logo） */
  /*background: linear-gradient(180deg, #fffcf7 0%, #fef5ea 100%);*/
  position: relative;
  overflow: hidden;
  /*border-bottom: 2px solid #e2bc74;*/ /* 金邊底線，增添質感 */
}

/* 祥雲背景紋理層（X 軸無限循環動畫） */
header.auspicious-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%; /* 加寬以支援無限平滑滾動 */
  height: 100%;
  
  /* 使用 SVG 祥雲重複圖案（透明度調低至 0.08，確保不喧賓奪主） */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="60" viewBox="0 0 120 60"><path fill="%23c82423" opacity="0.08" d="M30 30c-5 0-9 3-10 7-2-2-5-3-8-3-6 0-10 5-10 11s4 10 10 10h48c5 0 9-4 9-9 0-4-3-8-7-9 0-1 0-2 0-3 0-8-6-14-14-14-6 0-11 4-13 10z"/><path fill="%23d4af37" opacity="0.12" d="M90 15c-4 0-7 2-8 5-2-1-4-2-6-2-5 0-8 4-8 9s3 8 8 8h38c4 0 7-3 7-7 0-3-2-6-5-7 0-1 0-1 0-2 0-6-5-11-11-11-5 0-9 3-10 7z"/></svg>');
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 180px auto;
  
  /* X 軸自動平移動畫 */
  animation: cloudMove 40s linear infinite;
  pointer-events: none; /* 確保不影響滑點擊 */
}

/* 定義 X 軸向右滾動動畫 */
@keyframes cloudMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ===== 搜尋框透明 - 直接針對 input 本身 ===== */

/* 直接複製兇手的選擇器，加上透明背景 */
input.form-control.form-control-lg {
    background-color: rgba(255, 255, 255, 0.2) !important;
    background: rgb(255, 255, 255, 0.2) !important;
    border: 1px solid #d4af37 !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: none !important;
}

/* 按鈕也一樣處理 */
button.btn.btn-lg,
.btn.btn-lg {
    background-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid #d4af37 !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* hover 效果 */
input.form-control.form-control-lg:hover,
button.btn.btn-lg:hover {
    background-color: rgba(245, 215, 66, 0.5) !important;
    background: rgba(245, 215, 66, 0.5) !important;
}


/* ===== 齊左標題：東方雷紋裝飾 ===== */

.module-title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #8b1a1a;
    text-align: left;
    padding: 10px 0 15px 0;
    margin-bottom: 30px;
    letter-spacing: 3px;
    font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Serif TC", serif;
    display: flex;
    align-items: center;
}

.module-title::before {
    content: '▣';  /* 使用方形回紋符號 */
    color: #d4af37;
    font-size: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

/* 製作「雙線交錯」的雷紋效果 */
.module-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: repeating-linear-gradient(90deg, 
        #d4af37 0px, 
        #d4af37 6px, 
        transparent 6px, 
        transparent 10px, 
        #d4af37 10px, 
        #d4af37 16px, 
        transparent 16px, 
        transparent 20px);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.module-title:hover::after {
    width: 150px;
}

<style>
/* 部落格按鈕樣式 - 沉穩宗教風 */
.btn-blog {
    background-color: #4a3728; /* 深褐木色，呼應廟宇沉穩感 */
    border: 1px solid #b8860b;  /* 暗金色邊框，低調莊重 */
    color: #f5e6c8;            /* 米白文字，溫潤不刺眼 */
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-blog:hover {
    background-color: #5c4533;  /* 滑過時稍微提亮 */
    border-color: #d4af37;      /* 金色更明顯 */
    color: #ffffff;            
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.3);
    transform: translateY(-2px); /* 微微上浮效果 */
}

.btn-blog i {
    color: #d4af37;            /* 圖示使用金色，增添亮點 */
    font-size: 1rem;
}
</style>
