@charset "utf-8";

/* ============================================================
   團購頁面樣式
   ============================================================ */

/* 頁面標題 */
.page-header-area .subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 5px;
}

/* 過濾欄 */
.deal-filter-bar {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid #e8e8e8;
    border-radius: 30px;
    background: transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #5ba595;
    color: #5ba595;
}

.filter-btn.active {
    background: #5ba595;
    border-color: #5ba595;
    color: #fff;
}

.search-form {
    display: flex;
    justify-content: flex-end;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
}

.search-input-group .form-control {
    border: none;
    background: transparent;
    padding: 12px 20px;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-input-group .btn-search-icon {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.search-input-group .btn-search-icon:hover {
    color: #667eea;
}

/* 商品網格 */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 商品卡片 - 現代風格 */
.deal-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.deal-card .card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.deal-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deal-card:hover .card-image img {
    transform: scale(1.05);
}

.deal-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4757;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.deal-card .card-badge.hot {
    background: #5ba595;
}

.deal-card .card-badge.new {
    background: #5ba595;
}

.deal-card .card-body {
    padding: 18px 20px 20px;
}

.deal-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 70px;
}

.deal-card .card-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.deal-card .card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.deal-card .current-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff4757;
}

.deal-card .original-price {
    font-size: 14px;
    color: #b2bec3;
    text-decoration: line-through;
}

.deal-card .discount-percent {
    background: #ff4757;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.deal-card .card-progress {
    margin-bottom: 12px;
}

.deal-card .progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.deal-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.deal-card .progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.deal-card .card-actions {
    display: flex;
    gap: 10px;
}

.deal-card .btn-add {
    flex: 1;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: transparent;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.deal-card .btn-add:hover {
    background: #667eea;
    color: #fff;
}

.deal-card .btn-buy {
    padding: 10px 20px;
    background: red;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.deal-card .btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 加載更多 */
.load-more-wrap {
    padding: 40px 0;
}

.btn-load-more {
    padding: 12px 48px;
    border: 2px solid #e8e8e8;
    border-radius: 30px;
    background: #fff;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-load-more:hover {
    border-color: #667eea;
    color: #667eea;
}

/* ============================================================
   商品詳情頁
   ============================================================ */

.deal-detail-section {
    padding: 40px 0 60px;
}

.deal-gallery {
    position: sticky;
    top: 100px;
}

.deal-gallery .main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 16px;
}

.deal-gallery .main-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.deal-gallery .discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff4757;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail-item {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-item.active {
    border-color: #667eea;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.deal-header {
    margin-bottom: 20px;
}

.deal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.deal-tags .tag {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.deal-tags .tag.hot {
    background: #ff4757;
    color: #fff;
}

.deal-tags .tag.discount {
    background: #ffd93d;
    color: #2d3436;
}

.deal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.deal-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 價格 */
.deal-price {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff4757;
}

.original-price {
    font-size: 18px;
    color: #b2bec3;
    text-decoration: line-through;
}

.save-amount {
    background: #ffd93d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* 進度 */
.deal-progress {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sold-count {
    font-weight: 700;
    color: #2d3436;
}

.remaining-label {
    color: #ff4757;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 選項 */
.deal-options {
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 18px;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 數量選擇器 */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    color: #2d3436;
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-selector input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* 選項按鈕 */
.option-item {
    margin-bottom: 8px;
}

.option-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-radio:hover {
    border-color: #667eea;
}

.option-radio input[type="radio"] {
    display: none;
}

.option-radio input[type="radio"]:checked + .option-text {
    color: #667eea;
}

.option-radio input[type="radio"]:checked ~ .option-price {
    color: #667eea;
}

.option-radio:has(input:checked) {
    border-color: #667eea;
    background: #f8f9fa;
}

.option-text {
    flex: 1;
    font-weight: 500;
}

.option-price {
    color: #ff4757;
    font-weight: 600;
}

/* 取貨選項 */
.location-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.location-radio {
    display: block;
}

.location-radio input[type="radio"] {
    display: none;
}

.location-card {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.location-card:hover {
    border-color: #667eea;
}

.location-radio:has(input:checked) .location-card {
    border-color: #667eea;
    background: #f8f9fa;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.location-card i {
    font-size: 20px;
    color: #667eea;
    display: block;
    margin-bottom: 6px;
}

.location-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.location-fee {
    display: block;
    font-size: 12px;
    color: #ff4757;
    font-weight: 600;
}

.location-free {
    display: block;
    font-size: 12px;
    color: #20c997;
    font-weight: 600;
}

/* 行動按鈕 */
.deal-actions {
    display: flex;
    gap: 12px;
}

.btn-add-cart, .btn-buy-now {
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.btn-add-cart {
    background: #f0f0f0;
    color: #2d3436;
}

.btn-add-cart:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.btn-buy-now {
    background:#dc3545;
    color: #fff;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 詳情標籤頁 */
.deal-tabs {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.tab-nav li {
    padding: 12px 28px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    transition: all 0.3s;
    position: relative;
}

.tab-nav li:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.tab-nav li.active {
    color: #2d3436;
}

.tab-nav li.active:after {
    width: 100%;
}

.tab-pane {
    display: none;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

.pickup-location {
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
}

.pickup-location h4 {
    color: #2d3436;
    margin-bottom: 4px;
}

.pickup-location p {
    color: #666;
    margin-bottom: 2px;
    font-size: 14px;
}

.pickup-location i {
    color: #667eea;
    width: 20px;
}

/* ============================================================
   響應式設計
   ============================================================ */

@media (max-width: 991px) {
    .deal-info {
        padding-left: 0;
        margin-top: 24px;
    }
    
    .deal-gallery {
        position: static;
    }
    
    .deal-title {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        justify-content: center;
    }
    
    .search-form {
        justify-content: center;
        margin-top: 12px;
    }
    
    .search-input-group {
        max-width: 100%;
    }
    
    .deal-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .deal-actions {
        flex-direction: column;
    }
    
    .btn-add-cart, .btn-buy-now {
        flex: none;
        padding: 14px 20px;
    }
    
    .location-options {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .tab-nav li {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .deal-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .deal-card .card-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .deal-card .current-price {
        font-size: 18px;
    }
    
    .deal-card .btn-add,
    .deal-card .btn-buy {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@charset "utf-8";

/* ============================================================
   購物車頁面樣式
   ============================================================ */

.cart-section {
    padding: 40px 0 60px;
}

/* 空購物車 */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-cart i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #2d3436;
    margin-bottom: 8px;
}

.empty-cart p {
    color: #888;
    margin-bottom: 24px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #5ba595;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* 購物車列表 */
.cart-items {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 16px 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #eee;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s;
}

.cart-item:hover {
    background: #fafafa;
}

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

/* 商品資訊 */
.cart-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-ship, .product-pickup {
    font-size: 12px;
    color: #888;
}

.product-ship {
    color: #667eea;
}

.product-pickup {
    color: #20c997;
}

/* 數量控制 */
.cart-item-price,
.cart-item-total {
    font-weight: 600;
    color: #2d3436;
    text-align: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3436;
}

.qty-btn:hover {
    background: #e8e8e8;
}

.qty-input {
    width: 44px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 移除按鈕 */
.btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.btn-remove:hover {
    background: #ff4757;
    color: #fff;
}

/* 訂單摘要 */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #666;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
}

.summary-row.discount {
    color: #ff4757;
}

.total-amount {
    color: #ff4757;
    font-size: 22px;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

/* 結帳表單 */
.checkout-form {
    margin: 20px 0;
}

.checkout-form .form-group {
    margin-bottom: 14px;
}

.checkout-form label {
    display: block;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 4px;
    font-size: 14px;
}

.checkout-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.checkout-form .form-control:focus {
    border-color: #667eea;
    outline: none;
}

/* 結帳按鈕 */
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #5ba595;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-badge {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 16px;
}

.secure-badge i {
    color: #20c997;
    margin-right: 6px;
}

/* ============================================================
   訂單確認頁樣式
   ============================================================ */

.order-confirm-section {
    padding: 40px 0 60px;
}

.order-confirm-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

/* 步驟指示器 */
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #b2bec3;
    transition: all 0.3s;
}

.step.active .step-circle {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

.step.completed .step-circle {
    border-color: #20c997;
    background: #20c997;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #b2bec3;
    font-weight: 500;
}

.step.active .step-label,
.step.completed .step-label {
    color: #2d3436;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e8e8e8;
    margin: 0 8px;
    margin-bottom: 20px;
}

.step-line.completed {
    background: #20c997;
}

/* 訂單標題 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 12px;
}

.order-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
}

.order-number {
    text-align: right;
}

.order-number span {
    display: block;
    font-size: 12px;
    color: #888;
}

.order-number strong {
    font-size: 18px;
    color: #667eea;
}

/* 訂單商品 */
.order-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.item-price {
    font-weight: 600;
    color: #2d3436;
}

.item-ship {
    color: #667eea;
    font-size: 13px;
}

.item-pickup {
    color: #20c997;
    font-size: 13px;
}

/* 訂單摘要 */
.order-summary-details {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.order-summary-details .summary-row {
    padding: 6px 0;
}

.order-summary-details .summary-row.total {
    font-size: 18px;
}

.total-price {
    color: #ff4757;
    font-size: 22px;
}

/* 聯絡資訊 */
.order-contact {
    margin-bottom: 24px;
}

.order-contact h4 {
    font-size: 16px;
    color: #2d3436;
    margin-bottom: 12px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.info-item i {
    color: #667eea;
    width: 18px;
}

/* 付款按鈕 */
.order-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.btn-paypal,
.btn-bank {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-paypal {
    background: #5ba595;
    color: #fff;
}

.btn-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.3);
}

.btn-bank {
    background: #5ba595;
    color: #fff;
}

.btn-bank:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.3);
}

.order-total-big {
    text-align: right;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    min-width: 160px;
}

.order-total-big span {
    display: block;
    font-size: 12px;
    color: #888;
}

.order-total-big .big-total {
    font-size: 24px;
    font-weight: 700;
    color: #ff4757;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 12px;
}

.order-footer .text-muted {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-back:hover {
    color: #764ba2;
}

/* ============================================================
   響應式設計
   ============================================================ */

@media (max-width: 991px) {
    .cart-header,
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
        font-size: 14px;
    }
    
    .order-confirm-card {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .cart-item-product {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-price,
    .cart-item-total {
        text-align: center;
    }
    
    .cart-item-action {
        text-align: center;
    }
    
    .qty-control {
        margin: 0 auto;
    }
    
    .cart-summary {
        position: static;
        margin-top: 20px;
    }
    
    /* 訂單確認頁 */
    .order-steps {
        padding: 0;
        overflow-x: auto;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-number {
        text-align: left;
    }
    
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .item-meta {
        justify-content: center;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .payment-methods {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-paypal,
    .btn-bank {
        width: 100%;
        justify-content: center;
    }
    
    .order-total-big {
        width: 100%;
        text-align: center;
    }
    
    .order-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 13px;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .order-confirm-card {
        padding: 16px 12px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@charset "utf-8";

/* ============================================================
   order-confirm.css - 訂單確認頁面樣式
   現代化設計，支援響應式
   ============================================================ */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
    --oc-primary: #667eea;
    --oc-primary-dark: #5a6fd8;
    --oc-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --oc-danger: #ff4757;
    --oc-success: #2ed573;
    --oc-warning: #ffa502;
    --oc-gray: #8899aa;
    --oc-gray-light: #f1f2f6;
    --oc-gray-lighter: #f8f9fa;
    --oc-gray-border: #e8e9ed;
    --oc-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    --oc-shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.15);
    --oc-radius: 16px;
    --oc-radius-sm: 10px;
    --oc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --oc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. 訂單確認頁面主容器
   ============================================================ */
.order-confirm-section {
    padding: 40px 0 60px;
    background: #f8f9fc;
    min-height: 60vh;
}

.order-confirm-card {
    background: #ffffff;
    border-radius: var(--oc-radius);
    padding: 36px 40px;
    box-shadow: var(--oc-shadow);
    border: 1px solid var(--oc-gray-border);
    transition: var(--oc-transition);
}

.order-confirm-card:hover {
    box-shadow: var(--oc-shadow-hover);
}

/* ============================================================
   3. 進度步驟
   ============================================================ */
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    z-index: 2;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--oc-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #b2bec3;
    transition: var(--oc-transition);
    background: #fff;
}

.step.active .step-circle {
    border-color: var(--oc-primary);
    background: var(--oc-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step.completed .step-circle {
    border-color: var(--oc-success);
    background: var(--oc-success);
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #b2bec3;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.step.active .step-label,
.step.completed .step-label {
    color: #1a1a2e;
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--oc-gray-border);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    min-width: 20px;
}

.step-line.completed {
    background: var(--oc-success);
}

/* ============================================================
   4. 訂單標題
   ============================================================ */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--oc-gray-border);
    flex-wrap: wrap;
    gap: 12px;
}

.order-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.order-title i {
    color: var(--oc-primary);
    margin-right: 10px;
}

.order-number {
    text-align: right;
    background: var(--oc-gray-lighter);
    padding: 8px 16px;
    border-radius: var(--oc-radius-sm);
}

.order-number span {
    display: block;
    font-size: 11px;
    color: var(--oc-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-number strong {
    font-size: 18px;
    color: var(--oc-primary);
    font-weight: 700;
}

/* ============================================================
   5. 訂單商品
   ============================================================ */
.order-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--oc-gray-lighter);
    border-radius: var(--oc-radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--oc-gray-border);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--oc-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--oc-gray);
    flex-wrap: wrap;
}

.item-meta .item-price {
    font-weight: 600;
    color: #1a1a2e;
}

.item-ship {
    color: var(--oc-primary);
    font-size: 13px;
    font-weight: 500;
}

.item-pickup {
    color: var(--oc-success);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   6. 訂單摘要
   ============================================================ */
.order-summary-details {
    padding: 20px;
    background: #fff;
    border-radius: var(--oc-radius-sm);
    border: 1px solid var(--oc-gray-border);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
    font-size: 15px;
}

.summary-row.discount {
    color: var(--oc-danger);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    padding-top: 12px;
    border-top: 2px solid var(--oc-gray-border);
    margin-top: 4px;
}

.summary-row .total-price {
    color: var(--oc-danger);
    font-size: 22px;
}

.summary-divider {
    height: 1px;
    background: var(--oc-gray-border);
    margin: 8px 0;
}

/* ============================================================
   7. 聯絡資訊
   ============================================================ */
.order-contact {
    margin-bottom: 24px;
}

.order-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.order-contact h4 i {
    color: var(--oc-primary);
    margin-right: 8px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 16px 20px;
    background: var(--oc-gray-lighter);
    border-radius: var(--oc-radius-sm);
    border: 1px solid var(--oc-gray-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.info-item i {
    color: var(--oc-primary);
    width: 18px;
    text-align: center;
}

/* ============================================================
   8. 付款方式選擇
   ============================================================ */
.payment-section {
    margin: 24px 0;
    padding: 20px;
    background: var(--oc-gray-lighter);
    border-radius: var(--oc-radius-sm);
    border: 1px solid var(--oc-gray-border);
}

.payment-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.payment-section-title i {
    color: var(--oc-primary);
    margin-right: 8px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-card {
    border: 2px solid var(--oc-gray-border);
    border-radius: var(--oc-radius-sm);
    padding: 16px 14px;
    cursor: pointer;
    transition: var(--oc-transition);
    background: #fff;
    text-align: center;
    position: relative;
}

.payment-method-card:hover {
    border-color: var(--oc-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12);
}

.payment-method-card.selected {
    border-color: var(--oc-primary);
    background: rgba(102, 126, 234, 0.06);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.payment-method-card .payment-radio {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--oc-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--oc-transition);
}

.payment-method-card.selected .payment-radio {
    border-color: var(--oc-primary);
    background: var(--oc-primary);
}

.payment-method-card.selected .payment-radio::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.payment-method-card .payment-icon {
    font-size: 2.2rem;
    color: var(--oc-primary);
    margin-bottom: 8px;
    display: block;
}

.payment-method-card .payment-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
    display: block;
}

.payment-method-card .payment-desc {
    font-size: 12px;
    color: var(--oc-gray);
}

/* ============================================================
   9. 付款按鈕
   ============================================================ */
.payment-action {
    text-align: center;
}

.btn-pay-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--oc-primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--oc-radius-sm);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--oc-transition);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.btn-pay-now:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-pay-now:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-pay-now .pay-amount {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 16px;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--oc-gray);
}

.secure-badge i {
    color: var(--oc-success);
    font-size: 16px;
}

/* ============================================================
   10. 付款 Modal 樣式
   ============================================================ */
.payment-modal-content {
    padding: 10px 5px;
}

.payment-modal-content .alert {
    border-radius: var(--oc-radius-sm);
    padding: 14px 18px;
    border: none;
}

.payment-modal-content .alert-info {
    background: #e3f2fd;
    color: #0d47a1;
}

.payment-modal-content .alert-info h6 {
    margin-bottom: 4px;
    font-weight: 600;
}

.payment-modal-content .alert-info p {
    margin: 0;
    font-size: 14px;
}

.payment-modal-content .bank-account-card {
    background: var(--oc-gray-lighter);
    border-radius: var(--oc-radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--oc-primary);
}

.payment-modal-content .bank-account-card .bank-name {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-size: 16px;
}

.payment-modal-content .bank-account-card .bank-name i {
    color: var(--oc-primary);
    margin-right: 6px;
}

.payment-modal-content .bank-account-card .account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
    padding: 2px 0;
}

.payment-modal-content .bank-account-card .account-row .account-number {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.5px;
}

.payment-modal-content .bank-account-card .copy-btn {
    padding: 3px 14px;
    background: var(--oc-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--oc-transition);
}

.payment-modal-content .bank-account-card .copy-btn:hover {
    background: var(--oc-primary-dark);
}

.payment-modal-content .qr-code-container {
    text-align: center;
    padding: 20px;
    background: var(--oc-gray-lighter);
    border-radius: var(--oc-radius-sm);
    margin: 15px 0;
}

.payment-modal-content .qr-code-container img {
    max-width: 300px;
    border: 2px solid var(--oc-gray-border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.payment-modal-content .instructions-box {
    background: #fff3cd;
    border-radius: var(--oc-radius-sm);
    padding: 14px 18px;
    margin: 15px 0;
    border-left: 4px solid var(--oc-warning);
}

.payment-modal-content .instructions-box h6 {
    font-weight: 600;
    color: #856404;
    margin-bottom: 6px;
}

.payment-modal-content .instructions-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #555;
}

.payment-modal-content .instructions-box ul li {
    margin-bottom: 3px;
}

/* ============================================================
   11. 頁腳
   ============================================================ */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--oc-gray-border);
    flex-wrap: wrap;
    gap: 12px;
}

.order-footer .text-muted {
    font-size: 13px;
    color: var(--oc-gray);
    margin: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--oc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--oc-transition);
    padding: 8px 16px;
    border-radius: var(--oc-radius-sm);
    border: 1px solid transparent;
}

.btn-back:hover {
    color: var(--oc-primary-dark);
    background: rgba(102, 126, 234, 0.08);
    border-color: var(--oc-gray-border);
}

/* ============================================================
   12. Toast 訊息
   ============================================================ */
#toastMessage {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   13. 響應式設計
   ============================================================ */

/* 平板 */
@media (max-width: 991px) {
    .order-confirm-card {
        padding: 24px 20px;
    }
    
    .order-title {
        font-size: 20px;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手機 */
@media (max-width: 768px) {
    .order-steps {
        padding: 0;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 4px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-line {
        min-width: 15px;
        margin: 0 4px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-number {
        text-align: left;
        width: 100%;
    }
    
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .item-image {
        width: 120px;
        height: 120px;
    }
    
    .item-meta {
        justify-content: center;
    }
    
    .order-summary-details {
        padding: 14px 16px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .payment-method-card {
        padding: 12px 10px;
    }
    
    .payment-method-card .payment-icon {
        font-size: 1.8rem;
    }
    
    .payment-method-card .payment-name {
        font-size: 13px;
    }
    
    .payment-method-card .payment-desc {
        font-size: 11px;
    }
    
    .btn-pay-now {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .btn-pay-now .pay-amount {
        font-size: 14px;
    }
    
    .order-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-modal-content .bank-account-card .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 小型手機 */
@media (max-width: 480px) {
    .order-confirm-card {
        padding: 16px 12px;
        border-radius: var(--oc-radius-sm);
    }
    
    .order-title {
        font-size: 18px;
    }
    
    .order-number strong {
        font-size: 16px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method-card {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 12px 16px;
    }
    
    .payment-method-card .payment-icon {
        margin-bottom: 0;
        font-size: 1.6rem;
        flex-shrink: 0;
    }
    
    .payment-method-card .payment-radio {
        position: relative;
        top: auto;
        right: auto;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .payment-method-card .payment-name {
        font-size: 14px;
    }
    
    .payment-method-card .payment-desc {
        font-size: 11px;
    }
    
    .btn-pay-now {
        font-size: 14px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .btn-pay-now .pay-amount {
        font-size: 13px;
        padding: 2px 10px;
    }
    
    .payment-modal-content .qr-code-container img {
        max-width: 150px;
    }
}

/* ============================================================
   14. 打印樣式
   ============================================================ */
@media print {
    .order-confirm-section {
        padding: 20px 0;
        background: #fff;
        min-height: auto;
    }
    
    .order-confirm-card {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 20px;
    }
    
    .payment-section,
    .order-actions,
    .btn-back,
    .secure-badge {
        display: none !important;
    }
    
    .step-line {
        background: #ddd !important;
    }
    
    .step-circle {
        border-color: #ddd !important;
        background: #fff !important;
        color: #333 !important;
    }
    
    .step.completed .step-circle {
        border-color: #333 !important;
        background: #333 !important;
        color: #fff !important;
    }
}