/* 預覽模式提示條 */
.preview-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ff9800;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.preview-bar-link {
    display: inline-block;
    margin-left: 15px;
    padding: 3px 12px;
    background-color: #fff;
    color: #ff9800;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.preview-bar-link:hover {
    background-color: #fff3e0;
    color: #e68900;
    text-decoration: none;
}

/* 套裝機頁面樣式 */

.pc-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* 系列區塊 */
.series-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 6px;
}

.pc-series-title {
    border-bottom: 2px solid #ff5757;
}

.pc-series-title h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 26px;
    padding: 20px 25px;
    margin-bottom: 0;
}

/* 左邊選單 */
.left-menu {
    padding: 15px 0 15px 0;
}

@media screen and (max-width: 992px) {
    .left-menu {
        display: none;
    }
}

.left-menu .series-name-title {
    font-weight: 900;
    font-size: 20px;
    border-bottom: 1px #eee solid;
    padding: 5px 25px 15px 25px;
    margin-bottom: 10px;
}

.left-menu a {
    display: block;
    font-size: 16px;
    line-height: 22px;
    color: #333;
    margin-bottom: 2px;
    padding: 5px 25px 5px 25px;
}

.left-menu a:hover {
    color: #0c8ade;
}

/* 列表頁 */
.bundle-pc-list {
    padding: 25px;
}

.bundle-pc-item {
    padding: 10px;
    margin-bottom: 5px;
}

.bundle-pc-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px #ddd solid;
}

.bundle-pc-card:hover {
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
    border: 1px #ddd solid;
}

.bundle-pc-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.bundle-pc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bundle-pc-card:hover .bundle-pc-cover img {
    transform: scale(1.05);
}

.bundle-pc-info {
    padding: 15px;
}

.bundle-pc-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bundle-pc-price {
    font-size: 14px;
}

.bundle-pc-price .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.bundle-pc-price .sale-price {
    color: #e53935;
    font-weight: bold;
    font-size: 14px;
}

.bundle-pc-price .normal-price {
    color: #e53935;
    font-weight: bold;
    font-size: 14px;
}

/* 無資料 */
.no-data {
    text-align: center;
    padding: 50px 20px;
}

.no-data img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-data p {
    font-size: 18px;
    color: #999;
}

/* 內容頁 */
.bundle-pc-detail {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

/* 圖片輪播 */
.bundle-pc-gallery {
    margin-bottom: 20px;
}

.bundle-pc-swiper-main {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bundle-pc-swiper-main .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bundle-pc-swiper-main .swiper-button-next,
.bundle-pc-swiper-main .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bundle-pc-swiper-main .swiper-button-next::after,
.bundle-pc-swiper-main .swiper-button-prev::after {
    font-size: 16px;
}

.bundle-pc-swiper-thumbs {
    padding: 0 5px;
}

.bundle-pc-swiper-thumbs .swiper-slide {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.bundle-pc-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007bff;
}

.bundle-pc-swiper-thumbs .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bundle-pc-single-image {
    border-radius: 10px;
    overflow: hidden;
}

.bundle-pc-single-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 商品資訊 */
.bundle-pc-info-detail {
    padding-left: 20px;
}

.bundle-pc-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bundle-pc-detail-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bundle-pc-detail-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-right: 15px;
}

.bundle-pc-detail-price .sale-price {
    color: #e53935;
    font-weight: bold;
    font-size: 28px;
}

.bundle-pc-detail-price .normal-price {
    color: #333;
    font-weight: bold;
    font-size: 28px;
}

.bundle-pc-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 零件清單 */
.bundle-pc-parts {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bundle-pc-parts h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.parts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parts-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 14px;
}

.parts-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
}

.parts-list li.text-muted::before {
    content: '\f00d';
    color: #999;
}

/* 加購升級 */
.bundle-pc-upgrades {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bundle-pc-upgrades h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upgrade-item:hover {
    background: #e9ecef;
}

.upgrade-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #007bff;
}

.upgrade-item input[type="checkbox"]:checked+.upgrade-info {
    color: #007bff;
}

.upgrade-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.upgrade-name {
    font-size: 14px;
    color: #333;
}

.upgrade-price {
    font-size: 14px;
    font-weight: bold;
    color: #e53935;
}

/* 總計 */
.bundle-pc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff0000 0%, #b30000 100%);
    border-radius: 10px;
    margin-top: 20px;
}

.add-to-cart-btn {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border: 1px #d90000 solid;
    color: #d90000;
    line-height: 58px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.05em;
    border-radius: 10px;
}

.add-to-cart-btn:hover {
    background-color: #fff5f5;
}


.total-label {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.total-price {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

/* 商品介紹 */
.bundle-pc-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.bundle-pc-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.bundle-pc-content .editor-block {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.bundle-pc-content .editor-block img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 返回按鈕 */
.bundle-pc-back {
    margin-top: 30px;
    text-align: center;
}

.bundle-pc-back .btn {
    padding: 10px 30px;
}

/* RWD 響應式 */
@media (max-width: 991px) {
    .bundle-pc-info-detail {
        padding-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .bundle-pc-detail {
        padding: 20px;
    }

    .bundle-pc-detail-title {
        font-size: 20px;
    }

    .bundle-pc-detail-price .sale-price,
    .bundle-pc-detail-price .normal-price {
        font-size: 24px;
    }

    .bundle-pc-total {
        padding: 15px;
    }

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

    .total-price {
        font-size: 24px;
    }

    .upgrade-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 575px) {
    .bundle-pc-item {
        padding: 5px;
    }

    .bundle-pc-info {
        padding: 10px;
    }

    .bundle-pc-title {
        font-size: 14px;
        height: 40px;
    }

    .bundle-pc-price .sale-price,
    .bundle-pc-price .normal-price {
        font-size: 16px;
    }

    .page-title h1 {
        font-size: 22px;
    }
}


/* 購物車頁面 */

.cart-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 6px;
}

.cart-buyer-info {
    padding: 15px;
}

.cart-buyer-info label {
    font-weight: 900;
}

.cart-buyer-info input::placeholder {
    font-size: 14px;
    color: #ccc;
}

.cart-btn-buy {
    display: inline-block;
    width: 200px;
    height: 40px;
    background-color: #ef0000;
    border-radius: 6px;
    text-align: center;
    line-height: 40px;
    color: #fff;
    border: 0;
}

.cart-btn-buy:hover {
    background-color: #ff1a1a;
}

/* 購物車 開始 */

.cart-list {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-list table {
    width: 100%;
}

.cart-product-price {
    color: #e13535;
    font-weight: 700;
}

.cart-price {
    text-align: right;
    font-weight: 900;
    line-height: 40px;
    padding: 15px;
}


.cart-price .cart-price-text {
    font-weight: 500;
    color: #888;
    font-size: 14px;
}

.cart-price .cart-price-number {
    display: inline-block;
    width: 120px;
    color: #007bff;
}

/* 移除按鈕 */
.btn-remove-item {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s ease;
}

.btn-remove-item:hover {
    color: #888;
}

/* 訂單頁按鈕 */
.cart-btn-buy.btn-secondary {
    background-color: #6c757d;
}

.cart-btn-buy.btn-secondary:hover {
    background-color: #5a6268;
}

.cart-btn-buy.btn-primary {
    background-color: #0d6efd;
}

.cart-btn-buy.btn-primary:hover {
    background-color: #0b5ed7;
}