.phone{position:fixed;right:1%;top:30%;z-index:1000;}
.line-1{position:fixed;right:1%;top:42%;z-index:1000;}
.fb{position:fixed;right:1%;top:54%;z-index:1000;}
.ig{position:fixed;right:1%;top:66%;z-index:1000;}
.x-twitter{position:fixed;right:1%;top:78%;z-index:1000;}



/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 414px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet { 
    transform: scale(0.8);
    right:0;
  }
  
   .col-2 { width: 100%; }
}


/*根元素*/
:root{
--white:#ffffff; /* 白 var(--white)*/
--black:#000000; /* 段落文字  var(--black)*/
--card:#a7a7a7; /* 卡片底(淺灰) var(--card)*/
--text:#3f4f31; /* 主要文字(綠) var(--text)*/
--text2:#a7a7a7; /* h3次要文字(褐) var(--text2)*/
--text3:#cccccc; /* h4次要文字(更淺灰) var(--text3)*/
--text4:#2BA9B3; /* 次要文字(翡翠青) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--card) 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;
   border-bottom: 1px solid #ddd;/*表格細線*/
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  text-align: center;
}

iframe { border-radius: 40px;}

body {
  margin:0;
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
  color:#3e352a;
  background: linear-gradient( 135deg, #cdd2d8 0%, #f2f4f6 45%, #d6dbe1 100%);
  background-attachment: fixed;
}

/*動到表格手機不會破版*/
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(--black);
  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 16px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--card);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--card);/*頁籤按下後文字顏色*/
    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(--card);
    font-size: clamp(20px, 3vw, 24px);
}

a {
    color: var(--text2);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

#bodyinpage #banner { display:none; }

/*#bodyinhome .fcol:nth-child(-n+6) { padding: 2em 0; } 首頁-全編輯欄間距*/

#bodyinhome .fcol.fcol-3  .container {     
   border-radius: 40px;
    box-shadow: inset 0 1px 0 #fff, 0 10px 22px #3643520b;
   background: linear-gradient(145deg, #ffffffdc, #e4e7ebed 55%, #cfd5dce8);
  padding: 35px;
}


/*#bodyinhome .fcol.fcol-4 .container,

#bodyinhome .fcol.fcol-2 {  background-color: var(--text);}
*/

/*footer*/
#footer {
    color: #000;
       background-color: rgba(0, 0, 0, 0);
}

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 1px solid var(--text3);
  display: flex;
  justify-content: center;
  
}

.contact-row h5 { color: var(--card);}

#footer a { color: var(--card); }
#foot-nav ul li a {
    display: block;
    color: var(--text);
    font-size: 14px;
}

#foot-nav ul li a:hover { color: var(--card);}

#foot-nav ul li.current a { color: var(--text);} 

/*響應欄表格col-4 col-5 col-6 col-7 手機版強制2欄 寬度50%*/
@media only screen and (max-width: 576px){
.serve-item .col-4 { max-width: 50%;}
.serve-item .col-5 { max-width: 50%;}
.serve-item .col-6 { max-width: 50%;}
.serve-item .col-7 { max-width: 50%;}
}



/*下底線*/
.b1997-line {
    width: 64px;
    height: 3px;
    margin: 24px 0;
    background: linear-gradient(90deg, #3e4650, #a8b0ba);
}


.b1997-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b1997-tags li {
    padding: 7px 12px;
    font-size: 14px;
    color: #454e59;
    border: 1px solid #adb5bf;
    background: #ffffff55;
}

/* =========================
首頁-產品
========================= */

.product-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:25px;
}

.product-card{
    position:relative;
    overflow:hidden;
    border-radius:25px;
    height:450px;
    background:#eee;
}

.product-card h3 {
  color:var(--white);
}

.product-card.large{
    grid-row:span 2;
    height:1025px;
}

.product-card img{
    width: 100%;
    height:100%;
    object-fit:cover;
    transition:transform .7s;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-overlay{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    padding:45px 35px;
    color:var(--white); 
    background:
    linear-gradient(
        transparent,
        rgba(0,0,0,.72)
    );

}



@media(max-width:600px){
    .product-card,
    .product-card.large{
        height:300px;
    }
}


@media(max-width:900px){
    .product-grid{
        grid-template-columns:1fr;
    }

    .product-card,
    .product-card.large{
        height:300px;
        grid-row:auto;
    }
}


/*為什麼選擇 1997 BARBERSHOP 台北大安店？*/
.b1997-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.b1997-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #aab2bc;
}

.b1997-card {
    position: relative;
    padding: 28px;
    border: 1px solid #aeb6c0;
    background: linear-gradient(145deg, #ffffffdc, #e4e7ebed 55%, #cfd5dce8);
    box-shadow: inset 0 1px 0 #fff, 0 10px 22px #3643520b;
  height:100%;
}

.b1997-number {
    display: block;
    margin-bottom: 22px;
    color: #707b89;
    font-size: 13px;
    letter-spacing: 3px;
}

.b1997-card h4 { color: #434343; }

/*追蹤分享ig符號改font awesome V6版*/
.fa-instagram {
   font-family: "Font Awesome 6 Brands";
    content: "\f16d";
}

.fa-instagram::before {
   font-family: "Font Awesome 6 Brands";
    content: "\f16d";
}