.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.line-1{position:fixed;right:1%;top:52%;z-index:1000;}
.fb{position:fixed;right:1%;top:64%;z-index:1000;}
/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .phone-1, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.7);
    right:0;
  }
}

/*根元素*/
:root{
--white:#ffffff; /* 白 var(--white)*/
--black:#000000; /* 段落文字  var(--black)*/
--card:#8d7a5b; /* 卡片底(淺米白) var(--card)*/
--text:#3f4f31; /* 主要文字(綠) var(--text)*/
--text2:#756c63; /* h3次要文字(褐) var(--text2)*/
--text3:#c09250; /* h4次要文字(古銅金) var(--text3)*/
--text4:#2BA9B3; /* 次要文字(翡翠青) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text3) 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: Transparent;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  text-align: center;
}



body {
  margin:0;
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
  color:#3e352a;
  background:#fffaf0;
}

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 2em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(16px, 2vw, 18px);
  color:  var(--black);
}/*編輯欄文字*/

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol p{  
  line-height: 2;
  text-wrap: pretty ;  /*適用內文,段落避開孤字*/
 }

h1, h2, h3, h4, h5, h6 { 
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #000;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav .subnav .has-subnav span{
    max-width: 400px;/*次頁籤文字背景最大寬度*/
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--white);
}
#side ul li a {
  font-size: 16px;
  color: var(--black);
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}
#side ul li.current>div a {
    color: var(--black);
}

.product-list-div h2 a {
    color: var(--text);
}

ul.product-list li a {
    color: var(--text);/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: var(--text2);/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 {
    color: var(--text);
    font-size: 30px;
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--text);
}

a {
    color: var(--text2);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(700 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

/*#bodyinhome .fcol:nth-child(-n+6) { padding: 2em 0; } 首頁-全編輯欄間距*/

/*#bodyinhome .fcol.fcol-3 .container,
#bodyinhome .fcol.fcol-4 .container,*/

#bodyinhome .fcol.fcol-2 {  background-color: var(--text);}


/*footer*/
#footer {
    color: #fff;
    background-color: var(--card);
}

#foot-nav { display:none; }

/*row-1*/
.pine-hero-tag{
  display:inline-block;
  padding:7px 18px;
  margin-bottom:20px;
  border:1px solid #c79b4d;
  border-radius:30px;
  color:#9a712d;
  font-size:14px;
  letter-spacing:3px;
  background:rgba(255,255,255,.5);
}

.pine-hero h1{
  margin:0 0 18px;
  font-size: clamp(30px, 3vw, 50px);
  line-height:1.35;
  color:#425332;
  letter-spacing:3px;
}

.pine-hero h1 span{
  color:#d79c2c;
}

/*row-1 按鈕*/
.pine-btn{
  display:inline-block;
  padding:12px 30px;
  border-radius:30px;
  background:#566e3d;
  color:#fff;
  font-size:15px;
  letter-spacing:1px;
  transition:.3s;
}

/* ======================
   商品區
====================== */
.pine-products{
  background:#fffdf8;
}

.pine-product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.pine-product-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(67,48,22,.08);
  transition:.3s;
}

.pine-product-card:hover{
  transform:translateY(-6px);
}

.pine-product-img{
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f1eadc;
}

.pine-product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}

.pine-product-card:hover img{
  transform:scale(1.05);
}

.pine-product-info{
  padding:24px 20px 27px;
  text-align:center;
}

.pine-product-info h3{
  margin:0 0 8px;
  color:#465733;
  font-size:20px;
}

.pine-product-info p{
  margin:0 0 15px;
  color:#897b6b;
  font-size:14px;
}

.pine-product-link{
  color:#b77c1f;
  font-size:14px;
  font-weight:600;
}


.pine-btn:hover{
  background:#40532d;
  transform:translateY(-2px);
}

.pine-btn.light{
  background:#e7ad38;
  color:#fff;
}

.pine-btn.light:hover{
  background:#ce9224;
}


/* ======================
   製作流程
====================== */
.pine-process{
  background:#596d43;
  color:#fff;
}

.pine-process .pine-title h2,
.pine-process .pine-title p{
  color:#fff;
}

.pine-process .pine-title small{
  color:#f3cf7a;
}

.pine-process-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
  position:relative;
}

.pine-process-item{
  text-align:center;
  position:relative;
}

.pine-process-num{
  width:64px;
  height:64px;
  margin:auto;
  color: var(--white);
  border-radius:50%;
  border:1px solid rgba(255,255,255,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  background:rgba(255,255,255,.08);
}

.pine-process-item h3{
  font-size:18px;
  margin:15px 0 6px;
  color: var(--white);
}

.pine-process-item p{
  margin:0;
  font-size:14px;
  opacity:.8;
  color: var(--white);
}


/*row-6 聯絡我們*/
.pine-contact-list{
  margin-bottom:28px;
}

.pine-contact-row{
  padding:12px 0;
  border-bottom:1px solid #e8ddc9;
  color:#685d50;
}


/* ======================
   手機版
====================== */
@media(max-width:991px){
  .pine-product-grid{
    grid-template-columns:repeat(1,1fr);
  }
  
   .pine-process-grid{
    grid-template-columns:repeat(2,1fr);
    row-gap:40px;
  }

  }