/* ========== 縮放控制元件 ========== */

.zoom-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Noto Serif TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 切換按鈕 */
.zoom-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a962, #a88b4a);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.zoom-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.zoom-toggle-btn:active {
    transform: scale(0.95);
}

.zoom-toggle-btn svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

/* 面板 */
.zoom-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    padding: 16px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.zoom-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zoom-panel-header {
    color: #c9a962;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.zoom-panel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: #f5f5f5;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover:not(:disabled) {
    background: rgba(201, 169, 98, 0.3);
    border-color: #c9a962;
}

.zoom-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.zoom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zoom-level {
    color: #f5f5f5;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.zoom-reset-btn {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 6px;
    color: #a0a0a0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-reset-btn:hover {
    background: rgba(201, 169, 98, 0.1);
    color: #c9a962;
    border-color: #c9a962;
}

.zoom-hint {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
}

/* 手機版調整 */
@media (max-width: 768px) {
    .zoom-control {
        bottom: 15px;
        right: 15px;
    }

    .zoom-toggle-btn {
        width: 44px;
        height: 44px;
    }

    .zoom-toggle-btn svg {
        width: 22px;
        height: 22px;
    }

    .zoom-panel {
        bottom: 55px;
        min-width: 160px;
        padding: 14px;
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .zoom-level {
        font-size: 1rem;
    }
}

/* 小螢幕優化 */
@media (max-width: 480px) {
    .zoom-control {
        bottom: 10px;
        right: 10px;
    }

    .zoom-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .zoom-panel {
        right: -5px;
        bottom: 50px;
    }
}

/* 避免與其他固定元素衝突 */
.zoom-control.with-cart {
    bottom: 80px;
}
