/* ==================== 商品詳情頁專屬樣式 ==================== */

/* 頁面底部間距 (為手機版固定底欄預留空間) */
body.product-view {
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    body.product-view {
        padding-bottom: 0;
    }
}

.fb-header {
    background-image: linear-gradient(135deg, var(--theme-color) 0%, #1a4a50 100%);
    height: 120px;
    background-size: cover;
    position: relative;
}

.fb-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    border-radius: 50%;
    overflow: hidden;
}

/* ==================== 按鈕樣式擴充 ==================== */
.btn-theme {
    background-color: var(--theme-color);
    color: #fff;
    border: 1px solid var(--theme-color);
}

.btn-theme:hover {
    background-color: #0e2124;
    color: #fff;
}

.btn-check:checked+.btn-outline-theme {
    background-color: var(--theme-color);
    color: #fff;
}

/* ==================== 商品圖片區 ==================== */
.main-image-container {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--theme-color);
    border-width: 2px;
}

/* ==================== 電腦版商品規格區塊 ==================== */
.product-info-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.spec-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.spec-option {
    margin-bottom: 15px;
}

/* ==================== 手機版底部固定按鈕列 ==================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Icon 按鈕 (客服/購物車) */
.bottom-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #666;
    text-decoration: none;
    width: 40px;
}

.bottom-icon-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* ==================== 手機版規格滑出選單 (Offcanvas Bottom) ==================== */
.offcanvas-bottom-specs {
    height: auto !important;
    max-height: 80vh;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.specs-modal-header {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.specs-modal-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* ==================== 側邊欄小工具 ==================== */
.sidebar-widget {
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* ==================== 頁籤樣式 ==================== */
.nav-tabs .nav-link {
    color: #666;
}

.nav-tabs .nav-link.active {
    color: var(--theme-color);
    font-weight: bold;
    border-top: 3px solid var(--theme-color);
}

.text-price {
    color: var(--price-color);
    font-weight: bold;
}