/* Ícone do Carrinho - Shortcode */

.sp-cart-icon-wrapper {
    display: inline-block;
    position: relative;
}

.sp-cart-icon-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sp-cart-icon-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.sp-cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2C4C4C;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 76, 76, 0.3);
}

.sp-cart-icon:hover {
    box-shadow: 0 6px 20px rgba(44, 76, 76, 0.4);
    transform: scale(1.05);
}

.sp-cart-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.sp-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d63638;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(214, 54, 56, 0.4);
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.sp-cart-total {
    font-weight: 600;
    color: #2271b1;
    font-size: 16px;
}

/* Variação para Header Dark */
.sp-cart-icon-wrapper.dark-mode .sp-cart-icon {
    background: #2C4C4C;
}

.sp-cart-icon-wrapper.dark-mode .sp-cart-total {
    color: white;
}

/* Animação ao adicionar ao carrinho */
.sp-cart-icon.adding {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .sp-cart-icon {
        width: 36px;
        height: 36px;
    }

    .sp-cart-icon svg {
        width: 18px;
        height: 18px;
    }

    .sp-cart-count {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
    }
}
