/**
 * Market Experts Mini Cart Widget
 * Circular floating cart with green glow effect
 */

/* ==================== MINI CART CONTAINER ==================== */

.me-mini-cart {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    animation: me-mini-cart-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes me-mini-cart-entrance {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== MAIN BUTTON ==================== */

.me-mini-cart-btn,
.me-mini-cart-btn[type="button"],
button.me-mini-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.me-mini-cart-btn:hover,
.me-mini-cart-btn[type="button"]:hover,
button.me-mini-cart-btn:hover {
    transform: scale(1.1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.me-mini-cart-btn:focus,
.me-mini-cart-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==================== GREEN GLOW / GAS EFFECT ==================== */

/* Outer glow ring */
.me-mini-cart-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, rgba(34, 197, 94, 0.15) 40%, transparent 70%);
    animation: me-glow-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Inner glow layer */
.me-mini-cart-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 60%);
    animation: me-glow-pulse 2.5s ease-in-out infinite 0.3s;
    pointer-events: none;
    z-index: -1;
}

@keyframes me-glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Gas/smoke particles floating effect */
.me-mini-cart::before,
.me-mini-cart::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    filter: blur(4px);
    pointer-events: none;
    animation: me-gas-float 4s ease-in-out infinite;
}

.me-mini-cart::before {
    width: 12px;
    height: 12px;
    top: -5px;
    right: 10px;
    animation-delay: 0s;
}

.me-mini-cart::after {
    width: 8px;
    height: 8px;
    bottom: 5px;
    left: -5px;
    animation-delay: 1.5s;
}

@keyframes me-gas-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-8px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-4px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) scale(1.05);
        opacity: 0.7;
    }
}

/* ==================== LOGO ==================== */

.me-mini-cart-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.4),
        0 0 40px rgba(34, 197, 94, 0.2);
    transition: box-shadow 0.3s ease;
}

.me-mini-cart-btn:hover .me-mini-cart-logo {
    box-shadow:
        0 0 25px rgba(34, 197, 94, 0.5),
        0 0 50px rgba(34, 197, 94, 0.3);
}

/* ==================== COUNT BADGE ==================== */

.me-mini-cart-count {
    position: absolute;
    bottom: 0;
    right: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid #0a0f1a;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.5);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
    .me-mini-cart {
        bottom: 20px;
        right: 20px;
    }

    .me-mini-cart-btn,
    .me-mini-cart-btn[type="button"],
    button.me-mini-cart-btn {
        width: 64px;
        height: 64px;
    }

    .me-mini-cart-logo {
        width: 52px;
        height: 52px;
    }

    .me-mini-cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}
