/* 基本全站設定 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  * {
    box-sizing: border-box;
  }
  .swal2-backdrop-show{
    z-index: 9999;
  }
  body {
    font-size: 16px;
    line-height: 1.5;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
  }
  p{
    font-size: 16px;
  }
  input[type="text"]{
    font-size: 16px;
  }

  option:hover {
    background-color: #a89372!important;
    color: white;
  }

  #breadcrumbs {
    margin: 0px;
    margin-bottom: 10px;
}

  
  
  .site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* 移除底線，使用一般閱讀顏色 */
  a {
    text-decoration: none;  /* 取消底線 */
    color: #333;  /* 使用深灰色，適合閱讀 */
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; /* 平滑過渡效果 */
  }
  
  /* 滑鼠懸停時顯示底線 */
  a:hover {
    text-decoration: underline; /* 滑鼠移上去時才顯示底線 */
    color: #a89372; /* 變為純黑色，提高辨識度 */
  }
  
  
  /* 點擊時的效果 */
  a:active {
    color: #a89372; /* 點擊時變為較深的黑色 */
  }
  
  /* 禁用狀態的超鏈接 */
  a[disabled] {
    pointer-events: none; /* 禁止點擊 */
    color: #aaa; /* 變為淡灰色，表示不可點擊 */
  }
  
  /* container 共用設定 */
  .container {
    box-sizing: border-box;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

  
/* ========== 頁首主區塊 ========== */
#site-header {
  background-color: #fff;
  padding: 10px 0;
}

.header-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}

/* Logo 欄位 */
.header-col-logo,
.header-col-login,
.header-col-search {
  flex: 0 0 auto;
}

.header-col-logo {
  text-align: left;
}

.header-col-logo img {
  width: 180px;
  height: auto;
}

/* 搜尋欄靠右（第一層） */
.header-col-search {
  margin-left: auto;
  text-align: right;
}

.header-col-search form {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.header-col-search input[type="search"] {
  padding: 8px 36px 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px; /* 如需可調整 */
}

.header-col-search button {
  position: absolute;
  right: 0px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}

.header-col-search i.fa-search {
  pointer-events: none;
}

/* 登入區靠右 */
.header-col-login {
  text-align: right;
  width: 250px;
}

.memberbox-in-nav {
  display: none;
}

/* 導覽選單欄（第一層內文已移除，改放第二排） */
.header-col-nav {
  /* 保留設定但內容已移至第二排 */
}

/* ========== 第二排功能列：印刷總覽 + 導覽菜單 ========== */
.header-subrow {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.sub-columns {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}


  
/*
*
*頁尾樣式 
*/
#site-footer {
    background-color: #f9f7f2; /* 更淺的米白背景 */

    color: #444;
    font-size: 16px;
    margin-top: auto;
  }
  .footer-flex{padding: 20px 0px;}
  
  #site-footer .footer-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
  }
  
  /* Logo 與品牌說明 */
  #site-footer .footer-brand {
    max-width: 260px;
    flex-shrink: 0;
  }
  
  #site-footer .footer-logo {
    margin-bottom: 10px;
  }
  
  #site-footer .footer-logo img {
    max-width: 160px;
    height: auto;
    display: block;
  }
  
  #site-footer .brand-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
  }
  
  /* 導覽欄容器 */
  #site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
  }
  
  /* 每一欄 */
  #site-footer .col-item {
    min-width: 140px;
    max-width: 180px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 140px;
  }
  
  #site-footer .nav-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
    color: #222;
  }
  
  #site-footer .nav-item {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
  }
  
  #site-footer .nav-item a {
    color: inherit;
    text-decoration: none;
  }
  
  #site-footer .nav-item a:hover {
    text-decoration: underline;
  }
  
  /* 底部版權文字 */
  #site-footer .site-info {
    text-align: center;
    font-size: 13px;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* 手機版排版 */
  @media screen and (max-width: 768px) {
    #site-footer .footer-flex {
      flex-direction: column;
      gap: 30px;
    }
  
    #site-footer .footer-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      justify-content: center; /* 置中 */
      text-align: center;
    }
  
    #site-footer .col-item {
      max-width: 100%;
    }
  
    #site-footer .footer-brand {
      max-width: 100%;
      text-align: center;
    }
  
    #site-footer .footer-logo img {
      max-width: 140px;
      margin: 0 auto;
    }
  
    #site-footer .brand-description {
      margin-top: 10px;
      text-align: center;
    }
  }
.footer-bar{
    background-color: #222;
    color: #ffffff;
    padding: 5px;
    font-size: 16px;
    text-align: center;
}  
  
  /* 按鈕樣式 */
  button,
  input[type="button"],
  input[type="submit"] {
    background-color: #a89372;
    color: #ffffff; /* 可依需求調整文字顏色 */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
  }
  
  /* 按鈕滑鼠懸停效果 */
  button:hover,
  input[type="button"]:hover,
  input[type="submit"]:hover {
    opacity: 0.9;
  }
  
  /* 基本選單樣式 */
  .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* 使用 gap 控制間隔，而不是 padding */
  }
  
  .main-navigation li {
    position: relative; /* 為底線動畫做準備 */
  }
  
  /* 基本連結樣式 */
  .main-navigation a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    position: relative; /* 為底線動畫做準備 */
    transition: color 0.3s ease-in-out;
  }
  
  
  .main-navigation a:hover::after {
    width: 100%;
  }
  
  .main-navigation a:hover {
    color: #a89372;
  }
  
  /* 啟動 (active) 選單項目樣式 */
  .main-navigation .current-menu-item > a,
  .main-navigation .current_page_item > a,
  .main-navigation .current-menu-ancestor > a,
  .main-navigation .current_page_ancestor > a {
    color: #a89372;
  }
  
  .main-navigation .current-menu-item > a::after,
  .main-navigation .current_page_item > a::after,
  .main-navigation .current-menu-ancestor > a::after,
  .main-navigation .current_page_ancestor > a::after {
    width: 100%;
  }
  
  /* 分頁容器 */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }
  
  /* 分頁連結與當前頁面標籤 */
  .pagination a,
  .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    font-size: 14px;
    color: #b8a687;
    border: 1px solid #d1c4a6;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* 滑鼠移到分頁連結上 */
  .pagination a:hover {
    background-color: #a89372;
    color: #fff;
  }
  
  /* 當前頁面的樣式 */
  .pagination .current {
    background-color: #a89372;
    color: #fff;
    border-color: #a89372;
  }
  
   select {
    padding: 10px ;
    font-size: 16px;
    width: 100%;
  }
  input:not([type="radio"]):not([type="checkbox"]):not([type="search"]) {  
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}



  
  /* ======================================
     會員選單 (Member Menu)
  ======================================= */
  .member-menu {
    /* 如無特殊設定，可留空 */
  }
  
  /* 會員選單主要導覽 */
  .member-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
  }
  
  /* 會員選單項目，僅用 inline 顯示 */
  .member-nav .menu > .menu-item {
    position: relative;
  }
  
  /* 會員選單連結 */
  .member-nav .menu > .menu-item > .menu-link {
    display: inline; /* 以 inline 呈現，不佔整個區塊 */
    padding: 0 10px; /* 調整左右間距 */
    color: #333;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    text-align: left; /* 文字靠左 */
  }
  
  /* 滑鼠懸停效果 */
  .member-nav .menu > .menu-item > .menu-link:hover {
    color: #8c7758;
  }
  
  /* 下拉選單 */
  .member-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 180px;
    list-style: none;
    padding: 5px 0;
    z-index: 9999;
    text-align: left;
  }
  
  /* 當有子選單的項目 hover 時顯示下拉選單 */
  .member-nav .menu .menu-has-children:hover > .sub-menu {
    display: block;
  }
  
  /* 下拉選單項目 */
  .member-nav .sub-menu .menu-item {
    padding: 0;
  }
  
  .member-nav .sub-menu .menu-item a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: left;
  }
  
  .member-nav .sub-menu .menu-item a:hover {
    background-color: #f5efe0;
  }
  
  .member-nav .ast-arrow-svg svg {
    width: 16px;
  }
  
  /* 購物車連結調整，直接以連結形式呈現 */
  #cart.menu-link {
    display: inline;
    padding: 0 10px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  #cart.menu-link:hover {
    color: #8c7758;
  }
  
  /* 會員中心旁的箭頭 SVG */
  .ast-arrow-svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    fill: #333;
    transition: fill 0.3s;
  }
  
  .member-menu a.menu-link:hover .ast-arrow-svg {
    fill: #8c7758;
  }
  
  /* ======================================
     登入/註冊選單 (Login/Register)
  ======================================= */
  .login-reg {
    font-size: 16px;
    text-align: right;
  }
  
  .login-reg a {
    margin: 0 5px;
    color: #333;
  }
  
  .login-reg a:hover {
    color: #8c7758;
  }
  
  /* ======================================
    左右布局垂直線
  ======================================= */
  aside.sidebar-left{
    border-right: 1px solid #f5efe0;
  }





/*
新聞彈跳視窗
*/

/* 自訂彈跳視窗樣式 */
.pop_news {
  max-width: 1000px !important;

  padding: 0;
}

/* 幻燈片區塊結構 */
.news-slider {
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-slides-wrapper {
  overflow: hidden;
  width: 100%;
}

.news-slides-inner {
  display: flex;
  transition: margin-left 0.5s ease;
}

/* 每個幻燈片：使用 flex 固定占滿 100% 寬度（實際寬度由 wrapper 決定） */
.news-slide {
  flex: 0 0 auto;
}

/* 圖片全寬 */
.news-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 內容區樣式 */
.news-content {
  margin-top: 20px;
  font-size: 1.6rem;
  line-height: 1.5;
}

/* 底部區塊 */
.news-footer {
  width: 100%;
  padding: 10px 0;
  margin-top: 15px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-checkbox {
  margin-bottom: 5px;
}

/* 左右箭頭 */
.prev-news, .next-news {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.prev-news:hover, .next-news:hover {
  background-color: rgba(0,0,0,0.6);
}

.prev-news {
  left: 20px;
}

.next-news {
  right: 20px;
}

.mobile-menu-toggle-label,
.mobile-menu-close {
  display: none;
}

/* 桌機版隱藏 checkbox */
.mobile-menu-toggle-checkbox {
    display: none;
  }


/* ========== 手机板（<768px） ========== */
@media (max-width: 768px) {

  /* —— 整体布局 & 容器 —— */
  .container {
    padding: 0 10px;
  }
  html:has(.mobile-menu-toggle-checkbox:checked),
  body:has(.mobile-menu-toggle-checkbox:checked) {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
  }

  /* —— 头部（Logo / 菜单切换） —— */
  #site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
  }
  .header-col-logo {
    width: 80%;
  }
  .header-col-nav {
    width: 20%;
    text-align: right;
  }
  .header-col-login,
  .header-col-search,
  .sub-col-classification {
    display: none;
  }

  /* —— 主导航（汉堡菜单） —— */
  .mobile-menu-toggle-checkbox {
    display: none;
  }
  .mobile-menu-toggle-label {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 10px 15px;
    background: #fff;
    position: relative;
  }
  .mobile-menu-close {
    display: block;
    font-size: 28px;
    text-align: right;
    padding: 10px;
    cursor: pointer;
    color: #333;
  }
  .main-navigation {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .mobile-menu-toggle-checkbox:checked + .mobile-menu-toggle-label + .main-navigation {
    display: block;
  }

  /* —— 主菜单列表 —— */
  .main-navigation ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .main-navigation li {
    margin: 5px 0;
  }
  .main-navigation a {
    display: block;
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }
  .main-navigation a:hover {
    background-color: #f5f5f5;
    color: #a89372;
  }

  /* —— 新闻弹窗 —— */
  .pop_news {
    width: 100vw !important;
    padding: 0;
  }
  .news img {
    width: 100%;
    height: auto;
  }
  .news-content {
    font-size: 1.2rem;
    margin-top: 15px;
  }
  .news-footer,
  .news-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    margin-top: 10px;
  }
  .news-checkbox {
    margin-bottom: 8px;
  }
  .prev-news,
  .next-news {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .prev-news { left: 10px; }
  .next-news { right: 10px; }

  /* —— 子栏目：印刷总览 & 搜索 —— */
  .sub-columns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .print-overview-label {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }
  .sub-col-search input[type="search"] {
    width: 100%;
  }

  /* —— 去除上下底线 —— */
  .header-subrow {
    border-top: none;
    border-bottom: none;
  }

  .memberbox-in-nav {
    display: block;
  }
}




/*
印刷分類下拉選單使用


*/
/* ===== 調整「印刷分類」標籤樣式，改為與主導航相同 ===== */
.sub-col-classification .classification-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;           /* 移除底色 */
  color: #333;                /* 與主導航連結相同文字色 */
  padding: 0;                 /* 移除內距 */
  font-weight: normal;        /* 與主導航相同字重 */
  text-decoration: none;      /* 無底線 */
  cursor: pointer;
}

.sub-col-classification .classification-label i {
  font-size: 12px;
  color: #333;
}

/* ===== 保留下拉行為與內容樣式 ===== */
.sub-col-classification {
  position: relative;
}
.sub-col-classification .classification-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}
.sub-col-classification:hover .classification-navigation,
.sub-col-classification .classification-navigation:hover {
  display: block;
}

/* 第一層列表（自動高度，不改動） */
.classification-navigation > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.classification-navigation > ul > li {
  border-bottom: 1px solid #ddd;
}
.classification-navigation > ul > li:last-child {
  border-bottom: none;
}
.classification-navigation > ul > li > a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}
.classification-navigation > ul > li:hover {
  background: #f5f5f5;
}
.classification-navigation > ul > li:hover > a {
  color: #a89372;
}

/* 第二層滑出子菜單——絕對定位，跟隨父層高度 */
.classification-navigation > ul > li > ul {
  display: none;
  position: absolute;   /* 使 top/bottom 生效 */
  top: 0;               /* 與父層 .classification-navigation 頂對齊 */
  bottom: 0;            /* 與父層 .classification-navigation 底對齊 */
  left: 250px;          /* 跳至右側 */
  width: calc(1200px - 250px);
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 8px;
  box-sizing: border-box;
  list-style: none;
  overflow-y: auto;     /* 滾動條 */
}
.classification-navigation > ul > li:hover > ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.classification-navigation > ul > li > ul > li > a {
  display: block;
  padding: 6px 10px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  background: #f9f9f9;
  border-left: 4px solid #a89372;
  transition: background .2s, border-color .2s, color .2s;
}
.classification-navigation > ul > li > ul > li > a:hover {
  background: #fffaf1;
  color: #a89372;
  border-left-color: #a89372;
}



.classification-navigation > ul > li > ul > li > ul > li > a {
  display: block;
  color: #333;
  text-decoration: none;
  white-space: normal;
}
.classification-navigation > ul > li > ul > li > ul > li > a:hover {
  color: #a89372;
}


/* 1. 外層容器參考定位 */
.shop-featured-wrapper {
  position: relative;
}

.product-list li {
  width: calc(33.333% - 1em);
}

/* 2. 標籤容器定位 */
.shop-featured-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

/* 3. 單一標籤樣式 */
.shop-tag {
  display: inline-block;
  padding: 4px 6px;
  font-size: 0.75em;
  color: #333;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  white-space: nowrap;
}


/* 父層列表：水平排列並可換行 */
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

/* 每個項目 li：設定 pointer、相對定位供 hover 背景用 */
.product-list li {
  position: relative;
  cursor: pointer;
  padding: 0; /* click area 由 a 內 padding 決定 */
}

/* li 滑過時整行底色提示 */
.product-list li:hover {
  background: #f5f5f5;
}

/* 內部 <a> （class="product-item"）撐滿整個 li */
.product-list li a.product-item {
  display: flex;
  align-items: center;   /* 標籤與文字垂直置中 */
  gap: 0.5em;            /* 標籤與文字之間間距 */
  padding: 0.5em 1em;    /* 點擊範圍和上下間距 */
  width: 100%;
  height: 100%;
  text-decoration: none;

}

/* 標籤共用樣式 */
.product-list li a.product-item .product-tag {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 0.25em;
  font-size: 0.85em;
}

/* 各種標籤配色 */
.product-list li a.product-item .product-tag.hot,.shop-tag.hot,.product-tag.hot {
  background: #e74c3c;
  color: #fff;
}
.product-list li a.product-item .product-tag.special,.shop-tag.special,.product-tag.special {
  background: #f1c40f;
  color: #fff;
}
.product-list li a.product-item .product-tag.new,.shop-tag.new,.product-tag.new {
  background: #2ecc71;
  color: #fff;
}
