/* ===== 前台商店樣式 ===== */

/* 商品卡片 */
.product-card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .product-name {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 購物車 */
.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
}

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

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* 結帳步驟 */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.checkout-step {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    color: #adb5bd;
}

.checkout-step.active {
    color: var(--theme-color);
    font-weight: 600;
}

.checkout-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    margin-bottom: 0.25rem;
}

.checkout-step.active .step-num {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* 訂單狀態時間軸 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    border: 2px solid #fff;
}

.timeline-item.active::before {
    background: var(--theme-color);
}

/* 商品詳情 */
.product-gallery img {
    border-radius: 8px;
}

.product-info .quantity-input {
    width: 120px;
}

/* 手機版鈴鐺下拉清單：fixed 定位，貼附導覽列正下方，避免超出螢幕 */
@media (max-width: 991.98px) {
    .sf-alert-list-mobile {
        position: fixed !important;
        top: 57px !important;
        /* Bootstrap navbar 預設高度 */
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        transform: none !important;
        z-index: 1045;
    }
}

/* 右下角浮動 LINE 客服按鈕 */
.floating-line-btn {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: 24px;
    background-color: #06c755;
    /* LINE 官方綠色 */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    /* 確保在大多數元素上方 */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.floating-line-btn:hover,
.floating-line-btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background-color: #05a747;
    /* 稍深的綠色 */
    color: #fff;
}
