/* 1. 基本重置 - 防止跑版核心 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 確保 padding 不撐開寬度 */
}

body {
    background-color: #0c0c0c;
    color: #d4d4d4;
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --gold: #b2945e;
    --dark-green: #1a2f23;
}

/* 2. 佈局容器 - 限制最大寬度防止在大螢幕爆掉 */
.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Header 跑版修正 */
.main-header {
    background: #111;
    border-bottom: 1px solid #b2945e33;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    display: block;
    height: 70px; /* 稍微縮小防止擠壓導航 */
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    letter-spacing: 1px;
}

.nav-menu a:hover { color: var(--gold); }

/* 下拉選單 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.dropdown-content li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #222;
}

/* 4. 商品列表 (Grid) 修正 */
.content-wrapper {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.watch-grid {
    display: grid;
    /* 核心修改：強制在電腦版一排四個 */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* 稍微縮小間距，以免四個太擠 */
}

.watch-card {
    background: #151515;
    border: 1px solid #222;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 280px; /* 寬度變窄了，高度也要稍微降一點比較美觀 */
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 確保圖片不被裁切 */
}

.card-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.card-info .brand {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.model-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
    height: 3em; /* 限制標題高度防止卡片參差不齊 */
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.btn-detail {
    display: inline-block;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* 5. 分頁 */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #333;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
}

.pagination a.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* 6. Footer 跑版修正 */
/* Footer 整體背景 */
.main-footer {
    background-color: #0a0a0a; /* 接近純黑但比背景淺一點點 */
    padding: 80px 0 30px;
    border-top: 1px solid #222;
    margin-top: 100px;
    width: 100%;
}

/* 控制內容寬度的關鍵：集中不散開 */
.footer-inner {
    max-width: 1100px; /* 這裡可以縮小一點，讓內容更集中 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 三個欄位的群組 */
.footer-section-group {
    display: flex;
    justify-content: space-between; /* 均勻分配，但不撐爆 */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* 單一欄位設定 */
.footer-column {
    flex: 1; 
    min-width: 200px; /* 防止在窄螢幕擠扁 */
}

.footer-column h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-column p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 社交圖示 */
.social-icons a {
    color: #888;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--gold);
}

/* 底部版權條 */
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 手機版適應：垂直排列並置中 */
@media (max-width: 768px) {
    .footer-section-group {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-column {
        width: 100%;
    }
}

/* 響應式：平板與手機 */
@media (max-width: 1200px) {
    /* 大平板或筆電：改為一排三個 */
    .watch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    /* 一般平板：改為一排二個 */
    .watch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    /* 手機版：維持一排一個 */
    .watch-grid { grid-template-columns: 1fr; }
}
     .pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination a, .pagination .dots {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 5px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.pagination .dots {
    border: none;
    color: #666;
}

.pagination a.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: bold;
}

.pagination a:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold);
}

/* 針對 FontAwesome 圖示微調 */
.pagination a i {
    font-size: 0.8rem;
}











/* 搜尋區塊背景 */
.filter-section {
    background: #151515; /* 深灰色背景，與純黑 body 做出區隔 */
    padding: 30px 0;
    border-bottom: 1px solid #222;
    width: 100%;
}

/* 讓表單內容置中 */
.filter-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 搜尋群組：橫向排列 */
.filter-group {
    display: flex;
    justify-content: center; /* 置中 */
    align-items: center;
    gap: 15px; /* 元件之間的間距 */
    flex-wrap: wrap; /* 手機版自動折行 */
}

/* 下拉選單樣式 */
.filter-group select {
    background-color: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 15px;
    font-size: 0.9rem;
    min-width: 180px; /* 設定最小寬度 */
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none; /* 去除原生箭頭以自訂或保持簡潔 */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b2945e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.filter-group select:focus {
    border-color: var(--gold);
}

/* 搜尋按鈕樣式 */
.btn-search {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 12px 35px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-search:hover {
    background-color: #d4bc8d;
    box-shadow: 0 0 15px rgba(178, 148, 94, 0.4);
}

/* 響應式修正：手機版讓 select 寬度 100% */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
        min-width: unset;
    }
    
    .btn-search {
        width: 100%;
    }
}


/* 確保搜尋按鈕有正確的金色質感 */
.filter-section .filter-group .btn-search {
    background-color: #b2945e !important; /* 使用你的金色變數 */
    color: #000 !important;              /* 文字黑色 */
    border: none !important;
    padding: 12px 40px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 2px;
    height: 46px; /* 確保與 select 高度一致 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.filter-section .filter-group .btn-search:hover {
    background-color: #d4bc8d !important; /* 滑過時變亮 */
    box-shadow: 0 0 15px rgba(178, 148, 94, 0.6);
    transform: translateY(-2px);
}

/* 修正 Select 在某些瀏覽器高度不一的問題 */
.filter-group select {
    height: 46px;
    vertical-align: middle;
}


  /* 針對 PHP 頁面補充的特定樣式 */
        .product-container { max-width: 1200px; margin: 50px auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 50px; }
        .product-container .watch-image-sector { flex: 1; min-width: 300px; text-align: center; }
        .product-container .watch-image-sector img { max-width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .product-container .watch-info-sector { flex: 1.2; min-width: 300px; }
        .product-container .brand-header { color: #b2945e; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 10px; }
        .product-container .watch-name { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #fff; margin-bottom: 20px; }
        .product-container .price-tag { font-size: 1.8rem; color: #b2945e; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
        .product-container .short-review { font-style: italic; color: #aaa; line-height: 1.6; margin-bottom: 30px; border-left: 3px solid #b2945e; padding-left: 15px; }
        
        .product-container .spec-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
        .product-container .spec-table th, .spec-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #222; }
        .product-container .spec-table th { color: #888; width: 30%; font-weight: 400; font-size: 0.9rem; }
        .product-container .spec-table td { color: #ddd; }

        .product-container .btn-group { display: flex; gap: 15px; }
        .product-container .btn-main { background: #b2945e; color: #000; padding: 15px 30px; text-decoration: none; font-weight: bold; flex: 1; text-align: center; transition: 0.3s; }
        .product-container .btn-main:hover { background: #d4bc8d; }
        
        
        /* 內頁專屬樣式修正 */
.product-container .spec-section {
    margin-bottom: 35px;
}

.product-container .spec-section h4 {
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid #b2945e;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-container .spec-section h4 i {
    color: #b2945e;
    font-size: 0.9rem;
}

/* 強化表格的可讀性 */
.product-container .spec-table {
    width: 100%;
    margin-bottom: 0;
}

.product-container .spec-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.product-container .spec-table th {
    color: #777;
    font-size: 0.85rem;
    width: 30%;
    padding: 12px 0;
}

.product-container .spec-table td {
    color: #ccc;
    font-size: 0.95rem;
    padding: 12px 0;
}

/* 其他細節文字 */
.product-container .details-content {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #111;
    padding: 20px;
    border-radius: 4px;
}

/* 價格小標 */
/* 1. 修正系統時間樣式 (左側圖片下方) */
.product-container .system-time {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #222; /* 實線比虛線更乾淨 */
    text-align: left;
}

.product-container .system-time small {
    display: block;
    color: #888; /* 提高亮度，從 #444 改為 #888 */
    font-size: 0.8rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 2. 修正官方參考資料按鈕 */
.product-container .official-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bbb; /* 提高文字亮度 */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px 25px;
    border: 1px solid #444; /* 邊框顏色稍微加深 */
    transition: all 0.3s ease;
}

.product-container .official-link i {
    font-size: 0.8rem;
    color: #b2945e; /* 圖示用金色點綴 */
}

.product-container .official-link:hover {
    color: #fff; /* 滑過時變白 */
    border-color: #b2945e;
    background: rgba(178, 148, 94, 0.1);
}

/* 3. 順便修正價格日期的顏色 */
.product-container .price-date {
    display: block;
    font-size: 0.8rem;
    color: #999; /* 提高可讀性 */
    margin-top: 8px;
    font-weight: normal;
}

/* 2. 修正官方參考資料按鈕樣式 */
.product-container .official-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888; /* 平常是灰色 */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.product-container .official-link i {
    font-size: 0.8rem;
}

.product-container .official-link:hover {
    color: #b2945e; /* 移入變金色 */
    border-color: #b2945e;
    background: rgba(178, 148, 94, 0.05); /* 淡淡的金色背景 */
}

/* 3. 優化按鈕群組的對齊 */
.product-container .btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}


/* 1. 確保父層 li 是定位基準 */
.nav-menu ul li {
    position: relative;
    list-style: none;
    display: inline-block; /* 讓選單橫排 */
}

/* 2. 預設隱藏下拉內容，並設定絕對定位 */
.nav-menu .dropdown-content {
    display: none;             /* 關鍵：預設不顯示 */
    position: absolute;
    top: 100%;                 /* 從父層底部開始顯示 */
    left: 0;
    background-color: #111;    /* 下拉選單背景色 */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 9999;             /* 確保不會被下方的內容擋住 */
    border: 1px solid #333;
    padding: 0;
}

/* 3. 當滑鼠移到父層 li 時，顯示下拉選單 */
.nav-menu li:hover .dropdown-content {
    display: block;            /* 關鍵：滑鼠移入才顯示 */
}

/* 4. 下拉選單內的項目樣式 */
.nav-menu .dropdown-content li {
    display: block;            /* 讓下拉項目垂直排列 */
    width: 100%;
    margin: 0;
}

.nav-menu .dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.nav-menu .dropdown-content a:hover {
    background-color: #1a1a1a;
    color: #b2945e;
}





/* ==========================================================================
   1. 全域變數與重置 (明亮奢華版)
   ========================================================================== */
:root {
    --gold: #b2945e;
    --gold-light: #d4bc8d;
    --bg-white: #ffffff;
    --bg-soft: #f8f8f8;
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #eeeeee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Header 導航欄 (白底黑字)
   ========================================================================== */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    display: block;
    height: 70px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-menu a:hover { color: var(--gold); }

/* 下拉選單修正 */
.nav-menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    padding: 0;
    z-index: 9999;
}

.nav-menu li:hover .dropdown-content { display: block; }

.nav-menu .dropdown-content li {
    margin: 0 !important;
    width: 100%;
}

.nav-menu .dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: var(--text-main);
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.9rem;
}

.nav-menu .dropdown-content a:hover {
    background-color: #fcfaf5;
    color: var(--gold);
}

/* ==========================================================================
   3. 搜尋篩選區 (米色背景區隔)
   ========================================================================== */
.filter-section {
    background: var(--bg-soft);
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.filter-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group select {
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 0 15px;
    height: 46px;
    min-width: 180px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b2945e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
}

.filter-group select:focus { border-color: var(--gold); }

.filter-section .filter-group .btn-search {
    background-color: var(--gold) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 40px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 2px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-section .filter-group .btn-search:hover {
    background-color: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178,148,94,0.3);
}

/* ==========================================================================
   4. 商品列表網格
   ========================================================================== */
.content-wrapper { padding: 60px 0; }

.section-title {
    text-align: center;
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.watch-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-img {
    width: 100%;
    height: 350px;
    background: #fdfdfd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.card-info { padding: 25px; text-align: center; }

.card-info .brand {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.model-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
    height: 2.8em;
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-detail {
    display: inline-block;
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 10px 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-detail:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ==========================================================================
   5. 產品內頁專屬樣式 (白底修正)
   ========================================================================== */
.product-container { max-width: 1200px; margin: 40px auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 60px; }

.product-container .watch-image-sector { flex: 1; min-width: 350px; }
.product-container .watch-image-sector img { 
    max-width: 100%; 
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); 
}

.product-container .watch-info-sector { flex: 1.2; min-width: 350px; }

.product-container .brand-header { color: var(--gold); font-weight: bold; letter-spacing: 3px; margin-bottom: 15px; }
.product-container .watch-name { 
    font-family: 微軟正黑體; 
    font-size: 2.6rem; 
    color: var(--text-main); 
    margin-bottom: 20px; 
}

.product-container .price-tag { 
    font-size: 2rem; 
    color: var(--text-main); 
    margin-bottom: 35px; 
    border-bottom: 2px solid var(--gold); 
    padding-bottom: 15px;
    display: inline-block;
}

.product-container .short-review { 
    font-style: italic; 
    color: var(--text-muted); 
    background: #fcfaf5; 
    padding: 25px; 
    border-left: 4px solid var(--gold);
    margin-bottom: 40px; 
}

.product-container .spec-section h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.product-container .spec-table th { 
    color: var(--text-light); 
    font-weight: 500; 
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.product-container .spec-table td { 
    color: var(--text-main); 
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.product-container .details-content {
    color: #555;
    background: #f9f9f9;
    padding: 25px;
    border: 1px solid #eee;
    line-height: 1.8;
}

.product-container .system-time {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-container .system-time small { color: var(--text-light); display: block; }

/* 官方連結與按鈕 */
.product-container .btn-main { 
    background: var(--gold); 
    color: #fff; 
    padding: 18px 40px; 
    font-weight: bold; 
    flex: 1; 
    text-align: center; 
    transition: 0.3s;
    text-decoration: none;
}
.product-container .official-link {
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 17px 30px;
    text-decoration: none;
    transition: 0.3s;
}
.product-container .official-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #fcfaf5;
}

/* ==========================================================================
   6. 分頁 (Pagination)
   ========================================================================== */
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; }

.pagination a {
    min-width: 45px;
    height: 45px;
    line-height: 45px;
    border: 1px solid #ddd;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}

.pagination a.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.pagination a:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   7. Footer 頁尾
   ========================================================================== */
.main-footer {
    background-color: #f5f5f5;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-column h4 { color: var(--text-main); margin-bottom: 25px; }
.footer-column p { color: var(--text-muted); font-size: 0.95rem; }

.social-icons a { color: #aaa; font-size: 1.6rem; transition: 0.3s; }
.social-icons a:hover { color: var(--gold); }

.footer-bottom { 
    border-top: 1px solid #e5e5e5; 
    margin-top: 60px; 
    padding-top: 30px; 
    text-align: center; 
}
.footer-bottom p { color: var(--text-light); font-size: 0.8rem; }

/* ==========================================================================
   8. 響應式佈局
   ========================================================================== */
@media (max-width: 992px) {
    .watch-grid { grid-template-columns: repeat(2, 1fr); }
    .product-container { flex-direction: column; }
}

@media (max-width: 600px) {
    .watch-grid { grid-template-columns: 1fr; }
    .main-header { flex-direction: column; gap: 15px; }
    .nav-menu ul { flex-wrap: wrap; justify-content: center; }
    .nav-menu ul li { margin: 5px 10px; }
    .filter-group { flex-direction: column; align-items: stretch; }
    .filter-group select, .btn-search { width: 100%; }
}


/* --- 導航搜尋框樣式 --- */
.nav-search-item {
    margin-left: 30px !important;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px; /* 圓角造型較現代 */
    padding: 2px 12px;
    transition: 0.3s;
}

.nav-search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(178, 148, 94, 0.2);
    background: #fff;
}

.nav-search-form input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    outline: none;
    font-size: 0.85rem;
    width: 150px; /* 電腦版寬度 */
    transition: 0.3s;
}

.nav-search-form input:focus {
    width: 200px; /* 點擊時輕微拉長 */
}

.nav-search-form button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.nav-search-form button:hover {
    color: var(--gold);
}

/* 響應式：手機版調整 */
@media (max-width: 992px) {
    .nav-search-item {
        margin: 15px 0 !important;
        width: 100%;
    }
    .nav-search-form {
        width: 100%;
        border-radius: 4px; /* 手機版改為方角符合整體風格 */
    }
    .nav-search-form input {
        width: 100% !important;
    }
}

/* --- 品牌/價格下拉三排網格化 --- */

/* 1. 設定面板寬度與 Flex 佈局 */
.nav-menu .dropdown-content.grid-menu {
    width: 550px;          /* 設定足夠寬度容納三個 */
    padding: 10px;
    display: none;          /* 預設隱藏，hover才顯示 */
    flex-wrap: wrap;        /* 允許折行 */
    flex-direction: row;    /* 強制橫向排列 */
    left: 50%;              /* 居中對齊修正 */
    transform: translateX(-50%);
}

/* 2. 當滑鼠移入時顯示為 flex 模式 */
.nav-menu li:hover .dropdown-content.grid-menu {
    display: flex !important; 
}

/* 3. 強制裡面的 li 三個一排 */
.nav-menu .dropdown-content.grid-menu li {
    flex: 0 0 30% !important; /* 核心：每個佔 1/3 寬度 */
    margin: 0 !important;
    padding: 2px;               /* 格子間距 */
}

/* 4. 優化格子內的文字樣式 */
.nav-menu .dropdown-content.grid-menu a {
    text-align: center;         /* 文字置中 */
    font-size: 0.85rem;
    padding: 10px 5px;
    border: 1px solid #f0f0f0;  /* 增加細微邊框像按鈕一樣 */
    background: #fff;
    white-space: nowrap;        /* 防止文字太長折行 */
    overflow: hidden;
    text-overflow: ellipsis;    /* 文字過長顯示... */
}

/* 5. 手機版適應 (如果寬度太窄改回兩排) */
@media (max-width: 480px) {
    .nav-menu .dropdown-content.grid-menu {
        width: 280px;
    }
    .nav-menu .dropdown-content.grid-menu li {
        flex: 0 0 50% !important; /* 手機改兩排 */
    }
}




/* 模擬下拉選單容器 */
.custom-select-wrapper {
    position: relative;
    min-width: 180px;
    flex: 1; /* 配合你原本的 filter-group */
}

/* 顯示的按鈕樣式 */
.custom-select-trigger {
    background-color: #fff;
    color: #222;
    border: 1px solid #ddd;
    padding: 0 15px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9rem;
}

/* 展開的三排面板核心代碼 */
.custom-options-panel {
    display: none; /* 預設隱藏 */
    position: absolute;
    top: 50px;
    left: 0;
    width: 450px; /* 寬度足夠容納三個項目 */
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px;
    flex-wrap: wrap; /* 允許折行 */
}

/* 控制面板顯示 */
.custom-options-panel.show {
    display: flex;
}

/* 每個品牌選項：三個一排 */
.option-grid-item {
    flex: 0 0 calc(33.33% - 10px); /* 關鍵：強制 1/3 寬度 */
    margin: 5px;
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
    background: #fcfcfc;
}

.option-grid-item:hover, .option-grid-item.active {
    background-color: #b2945e;
    color: #fff;
    border-color: #b2945e;
}

/* 手機版適應：改為兩排 */
@media (max-width: 768px) {
    .custom-options-panel {
        width: 100%;
        min-width: 280px;
    }
    .option-grid-item {
        flex: 0 0 calc(50% - 10px);
    }
}

/* --- 強制一排四個核心樣式 --- */
.content-wrapper .watch-grid {
    display: grid !important;
    /* 這裡改成 4，確保電腦版是一排四個 */
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 25px; /* 卡片間距 */
    margin-top: 20px;
}

/* 為了讓四個一排更美觀，微調卡片高度與圖片 */
.watch-card {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%; /* 確保卡片高度一致 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watch-card .card-img {
    width: 100%;
    height: 260px; /* 寬度變窄後，高度也要同步縮小才不會太瘦長 */
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.watch-card .card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.watch-card .card-info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.watch-card .model-title {
    font-size: 1rem;
    margin: 10px 0;
    height: 2.8em; /* 限制標題高度，兩排文字後截斷 */
    overflow: hidden;
    color: #222;
    line-height: 1.4;
}

/* --- 響應式斷點調整 (必加，否則手機版也會變四排超小) --- */

/* 螢幕小於 1200px (如筆電、平板)：改為一排三個 */
@media (max-width: 1200px) {
    .content-wrapper .watch-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 螢幕小於 992px (如 iPad)：改為一排兩個 */
@media (max-width: 992px) {
    .content-wrapper .watch-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .watch-card .card-img {
        height: 220px;
    }
}

/* 螢幕小於 600px (手機)：改為一排一個 */
@media (max-width: 600px) {
    .content-wrapper .watch-grid {
        grid-template-columns: 1fr !important;
    }
    .watch-card .card-img {
        height: 300px; /* 手機版寬度夠，高度可以拉回來 */
    }
}.search-result-info {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.result-count {
    color: #666;
    font-size: 0.95rem;text-align: center;
}

.result-count strong {
    color: #c9a063; /* 使用你的品牌金色 */
    font-size: 1.1rem;
    margin: 0 3px;
}

.no-data-notice {
    padding: 40px;
    text-align: center;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    color: #888;
}

 
.option-grid-item {
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.option-grid-item:hover, .option-grid-item.active {
    background: #6a1b4d; /* 沿用你的主題色 */
    color: #fff;
    border-color: #6a1b4d;
}

.custom-options-panel {
    display: none; /* 預設完全隱藏 */
    position: absolute;
    top: 100%; /* 確保在觸發器下方 */
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    
    z-index: 999;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    
    /* 這裡不要寫 display: grid */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
}

/* 當有 .show 類別時，才啟動 grid 佈局 */
.custom-options-panel.show {
    display: grid !important; 
}

.custom-options-panel {
    display: none; /* 預設完全關閉 */
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 320px; /* 寬度稍微加寬以容納文字 */
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    
    /* 設定網格，但不啟動 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
}

/* 只有加上 .show 時才顯示並啟用 Grid */
.custom-options-panel.show {
    display: grid !important; 
}

.option-grid-item {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 12px;
    cursor: pointer;
    background: #fafafa;
}

.option-grid-item:hover {
    background: #6a1b4d;
    color: #fff;
}


.active-filters {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-tag {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.filter-tag a {
    color: #999;
    margin-left: 8px;
    transition: color 0.2s;
}

.filter-tag a:hover {
    color: #ff4d4d;
}

.clear-all-filters {
    font-size: 14px;
    color: #888;
    text-decoration: underline;
    margin-left: 10px;
}

/* 修改或新增此樣式 */
.active-filters {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center; /* 關鍵：這會讓標籤水平置中 */
    max-width: 1200px;       /* 配合您 content-wrapper 的寬度 */
    padding: 0 15px;
}

.filter-tag {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 4px;      /* 改為稍微方正一點更符合名錶站質感 */
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
}

.filter-tag i {
    margin-left: 10px;
    cursor: pointer;
    color: #ccc;
}

.filter-tag i:hover {
    color: #c00;
}
#brand-panel {
    max-height: 300px; /* 限制高度 */
    overflow-y: auto;  /* 出現捲軸 */
    display: none;     /* 預設隱藏 */
    grid-template-columns: repeat(2, 1fr); /* 品牌多，可以分兩欄顯示 */
}

#brand-panel.show {
    display: grid;
}/* 品牌面板專屬樣式 */
#brand-panel {
    display: none; /* 預設隱藏 */
    width: 450px;  /* 增加寬度以容納三排 */
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 1000;
}

/* 當面板顯示時 */
#brand-panel.show {
    display: grid !important; /* 使用 Grid 佈局 */
    grid-template-columns: repeat(3, 1fr); /* 關鍵：強制平分為三欄 */
    gap: 8px; /* 品牌之間的間距 */
}

/* 品牌項目的樣式優化 */
#brand-panel .option-grid-item {
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap; /* 防止品牌名稱太長換行斷掉 */
    overflow: hidden;
    text-overflow: ellipsis;
}

#brand-panel .option-grid-item:hover {
    background-color: #f8f1e7; /* 淺金/米色，呼叫古董錶質感 */
    color: #8c7654;
    border-color: #8c7654;
}
#brand-panel .option-grid-item {
    padding: 10px 5px;
    font-size: 12px; /* 稍微縮小字體以容納中英文 */
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px; /* 確保兩行文字時高度一致 */
}#brand-panel.show {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 強制三排 */
    gap: 8px;
    width: 480px; /* 增加寬度以容納中英文字 */
}
#brand-panel .option-grid-item {
    font-size: 12px;
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #eee;
    cursor: pointer;
}
/* 針對手機版的調整 */
@media (max-width: 480px) {
    #brand-panel {
        width: 90vw; /* 手機版寬度佔滿螢幕 */
        grid-template-columns: repeat(2, 1fr); /* 手機版改為兩排比較不擠 */
    }
}