 .new-footer a {
    color: #ccc;
    text-decoration: none;
}


/* 外層容器 */
  .product-gallery{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin-top: 0px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 32px;
    padding: 0 16px;
  }

  /* 大圖舞台：固定 700x550 比例、無圓角 */
  .pg-stage{
    position: relative;
    background: rgba(0,0,0,.08);
    border: 1px solid #67513c;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 700 / 550; /* ✅ 統一比例 */
    display: grid;
    place-items: center;
  }
  .pg-stage img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* 若不想裁切可改 contain */
    display: block;
    animation: none;
  }

  /* 進場動畫：滑入＋淡入 */
  .pg-stage img.pg-slide-in{
    animation: slideIn 0.3s ease-out;
  }
  @keyframes slideIn{
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* 縮圖列：手機預設可橫滑 */
  .pg-thumbs{
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;          /* ✅ 手機橫向滑動 */
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
  }

  /* 縮圖卡片：固定 700x550 比例、無圓角，與大圖一致 */
  .pg-thumb{
    position: relative;
    flex: 0 0 116px;           /* 手機縮圖寬度（依需要可調） */
    aspect-ratio: 700 / 550!important;   /* ✅ 與大圖相同比例 */
    height: auto;              /* 由 aspect-ratio 決定高度 */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,.15);
    background: #000;          /* 避免載入瞬間閃白 */
  }
  .pg-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;         /* 與大圖一致的填充邏輯 */
    display: block;
    transition: transform .25s ease;
  }
  .pg-thumb:hover img{ transform: scale(1.03); }

  /* 遮罩（hover / active） */
  .pg-thumb::after{
    content: "";
    position: absolute; inset: 0;
    background: transparent;
    transition: background .2s ease, outline-color .2s ease;
    outline: 2px solid transparent;
    outline-offset: -2px;
  }
  .pg-thumb:hover::after{ background: rgba(0,0,0,.08); }
  .pg-thumb.is-active::after{
    background: rgba(233,18,15,.35);  /* ✅ 紅色半透明 */
    outline-color: #e9120f;           /* ✅ 紅色外框 */
  }

  /* 平板以上：縮圖大一些 */
  @media (min-width: 768px){
    .product-gallery{ padding: 0 20px; }
    .pg-thumb{ flex: 0 0 136px; }     /* 變更縮圖寬度即可，自動維持 700x550 比例 */
  }

  /* 桌機：一整排置中、不換行 */
  @media (min-width: 1024px){
    .pg-thumbs{
      overflow: visible;
      justify-content: center; /* ✅ 置中 */
      gap: 12px;
      scroll-snap-type: none;
      flex-wrap: nowrap;       /* ✅ 一排顯示 */
    }
    .pg-thumb{ flex: 0 0 100px; }
  }

  /* 若縮圖很多、桌機想允許換行 → 把上面 nowrap 改 wrap，並可加下列限制寬度 */
  /*
  @media (min-width: 1440px){
    .pg-thumbs{
      flex-wrap: wrap;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }
  }
  */





*{ box-sizing:border-box; margin:0; padding:0;}
/* 商品區 */
.new-product-section{
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    gap: 40px;
    color: #FFFFFF;
}

/* Gallery */
.new-product-gallery{


}.new-product-gallery img{
  max-width: 95%;
  display: block;
}
.new-product-main-pic{
  opacity: 1;
  transform: none;
}
.new-product-thumbs{display:flex; gap:10px; margin-top:15px;}
.new-product-thumb{
  width: 80px;
  opacity: 0.85;
  position: relative;
  cursor: default;
}
.new-product-thumb.active::after{display:none;}
.arrow{display:none;}

/* 商品文字區 */
.new-product-content{ flex:1;}

.new-product-content h1{
    font-family: 'Noto Serif TC',serif;
    font-size: 40px;
    margin-bottom: 10px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 10px;
    font-weight: 400;
    letter-spacing: 2px;   /* ← 字距 */
}
.new-product-content .subtitle{
  font-size:16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 10px;
}
.new-product-item-options{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #67513c;
    border-top: 1px solid #67513c;
    padding-bottom: 20px;
    padding-top: 20px;
}
.new-product-option-item{
   /* flex: 1;*/
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100px;
}

@media (max-width: 768px) {
  .new-product-option-item {
    display: flex;
    flex-direction: row;       /* 橫向兩欄 */
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 15px;                 /* 左右間距 */
  }

  .new-product-option-item .title,
  .new-product-option-item .price {
    display: block;
  }

  .new-product-option-item .qty,
  .new-product-option-item .stock-info {
    display: block;
  }

  /* 左欄 */
  .new-product-option-item-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;   /* 上下間距 */
    margin-top: 6px;
  }

  /* 右欄 */
  .new-product-option-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* 右對齊 */
    gap: 6px;
  }

  /* 手機版: 讓售完標籤也靠右對齊 */
  .new-product-option-item .out-of-stock {
    margin-top: 6px;      /* 與數量選擇器保持一致的上邊距 */
    width: 120px;         /* 與數量選擇器相同寬度 */
    justify-content: flex-end;  /* 文字靠右 */
  }
}


.new-product-option-item .title{
    margin-bottom: 8px;
    text-align: left;
    color: #fff;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
	}
.new-product-option-item .price{
    margin-bottom: 12px;
    text-align: center;
    height: 32px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding: 2px 0;
}
.new-product-option-item .qty{
  display:flex;width:120px;height:40px;border:1px solid #67513c;border-radius:4px;margin:0 auto;
}
.new-product-option-item .qty span{flex:1;display:flex;justify-content:center;align-items:center;color:#fff;font-size:16px;cursor:pointer;}
.new-product-option-item .qty span:nth-child(2){border-left:1px solid #67513c;border-right:1px solid #67513c;}

.new-product-option-item .stock-info{
   margin-top: 8px;
    font-size: 12px;
    color: #c7c0b9;
    height: 16px;
    display: flex;
    align-items: center;        /* 垂直置中 */
    justify-content: center;    /* 水平置中 */
    width: 100%;                /* 一定要佔滿父層寬度，才有置中效果 */
}

.new-product-option-item .out-of-stock{
    margin-top: 8px;
    font-size: 14px;
    color: #c7c0b9;                    /* 暖灰色 (與庫存資訊保持一致) */
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;                      /* 移除邊框 */
    border-radius: 0;
    background: transparent;           /* 透明背景 */
    letter-spacing: 2px;               /* 字距增加精緻感 */
}

.new-product-detail-list{font-size:16px;line-height:2;}.new-product-btn{
  background-color:#90622d;
  color:#ffffff;
  border:none;
  padding:10px 0;
  font-size:15px;
  border-radius:6px;
  cursor:pointer;
  transition: background-color 0.3s ease;
  width:100%;
  margin:20px auto 0;    /* 上方保持20px與內容間距 */
  display:block;
  text-align:center;
  text-decoration:none;
}
.new-product-btn:hover{
    background-color: #6f4a1f;
    color: #e9be84;
}
.new-product-btn.disabled,
.new-product-btn[disabled] {
    background-color: #67513c;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}
.new-product-btn.disabled:hover,
.new-product-btn[disabled]:hover {
    background-color: #67513c;
    color: #999999;
}


/*介紹*/
.new-product-block-title{font-size:20px;margin:40px 0 12px;font-weight:bold;}
.new-product-desc{
	font-size:16px;
	line-height:2;
	}

/*RWD*/
@media(max-width:768px){
  .new-product-section{
	  flex-direction:column;
	 /* 左右各 5% 的外距 */
    /* margin: 40px 5%; */
    /* 直式排列 */
    flex-direction: column;
    /* 手機縮小一點間距 */
    gap: 20px;
    /* 保留原本字色 */
    color: #FFFFFF;
  }

  /* 讓子項目在手機上各自佔滿一行、不爆版 */
  .new-product-section > *{
    flex: 1 1 100%;
    min-width: 0;
    margin-left: 4%;
    margin-right: 4%;
  }
	
  .new-product-item-options{flex-direction:column;gap:16px;}
  .new-product-content h1{font-size:28px;}

	.new-product-option-item .title {
     text-align: left;
}
	.new-product-option-item .price {
    text-align: left;
}

}


	.price .label{
  font-size: 14px;     /* 小字 */
  line-height: 1;
}

.price .amount{
    font-size: 22px;     /* 大字 */
    font-weight: 500;
    line-height: 1;
}
	.subtitle.highlight{
  color:#e9be84;
}


.media-container {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0;
}

.media-container img {
  display: block;      /* 避免 inline-block 造成縫隙 */
  width: 100%;         /* RWD 滿版 */
  height: auto;        /* 保持比例 */
  margin: 0;           /* 移除外距 */
  padding: 0;          /* 移除內距 */
  border: none;        /* 確保不會有邊框 */
}

/* 頁首標題＋前言 */
.new-news-article-head{
    margin-bottom: 18px;
    text-align: center;
    margin-top: 80px;
}
.new-news-date{ display:inline-block; font-size:13px; color:#d9c7a5; letter-spacing:.04em; }
.new-news-article-title{
    font-family: 'Noto Serif TC',serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.35;
    margin-top: 10px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 10px;
    color: #e9be84;
}
.new-news-lead{
  color:#d9c7a5; font-size:16px; line-height:1.8; margin:0 0 18px;
}

/* 首圖（全寬） */
.new-news-hero{ width:100%; margin: 8px 0 22px; }
.new-news-hero img{
  width:100%; height:auto; display:block;
  aspect-ratio: 16 / 9; object-fit: cover; background:#000;
  opacity:.96;
}

/* 正文 */
.new-news-content{
  font-size:16px; line-height:1.9; color:#fff;
}
.new-news-content p{ margin: 0 0 16px; }
.new-news-content h2{
  font-family:'Noto Serif TC',serif; font-size:24px; margin:26px 0 10px;
}
.new-news-content h3{ font-size:20px; margin:20px 0 8px; }
.new-news-content ul, .new-news-content ol{ padding-left:1.2em; margin: 0 0 16px; }
.new-news-content li{ margin: 6px 0; }

/* 新聞內容連結樣式 - 解決深藍色可讀性問題 */
.new-news-content a,
.new-news-content a:visited {
    color: #e9be84;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.new-news-content a:hover {
    color: #f4ead7;
    text-decoration: underline;
}

.new-news-content a:active {
    color: #d9c7a5;
}

.new-news-cap{
  color:#d9c7a5; font-size:13px; line-height:1.6; margin-top:6px;
  opacity:.95;
}

/* 引言 */
.new-news-quote{
  margin: 18px 0; padding: 14px 16px;
  border-left: 4px solid #b88351; background: rgba(0,0,0,.06);
  color:#f4ead7; font-style: italic;
}

/* 上一則／回列表／下一則 */
.new-news-postnav{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin: 28px 0 8px;
    padding-top: 16px;
	border-top: 1px solid #67513c;
}
.new-news-postnav-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #67513c;
    background: rgba(0,0,0,.06);
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
    color: #e9be84;
    text-decoration: none;
}
.new-news-postnav-link:hover{ border-color: rgba(255,255,255,.5); }
.new-news-postnav .prev{ justify-self:start; }
.new-news-postnav .back{
    justify-self: center;
    font-weight: 700;
    background: #90622d;
    color: #fff;
    border-color: transparent;
    text-decoration: none;
}
.new-news-postnav .back:hover{
  background-color: #6f4a1f;
  color: #e9be84;
}

.new-news-postnav .next{ justify-self:end; }

/* Disabled 按鈕樣式 */
.new-news-postnav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0,0,0,.03);
    border-color: rgba(103,81,60,0.3);
    color: rgba(244,234,215,0.6);
    pointer-events: none;
}

/* Disabled 按鈕不套用 hover 效果 */
.new-news-postnav-link.disabled:hover {
    border-color: rgba(103,81,60,0.3);
    background: rgba(0,0,0,.03);
    transform: none;
}

/* 相關文章（可選）—沿用列表卡片風格 */
.new-news-related{ margin: 50px 0 8px; }
.new-news-related-title{
  font-family:'Noto Serif TC',serif; font-size:22px; margin:0 0 14px;
  color:#f4ead7;
}
.new-news-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.new-news-card{
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.06);
    transition: transform .2s ease, border-color .2s ease;
    text-decoration: none;
}
.new-news-card:hover{
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.18);
}
.new-news-thumb{ position:relative; overflow:hidden; aspect-ratio:16/10; background:#000; }
.new-news-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease, opacity .35s ease; opacity:.96; }
.new-news-card:hover .new-news-thumb img{ transform:scale(1.05); opacity:1; }
.new-news-body{ padding:18px 16px 20px; }
.new-news-item-title{ font-size:18px; line-height:1.5; font-weight:700; margin:0 0 8px; }
.new-news-excerpt{
  margin:0; color:#d9c7a5; font-size:15px; line-height:1.7;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.new-news-date{ color:#d9c7a5; }

/* RWD */
@media (max-width:1024px){
  .new-news-article-title{ font-size:30px; }
  .new-news-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px){

  .new-news-article-title{ font-size:24px; }
  .new-news-lead{ font-size:15px; }
  .new-news-postnav{ grid-template-columns:1fr; gap:10px; }
  .new-news-postnav .prev,
  .new-news-postnav .back,
  .new-news-postnav .next{ justify-self:stretch; text-align:center; }
  .new-news-grid{ grid-template-columns:1fr; gap:20px; }
}

/* new-news */
.new-news a,
.new-news a:visited,
.new-news a:hover,
.new-news a:active{
  color: inherit;
  text-decoration: none; /* 避免紫色底線/訪問色 */
}

/* 區塊外框 */
.new-news{ padding: 64px 0 80px; }
.new-news-container{
    max-width: 1200px;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 80px;
    padding: 0 20px;
}


/* Grid */
.new-news-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Card（整張可點） */
.new-news-card{
  display: flex; flex-direction: column;
  border: 1px solid #67513c;
  background: rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  outline: none;
}
.new-news-card:focus-visible{ box-shadow: 0 0 0 3px rgba(184,131,81,.45); }
.new-news-card:hover{ transform: translateY(-3px); border-color: rgba(255,255,255,.18); }

/* 圖片 */
.new-news-thumb{ position: relative; overflow: hidden; aspect-ratio: 16/10; background: #000; }
.new-news-thumb img{
  width: 100%; height: 100%; object-fit: cover; display:block;
  transform: scale(1); opacity:.96; transition: transform .35s ease, opacity .35s ease;
}
.new-news-card:hover .new-news-thumb img{ transform: scale(1.05); opacity:1; }

/* 文字 */
.new-news-body{ padding: 18px 16px 20px; }
.new-news-date{
  display:block; font-size: 13px; color:#c7c0b9;
  letter-spacing:.04em; margin-bottom: 8px;
}
.new-news-item-title{
    font-family: 'Noto Serif TC',serif;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    margin: 0 0 8px;
    color: #e9be84;
    text-decoration: none!important;
}
.new-news-excerpt{
  margin: 0; color:#fff; line-height: 1.7; font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 分頁 */
.new-news-pagination{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: #f4ead7;
    font-size: 16px;
}
.new-news-page{
  min-width:44px; height:36px; padding:0 12px;
  border: 1px solid #67513c;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:6px; font-size:13px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.new-news-page:hover{ border-color: rgba(255,255,255,.5); }
.new-news-page.is-active{
  background:#90622d; color:#fff; border-color: transparent; font-weight:700;
}

/* RWD */
@media (max-width: 1024px){
  .new-news-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .new-news{ padding: 48px 0 64px; }
  .new-news-grid{ grid-template-columns: 1fr; gap: 20px; }
  .new-news-title{ font-size: 24px; }
  .new-news-body{ padding: 16px 14px 18px; }

  /* 分頁響應式優化 */
  .new-news-pagination{
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 20px;
    padding: 0 15px;
  }
  .new-news-page{
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 4px;
    flex: 0 0 auto;
  }
}

/* 極小螢幕分頁優化 */
@media (max-width: 375px) {
  .new-news-pagination{
    gap: 3px;
    padding: 0 10px;
  }
  .new-news-page{
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    font-size: 11px;
  }
}


.new-main-title {
  text-align: center;
  margin-top: 80px;
}

.new-main-title h1 {
    font-size: 36px;
    font-family: 'Noto Serif TC', 'Source Han Serif TC', serif;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 0px;
}


.index-double-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;          /* 区块本身不留空隙 */
  padding: 0;
}

.index-banner-item {
  line-height: 0;     /* 去掉上下的圖片空隙 */
}

.index-banner-item img {
  width: 1664px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}



.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* 平板(兩欄) */
@media (max-width: 992px) {
  .index-grid {
    grid-template-columns: repeat(3, 1fr);
  }

	.index_b img {
        width: 100%!important;
    }
	.new-main {
    padding-top: 134px;
}
}

/* 手機(單欄) */
@media (max-width: 576px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
}

.index-card {
    background-color: rgba(44, 27, 14, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    padding-bottom: 40px;
}
  .index-img {
    position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1.28; /* 寬高比 770 / 600 */
  overflow: hidden;
  cursor: pointer;
  }

  .index-view-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9); /* 黑色 90% 遮罩 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .index-img:hover .index-view-overlay {
    opacity: 1;
  }

  .index-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    fill: #fff;
  }

  .index-view-overlay span {
    color: #fff;
    font-size: 14px;
    background-color: transparent;
  }

  .index-info {
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    text-align: center;
  }

  .index-info h3 {
    font-size: 20px;
    color: #e9be84;
    margin-bottom:0px;
  }

  .index-price {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .index-btn {
   background-color: #90622d;
  color: white;
  border: none;
  padding: 10px 0;                /* 上下內距，左右由 width 控制 */
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width:  100%;                     /* 寬度為區塊的 80% */
  margin: 0 auto;                 /* 水平置中 */
  display: block;                 /* 確保可用 margin:auto 置中 */
}


  .index-btn:hover {
    background-color: #6f4a1f;
    color: #e9be84;
  }



/* ========= 基本區塊設定 ========= */

.index-slogan {
  text-align: center;
  margin-top: 80px;
}

.index-slogan h1 {
    font-size: 36px;
    font-family: 'Noto Serif TC', 'Source Han Serif TC', serif;
    font-weight: 400;
    margin-bottom: 60px;
}

/* ========= 背景與容器設定 ========= */

.index-slogan-section {
  background-image: url(../images/our_persistence.jpg);
  background-size: cover;
  background-position: center;
  padding: 250px 20px;
  text-align: center;
}

.index-slogan-container {
  display: flex;
  justify-content: center!important;
  flex-wrap: wrap;
  gap: 40px!important;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========= 圓圈項目與文字 ========= */

.index-slogan-item {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.index-ring-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.index-ring-left {
  fill: none;
  stroke: white;
  stroke-width: 0.2;
}

.index-ring-right {
  fill: none;
  stroke: white;
  stroke-width: 1.1;
}

.index-slogan-text {
  color: white;
  font-size: 40px;
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
  font-family: 'Noto Serif TC', 'Source Han Serif TC', serif;
}

/* ========= RWD：平板（768px 以下） ========= */

@media (max-width: 768px) {
	.index-slogan-section {
    padding: 100px 20px;
}
  .index-slogan-item {
    width: 200px;
    height: 200px;
  }

  .index-slogan-text {
    font-size: 40px;
  }
}

/* ========= RWD：手機（480px 以下） ========= */
@media (max-width: 480px) {
	.index-slogan-section {
    padding: 50px 20px;
}

  .index-slogan-container {
    justify-content: flex-start; /* 重點：取消置中，讓左右貼齊 */
    gap: 0;                      /* 避免因 gap 導致寬度溢出 */
    row-gap: 20px!important;
  }

  .index-slogan-item {
    width: 50%;
    height: 160px;
    padding: 0 5px;             /* 加內距形成左右間距 */
    box-sizing: border-box;
  }

  .index-slogan-text {
    font-size: 30px;
  }
}

.index-news-section {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.index-news-title {
  font-size: 36px;
  margin-bottom: 60px;
  font-family: 'Noto Serif TC','Source Han Serif TC',serif;
  font-weight: 400;
}

.index-news-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.index-news-item {
  width: calc(50% - 20px);
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  transition: transform .3s;
}

.index-news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.index-news-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}

.index-news-info {
  padding: 20px;
  transition: transform .4s ease, color .4s ease;
}

.index-news-date {
    font-size: 14px;
    display: block;
    color: #e9be84;
    margin-top: 8px;
    margin-bottom: 8px;
}

.index-news-text {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.index-news-more {
    background-color: #90622d;
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 80%;
    margin: 20px auto;
    display: block;
    transition: background .3s, color .3s;
    text-decoration: none;
    font-weight: 800;
}
.index-news-item:hover {
  cursor: pointer;
}

.index-news-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.index-news-item:hover .index-news-info {
  transform: translateY(-10px);
  color: #fff;
}

.index-news-item:hover .index-news-more {
  background-color: #8b5d2c;
  color: #fff;
}

/* 平板 */
@media (max-width: 992px) {
  .index-news-item {
    width: 48%;
  }

  .index-news-img {
    height: 240px;
  }
	
  .footer-center {
    flex-direction: column;
        gap: 0px!important;

  }
    .new-footer a {
      color: #ccc;
      text-decoration: none;
  }
    
    .index-slogan-container {
        gap: 50px;
  }
    .index-news-list {
    
      flex-wrap: nowrap;
  }
}
/* 手機 */
@media (max-width: 576px) {

	.index-news-list {

  flex-wrap: wrap!important;
}
	
  .index-news-item {
    width: 100%;
  }

  .index-news-img {
    height: 200px;
  }

  .index-news-text {
    font-size: 15px;
  }
}
.new-footer{
  background:rgba(26,16,6,.8);
  color:#ccc;
  font-size:15px;
  line-height:1;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:60px 20px;
  display:flex;
  justify-content:space-between;
  gap:40px;
}

.footer-left{
	flex:1;
}

.footer-left p{
    line-height: 26px;
}

.footer-logo{
	width:140px;margin-bottom:20px;
}

.footer-center{
    flex: 1.8;
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 45px;
}

.menu-group a{
  display:block;
  color:#ccc;
  text-decoration:none;
  margin-bottom:8px;
  position:relative;
  overflow:hidden;
  padding-bottom:5px;
}

/* 金色彈性底線動畫 */
.menu-group a::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  height:1px;
  width:0%;
  background:#d5b168;
  transition:width .5s cubic-bezier(0.34,1.56,0.64,1);
}
.menu-group a:hover::after{ width:100%; }

/* MichelIn 排版 */
.michelin-block{
  display:flex;
  align-items:flex-start;
  gap:200px;
}
.michelin-badge{
  width:120px;
  height:120px;
  display:block;
}
.menu-social{
    margin-top:30px;   /* 上方距離，依喜好可拉高 8~16px */
    display:flex;
    gap:12px;
}


.menu-social a::after {
    display: none;
}

.social-icon:hover{opacity:0.7;}

/* 最下版權 */
.footer-copy{
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 15px;
    font-size: 14px;
}
.footer-copy a{
  color:#ccc;        /* 文字顏色（也可改你想要的品牌色）*/
  text-decoration:none;
  transition:opacity .3s;
}
.footer-copy a:hover{
  opacity:0.7;       /* hover 時簡單淡出即可 */
}

/* 讓版權區的 a 不吃到底線動畫 */
.footer-copy a::after{
  display:none !important;
}

/* 手機 */
@media(max-width:768px){

.footer-copy{
    font-size: 16px;
    line-height: 24px;
}
  .footer-inner{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .footer-center{
    flex-direction:column;
    gap:30px;
    margin-top:20px;
  }
  .michelin-block{
    flex-direction:column;
    align-items:center;
	   gap: 50px;
  }
  .menu-social{
    justify-content:center;
    margin-top:10px;
  }
 .icon-img {
    margin-top: 8px;
    width:30px!important;
    height:30px!important;
    margin-bottom: 8px;
}
	.index-slogan h1 {
  
    margin-bottom: 20px;

}
	.index-news-title {
   margin-bottom: 20px;
}
	.new-footer {  
    font-size: 16px;
}
	.new-product-section {
     margin: 40px auto;
}
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.index-card {
  background-color: rgba(44, 27, 14, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  padding-bottom: 40px;
}

.index-img {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1.28;
  overflow: hidden;
  cursor: pointer;
}

.index-view-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.index-img:hover .index-view-overlay {
  opacity: 1;
}

.icon-img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.index-view-overlay span {
  color: #fff;
  font-size: 14px;
}

.index-info {
  padding: 20px;
  text-align: center;
}

.index-info h3 {
  font-size: 20px;
  color: #e9be84;
  margin-bottom: 0;
}

.index-price {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.index-btn {
  background-color: #90622d;
  color: white;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  display: block;
  margin: 0 auto;
}

.index-btn:hover {
  background-color: #6f4a1f;
  color: #e9be84;
}

/* ---------- RWD ---------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* 外層網格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.index-card {
  background-color: rgba(44, 27, 14, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  padding-bottom: 20px;
  color: inherit;          /* 覆蓋 Bootstrap 的 a 標籤顏色 */
  text-decoration: none;   /* 移除底線 */
}

.index-card:hover {
  color: inherit;          /* 確保 hover 時顏色不變 */
  text-decoration: none;   /* 確保 hover 時不出現底線 */
}

/* 圖片區 */
.index-img {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1.28;  /* 依你的圖片比例設定 */
  overflow: hidden;
  cursor: pointer;
}
.index-view-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.index-img:hover .index-view-overlay {
  opacity: 1;
}
.icon-img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}
.index-view-overlay span {
  color: #fff;
  font-size: 14px;
}

/* 文字區 */
.index-info {
  padding: 20px;
  text-align: center;
}
.index-tag {
  font-size: 14px;
  color: #c7c0b9;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.index-info h3 {
  font-size: 24px;
  color: #e9be84;
    margin: 0px;
}


.index-info h4 {
    font-size: 22px;
    color: #e9be84;
    margin-top: 0px;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 4px;
}
.index-price {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    margin-top: 0px;
}

/* 按鈕 */
.index-btn {
    background-color: #90622d;
    color: white;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    font-weight:800;
}
.index-btn:hover {
  background-color: #6f4a1f;
  color: #e9be84;
}

/* --- RWD --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========= 商品詳情頁樣式 ========= */

/* 規格成分樣式 */
.spec-ingredients {
    margin-bottom: 10px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 10px;
}

.spec-ingredients h4 {
    color: #e9be84;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 4px;
}

.spec-ingredients p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* 商品詳情區塊樣式 */
.product-info-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 0px;
}

.new-product-block-title {
    font-size: 20px;
    margin: 20px 0 12px;
    font-weight: bold;
    color: #e9be84;
}

.new-product-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 20px 10px;
}

/* 商品詳情頁響應式設計 */
@media (max-width: 768px) {
    .product-info-section {
        padding: 0 15px;
        margin: 20px auto;
    }

    .new-product-block-title {
        font-size: 18px;
        margin: 30px 0 10px;
    }

    .new-product-desc {
        font-size: 16px;
        line-height: 1.6;
        margin: 0 0 20px 10px;
    }
}

@media (max-width: 480px) {
    .product-info-section {
        padding: 10px;
        margin: 15px auto;
    }

    .new-product-block-title {
        font-size: 16px;
        margin: 25px 0 8px;
    }

    .new-product-desc {
        font-size: 16px;
        line-height: 1.6;
        margin: 0 0 20px 10px;
    }
}

/* ========= Modal 專用商品選項樣式 ========= */
/* 桌面版 Modal 商品選項 */
.modal-product-item-options {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    border-bottom: 1px solid #67513c;
    padding-bottom: 20px;
}

/* Modal 使用與 detail 頁面相同的 new-product-option-item 樣式 */

/* Modal 手機版樣式 - 統一使用與 detail 頁面相同的 new-product-item-options 樣式 */
@media (max-width: 768px) {
    .modal-product-item-options {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

/* ========= Product Modal 基礎結構樣式 ========= */
/* Modal Overlay Styles */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Container */
.product-modal-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    background: url('/images/bg.jpg') repeat;
    background-size: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(82, 55, 31, 0.9);
    border: 1px solid #67513c;
    color: #e9be84;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-modal-close:hover {
    background: #6f4a1f;
    transform: rotate(90deg);
    border-color: #e9be84;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ========= Modal 內容區域樣式 ========= */
/* Modal Content */
.product-modal-content {
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}

/* Custom Scrollbar */
.product-modal-content::-webkit-scrollbar {
    width: 8px;
}

.product-modal-content::-webkit-scrollbar-track {
    background: rgba(103, 81, 60, 0.3);
    border-radius: 4px;
}

.product-modal-content::-webkit-scrollbar-thumb {
    background: #67513c;
    border-radius: 4px;
}

.product-modal-content::-webkit-scrollbar-thumb:hover {
    background: #90622d;
}

/* Product Section Layout */
.product-modal-content .new-product-section {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.product-modal-content .new-product-gallery {
    flex: 0 0 45%;
    max-width: 450px;
    min-width: 300px;
}

.product-modal-content .new-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.product-modal-content .new-product-content {
    flex: 1;
    min-width: 350px;
}

.product-modal-content .new-product-content h1 {
    font-family: 'Noto Serif TC', serif;
    font-size: 36px;
    margin-bottom: 10px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffffff;
}

.product-modal-content .subtitle {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #67513c;
    padding-bottom: 10px;
}

.product-modal-content .subtitle.highlight {
    color: #e9be84;
}

.product-modal-content .new-product-detail-list {
    font-size: 16px;
    line-height: 2;
}

/* Modal 按鈕樣式 */
.product-modal-content .new-product-btn {
    padding: 12px 0;
    font-size: 16px;
}

/* ========= Modal 響應式設計 ========= */
/* Tablet Layout (1024px - 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-modal-content .new-product-gallery {
        flex: 0 0 40%;
        max-width: 380px;
        min-width: 250px;
    }

    .product-modal-content .new-product-content {
        min-width: 300px;
    }

    /* Modal 使用與 detail 頁面相同的 new-product-option-item 樣式，不需要額外覆蓋 */
}

/* Mobile Layout (768px and below) */
@media (max-width: 768px) {
    .product-modal-container {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .product-modal-content {
        padding: 20px;
    }

    .product-modal-content .new-product-section {
        flex-direction: column;
        gap: 20px;
    }

    .product-modal-content .new-product-gallery {
        flex: none;
        max-width: 100%;
        min-width: auto;
        align-self: center;
    }

    .product-modal-content .new-product-gallery img {
        max-height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-modal-content .new-product-content {
        flex: none;
        min-width: auto;
    }

    .product-modal-content .new-product-content h1 {
        font-size: 28px;
    }

    .product-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* Small Mobile Layout (480px and below) */
@media (max-width: 480px) {
    .product-modal-container {
        margin: 0;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .product-modal-content {
        padding: 60px 15px 15px;
        max-height: 100vh;
    }

    .product-modal-content .new-product-section {
        gap: 15px;
    }

    .product-modal-content .new-product-gallery img {
        max-height: 250px;
        max-width: 100%;
    }

    .product-modal-content .new-product-content h1 {
        font-size: 24px;
    }
}
