/* UD 商品詳情頁面樣式 */

/* 商品詳情容器 */
.product-detail-container {
    padding-top: 6rem; /* 避免導航欄覆蓋 */
}

/* 麵包屑導航 */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: var(--ud-secondary);
}

.breadcrumb-item a {
    color: var(--ud-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--ud-primary-dark);
    text-decoration: underline;
}

/* 商品英雄區域 */
.product-hero {
    background: linear-gradient(45deg, var(--ud-bg-light), var(--ud-bg-section));
    padding: 2rem 0;
}

/* 商品圖片 */
.product-images {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.product-main-image {
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* 縮圖導航 */
.product-thumbnails .thumbnail {
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: var(--ud-primary);
    transform: scale(1.05);
}

/* 商品資訊 */
.product-info {
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 7rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ud-dark);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--ud-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 商品標籤 */
.product-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* 價格區域 */
.price-section {
    background: var(--ud-bg-light);
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-weight: 600;
    color: var(--ud-dark);
    font-size: 1.1rem;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
}

/* 新的溫和配色價格結構 */
.price-structure {
    background: #f8fffe;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e6f7f5;
}

.price-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

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

.price-label-soft {
    font-weight: 500;
    color: #5a7c7a;
    font-size: 0.95rem;
    min-width: 40px;
}

.price-range-soft {
    font-weight: 600;
    color: #2d5a57;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.price-category:hover .price-range-soft {
    color: #1e4441;
}

.price-category:hover .price-label-soft {
    color: #4a6b69;
}

/* 響應式設計 */
@media (max-width: 576px) {
    .price-structure {
        padding: 0.75rem;
    }
    
    .price-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .price-label-soft {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .price-range-soft {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* 保留舊的樣式以防其他地方使用 */
.price-amount.weekday {
    color: var(--ud-success);
}

.price-amount.weekend {
    color: var(--ud-warning);
}

/* 預約按鈕 */
.booking-actions {
    margin-top: 2rem;
}

.booking-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.booking-actions .btn-primary {
    background: linear-gradient(135deg, var(--ud-primary), var(--ud-primary-dark));
    border: none;
    box-shadow: 0 4px 16px rgba(var(--ud-primary-rgb), 0.3);
}

.booking-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--ud-primary-rgb), 0.4);
}

.booking-actions .btn-outline-secondary {
    border: 2px solid var(--ud-secondary);
    color: var(--ud-secondary);
}

.booking-actions .btn-outline-secondary:hover {
    background: var(--ud-secondary);
    color: #fff;
    transform: translateY(-1px);
}

/* 商品詳細說明區域 */
.product-details {
    background: var(--ud-bg-section);
}

.detail-tabs .nav-tabs {
    border: none;
    background: #fff;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-tabs .nav-link {
    border: none;
    border-radius: 0.8rem;
    color: var(--ud-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.detail-tabs .nav-link:hover {
    color: var(--ud-primary);
    background: var(--ud-bg-light);
}

.detail-tabs .nav-link.active {
    background: var(--ud-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--ud-primary-rgb), 0.3);
}

.tab-content {
    background: #fff;
    border-radius: 1rem;
    margin-top: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 服務規格 */
.service-specs .spec-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ud-bg-section);
}

.service-specs .spec-item:last-child {
    border-bottom: none;
}

/* 服務特色 */
.features-list .feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--ud-bg-light);
}

.features-list .feature-item:last-child {
    border-bottom: none;
}

/* 時段網格 */
.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeslot-item {
    background: var(--ud-bg-light);
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    font-weight: 600;
    color: var(--ud-dark);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timeslot-item:hover {
    border-color: var(--ud-primary);
    background: var(--ud-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--ud-primary-rgb), 0.3);
}

/* 注意事項 */
.notices .notice-item {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ud-bg-light);
    line-height: 1.6;
}

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

/* 推薦商品區域 */
.recommended-products {
    background: var(--ud-bg-light);
}

.recommended-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.recommended-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.recommended-card .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.recommended-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-card:hover .card-image img {
    transform: scale(1.1);
}

.recommended-card .card-content {
    padding: 1.5rem;
}

.recommended-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ud-dark);
    margin-bottom: 0.5rem;
}

.recommended-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ud-primary);
}

/* 響應式設計 */
@media (max-width: 992px) {
    .product-detail-container {
        padding-top: 5rem;
    }
    
    .product-info {
        position: static;
        margin-top: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .detail-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .product-main-image {
        height: 250px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .timeslots-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-tabs .nav-tabs {
        flex-wrap: wrap;
    }
    
    .detail-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        margin: 0.1rem;
    }
}

/* 通知樣式 */
.notification {
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 