﻿

/* 回到頂部按鈕 */
.back-to-top {
    background-color: #d63939;
    position: fixed;
    bottom: 0px;
    right: 10px;
    z-index: 999;
    display: none;
    width: 35px;
    height: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 加入這些讓 SVG 置中 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .back-to-top:hover {
        transform: translateY(-2px);
        background-color: #d63939;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .back-to-top:active {        
        background-color: #d63939 !important;        
    }
        /* 確保 SVG 圖標置中 */
        .back-to-top .icon {
        margin: 0;
    }

/* 搜尋框樣式 */
.input-icon {
    position: relative;
}

.input-icon-addon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    color: #6c757d;
}

.input-icon .form-control {
    padding-left: 42px;
}

/* 商品項目動畫 */
@keyframes itemPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        background: #f8f9fa;
    }

    100% {
        transform: scale(1);
    }
}


@media (max-width: 767.98px) { /* md 以下為手機 */
    .row {
        --tblr-gutter-y: 0;
    }
}



.page-body {
    margin-top: 0.75rem;    
}



.page-wrapper .page-header {
    margin: 0;
    margin-bottom: 0.5rem !important;
    padding: .7em !important;
}

@media (max-width: 768px) {
    .page-wrapper .page-header {
        margin-bottom: .5rem !important;
        padding: .2em !important;
    }  
}

.banner-img {
    width: 100%;
    height: 320px;
    object-fit: cover; /* 桌機可裁切 */
}

/* Mobile */
@media (max-width: 768px) {
    .banner-img {
        height: auto; /* 高度自動 */
        max-height: 200px; /* 手機縮小 */
        object-fit: contain; /* 整張圖完整顯示 */
        background-color: #f1f5f9; /* Tabler 灰底，避免留白突兀 */
    }
}
