@charset "utf-8";


/* ----------------------------------------------------------------------------------------------------------------*/
/* ------------------------------>>> 家族頁面樣式 <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/

/* 家族區塊整體樣式 */
.family-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.family-block {
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    padding: 30px;
}

/* 家族圖片樣式 */
.family-image {
    text-align: center;
    margin-bottom: 25px;
}

.family-image img {
    max-width: 200px;
    height: auto;
}

/* 家族內容樣式 */
.family-content {
    max-width: 100%;
}

.family-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: left;
}

/* 資訊列表樣式 */
.family-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 15px;
}

.info-item {
    display: flex;
    padding: 15px 0;
    align-items: flex-start;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    min-width: 120px;
    flex-shrink: 0;
    margin-right: 20px;
    line-height: 1.4;
}

.info-text {
    flex: 1;
    line-height: 1.6;
    color: #333;
}

/* 各區塊顏色主題 */
.doggy-block .family-title,
.doggy-block .info-label,
.doggy-block .info-text {
    color: #009ee8;
}

.doggy-block .info-item {
    border-bottom: 1px dotted rgba(0, 158, 232, 0.4);
}

.catty-block .family-title,
.catty-block .info-label,
.catty-block .info-text {
    color: #ed7926;
}

.catty-block .info-item {
    border-bottom: 1px dotted rgba(237, 121, 38, 0.4);
}

.akky-block .family-title,
.akky-block .info-label,
.akky-block .info-text {
    color: #a5569d;
}

.akky-block .info-item {
    border-bottom: 1px dotted rgba(165, 86, 157, 0.4);
}

.minichan-block .family-title,
.minichan-block .info-label,
.minichan-block .info-text {
    color: #664f3c;
}

.minichan-block .info-item {
    border-bottom: 1px dotted rgba(102, 79, 60, 0.4);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .family-section {
        gap: 30px;
        padding: 15px 0;
    }
    
    .family-block {
        padding: 20px;
    }
    
    .family-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .family-image img {
        max-width: 300px !important;
        width: 100%;
        height: auto;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .family-section {
        gap: 25px;
        padding: 10px 0;
    }
    
    .family-block {
        padding: 15px 5px;
    }
    
    .family-title {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .family-image img {
        max-width: 300px !important;
        width: 100%;
        height: auto;
    }
    
    .info-item {
        padding: 10px 0;
    }
}

/* ----------------------------------------------------------------------------------------------------------------*/
/* ------------------------------>>> 購物車-確認購物車 <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/

.bg-grey{/* background: #F7F7F7; */padding: 20px;}


ul.cart-flow{
	padding: 0;
	width: 100%;
	margin: 0 auto 40px auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}
ul.cart-flow li{
	list-style-type : none;
	display: inline-flex;
	 align-items: center;
    justify-content: start;
     font-size: 0.94rem;
     font-weight: bold;
     background: #fff;
     position: relative;
     padding: 0 15px;
     text-wrap: nowrap;
     margin:10px 0;
}



ul.cart-flow li span{
	background: #cccccc;
	border-radius: 50%;
	width: 35px;
	color: #fff;
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	padding: 10px;
	margin-right: 10px;
}

ul.cart-flow li.active span{
	background: #79a9d7;
}

@media screen and (min-width : 810px) {

    ul.cart-flow{width: 55%;flex-wrap: nowrap;flex-direction: row;justify-content: space-around;}

    ul.cart-flow li:not(:last-child):after{
        content: "";
        height: 1px;
        background: #c4c4c4;
        z-index: 0;
        position: absolute;
        left: 170px;
        position: absolute;
        right: 0px;
    }
    ul.cart-flow li:not(:last-child){
    
width: 300px;
}


}
@media screen and (max-width : 809px) {
   /* 手機版垂直時間軸樣式 */
   ul.cart-flow{ 
       flex-direction: column;
       width: 100%;
       max-width: 400px;
       margin: 0 auto 30px auto;
   }
   
   ul.cart-flow li{
       width: 100%;
       padding: 8px 20px;
       margin: 0;
       background: #f8f8f8;
       border-left: 4px solid #cccccc;
       position: relative;
   }
   
   ul.cart-flow li.active{
       background: #e8f4f8;
       border-left-color: #79a9d7;
   }
   
   ul.cart-flow li:not(:last-child){
       margin-bottom: 2px;
   }
   
   ul.cart-flow li span{
       width: 32px;
       height: 32px;
       padding: 8px;
       font-size: 0.9rem;
       font-weight: bold;
       margin-right: 15px;
       flex-shrink: 0;
   }
   
   /* 已完成步驟的樣式 */
   ul.cart-flow li.completed span{
       background: #5cb85c;
   }
   
   ul.cart-flow li.completed{
       border-left-color: #5cb85c;
       background: #f0f9f0;
       opacity: 0.8;
   }
}

.table-space:before{
	content: " ";
    display: block;
    line-height: 10px;
    text-indent: -99999px;
    height: 0.5em;
    background: #fff;
    width: 100%;
}
.product_cart{
	text-align: center;
}
.tips.tag{border:1px solid #a2a2a2; padding: 3px 5px; width:fit-content; margin-top:5px;}
.css_td.split:after{
	content: "";
    width: 1.5px;
    height: 90px;
    background: #ececec;
    display: block;
    position: relative;
    top: 0px;
}

.table-row-group {display: table-row-group; }

@media screen and (max-width: 768px){
.visible-no-m {
    display: none;
    }
}

.nowrap{text-wrap: nowrap;}



.cart-caption{font-size: 16px;font-weight: bold; margin:0 0 30px 0; }
.cart-caption2{font-size: 16px;font-weight: bold;/* border-bottom: 1px solid #dbd5d5; */padding: 0 0 15px 0;}
.cart-table{
    margin: 0px 0 20px 0;
    background: #ffffff;
    /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); */
    border-radius: 15px;
    /* overflow: hidden; */
}
/* cart_flow2.php 專用：較小的 margin-bottom */
.cart-table.mb-10{
    margin: 0px 0 10px 0;
}
.cart-table a{color:#393939;text-decoration: none;}
.cart-table a:hover{ color:#79a9d7; }
.cart-table .css_table .css_th , .cart-table .css_table .css_td{color:#393939;font-weight: bold;}
.cart-table .css_table .css_td:not(:first-child){min-width: 50px;}
 span.tips.tag{display:block;color: #79a9d7;font-size:13px;}
.cart-table .css_table .css_th , .cart-table .css_table .css_td del{color: #5fa5cd;letter-spacing: 4px;}
.cart-table .css_table .css_td{padding:5px 10px;/* border-top: 1px solid #ababab; */line-height: 20px;height: 100px;text-align: left;}
.cart-table .css_table .css_tr:nth-child(2) .css_td{ border-top:0; }
.cart-table .css_table .css_tr.border-0 .css_td{border-bottom: 1px solid #ebebeb;}
.cart-table .css_table .css_tr.pt-10 .css_td{ padding-top: 10px; }
.cart-table .css_table .css_tr.pt-30 .css_td{ padding-top: 30px; }
.cart-table .css_table .css_tr.pt-20 .css_td{/* padding-top: 20px; */}
.cart-table .css_table .css_tr.pb-10 .css_td{ padding-bottom: 10px; }
.cart-table .css_table .css_tr:last-child .css_td{ padding-bottom: 20px; }

.cart-coupon{ font-size:15px; text-align:right; padding:30px 30px;}
.cart-coupon input{margin: 10px 20px;}

.cart-coupon .row{position: relative;display: none;flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; align-items: center;}
.cart-coupon .row.show{display: flex;}
.cart-coupon span.btn1,.cart-coupon .title{text-wrap: nowrap;}
.cart-coupon .title{border-right:1px solid #ececec;padding:0 15px;}

.cart-coupon .value{padding:0 15px;text-align: right;width:130px;color:red;}
.cart-coupon a{display: flex;align-items: center; border:1px solid #ececec;padding:5px 10px;}

.cart-coupon .row .pr-15{width:320px;text-align: left;}

.cart-price{ display:flex; padding:30px 30px; }
.cart-price .left{ flex:3; }
.cart-price .right{flex:1;text-align: right;}
.cart-price .items{display:flex;font-size:15px;padding: 0 0 20px 0;color: #585858;text-align: right;}
.cart-price .items .title{ flex:1; min-width:110px; }
.cart-price .items .content{ flex:1; min-width:100px; }

.cart-pay{margin: 0px 0;padding: 0 20px;}
.cart-pay .caption{color:#585858;font-size:15px;padding: 0px 0 10px 0;line-height:20px;}
.cart-pay .caption label{display: inline-block;margin: 5px 0;}
.cart-pay .editor{padding: 20px 0px 20px 0px !important;}
.cart-pay .frame{ display:flex; }
.cart-pay .frame .left{ flex:1; min-width:200px; }
.cart-pay .frame .left > div{padding: 5px 0;line-height: 30px;}
.cart-pay .frame .right{ flex:3; }
.cart-pay .frame .right .tips{display: inline-block;padding: 20px;background: #f1f1f1;font-size: 15px;}
.cart-pay .frame .right .tips ul{margin: 0;padding: 0 0 0 20px;}
.cart-pay .frame .right .tips ul li{color: #67adb5;line-height: 20px;padding: 5px 0;}

/*閱讀並接受條款*/
#fancy-frame .bottom{width:100%;padding: 30px 20px;text-align:center;}
#fancy-frame .bottom .btn1{ margin:30px 0;}
#fancy-frame a{ color:#000000; }

/*fancybox按鈕樣式*/
.fancy-click {display: inline-block;color: #79a9d7;cursor: pointer;border-bottom: 1px solid #79a9d7;}
.fancy-click:hover { color: #79a9d7; }

.fancy-click2 { color: #79a9d7; cursor: pointer; }
.fancy-click2:hover { text-decoration: underline; }

.cart-complete{color:#000000;line-height: 25px;font-size: 15px;margin: 0 0 30px 0;}
.cart-complete .caption{ font-size:15px;  border-bottom: 1px solid #dfdfdf;margin-bottom: 10px;padding-bottom: 10px; }
.cart-complete .pay-detail{line-height: 190%}
.cart-coupon .text-left{padding-bottom: 30px;line-height: 135%;padding-bottom: 20px;}

@media screen and (max-width : 600px) {
	.cart-coupon{ text-align:center; }
	.cart-pay .frame{ display:block; }
}
@media screen and (max-width : 480px) {
    .cart-table{
        margin: 0px 0 40px 0;
    }
    /* cart_flow2.php 專用：手機版較小的 margin-bottom */
    .cart-table.mb-10{
        margin: 0px 0 10px 0;
    }
	.cart-table .css_table .css_th , .cart-table .css_table .css_td{padding: 10px 0px;}
	.product_input{ width:30px; }
    .cart-coupon{ padding:20px 0;}
    .cart-coupon .row.typed{
        flex-direction: column;
        padding: 20px;
        align-items: flex-start;
    }
    .cart-coupon .title{padding: 0;}
    .cart-coupon input{margin: 10px 0;}
    .cart-coupon .text-left{padding:0 20px;} 
    .cart-coupon .bonus-typed.text-left{padding-bottom: 20px;}
    .cart-coupon .row.show{justify-content: flex-start;padding-left:20px;padding-right: 20px;}

}


/* ----------------------------------------------------------------------------------------------------------------*/
/* ------------------------------>>> 購物清單 <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {
    /* 隱藏表頭容器 (display: table-row-group 的元素) */
    .cart-table .css_table .css_tr.border-0[style*="table-row-group"] {
        display: none !important;
    }
    
    /* 隱藏表頭 */
    .cart-table .css_table .css_th {/* display: none !important; */border-bottom: 0;}

    /* 讓容器可當作卡片容器使用 */
    .cart-table .css_table {display: block;border-bottom: 1px solid #ebebeb;}

    /* 單筆資料改為卡片 */
    .cart-table .css_table .css_tr.bg-grey {
        display: block;
        background: #ffffff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        padding: 12px;
        margin-bottom: 12px;
    }

    /* 每個欄位改為區塊排列 */
    .cart-table .css_table .css_td {
        display: block;
        text-align: center;
        height: auto;
        border-top: 0;
        padding: 8px 6px;
    }

    /* 商品圖片尺寸 */
    .cart-table .css_table .css_td img { max-width: 90px; height: auto; }

    /* 隱藏分隔欄與僅桌機顯示欄位 */
    .cart-table .css_table .css_td.none-m { display: none; }

    /* 欄位標籤：價格 / 數量 / 小計 */
    .cart-table .css_table .css_tr.bg-grey .css_td:nth-child(4)::before,
    .cart-table .css_table .css_tr .css_td:nth-child(4)::before {
        content: "價格";
        display: inline-block;
        color: #888;
        font-size: 12px;
        margin-right: 8px;
        min-width: 42px;
    }

    .cart-table .css_table .css_tr.bg-grey .css_td:nth-child(5)::before,
    .cart-table .css_table .css_tr .css_td:nth-child(5)::before {
        content: "數量";
        display: inline-block;
        color: #888;
        font-size: 12px;
        margin-right: 8px;
        min-width: 42px;
    }

    .cart-table .css_table .css_tr.bg-grey .css_td:nth-child(6)::before,
    .cart-table .css_table .css_tr .css_td:nth-child(6)::before {
        content: "小計";
        display: inline-block;
        color: #888;
        font-size: 12px;
        margin-right: 8px;
        min-width: 42px;
    }

    /* 操作欄置右 */
    .cart-table .css_table .css_tr .css_td:nth-child(7) { text-align: right; }
}

.layout-flex2 { display: flex; flex-wrap: wrap; margin: 30px 0 30px 0; max-width: 1200px; }
.layout-flex2 .flex-item-1,
.layout-flex2 .flex-item-2{width:28%;padding: 0 0 0 5px;}
.layout-flex2 .flex-item-3{ width:72%;}
.layout-flex2 .flex-item-5{ width:50%;}


/* ----------------------------------------------------------------------------------------------------------------*/

/* ------------------------------>>> 購物車-填寫資料 <<<------------------------------------------------------*/

/* ----------------------------------------------------------------------------------------------------------------*/






/* ----------------------------------------------------------------------------------------------------------------*/

/* ------------------------------>>> 購物車-完成訂購 <<<------------------------------------------------------*/

/* ----------------------------------------------------------------------------------------------------------------*/



/* ================================================================================================================ */
/* ---------------------------------->>> 商品頁面專用樣式 Product Page Styles <<<------------------------------ */
/* ================================================================================================================ */


/* 主要容器 - 使用 Flexbox 佈局 */
.product-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-page-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 600px;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 左側選單區域 Sidebar Styles <<<--------------------------------------- */
/* ================================================================================================================ */

/* 左側選單容器 */
.product-sidebar-new {
    flex: 0 0 200px;
    background: transparent;
    padding: 0px 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-menu-container {
    width: 100%;
}

/* 選單分類群組 */
.menu-category-group {
    margin-bottom: 15px;
}

.menu-category-group:last-child {
    margin-bottom: 0;
}

/* 選單標題樣式 */
.menu-category-header {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

/* 簡單分類連結樣式 - 通用於各種頁面，不會觸發產品選單的展開收合JS */
.category-simple-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    color: #4492cd;
    font-size: 20px;
}

.category-simple-link:hover {
    color: #4492cd;
    text-decoration: underline;
    text-decoration-color: #4492cd;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.category-simple-link.selected {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: #4492cd;
}

.category-simple-link:focus {
    /*outline: 3px solid rgba(104, 173, 183, 0.3);*/
    outline-offset: 2px;
}

/* 第一層選單 - 藍色文字 */
.menu-category-header.level-1 {
    color: #4492cd;
    /* font-weight: 600; */
    font-size: 20px;
    padding: 10px 0;
}

.menu-category-header.level-1:hover {
    color: #4492cd;
    text-decoration: underline;
    text-decoration-color: #4492cd;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* 第二層選單 - 淺藍色文字 */
.menu-category-header.level-2 {
    color: #191919;
    font-weight: 500;
    font-size: 16px;
    margin-left: 30px;
}

.menu-category-header.level-2:hover {
    color: #4492cd;
    text-decoration: underline;
    text-decoration-color: #4492cd;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* 第三層選單 - 黑色文字 */
.menu-category-header.level-3 {
    color: #333333;
    font-weight: 400;
    font-size: 16px;
    margin-left: 50px;
    margin-bottom: 3px;
}

.menu-category-header.level-3:hover {
    color: #4492cd;
    text-decoration: underline;
    text-decoration-color: #4492cd;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* 選單圖示 */
.category-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: 0.8;
}

/* 第二層選單icon - 隱藏原圖片，使用實心圓圈 */
.menu-category-header.level-2 .category-icon {
    display: none;
}

.menu-category-header.level-2::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4492cd;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* 第三層選單icon - 隱藏原圖片，使用空心圓圈 */
.menu-category-header.level-3 .category-icon {
    display: none;
}

.menu-category-header.level-3::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1px solid #4492cd;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    background-color: transparent;
}

/* 選單文字 */
.category-title {
    flex: 1;
    font-family: inherit;
    line-height: 1.3;
}

/* 隱藏展開/收合指示器 */
.toggle-indicator {
    display: none;
}

/* 子選單列表 */
.menu-subcategory-list {
    display: none;
    margin-top: 10px;
    padding-left: 0;
    overflow: hidden;
}

.menu-subcategory-list.expanded {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.menu-subcategory-item {
    margin-bottom: 8px;
}

.menu-subitem-list {
    display: none;
    margin-top: 8px;
    overflow: hidden;
}

.menu-subitem-list.expanded {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* 動畫效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* 選中狀態 - 使用底線效果 */
.menu-category-header.selected {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.menu-category-header.level-1.selected {
    text-decoration-color: #4492cd;
}

.menu-category-header.level-2.selected {
    text-decoration-color: #4492cd;
}

.menu-category-header.level-3.selected {
    text-decoration-color: #333333;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 手機版分類選擇器 Mobile Category Selector <<<--------------------------- */
/* ================================================================================================================ */

/* 桌面版時隱藏手機版分類選擇器 */
.mobile-category-selector {
    display: none;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 右側內容區域 Content Styles <<<-------------------------------------- */
/* ================================================================================================================ */

/* 右側內容容器 */
.product-content-new {
    flex: 1;
    min-height: 600px;
}

/* 頁面標題區域 */
.product-page-header {
    margin-bottom: 30px;
    /* border-bottom: 2px solid #f0f0f0; */
    padding-bottom: 20px;
}

.page-title-container {
    border-left: 5px solid #dcebf5;
    /* display: flex; */
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.main-page-title {
    font-size: 30px;
    color: #383838;
    font-weight: 700;
    margin: 0 0 5px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.2;
}

/* 副標題樣式 */
.sub-page-title {
    font-size: 20px;
    color: #a1c8e5;
    font-weight: bold;
    margin: 0;
    padding-left: 20px;
    line-height: 1.3;
}

/* 左側藍色垂直裝飾線 */
.main-page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -10px;
    width: 5px;
    /* background: linear-gradient(180deg, #68adb7 0%, #578fa2 100%); */
    border-radius: 3px;
}

.page-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.action-row {
    display: flex;
    align-items: center;
}

.search-action-link {
    color: #68adb7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #68adb7;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.search-action-link:hover {
    background: #68adb7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 173, 183, 0.3);
}

.section-description {
    font-size: 18px;
    color: #68adb7;
    font-weight: 600;
    padding: 5px 0;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 商品橫幅區塊 Banner Styles <<<--------------------------------------- */
/* ================================================================================================================ */

.product-banner-section {
    margin-bottom: 20px;
    /* border-radius: 15px; */
    overflow: hidden;
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1); */
    /* background: #ffffff; */
}

.banner-image-container {
    width: 100%;
    /* height: 220px; */
    /* overflow: hidden; */
    position: relative;
}

.banner-image-container img {
    /* width: 100%; */
    /* height: 100%; */
    /* object-fit: cover; */
    transition: transform 0.5s ease;
}

.product-banner-section:hover .banner-image-container img {
    transform: scale(1.05);
}

.banner-text-content {
    padding: 30px 0;
    background: #ffffff;
}

.banner-text-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    text-align: justify;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 商品列表區域 Product Grid Styles <<<--------------------------------- */
/* ================================================================================================================ */

.product-listing-section {
    /* margin-bottom: 50px; */
}

/* Flexbox 商品網格 */
.product-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

/* 商品網格載入狀態 */
.product-flex-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.product-flex-grid.loading::before {
    content: "載入中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    z-index: 100;
    white-space: nowrap;
}

/* 商品卡片 */
.product-flex-card {
    flex: 0 0 calc(33% - 15px); /* 四欄佈局，扣除 gap */
    background: #ffffff;
    border-radius: 15px;
    padding: 20px 20px 5px 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-flex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}


.card-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* padding: 20px; */
    box-sizing: border-box;
}

.card-image-container a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.product-flex-card:hover .card-image-container img {
    /*transform: scale(1.05);*/
    /*border-radius: 15px;*/
}

.card-content {
    padding: 20px 10px;
    text-align: center;
}

.product-card-title {
    font-size: 15px;
    color: #383838;
    margin: 0 0 0px 0;
    line-height: 1.6;
    font-weight: 500;
    /* min-height: 45px; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 商品價格區域 */
.product-price-section {
    margin-bottom: 15px;
    text-align: center;
}

.price-current {
    font-size: 18px;
    font-weight: bold;
    color: #4492cd;
    margin: 25px 0 10px 0;
}

.price-original {
    font-size: 14px;
    color: #c9c9ca;
    text-decoration: line-through;
    text-decoration-color: #c9c9ca;
    text-decoration-thickness: 2px;
}

/* 加入購物車按鈕 */
.add-to-cart-btn {
    width: 100%;
    background: #5fa5cd;
    color: white;
    border: none;
    padding: 7px 20px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* 滑鼠懸停效果 */
.add-to-cart-btn:hover {
    background: #2c7ac7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 146, 205, 0.3);
}

/* 按下時效果 */
.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(68, 146, 205, 0.2);
}

/* 手機板樣式調整，讓按鈕整體更小 */
@media (max-width: 600px) {
    .product-flex-card {
        padding: 10px 10px 5px 10px;

    }    
    .add-to-cart-btn {
        padding: 8px 12px;      /* 減少內距 */
        font-size: 15px;        /* 字體縮小 */
        border-radius: 30px;    /* 圓角略小 */
        letter-spacing: 0.2px;  /* 字距略小 */
    }
}



/* ================================================================================================================ */
/* ---------------------------------->>> 響應式設計 Responsive Design <<<------------------------------------- */
/* ================================================================================================================ */

/* 平板版 (768px - 1200px) */
@media (max-width: 1200px) {
    .product-page-wrap {
        gap: 20px;
    }

    .product-sidebar-new {
        flex: 0 0 180px;
        padding: 15px;
    }

    .product-flex-card {
        flex: 0 0 calc(33.333% - 17px); /* 三欄佈局 */
    }

    .main-page-title {
        font-size: 28px;
    }

    .sub-page-title {
        font-size: 18px;
    }
}

/* 小平板版 (768px - 900px) */
@media (max-width: 900px) {
    .product-page-container {
        padding: 0 15px;
    }

    .product-page-wrap {
        flex-direction: column;
        gap: 25px;
    }

    /* 隱藏左側選單 */
    .product-sidebar-new {
        display: none;
    }

    /* 顯示手機版分類選擇器 */
    .mobile-category-selector {
        display: block !important;
        margin-bottom: 25px;
        /* background: #ffffff; */
        border-radius: 12px;
        /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
        padding: 20px;
    }

    .mobile-category-select {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        /* background: #ffffff; */
        color: #333333;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
    }

    .mobile-category-select:focus {
        outline: none;
        border-color: #68adb7;
        box-shadow: 0 0 0 3px rgba(104, 173, 183, 0.2);
    }

    .product-content-new {
        width: 100%;
    }

    .product-flex-card {
        flex: 0 0 calc(48% - 0px); /* 兩欄佈局 */
    }

    .main-page-title {
        font-size: 26px;
        padding-left: 15px;
    }

    .sub-page-title {
        font-size: 17px;
        padding-left: 15px;
    }

    .page-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-actions {
        align-items: flex-start;
        width: 100%;
    }

    .search-action-link.desktop-only {
        display: none;
    }

    .banner-image-container {
        /* height: 180px; */
    }

    .banner-text-content {
        padding: 20px;
    }

    .banner-text-content p {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* 平板版 (768px - 1024px) */
@media (max-width: 1024px) {
    .card-image-container {
        padding: 0px;
    }
}

/* 手機版 (480px - 768px) */
@media (max-width: 768px) {
    .product-page-container {
        padding: 0 12px;
    }

    .product-page-header {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .main-page-title {
        font-size: 24px;
        padding-left: 12px;
    }

    .sub-page-title {
        font-size: 16px;
        padding-left: 12px;
    }

    .section-description {
        font-size: 16px;
    }

    .product-flex-grid {
        gap: 15px;
    }

    .card-image-container {
        padding: 0px;
    }
    
    .card-image-container img {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .card-content {
        padding: 15px;
    }

    .product-card-title {
        font-size: 15px;
        min-height: 40px;
    }

    .banner-image-container {
        /* height: 150px; */
    }

    .banner-text-content {
        padding: 18px;
    }

    .pagination-link {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 40px;
    }
}

/* 小手機版 (≤480px) */
@media (max-width: 480px) {
    .product-page-container {
        padding: 0 10px;
    }

    .product-flex-grid {
        gap: 10px;
    }

    .main-page-title {
        font-size: 22px;
        padding-left: 10px;
    }

    .sub-page-title {
        font-size: 15px;
        padding-left: 10px;
    }

    .card-image-container {
        padding: 0px;
    }
    
    .card-image-container img {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .card-content {
        padding: 10px 5px;
    }

    .product-card-title {
        font-size: 14px;
        min-height: 36px;
        line-height: 1.5;
    }

    .banner-image-container {
        /* height: 120px; */
    }

    .banner-text-content {
        padding: 15px;
    }

    .banner-text-content p {
        font-size: 13px;
    }

    .pagination-container {
        gap: 8px;
    }

    .pagination-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* 超小螢幕：單欄布局（≤420px） */
@media (max-width: 420px) {
    .news-flex-card,
    .blog-flex-card {
        flex: 0 0 100%;
        padding: 10px; /* 最小 padding */
    }
    
    .news-flex-grid,
    .blog-flex-grid {
        gap: 8px; /* 最小間距 */
    }
    
    .news-meta {
        gap: 4px; /* 最小間距 */
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 購物車數量選擇器樣式 Cart Quantity Selector Styles <<<----------------- */
/* ================================================================================================================ */

/* 購物車數量選擇器 */
.cart-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-quantity-selector label {
    font-size: 14px;
    color: #79a9d7;
    font-weight: 500;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #79a9d7;
    border-radius: 25px;
    overflow: hidden;
}

.cart-quantity-btn {
    width: 30px;
    border: none;
    background: #f8f9fa;
    color: #79a9d7;
    font-size: 22px;
    padding: 0px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn:hover {
    background: #e9ecef;
}

.cart-quantity-input {
    width: 50px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #333333;
}

/* 購物車數量選擇器響應式設計 */
@media (max-width: 768px) {
    .cart-quantity-selector {
        justify-content: center;
        gap: 8px;
    }

    .cart-quantity-selector label {
        font-size: 13px;
    }

    .cart-quantity-controls {
        border-radius: 20px;
    }

    .cart-quantity-btn {
        width: 30px;
        font-size: 22px;
        padding: 0px 8px;
    }

    .cart-quantity-input {
        width: 45px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cart-quantity-btn {
        width: 28px;
        font-size: 20px;
        padding: 0px 6px;
    }

    .cart-quantity-input {
        width: 40px;
        height: 28px;
        font-size: 12px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 送貨地點選擇器樣式 Delivery Location Selector Styles <<<------------- */
/* ================================================================================================================ */

/* 送貨地點選擇區塊 */
.delivery-location-section {
    margin: 30px 0;
}

/* 送貨地點標題區域 */
.delivery-location-header {
    margin-bottom: 20px;
}

.delivery-location-title {
    font-size: 24px;
    color: #3e3e3e;
    margin: 0 0 10px 0;
    font-weight: normal;
}

.delivery-location-line {
    width: 100px;
    height: 5px;
    background: #79a9d7;
    margin-bottom: 20px;
}

/* 送貨地點卡片 */
.delivery-location-card {
    background: #ffffff;
    border-radius: 15px;
    margin: 0 0 40px 0;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* 送貨選項 */
.delivery-option {
    margin-bottom: 20px;
}

.delivery-option:last-child {
    margin-bottom: 0;
}

/* 隱藏原始 radio button */
.delivery-option input[type="radio"] {
    display: none;
}

/* 自定義 radio button 樣式 */
.delivery-option-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.delivery-option-label::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* 選中狀態的 radio button */
.delivery-option input[type="radio"]:checked + .delivery-option-label::before {
    border-color: #79a9d7;
    background: #79a9d7;
}

.delivery-option input[type="radio"]:checked + .delivery-option-label::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

/* 送貨選項文字 */
.delivery-option-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* 運費價格高亮 */
.delivery-fee {
    color: #e74c3c;
    font-weight: bold;
}

/* 送貨地點選擇器響應式設計 */
@media (max-width: 768px) {
    .delivery-location-section {
        margin: 25px 0;
    }
    
    .delivery-location-title {
        font-size: 20px;
    }
    
    .delivery-location-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .delivery-option {
        margin-bottom: 15px;
    }
    
    .delivery-option-label {
        padding-left: 30px;
    }
    
    .delivery-option-label::before {
        width: 18px;
        height: 18px;
        top: 1px;
    }
    
    .delivery-option input[type="radio"]:checked + .delivery-option-label::after {
        left: 7px;
        top: 8px;
        width: 7px;
        height: 7px;
    }
    
    .delivery-option-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .delivery-location-section {
        margin: 20px 0;
    }
    
    .delivery-location-title {
        font-size: 18px;
    }
    
    .delivery-location-line {
        width: 80px;
        height: 4px;
    }
    
    .delivery-location-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .delivery-option {
        margin-bottom: 12px;
    }
    
    .delivery-option-label {
        padding-left: 28px;
    }
    
    .delivery-option-label::before {
        width: 16px;
        height: 16px;
    }
    
    .delivery-option input[type="radio"]:checked + .delivery-option-label::after {
        left: 7px;
        top: 8px;
        width: 6px;
        height: 6px;
    }
    
    .delivery-option-text {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 折價券區塊樣式 Coupon Section Styles <<<-------------------------------- */
/* ================================================================================================================ */

/* 折價券區塊 */
.coupon-section {
    margin: 30px 0;
}

/* 折價券卡片 */
.coupon-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1ff;
    margin: 0 0 40px 0;
}

/* 折價券輸入群組 - 靠右對齊 */
.coupon-input-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* 折價券輸入框 */
.coupon-input {
    width: 280px;
    padding: 8px 16px !important;
    font-size: 14px;
    height: 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: #79a9d7;
    box-shadow: 0 0 0 3px rgba(121, 169, 215, 0.1);
}

/* 折價券使用按鈕 */
.coupon-btn {
    padding: 12px 30px;
    background: #79a9d7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-btn:hover {
    background: #6a98c6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 169, 215, 0.3);
}

.coupon-btn:active {
    transform: translateY(0);
}

/* 折價券響應式設計 */
@media (max-width: 768px) {
    .coupon-section {
        margin: 25px 0;
    }

    .coupon-card {
        padding: 20px;
        border-radius: 12px;
    }

    .coupon-input-group {
        flex-direction: row;
        gap: 8px;
    }

    .coupon-input {
        width: 200px;
        height: 40px !important;
        padding: 10px 14px;
        font-size: 13px;
    }

    .coupon-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .coupon-section {
        margin: 20px 0;
    }

    .coupon-card {
        padding: 15px;
        border-radius: 10px;
    }

    .coupon-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }

    .coupon-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 購物車總計區塊樣式 Cart Summary Section Styles <<<-------------------- */
/* ================================================================================================================ */

/* 購物車總計區塊 */
.cart-summary-section {
    margin: 30px 0;
}

/* 購物車總計卡片 */
.cart-summary-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* 總計行 */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.summary-row:first-child {
    border-top: none;
}

/* 總計標籤 - 靠右對齊 */
.summary-label {
    font-size: 15px;
    color: #666666;
    text-align: right;
}

/* 總計數值 - 靠右對齊 */
.summary-value {
    font-size: 16px;
    color: #333333;
    font-weight: bold;
    text-align: right;
}

/* 折扣金額樣式 */
.discount-value {
    color: #e74c3c;
}

/* 總付款金額行 */
.summary-total {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #79a9d7;
}

.summary-total .summary-label {
    font-size: 17px;
    color: #333333;
    font-weight: bold;
}

.summary-total .summary-value {
    font-size: 20px;
    color: #79a9d7;
}

/* 購物車總計響應式設計 */
@media (max-width: 768px) {
    .cart-summary-section {
        margin: 25px 0;
    }

    .cart-summary-card {
        padding: 20px;
        border-radius: 12px;
    }

    .summary-row {
        padding: 10px 0;
    }

    .summary-label {
        font-size: 14px;
    }

    .summary-value {
        font-size: 15px;
    }

    .summary-total .summary-label {
        font-size: 16px;
    }

    .summary-total .summary-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cart-summary-section {
        margin: 20px 0;
    }

    .cart-summary-card {
        padding: 15px;
        border-radius: 10px;
    }

    .summary-row {
        padding: 8px 0;
    }

    .summary-label {
        font-size: 13px;
    }

    .summary-value {
        font-size: 14px;
    }

    .summary-total .summary-label {
        font-size: 15px;
    }

    .summary-total .summary-value {
        font-size: 17px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 銷售據點頁面樣式 Partner Page Styles <<<------------------------------ */
/* ================================================================================================================ */

/* 據點列表區域 */
.partner-listing-section {
    margin: 5vw 0 40px 0;
}

/* 據點網格 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 據點卡片 */
.partner-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 據點名稱 */
.partner-name {
    font-size: 18px;
    font-weight: bold;
    color: #5ca3cf;
    border-bottom: 1px solid #ebebeb;
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* 據點資訊 */
.partner-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-address,
.partner-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.partner-address i,
.partner-phone i {
    color: #79a9d7;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.partner-address span,
.partner-phone span {
    flex: 1;
    line-height: 1.5;
}

/* 銷售據點頁面響應式設計 */
@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .partner-card {
        padding: 20px;
    }
    
    .partner-name {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .partner-address,
    .partner-phone {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        gap: 12px;
        margin-top: 20px;
    }
    
    .partner-card {
        padding: 15px;
    }
    
    .partner-name {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .partner-info {
        gap: 10px;
    }
    
    .partner-address,
    .partner-phone {
        font-size: 12px;
        gap: 8px;
    }
    
    .partner-address i,
    .partner-phone i {
        font-size: 14px;
        width: 14px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 特殊效果和動畫 Effects & Animations <<<------------------------------ */
/* ================================================================================================================ */

/* 載入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-flex-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 為每個商品卡片添加延遲動畫 */
.product-flex-card:nth-child(1) { animation-delay: 0.1s; }
.product-flex-card:nth-child(2) { animation-delay: 0.2s; }
.product-flex-card:nth-child(3) { animation-delay: 0.3s; }
.product-flex-card:nth-child(4) { animation-delay: 0.4s; }
.product-flex-card:nth-child(5) { animation-delay: 0.5s; }
.product-flex-card:nth-child(6) { animation-delay: 0.6s; }
.product-flex-card:nth-child(7) { animation-delay: 0.7s; }
.product-flex-card:nth-child(8) { animation-delay: 0.8s; }

/* 滾動平滑效果 */
html {
    scroll-behavior: smooth;
}

/* 選單項目有焦點時的樣式 */
.menu-category-header:focus {
    outline: 3px solid rgba(104, 173, 183, 0.3);
    outline-offset: 2px;
}

/* 無障礙設計：減少動畫 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .product-flex-card {
        animation: none;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 產品內頁樣式 <<<------------------------------ */
/* ================================================================================================================ */

#product-detail {
    display: flex;
    gap: 40px;
    /* margin-top: 30px; */
    width: 100%;
    overflow: hidden;
    /* margin-bottom: 50px; */
    /* padding-bottom: 50px; */
  }

  /* 桌面版：左側圖片 */
  #product-detail .left {
    flex: 1;
    max-width: 350px;
    text-align: center;
  }

  #product-detail .left .editor{ padding: 0 0;}

  #product-detail .left #new_src{box-shadow: 0 0px 10px rgb(0 0 0 / 10%);border: 1px solid #ebebeb; /*margin: 5px;*/}

  /* 桌面版：右側容器 */
  #product-detail .right-container {
    flex: 1.5;
    padding: 0px 0;
  }

  #product-detail .product-detail-title {
    padding: 0px 0;
  }

  #product-detail .right {
    padding: 0px 0;
  }
  
  /* 產品標題 */
  .product-detail-title h1 {
    font-size: 33px;
    font-weight: bold;
    color: #5fa5cd;
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.3;
    letter-spacing: 1px;
  }

  .product-detail-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
  }
  
  /* 區塊標題 */
  .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #68adb7;
  }
  
  .section-title i {
    font-size: 20px;
    color: #68adb7;
  }
  
  /* 產品特點 */
  .product-features {
    margin-bottom: 40px;
  }
  
  .feature-description p {
    color: #333333;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
  }
  
          /* 產品規格樣式 */
          .product-specifications {
            margin: 25px 0;
            padding: 20px 0;
            background: #fff;
            /* border-radius: 8px; */
            /* border-top: 1px solid #e0e0e0; */
            /* border-bottom: 1px solid #e0e0e0; */
            /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
        }
        
        .section-title {
            margin-bottom: 20px;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        
        .spec-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .spec-item {
            display: flex;
            align-items: center;
            padding: 2px 0;
            /* border-bottom: 1px solid #f0f0f0; */
        }
        
        .spec-item:last-child {
            border-bottom: none;
        }
        
        .spec-label {
            min-width: 80px;
            font-size: 14px;
            font-weight: 500;
            color: #666;
            margin-right: 15px;
        }
        
        .spec-label.teal-bg {
            background: #C9E3E6;
            color: #000000;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            min-width: auto;
        }
        
        .spec-separator {
            width: 1px;
            height: 20px;
            background: #ddd;
            margin: 0 15px;
        }
        
        .spec-value {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }
        
        /* 響應式設計 */
        @media (max-width: 768px) {
            .spec-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .spec-label {
                min-width: auto;
                margin-right: 0;
            }
            
            .spec-separator {
                display: none;
            }
        }
  
  /* 價格區塊 */
  .product-pricing {
    margin-top: 30px;
  }
  
  .price-section {
    margin-bottom: 25px;
  }
  
  .original-price {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    /* margin-bottom: 15px; */
    color: #999999;
    text-decoration: line-through;
    font-size: 14px;
  }
  
  .original-price span:first-child {
    color: #939393 !important;
    font-weight: 500;
  }
  
  .original-price .price-amount {
    color: #939393 !important;
    font-weight: normal;
  }
  
  .special-price {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    color: #68adb7;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 5px;
  }
  
  .special-price span:first-child {
    color: #4492cd;
    font-weight: 600;
  }
  
  .special-price .price-amount {
    color: #68adb7;
    font-weight: bold;
  }


  /*owl*/
#product-detail .owl-left{cursor:hand;cursor:pointer;display:flex;align-items:center;justify-content: center;width: 8%;padding: 0 5px;}
#product-detail .owl-center{width: 84%;}
#product-detail .owl-right{cursor:hand;cursor:pointer;display:flex;align-items:center;justify-content: center;width: 8%;padding: 0 5px;text-align: right;}

#owl-photography .item{margin:0;/* padding: 5px; *//*height:140px;*//*overflow:hidden;*/display:flex;align-items:center;justify-content: center;width: 100%;background:#ffffff;}
#owl-photography .item img{box-shadow: 0 0px 10px rgb(0 0 0 / 10%);border: 1px solid #f7f7f7;}

/* ================================================================================================================ */
/* ---------------------------------->>> YouTube 區塊樣式 <<<------------------------------ */
/* ================================================================================================================ */

.youtube-section {
    margin-top: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.youtube-thumbnail:hover {
    transform: scale(1.02);
}

.youtube-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #4492cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(68, 146, 205, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.youtube-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #2c7ac7;
    box-shadow: 0 6px 20px rgba(68, 146, 205, 0.4);
}

/* 使用 CSS 繪製播放三角形，確保跨瀏覽器一致顯示 */
.youtube-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 2px;
}

/* YouTube iframe 容器樣式 */
.youtube-iframe-container {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 16 / 9;
}

.youtube-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 分類標籤區塊樣式 <<<------------------------------ */
/* ================================================================================================================ */

/* 分類標籤區塊容器 */
.category-tabs-section {
    margin: 20px 0 20px 0;
    width: 100%;
}

.category-tabs-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* 分類標籤按鈕樣式 */
.category-tab {
    background: #e0edf6; /* 淺藍色背景 */
    color: #4492cd; /* 深藍色文字 */
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
    font-size: 16px;
    /* font-weight: 500; */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.category-tab:hover {
    background: #d1e7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(68, 146, 205, 0.2);
}

.category-tab.active {
    background: #4492cd;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(68, 146, 205, 0.3);
}

.category-tab.active:hover {
    background: #2c7ac7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 146, 205, 0.4);
}

/* 分類標籤下方灰線 */
.category-tabs-line {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-top: 5px;
}

/* 響應式設計 - 分類標籤 */
@media (max-width: 1024px) and (min-width: 769px) {
    .category-tabs-container {
        gap: 12px;
        margin-bottom: 15px;
    }

    .category-tab {
        padding: 8px 30px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .category-tabs-container {
        gap: 10px;
        margin-bottom: 12px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-tabs-container {
        gap: 8px;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 更新後的產品詳情樣式 <<<------------------------------ */
/* ================================================================================================================ */

/* 產品特點列表 */
.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1;
}

.feature-bullet {
    color: #333333;
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-text {
    color: #333333;
    font-size: 15px;
    flex: 1;
}

/* 價格區塊更新 */
.product-pricing {
    margin: 25px 0;
    padding: 10px 0;
    /* border-top: 1px solid #e0e0e0; */
    /* border-bottom: 1px solid #e0e0e0; */
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.original-price {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 10px; */
    color: #999999;
    font-size: 14px;
}

.original-price span:first-child {
    color: #939393;
    font-weight: 500;
    margin-right: 5px;
}

.original-price .price-amount {
    color: #939393;
    font-weight: normal;
    text-decoration: line-through;
}

.special-price {
    display: flex;
    align-items: center;
    color: #4492cd;
    font-size: 24px;
    font-weight: bold;
}

.special-price .price-amount {
    color: #4492cd;
    font-weight: bold;
}

/* 購買區塊 */
.purchase-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-size: 14px;
    color: #60a5cf;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #60a5cf;
    border-radius: 25px;
    overflow: hidden;
}

.quantity-btn {
    width: 35px;
    /* height: 3px; */
    border: none;
    background: #ffffff;
    color: #60a5cf;
    font-size: 26px;
    /* font-weight: bold; */
    padding: 0px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #ffffff;
}

.quantity-input {
    width: 50px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #333333;
}

.add-to-cart {
    flex: 1;
}

.cart-button {
    /* width: 100%; */
    background: #4492cd;
    color: #ffffff;
    border: none;
    padding: 7px 30px;
    border-radius: 40px;
    font-size: 14px;
    /* font-weight: 600; */
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-button:hover {
    background: #2c7ac7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 146, 205, 0.3);
}

.cart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(68, 146, 205, 0.2);
}

/* 規格表格 */
.product-specifications {
    margin-top: 30px;
    padding: 25px 0;
    /* border-top: 1px solid #e0e0e0; */
}

.spec-table {
    display: flex;
    flex-direction: column;
    /* gap: 15px; */
    border-top: 1px solid #e0e0e0;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
    /* border-bottom: none; */
}

.spec-label {
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #60a5ce;
    margin-right: 20px;
    flex-shrink: 0;
}

.spec-value {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    flex: 1;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 商品詳細頁面響應式設計 Product Detail Responsive <<<------------------- */
/* ================================================================================================================ */

/* 平板版 (768px - 1024px) - 商品詳細頁面優化 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 商品詳細區塊調整 */
    #product-detail {
        gap: 25px;
        /* margin-bottom: 40px; */
        /* padding-bottom: 40px; */
    }

    #product-detail .left {
        max-width: 300px;
    }

    #product-detail .right {
        padding: 0px 0;
    }

    /* 產品標題調整 */
    .product-detail-title h1 {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .product-detail-title h2 {
        font-size: 16px;
        margin: 0 0 20px 0;
        line-height: 1.4;
    }

    /* 產品特點調整 */
    .feature-item {
        margin-bottom: 10px;
    }

    .feature-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 價格區塊調整 */
    .price-section {
        gap: 12px;
    }

    .special-price {
        font-size: 22px;
    }

    /* 購買區塊調整 */
    .purchase-section {
        gap: 15px;
    }

    .cart-button {
        padding: 8px 25px;
        font-size: 13px;
    }

    /* 規格表格調整 */
    .spec-row {
        padding: 12px 0;
    }

    .spec-label {
        min-width: 75px;
        font-size: 13px;
    }

    .spec-value {
        font-size: 13px;
    }

    /* 購物車流程指示器 - 平板版已在上方 @media (max-width: 809px) 統一處理 */

    /* 購物車表格 - 平板版調整 */
    .cart-table {
        font-size: 13px;
    }

    .css_th, .css_td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .css_td img {
        max-width: 100px;
    }

    /* 表單樣式 - 平板版調整 */
    .enrolment-form .form-content {
        padding: 25px;
    }

    .form-control.small {
        width: 150px;
    }

    .form-control.medium {
        width: 250px;
    }

    /* 訂單完成頁面 - 平板版調整 */
    .order-complete-container {
        padding: 35px 25px;
    }

    .order-message h2 {
        font-size: 22px;
    }

    .order-message p {
        font-size: 15px;
    }
}

/* 手機版 (≤768px) - 商品詳細頁面優化 */
@media (max-width: 768px) {
    /* 商品詳細區塊改為垂直佈局 */
    #product-detail {
        flex-direction: column;
        gap: 25px;
        /* margin-bottom: 30px; */
        /* padding-bottom: 30px; */
    }

    /* 手機版：右側容器使用 contents 讓子元素扁平化 */
    #product-detail .right-container {
        display: contents;
    }

    /* 手機版順序：標題 → 圖片 → 其他資料 */
    #product-detail .product-detail-title {
        order: 1;
        width: 100%;
        /* margin-bottom: 20px; */
    }

    #product-detail .left {
        max-width: 100%;
        width: 100%;
        order: 2;
        margin-bottom: 20px;
    }

    #product-detail .right {
        width: 100%;
        order: 3;
        padding: 0;
    }

    /* 左側圖片區塊優化 */
    .editor {
        padding-top: 0;
        /* text-align: center; */
        margin-bottom: 15px;
    }

    /* Owl Carousel 控制項調整 */
    #product-detail .owl-left,
    #product-detail .owl-right {
        width: 8%;
    }

    #product-detail .owl-center {
        width: 84%;
    }

    #product-detail .owl-left img,
    #product-detail .owl-right img {
        width: 30px;
        height: 30px;
    }

    #owl-photography .item {
        padding: 5px 3px;
    }

    /* YouTube 區塊調整 */
    .youtube-section {
        margin-top: 15px;
    }

    .youtube-play-button {
        width: 42px;
        height: 42px;
    }

    .youtube-play-button::before {
        border-width: 6px 0 6px 10px;
        margin-left: 2px;
    }

    /* 產品標題調整 */
    .product-detail-title h1 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.4;
        text-align: left;
    }

    .product-detail-title h2 {
        font-size: 16px;
        /* margin: 0; */
        line-height: 1.4;
        text-align: left;
    }

    /* 產品特點調整 */
    .product-features {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .feature-item {
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .feature-bullet {
        font-size: 14px;
        margin-right: 8px;
        margin-top: 1px;
    }

    .feature-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 價格區塊調整 */
    .product-pricing {
        margin: 20px 0;
        padding: 10px 0;
        text-align: center;
    }

    .price-section {
        /* flex-direction: column; */
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .original-price {
        justify-content: center;
        font-size: 13px;
    }

    .special-price {
        font-size: 20px;
        justify-content: center;
    }

    /* 購買區塊調整 */
    .purchase-section {
        /* flex-direction: column; */
        align-items: center;
        gap: 15px;
        margin-top: 15px;
    }

    .quantity-selector {
        justify-content: center;
        gap: 8px;
    }

    .quantity-selector label {
        font-size: 13px;
    }

    .quantity-controls {
        border-radius: 20px;
    }

    .quantity-btn {
        width: 30px;
        font-size: 22px;
        padding: 0px 8px;
    }

    .quantity-input {
        width: 45px;
        height: 30px;
        font-size: 13px;
    }

    .add-to-cart {
        width: 100%;
        max-width: 150px;
    }

    .cart-button {
        width: 100%;
        padding: 8px 20px;
        font-size: 14px;
        border-radius: 35px;
    }

    /* 規格表格調整 */
    .product-specifications {
        margin-top: 25px;
        padding: 0 0 20px 0;
    }

    .spec-table {
        border-top: 1px solid #e0e0e0;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 12px 0;
        gap: 5px;
    }

    .spec-label {
        min-width: auto;
        margin-right: 0;
        font-size: 13px;
        font-weight: 600;
        color: #4492cd;
    }

    .spec-value {
        font-size: 13px;
        line-height: 1.5;
        margin-left: 0;
    }
}

/* 小手機版 (≤480px) - 進一步優化 */
@media (max-width: 480px) {
    /* 商品詳細區塊調整 */
    #product-detail {
        gap: 20px;
        /* margin-bottom: 25px; */
        /* padding-bottom: 25px; */
    }

    /* Owl Carousel 控制項進一步調整 */
    #product-detail .owl-left,
    #product-detail .owl-right {
        width: 8%;
        padding: 0 0;
    }

    #product-detail .owl-center {
        width: 84%;
    }

    #product-detail .owl-left img,
    #product-detail .owl-right img {
        width: 25px;
        height: 25px;
    }

    #owl-photography .item {
        padding: 3px 3px 3px 3px;
    }

    /* YouTube 播放按鈕進一步縮小 */
    .youtube-play-button {
        width: 36px;
        height: 36px;
    }

    .youtube-play-button::before {
        border-width: 5px 0 5px 9px;
        margin-left: 1px;
    }

    /* 產品標題進一步調整 */
    .product-detail-title h1 {
        font-size: 22px;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .product-detail-title h2 {
        font-size: 16px;
        /* margin: 0; */
        padding: 0 10px;
    }

    /* 購物車流程指示器 - 手機版已在上方 @media (max-width: 809px) 統一處理 */

    /* 購物車表格 - 手機版調整 */
    .cart-table {
        font-size: 12px;
    }

    .css_th, .css_td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .css_td img {
        max-width: 60px;
    }

    .css_th.none-m, .css_td.none-m {
        display: none;
    }

    /* 表單樣式 - 手機版調整 */
    .enrolment-form .form-content {
        padding: 20px;
    }

    .form-control.small, .form-control.medium {
        width: 100%;
    }

    .radio-group {
        gap: 10px;
    }

    /* 訂單完成頁面 - 手機版調整 */
    .order-complete-container {
        padding: 30px 15px;
    }

    .order-message h2 {
        font-size: 20px;
    }

    .order-message p {
        font-size: 14px;
    }

    .order-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-home, .btn-orders {
        width: 100%;
        max-width: 300px;
    }
}

    /* 產品特點進一步調整 */
    .feature-text {
        font-size: 13px;
    }

    /* 價格區塊進一步調整 */
    .special-price {
        font-size: 18px;
    }

    /* 購買區塊進一步調整 */
    .quantity-btn {
        width: 28px;
        font-size: 20px;
        padding: 0px 6px;
    }

    .quantity-input {
        width: 40px;
        height: 28px;
        font-size: 12px;
    }

    .cart-button {
        padding: 6px 18px;
        font-size: 13px;
    }

    /* 規格表格進一步調整 */
    .spec-row {
        padding: 10px 0;
    }

    .spec-label {
        font-size: 14px;
    }

    .spec-value {
        font-size: 14px;
        line-height: 1.4;
    }

/* ================================================================================================================ */
/* ---------------------------------->>> 相關商品區塊樣式 Related Products Styles <<<--------------------------- */
/* ================================================================================================================ */

/* 相關商品區塊容器 */
.related-products-wrapper {
    /* margin: 40px 0; */
    padding: 30px 0;
    /* border-top: 1px solid #f0f0f0; */
}

/* 相關商品網格 - 四欄一列 */
.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

/* 相關商品卡片 - 四欄顯示 */
.related-product-card {
    flex: 0 0 calc(25% - 15px); /* 四欄佈局，扣除 gap */
    background: #ffffff;
    border-radius: 12px;
    /* padding: 15px; */
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 相關商品連結 */
.related-product-card .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 相關商品圖片容器 */
.related-product-card .card-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.related-product-card .card-image-container a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.related-product-card .card-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    flex-shrink: 0;
    margin: auto;
    transition: transform 0.3s ease;
}

.related-product-card:hover .card-image-container img {
    transform: scale(1.05);
}

/* 相關商品內容區 */
.related-product-card .card-content {
    padding: 0;
    text-align: center;
    margin: 0 10px 10px 10px;
}

.related-product-card .product-card-title {
    font-size: 16px;
    color: #383838;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: color 0.3s ease;
}

.related-product-card:hover .product-card-title {
    color: #4492cd;
}


/* ================================================================================================================ */
/* ---------------------------------->>> 新聞頁面樣式 News Page Styles <<<------------------------------------- */
/* ================================================================================================================ */

/* 新聞列表區域 */
.news-listing-section {
    margin-bottom: 50px;
}

/* Flexbox 新聞網格 - 三欄一列 */
.news-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

/* 新聞卡片 */
.news-flex-card {
    flex: 0 0 calc(33.333% - 17px); /* 三欄佈局，扣除 gap */
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-flex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 新聞圖片容器 */
.news-image-container {
    width: 100%;
    height: auto;
    /* aspect-ratio: 4 / 3; */
    overflow: hidden;
    position: relative;
    display: block;
    background: #ffffff;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    transition: transform 0.4s ease;
}

.news-flex-card:hover .news-image-container img {
    /*transform: scale(1.05);*/
}

/* 新聞內容區 */
.news-content {
    padding: 16px 0 0;
    text-align: left;
}

/* 新聞元資料區（分類和日期） */
.news-meta {
    display: flex;
    /* justify-content: space-between; */
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.news-category {
    background: #60a3cd;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: #999999;
    font-size: 12px;
    font-weight: 400;
}

/* 新聞標題 */
.news-title {
    margin: 0;
    line-height: 1.5;
}

.news-title a {
    color: #60a3cd;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* min-height: 3.2em; */
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #4492cd;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 新聞頁面響應式設計 News Page Responsive <<<--------------------------- */
/* ================================================================================================================ */

/* 平板版 (768px - 1200px) */
@media (max-width: 1200px) {
    .news-flex-card {
        flex: 0 0 calc(33.333% - 17px); /* 保持三欄佈局 */
    }
}

/* 小平板版 (768px - 900px) */
@media (max-width: 900px) {
    .news-flex-grid {
        gap: 20px;
    }

    .news-flex-card {
        flex: 0 0 calc(50% - 10px); /* 兩欄佈局 */
    }

    /* .news-image-container { height: 180px; } 使用 aspect-ratio 統一高度 */

    .news-content {
        padding: 15px;
    }

    .news-title a {
        font-size: 14px;
    }
}

/* 手機版 (480px - 768px) */
@media (max-width: 768px) {
    .news-flex-grid {
        gap: 12px;
    }

    .news-flex-card {
        /* flex: 0 0 100%; */ /* 改為單欄佈局 */
        padding: 15px; /* 減少 padding */
    }

    /* .news-image-container { height: 160px; } 使用 aspect-ratio 統一高度 */

    .news-content {
        padding: 12px;
    }

    .news-meta {
        margin-bottom: 10px;
        padding-bottom: 6px;
        /* flex-direction: column; */ /* 改為垂直排列 */
        align-items: center; /* 左對齊 */
        gap: 8px; /* 減少間距 */
    }

    .news-category {
        padding: 8px 15px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .news-date {
        font-size: 12px;
    }

    .news-title a {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* 小手機版 (≤480px) */
@media (max-width: 480px) {
    .news-flex-grid {
        gap: 10px;
    }

    .news-flex-card {
        flex: 0 0 100%; /* 保持單欄佈局 */
        padding: 12px; /* 進一步減少 padding */
    }

    /* .news-image-container { height: 140px; } 使用 aspect-ratio 統一高度 */

    .news-content {
        padding: 10px;
    }

    .news-meta {
        margin-bottom: 8px;
        padding-bottom: 5px;
        flex-direction: inherit; /* 保持垂直排列 */
        align-items: center; /* 左對齊 */
        gap: 6px; /* 進一步減少間距 */
    }

    .news-category {
        padding: 8px 15px;
        font-size: 12px;
    }

    .news-date {
        font-size: 12px;
    }

    .news-title a {
        font-size: 14px;
        /* line-height: 1.4; */
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 部落格頁面樣式 Blog Page Styles <<<------------------------------------- */
/* ================================================================================================================ */

/* 部落格列表區域 */
.blog-listing-section {
    margin-bottom: 50px;
}

/* Flexbox 部落格網格 - 兩欄一列 */
.blog-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

/* 部落格卡片 */
.blog-flex-card {
    flex: 0 0 calc(50% - 13px); /* 兩欄佈局，扣除 gap */
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-flex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 部落格圖片容器 */
.blog-image-container {
    width: 100%;
    height: auto;
    /* aspect-ratio: 5 / 3; */
    overflow: hidden;
    position: relative;
    display: block;
    background: #ffffff;
    margin-bottom: 15px;
}

.blog-image-container img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* object-position: center; */
    border-radius: 10px;
    display: block;
    transition: transform 0.4s ease;
}

.blog-flex-card:hover .blog-image-container img {
    /*transform: scale(1.05);*/
}

/* 部落格內容區 */
.blog-content {
    /* padding-top: 10px; */
    text-align: left;
}

/* 部落格標題 */
.blog-title {
    margin: 0;
    line-height: 1.5;
}

.blog-title a {
    color: #333333; /* 黑色文字 */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* min-height: 3.2em; */
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #4492cd; /* 懸停時變為藍色 */
}

/* ================================================================================================================ */
/* ---------------------------------->>> 部落格頁面響應式設計 Blog Page Responsive <<<--------------------------- */
/* ================================================================================================================ */

/* 平板版 (768px - 1200px) */
@media (max-width: 1200px) {
    .blog-flex-card {
        flex: 0 0 calc(50% - 13px); /* 保持兩欄佈局 */
    }
}

/* 小平板版 (768px - 900px) */
@media (max-width: 900px) {
    .blog-flex-grid {
        gap: 20px;
    }

    .blog-flex-card {
        flex: 0 0 calc(50% - 10px); /* 保持兩欄佈局 */
    }

    .blog-image-container {
        /* height: 180px; 使用 aspect-ratio 統一高度 */
        margin-bottom: 12px;
    }

    .blog-content {
        padding: 0;
    }

    .blog-title a {
        font-size: 15px;
    }
}

/* 手機版 (480px - 768px) */
@media (max-width: 768px) {
    .blog-flex-grid {
        gap: 12px;
    }

    .blog-flex-card {
        flex: 0 0 calc(50% - 7px); /* 改為單欄佈局 */
        padding: 10px; /* 減少 padding */
    }

    .blog-image-container {
        /* height: 160px; 使用 aspect-ratio 統一高度 */
        margin-bottom: 10px;
    }

    .blog-content {
        padding: 0;
    }

    .blog-title a {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* 小手機版 (≤480px) */
@media (max-width: 480px) {
    .blog-flex-grid {
        gap: 20px;
    }

    .blog-flex-card {
        flex: 0 0 calc(100% - 0px); /* 保持單欄佈局 */
         /* 進一步減少 padding */
    }

    .blog-image-container {
        /* height: 140px; 使用 aspect-ratio 統一高度 */
        margin-bottom: 8px;
    }

    .blog-content {
        padding: 0;
    }

    .blog-title a {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 部落格詳情頁面樣式 Blog Detail Page Styles <<<------------------------- */
/* ================================================================================================================ */

/* 部落格詳情頁面容器 */
.blog-detail-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-detail-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 600px;
}

/* 部落格詳情內容區域 */
.blog-detail-content {
    flex: 1;
    min-height: 600px;
}

/* 文章內容區域 */
.blog-article-section {
    margin-bottom: 50px;
}

.article-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* 文章標題區域 */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #4492cd;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.article-meta {
    margin-bottom: 20px;
}

.article-date {
    color: #999999;
    font-size: 16px;
    font-weight: 400;
}

.article-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* 文章內容區域 */
.article-content {
    margin: 30px 0;
    line-height: 1.8;
    color: #333333;
}

.article-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #4492cd;
    margin: 25px 0 12px 0;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

.article-content p {
    font-size: 16px;
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.article-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.article-content li {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.6;
}

.article-content strong {
    font-weight: 600;
    color: #333333;
}

/* 文章來源區域 */
.article-sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-sources h4 {
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    margin: 0 0 10px 0;
}

.article-sources p {
    font-size: 14px;
    color: #666666;
    margin: 0 0 10px 0;
}

.article-sources ul {
    margin: 0;
    padding-left: 20px;
}

.article-sources li {
    font-size: 14px;
    color: #666666;
    margin: 5px 0;
}

/* 文章操作按鈕區域 */
.article-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* 推薦文章區域 */
.recommended-articles-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* ================================================================================================================ */
/* ---------------------------------->>> 部落格詳情頁面響應式設計 Blog Detail Responsive <<<------------------- */
/* ================================================================================================================ */

/* 平板版 (768px - 1200px) */
@media (max-width: 1200px) {
    .blog-detail-wrap {
        gap: 20px;
    }

    .article-container {
        padding: 30px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 18px;
    }
}

/* 小平板版 (768px - 900px) */
@media (max-width: 900px) {
    .blog-detail-container {
        padding: 0 15px;
    }

    .blog-detail-wrap {
        flex-direction: column;
        gap: 25px;
    }

    .article-container {
        padding: 25px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 17px;
    }

    .article-content p {
        font-size: 15px;
    }
}

/* 手機版 (480px - 768px) */
@media (max-width: 768px) {
    .blog-detail-container {
        padding: 0 12px;
    }

    .article-container {
        padding: 20px;
        border-radius: 12px;
    }

    .article-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .article-date {
        font-size: 14px;
    }

    .article-content {
        margin: 20px 0;
    }

    .article-content h2 {
        font-size: 18px;
        margin: 25px 0 12px 0;
    }

    .article-content h3 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }

    .article-content p {
        font-size: 14px;
        margin: 0 0 12px 0;
    }

    .article-content li {
        font-size: 14px;
    }

    .article-actions {
        margin-top: 30px;
        padding-top: 20px;
    }

    .recommended-articles-section {
        margin-top: 40px;
        padding-top: 25px;
    }
}

/* 小手機版 (≤480px) */
@media (max-width: 480px) {
    .blog-detail-container {
        padding: 0 10px;
    }

    .article-container {
        padding: 15px;
        border-radius: 10px;
    }

    .article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .article-date {
        font-size: 13px;
    }

    .article-content h2 {
        font-size: 17px;
        margin: 20px 0 10px 0;
    }

    .article-content h3 {
        font-size: 15px;
        margin: 18px 0 8px 0;
    }

    .article-content p {
        font-size: 13px;
        margin: 0 0 10px 0;
    }

    .article-content li {
        font-size: 13px;
    }

    .article-sources h4 {
        font-size: 14px;
    }

    .article-sources p,
    .article-sources li {
        font-size: 12px;
    }

    .article-actions {
        margin-top: 25px;
        padding-top: 15px;
    }

    .recommended-articles-section {
        margin-top: 35px;
        padding-top: 20px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 固定購物車區塊樣式 Fixed Cart Bar Styles <<<--------------------------- */
/* ================================================================================================================ */

/* 固定購物車容器 */
.fixed-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #5fa5cd;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
    display: none; /* 預設隱藏，透過 JavaScript 控制顯示 */
}

/* 固定購物車內容容器 */
.fixed-cart-content {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 左側商品圖片 */
.fixed-cart-image {
    flex: 0 0 80px;
    height: 80px;
    /* border-radius: 8px; */
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右側商品資訊 */
.fixed-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 價格資訊區域 */
.fixed-cart-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fixed-cart-original-price {
    color: #c1dcf0;
    font-size: 14px;
    text-decoration: line-through;
}

.fixed-cart-current-price {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

/* 購買控制區域 */
.fixed-cart-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 數量選擇器 */
.fixed-cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #60a5cf;
    border-radius: 25px;
    overflow: hidden;
}

.fixed-cart-quantity-btn {
    width: 30px;
    height: 25px;
    border: none;
    background: #f8f9fa;
    color: #60a5cf;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0 0;
}

.fixed-cart-quantity-btn:hover {
    background: #e9ecef;
}

.fixed-cart-quantity-input {
    width: 50px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #333333;
}

/* 加入購物車按鈕 */
.fixed-cart-add-btn {
    background: #c1dcf0;
    color: #4492cd;
    border: none;
    padding: 5px 25px;
    border-radius: 25px;
    font-size: 14px;
    /* font-weight: 500; */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fixed-cart-add-btn:hover {
    background: #2c7ac7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 146, 205, 0.3);
}

.fixed-cart-add-btn:active {
    transform: translateY(0);
}

/* 固定購物車響應式設計 */
@media (max-width: 768px) {
    .fixed-cart-bar {
        padding: 12px 15px;
    }
    
    .fixed-cart-content {
        gap: 15px;
    }
    
    .fixed-cart-image {
        flex: 0 0 60px;
        /* height: 60px; */
    }
    
    .fixed-cart-info {
        gap: 10px;
    }
    
    .fixed-cart-pricing {
        gap: 10px;
    }
    
    .fixed-cart-original-price {
        font-size: 12px;
    }
    
    .fixed-cart-current-price {
        font-size: 18px;
    }
    
    .fixed-cart-controls {
        gap: 12px;
    }
    
    .fixed-cart-quantity-btn {
        width: 30px;
        /* height: 30px; */
        font-size: 18px;
    }
    
    .fixed-cart-quantity-input {
        width: 45px;
        height: 30px;
        font-size: 13px;
    }
    
    .fixed-cart-add-btn {
        padding: 6px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fixed-cart-bar {
        padding: 10px 12px;
    }
    
    .fixed-cart-content {
        gap: 12px;
    }
    
    .fixed-cart-image {
        flex: 0 0 70px;
        /* height: 50px; */
    }
    
    .fixed-cart-info {
        gap: 8px;
    }
    
    .fixed-cart-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fixed-cart-original-price {
        font-size: 13px;
    }
    
    .fixed-cart-current-price {
        font-size: 18px;
    }
    
    .fixed-cart-controls {
        gap: 10px;
    }
    
    .fixed-cart-quantity-btn {
        width: 28px;
        height: 25px;
        font-size: 16px;
    }
    
    .fixed-cart-quantity-input {
        width: 40px;
        height: 28px;
        font-size: 12px;
    }
    
    .fixed-cart-add-btn {
        padding: 5px 18px;
        font-size: 12px;
    }
}

/* ================================================================================================================ */
/* ---------------------------------->>> 相關商品響應式設計 Related Products Responsive <<<--------------------- */
/* ================================================================================================================ */

/* 大平板版 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .related-products-wrapper {
        margin: 35px 0;
        padding: 25px 0;
    }

    .related-product-card {
        flex: 0 0 calc(33.333% - 14px); /* 三欄佈局 */
        /* padding: 12px; */
    }

    .related-product-card .card-image-container {
        padding: 12px;
        margin-bottom: 10px;
    }

    .related-product-card .product-card-title {
        font-size: 13px;
        min-height: 30px;
    }
}

/* 手機版 (≤768px) */
@media (max-width: 768px) {
    .related-products-wrapper {
        margin: 30px 0;
        padding: 20px 0;
    }

    .related-products-grid {
        gap: 15px;
        margin-top: 20px;
    }

    .related-product-card {
        flex: 0 0 calc(50% - 8px); /* 兩欄佈局 */
        padding: 0px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
    }

    .related-product-card .card-image-container {
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 6px;
        height: 200px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .related-product-card .card-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .related-product-card .product-card-title {
        font-size: 12px;
        min-height: 28px;
    }
}

/* 小手機版 (≤480px) */
@media (max-width: 480px) {
    .related-products-wrapper {
        margin: 25px 0;
        padding: 18px 0;
    }

    .related-products-grid {
        gap: 12px;
        margin-top: 18px;
    }

    .related-product-card {
        flex: 0 0 calc(50% - 6px);
        padding: 0px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }

    .related-product-card .card-image-container {
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 5px;
        height: 200px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .related-product-card .card-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .related-product-card .product-card-title {
        font-size: 14px;
        min-height: 26px;
        line-height: 1.3;
    }
}