/**
 * Maavelus Mini Cart
 */

.maavelus-mini-cart-wrapper {
 position: fixed;
 bottom: 24px;
 right: 24px;
 z-index: 99999;
}

.maavelus-mini-cart-toggle {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 56px;
 height: 56px;
 background: var(--maavelus-primary, #f97316);
 color: #fff;
 border: none;
 border-radius: 50%;
 cursor: pointer;
 box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
 position: relative;
}

.maavelus-mini-cart-toggle:hover {
 transform: scale(1.05);
 box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.maavelus-mini-cart-toggle:active {
 transform: scale(0.98);
}

.maavelus-mini-cart-toggle svg {
 width: 24px;
 height: 24px;
}

.maavelus-mini-cart-count {
 position: absolute;
 top: -4px;
 right: -4px;
 min-width: 20px;
 height: 20px;
 background: #1f2937;
 color: #fff;
 font-size: 11px;
 font-weight: 600;
 border-radius: 10px;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 0 6px;
}

.maavelus-mini-cart-count:empty,
.maavelus-mini-cart-count[data-count="0"] {
 display: none;
}

/* Hide when count is 0 */
.maavelus-mini-cart-wrapper.empty .maavelus-mini-cart-count {
 display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
 .maavelus-mini-cart-wrapper {
 bottom: 16px;
 right: 16px;
 }
 
 .maavelus-mini-cart-toggle {
 width: 52px;
 height: 52px;
 }
}

/* Animation for count update */
@keyframes cartBounce {
 0%, 100% { transform: scale(1); }
 50% { transform: scale(1.2); }
}

.maavelus-mini-cart-count.updated {
 animation: cartBounce 0.3s ease;
}
