/*--Go_Top*/
#goTopBtn {
  display: none; /* 預設隱藏 */
  position: fixed; /* 固定定位 */
  bottom: 30px; /* 距離底部距離 */
  right: 30px; /* 距離右邊距離 */
  z-index: 99; /* 確保在最上層 */
  border: none;
  outline: none;
  background-color: #e57b14; /* 這裡可以換成你圖表中的深藍色 */
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%; /* 圓形按鈕 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
}

#goTopBtn:hover {
  background-color: #cc490f; /* 懸停時顏色加深 */
  transform: translateY(-5px); /* 向上微跳 */
}

/* 讓 SVG 箭頭置中 */
#goTopBtn svg {
  display: block;
  margin: auto;
}


/*body*/
.row [class^="col-"] {
  padding:10px;
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }

body {
  background: #fffaf5;
}


#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-header, 
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-header .h1title{
  display:none;
}



/*logo*/

 #logo img {
   padding: 0 16px 16px;
 }

@media only screen and (max-width: 767px) {
  #logo a img {
    margin: 0 auto;
  }
}


/*top*/
.navbar-nav > li > a {
    color: #fff;
}


.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/  
  padding-top:0px;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.topnavbar {
  background-color: #cc0001;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
}


@media(max-width:600px){
   .topnavbar .container {
  text-align: center;
}
}




/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #fff;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 18px;
    font-size: 100%;
    border-right: 1px #888 dotted;
    transition:all 0.5s;
}

#nav ul li a:hover{
   color:#f9dea9;
}

#nav ul li a::before {
  content:"";
  border-bottom:2px solid #f9dea9;
  width:0;
  position:absolute;
  margin:-8px auto;
  transition:.3s all ease;
}

#nav ul li a:hover::before {
 width:50%;
}

#nav ul li.current a::before  {
  content:"";
  /*border-top:2px solid #cca349;*/
  width:0%;
  position:absolute;
   margin:-8px auto;
}

#nav ul li.current a  {
    color: #f9dea9;  
}



/*========= About_1 =========*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-1 .container{
  padding:0px;
}



/*========= About_2 =========*/
.hero-banner{
  background:url('https://static.iyp.tw/409927/files/c24bf79e-04c7-4c49-b71c-cfd5d861ba5a.jpg') center/cover no-repeat;
  height:420px;
  position:relative;
  color:#fff;
}


.hero-overlay{
  background:rgba(0,0,0,0.45);
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.hero-overlay h1{
  font-size:40px;
  letter-spacing:4px;
}

.subtitle{
  color:#d4af7f;
  margin:10px 0;
  letter-spacing:2px;
}

.desc{
  max-width:500px;
  font-size:14px;
  opacity:0.9;
}

.btn-main{
  margin-top:20px;
  padding:10px 30px;
  border:1px solid #d4af7f;
  color:#fff;
  text-decoration:none;
}

.btn-main:hover{
  background:#d4af7f;
  color:#000;
}

/* 老字號章 */
.badge-1975{
  position:absolute;
  top:20px;
  left:20px;
  border:1px solid #d4af7f;
  color:#d4af7f;
  padding:10px 12px;
  font-size:12px;
  text-align:center;
  line-height:1.4;
}




/* ===== About_3 ===== */
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3 .container{
  max-width:100%;
  width:100%;
  padding:100px 0;
}

#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3 .container > * {
  padding-left: 0px;
  padding-right: 0px;
}

/* ===== 背景大字 DESIGN ===== */
/* 讓外層容器成為定位基準，並溢出隱藏（防止大字超出邊界導致捲軸出現） */

.luxe-core {
    position: relative;
    overflow: hidden; 
}

/* 背景大字：1975 */
.luxe-core::before {
    content: "Founded in 1975";
    position: absolute;
    left: 100px;
    top: 0;
    font-size: clamp(80px, 6vw, 200px); /* 使用 clamp 讓手機版字體自動縮小 */
    font-weight: 900;
    letter-spacing: 0px;
    color: #000;
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    
    /* 連結 JS 的變數 */
    transform: translateY(var(--textY, 0)) scale(1.02);
    will-change: transform;
}

/* 背景圖案：建築線稿 */
.luxe-core::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -20px;
    width: 50%; /* 改用百分比更有彈性 */
    height: 100%;
    background: url(https://static.iyp.tw/409927/files/5999e2dd-ddab-46a9-89c5-af0450c6117b.png) no-repeat right bottom;
    background-size: contain;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    
    /* 連結 JS 的變數 */
    transform: translateY(var(--buildingY, 0));
    will-change: transform;
}


/* 手機版 */
@media (max-width: 768px) {
  .row,
  .flex-wrap,
  .grid-2 {
    display: block !important;
  }

  .row > *,
  .flex-wrap > *,
  .grid-2 > * {
    width: 100% !important;
    margin-bottom: 20px;
  }
}

/* 手機版 */
@media (max-width: 768px) {
  .section {
    grid-template-columns: 1fr;
  }
}



/*========= About_4 =========*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4{
  background:url('https://static.iyp.tw/409927/files/15d6d8f0-b1c0-4a1d-b8b6-4dec232d2402.svg') center/cover no-repeat;
  background-size: ciover;
  background-attachment:fixed;
}


/* 修正後的 CSS */
.product-card {
    background: #ffffff; /* 建議背景不要太深，或維持你原本的 #f1b94d */
    padding: 10px;      /* 手機版建議縮小內距 */
    border-radius: 12px;
    border: 1px solid #f1e3d3;
    transition: .3s;
    overflow: hidden;    /* 確保圖片不超出圓角 */
  transition:0.4s;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
      transition:0.4s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card:hover img{
  transform:scale(1.08);
}


@media (max-width: 368px) {
    div[style*="grid"] {
        grid-template-columns: 1fr 1fr !important; /* 強制手機版兩欄 */
        gap: 10px !important;                      /* 縮小間距省空間 */
    }
}


@media (max-width: 368px) {
   .luxe-core div[style*="grid"] {
        grid-template-columns: 1fr !important; /* 強制手機版兩欄 */
        gap: 10px !important;                      /* 縮小間距省空間 */
    }
}



/*========== about_5 ==========*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-5 .container{
  max-width:100%;
  width:100%;
  padding:50px 0 0;
}

#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-5 .container > * {
  padding-left: 0px;
  padding-right: 0px;
}


/* 主背景 */
.red-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #b31616 0%, #9e1414 100%);
  overflow: hidden;
  border-radius:250px 250px 0 0;
}

/* 柔和流線 */
.wave {
  position: absolute;
  width: 200%;
  height: 200px;
  left: -50%;
  border-radius: 45%;
  opacity: 0.25;
}

/* 第一層（最淡） */
.wave1 {
  bottom: 0;
  background: rgba(255,255,255,0.15);
  animation: moveWave 12s ease-in-out infinite;
}

/* 第二層（中） */
.wave2 {
  bottom: 40px;
  background: rgba(255,255,255,0.1);
  animation: moveWave 18s ease-in-out infinite reverse;
}

/* 第三層（最柔） */
.wave3 {
  bottom: 80px;
  background: rgba(255,255,255,0.06);
  animation: moveWave 22s ease-in-out infinite;
}

/* 動畫（左右柔滑，不旋轉） */
@keyframes moveWave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 內容 */
/* 整體容器優化 */
.red-bg {
    position: relative;
    padding: 60px 0;
    width: 100%;
    height: 100vh;
    background: #e63946; /* 建議一個更有質感的紅色 */
    overflow: hidden;
    border-radius:250px 250px 0 0;
}

/* 內容容器 */
.content {
    position: relative;
    z-index: 5;
}

/* 輪播本體 */
.owl-carousel.owl-theme {
    padding: 20px 0 40px;
}

/* 圖片外層卡片樣式 */
.owl-carousel .row-no-gutters {
    padding: 10px; /* 留一點間距讓陰影透出來 */
}


.owl-carousel .owl-item img {
  display:block;
  width:95%;
}

.owl-carousel img {
    border-radius: 12px; /* 圓角是質感的來源 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* 柔和陰影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 95%;
    display: block;
    border: 3px solid rgba(255,255,255,0.8); /* 白色細邊框 */
}

/* 懸停放大效果 */
.owl-carousel img:hover {
    transform: translateY(-5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* 左右箭頭優化 */
.owl-carousel.owl-theme .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none; /* 避免擋住中間的點擊 */
}

.owl-carousel.owl-theme .owl-nav [class*='owl-'] {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important; /* 白色半透明底 */
    color: #e63946 !important; /* 紅色箭頭 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.owl-carousel.owl-theme .owl-nav .owl-prev {
    left: -20px; /* 稍微往外推 */
}

.owl-carousel.owl-theme .owl-nav .owl-next {
    right: -20px;
}

.owl-carousel.owl-theme .owl-nav [class*='owl-']:hover {
    background: #fff !important;
    transform: scale(1.1);
}

/* 下方點點優化 */
.owl-carousel.owl-theme .owl-dots {
    margin-top: 20px;
}

.owl-carousel.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.owl-carousel.owl-theme .owl-dots .owl-dot.active span {
    width: 25px; /* 激活時變長條狀，很有現代感 */
    background: #fff;
}

/* 編輯模式保持整齊 */
.editmode .owl-carousel.owl-loaded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}



/*========= About_6 =========*/
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-6{
  display:none;
}



/*========= 產品說明 =========*/
/* HERO */
.hero{
  height:300px;
  background:linear-gradient(rgba(67,6,6,0.7),rgba(198,111,59,0.7)),
             url('https://static.iyp.tw/409927/files/1a00085e-24a8-4e07-bda4-b602d90572d8.jpg');
  background-size:cover;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}

.hero h1{
  font-size:48px;
  margin-bottom:10px;
}

.hero span{
  font-size:14px;
}

/* 區塊 */
section{
  padding:50px 20px;
  text-align:center;
}

.hero h2{
  color:#c96f3b;
  margin-bottom:20px;
}

/* 商品 */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}

.product-card{
  background:#fff;
  padding:20px;
  border-radius:12px;
  border:1px solid #f1e3d3;
  transition:.3s;
}

.product-card:hover{
  transform:translateY(-5px);
}


/* 訂購 */
.order ul{
  list-style:none;
  padding:0;
}

.order li{
  margin:8px 0;
}


/* 手機 */
@media(max-width:768px){
  .hero h1{
    font-size:32px;
  }
}



/* DM下載區 */
.dm-download{
  text-align:center;
  padding:50px 20px;
}

.dm-download p{
  margin-bottom:20px;
  color:#7a5a3a;
}

/* 按鈕 */
.dm-btn{
  display:inline-block;
  background:#c96f3b;
  color:#fff;
  padding:12px 25px;
  border-radius:30px;
  text-decoration:none;
  font-weight:bold;
  transition:.3s;
}

.dm-btn:hover{
  background:#a6542a;
  transform:scale(1.05);
}

/* 訂購 */
.order-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px;
}

.order-card{
  background:#fff;
  padding:20px;
  border-radius:12px;
  border:1px solid #f1e3d3;
}

.order-form{
  margin-top:30px;
  background:#fff7ef;
  padding:20px;
  border-radius:10px;
  border:1px dashed #e0c3a3;
}

/* 手機 */
@media(max-width:768px){
  .order-grid{
    grid-template-columns:1fr;
  }
}





/*========= 訂購說明 =========*/
.food-wrap {
  max-width: 1000px;
  margin: 40px auto;
  font-family: "Microsoft JhengHei", sans-serif;
  color: #4a3b2c;
  padding: 0 15px;
}

/* 標題 */
.brand-header {
  text-align: center;
  margin-bottom: 40px;
}

.brand-header h1 {
  font-size: 38px;
  color: #b65c2a;
  margin-bottom: 10px;
}

.brand-header p {
  color: #a67c52;
  font-size: 16px;
}

/* 區塊 */
.food-wrap .section {
  margin-bottom: 25px;
}

.food-wrap .card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #f1e3d3;
}

.food-wrap h2, h3 {
  color: #c96f3b;
  margin-bottom: 10px;
}

/* 雙欄 */
.food-wrap .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 清單 */
.food-wrap ul {
  padding-left: 18px;
}

.food-wrap li {
  margin-bottom: 6px;
}

/* 訂購說明 */
.food-wrap ol {
  padding-left: 18px;
  list-style: decimal;
}

.food-wrap .note {
  margin-top: 10px;
  color: #a94442;
  font-size: 14px;
}

/* 表格 */
.table-title {
  margin-bottom: 10px;
  color: #b65c2a;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.info-table th {
  background: #f5e1c8;
  color: #6b3e1e;
  padding: 10px;
  width: 30%;
  text-align: left;
}

.info-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.info-table tr:last-child td {
  border-bottom: none;
}

/* 手機版 */
@media (max-width: 768px) {
  .food-wrap .grid-2 {
    grid-template-columns: 1fr;
  }

  .food-wrap h1 {
    font-size: 30px;
  }
}



/*========= prpoduct =========*/
ul.product-list li h3 {
  flex: 1 0 auto;
  max-height: 3.15rem;
  margin: 0.7rem 0;
  font-size: 1.05rem;
  line-height: 1.5;
  overflow: hidden;
  padding: 0 16px;
  color: #a81010;
}



/*========= contact =========*/
.mark{
  background:none;
}


/*========= footer =========*/
#footer{
  background:#452a10;
}

#foot-nav{
  display:none;
}


