/* ============================================================
   Back to Top Button
   Theme: LiquidMaster
   Matches floating mini-cart style — gradient circle, minimal.
   ============================================================ */

.liquidmaster-back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 997;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 20px rgba(144, 20, 223, 0.35);
    color: var(--button-text);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.85);
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        box-shadow 0.2s ease;
}

.liquidmaster-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.liquidmaster-back-to-top:hover,
.liquidmaster-back-to-top:focus-visible {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 28px rgba(144, 20, 223, 0.5);
}

.liquidmaster-back-to-top:active {
    transform: scale(0.93);
}

.liquidmaster-back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 6px 28px rgba(144, 20, 223, 0.5), var(--focus-ring);
}

/* Compact mobile */
@media (max-width: 575px) {
    .liquidmaster-back-to-top {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
    }
}
