/* 麵包屑導航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    font-size: 10px;
}

.breadcrumb .current-page {
    color: var(--text-color);
    font-weight: 500;
}

/* 產品詳情區 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* 產品圖片區 */
.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    opacity: 0.7;
    transition: all 0.3s;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 產品資訊區 */
.product-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--light-text);
}

.product-rating {
    color: #FFD700;
    font-size: 14px;
}

.rating-count {
    color: var(--light-text);
    margin-left: 5px;
}

.product-sku {
    color: var(--light-text);
    font-size: 14px;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.current-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.original-price {
    font-size: 16px;
    color: var(--light-text);
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 25px;
    color: var(--light-text);
    line-height: 1.6;
}

/* 產品選項 */
.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}

.color-option.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.package-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-option {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.package-option:hover {
    background-color: #f9f9f9;
}

.package-option.active {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.package-name {
    font-weight: 500;
    color: var(--text-color);
}

.package-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* 數量選擇器 */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector h3 {
    font-size: 16px;
    margin-right: 15px;
    color: var(--text-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
}

.quantity-btn:hover {
    background-color: #f9f9f9;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* 產品操作按鈕 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
}

.product-actions .btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.product-actions .btn-secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.product-actions .btn-icon {
    margin-right: 8px;
}

/* 產品特點 */
.product-features {
    margin-bottom: 30px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 產品頁籤 */
.product-tabs {
    margin-bottom: 50px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-panel {
    display: none;
}

/* 產品詳情頁籤 */
.product-specs {
    margin-bottom: 30px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    width: 30%;
    padding: 12px 15px;
    text-align: left;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.specs-table td {
    padding: 12px 15px;
    color: var(--light-text);
}

.product-description-full {
    color: var(--light-text);
    line-height: 1.8;
}

.product-description-full p {
    margin-bottom: 15px;
}

.product-description-full ul, 
.product-description-full ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.product-description-full li {
    margin-bottom: 8px;
}

.product-images {
    margin-top: 30px;
}

.product-image-full {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-full img {
    width: 100%;
    height: auto;
}

/* 評價頁籤 */
.reviews-summary {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.average-rating {
    text-align: center;
    margin-right: 40px;
}

.average-rating-value {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 10px;
}

.average-rating-stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 5px;
}

.total-reviews {
    color: var(--light-text);
    font-size: 14px;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-level {
    width: 60px;
    color: var(--light-text);
}

.rating-progress {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background-color: #FFD700;
}

.rating-count {
    width: 40px;
    color: var(--light-text);
    text-align: right;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 500;
    color: var(--text-color);
}

.review-rating {
    color: #FFD700;
}

.review-date {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 10px;
}

.review-content {
    color: var(--light-text);
    line-height: 1.6;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 10px 25px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background-color: #f9f9f9;
}

/* FAQ頁籤 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.faq-question h4 {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

.faq-question i {
    color: var(--light-text);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, 
.faq-answer ol {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--light-text);
}

.faq-answer li {
    margin-bottom: 8px;
}

/* 相關商品 */
.related-products {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 500px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        padding: 10px 15px;
        text-align: center;
    }
    
    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .average-rating {
        margin-right: 0;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .average-rating-value {
        font-size: 36px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .average-rating-stars {
        margin-bottom: 0;
    }
    
    .rating-bars {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 300px;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-table th {
        width: 40%;
    }
} 