/* 手機版置底選單 */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-top: 1px solid #e0e0e0;
}

.mobile-bottom-menu-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0;
    max-width: 100%;
}

.mobile-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    padding: 3px 0;
    position: relative;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    color: #027da9;
}

.mobile-menu-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.mobile-menu-item:active .mobile-menu-icon {
    transform: scale(0.9);
}

.mobile-menu-item.active .mobile-menu-icon {
    transform: scale(1.1);
}

.mobile-menu-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* 購物車數量徽章 */
.cart-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(8px);
    background-color: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* SVG 圖示樣式 */
.mobile-menu-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-icon.icon-home svg {
    fill: currentColor;
    stroke: none;
}

/* 只在手機版顯示 */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }

    /* 為內容區域增加底部內距，避免被置底選單遮擋 */
    body {
        padding-bottom: 70px;
    }
}

/* 桌面版隱藏 */
@media (min-width: 769px) {
    .mobile-bottom-menu {
        display: none !important;
    }
}